/* =============================================
   VARIABLES & RESET
   ============================================= */
:root {
    --verde:      #9e5875;
    --verde-nav:  #41b0b8;
    --azul:       #2d3a8c;
    --blue:       #39B7FF;
    --blue-dark:  #0e7ab5;
    --blue-hero:  #0a9fd4;
    --pink:       #FF66C4;
    --white:      #ffffff;
    --off-white:  #f5f0eb;
    --text-dark:  #1a1a1a;
    --muted:      #555;
    --radius:     20px;
    --transition: 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: "Georgia", serif;
    background: var(--verde);
    color: var(--white);
    line-height: 1.6;
}

/* =============================================
   NAVBAR — azul como principal
   ============================================= */
nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 16px 40px;
    background: var(--blue-dark);
    border-bottom: 2px solid rgba(255,102,196,0.25);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-nav { display: flex; align-items: center; }

.logo-img {
    height: 52px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(255,102,196,0.5));
    transition: transform var(--transition), filter var(--transition);
}
.logo-img:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 0 14px rgba(255,102,196,0.8));
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 12px;
}

.nav-sep {
    color: rgba(255,255,255,0.35);
    font-size: 0.85rem;
    pointer-events: none;
}

nav a {
    text-decoration: none;
    color: rgba(255,255,255,0.85);
    font-family: "Georgia", serif;
    font-size: 0.78rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 4px 0;
    position: relative;
    transition: color var(--transition);
}

nav a::after {
    content: "";
    position: absolute;
    left: 0; bottom: -3px;
    width: 0%; height: 2px;
    background: var(--pink);
    transition: width var(--transition);
    border-radius: 4px;
}

nav a:hover { color: var(--pink); }
nav a:hover::after { width: 100%; }
nav a.active { color: var(--pink); }
nav a.active::after { width: 100%; }

/* =============================================
   ANIMACIÓN LOGO HERO
   ============================================= */
@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: scale(0.4);
        filter: drop-shadow(0 0 0px rgba(57,183,255,0)) blur(8px);
    }
    60% {
        opacity: 1;
        transform: scale(1.08);
        filter: drop-shadow(0 0 30px rgba(57,183,255,0.6)) blur(0px);
    }
    80% {
        transform: scale(0.97);
        filter: drop-shadow(0 0 20px rgba(255,102,196,0.5));
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: drop-shadow(0 0 24px rgba(57,183,255,0.35));
    }
}

@keyframes logoPulse {
    0%, 100% { filter: drop-shadow(0 0 18px rgba(57,183,255,0.3)); }
    50%       { filter: drop-shadow(0 0 32px rgba(255,102,196,0.5)); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   HERO — azul como fondo principal
   ============================================= */
.hero {
    background:
        radial-gradient(circle, #FF66C4 1px, transparent 1px),
        linear-gradient(160deg, var(--blue-dark) 0%, var(--blue-hero) 50%, #0a6fa3 100%);
    background-size: 32px 32px, 100% 100%;
    background-position: 0 0, 0 0;
    min-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 30px;
    position: relative;
    overflow: hidden;
}

/* Máscara para que los puntos sean más intensos al centro y desvanezcan en bordes */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 30%, #0e7ab5 80%);
    pointer-events: none;
    z-index: 0;
}

/* Flecha de scroll */
.hero::after {
    content: "";
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-right: 2px solid rgba(255,102,196,0.7);
    border-bottom: 2px solid rgba(255,102,196,0.7);
    transform: translateX(-50%) rotate(45deg);
    animation: scrollBounce 1.6s ease-in-out infinite;
    z-index: 1;
}

@keyframes scrollBounce {
    0%, 100% { opacity: 0.4; bottom: 32px; }
    50%       { opacity: 1;   bottom: 22px; }
}

.hero-logo {
    width: min(380px, 78vw);
    margin-bottom: 36px;
    position: relative;
    z-index: 1;
    animation:
        logoEntrance 1.1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
        logoPulse 3.5s ease-in-out 1.2s infinite;
}

.hero-subtitle {
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-bottom: 40px;
    z-index: 1;
    position: relative;
    animation: fadeUp 0.7s ease 0.9s both;
}

.hero-desc-card {
    background: var(--white);
    color: var(--text-dark);
    border-radius: var(--radius);
    padding: 36px 40px;
    max-width: 560px;
    text-align: left;
    position: relative;
    z-index: 1;
    animation: fadeUp 0.7s ease 1.1s both;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.hero-desc-card h3 {
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.hero-desc-card .def {
    font-size: 0.85rem;
    color: var(--muted);
    font-style: italic;
    margin-bottom: 18px;
}

.hero-desc-card p {
    font-size: 1rem;
    color: #333;
    line-height: 1.7;
    margin-bottom: 20px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.hero-tags span {
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-dark);
    border-bottom: 2px solid var(--pink);
    padding-bottom: 2px;
}
.hero-tags .sep { color: var(--muted); border: none; }

/* =============================================
   ANIMACIÓN CASCADA
   ============================================= */
.cascade span {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px);
    animation: fall 0.6s forwards;
}
.cascade span:nth-of-type(1)  { animation-delay: 0.05s; }
.cascade span:nth-of-type(2)  { animation-delay: 0.10s; }
.cascade span:nth-of-type(3)  { animation-delay: 0.15s; }
.cascade span:nth-of-type(4)  { animation-delay: 0.20s; }
.cascade span:nth-of-type(5)  { animation-delay: 0.25s; }
.cascade span:nth-of-type(6)  { animation-delay: 0.30s; }
.cascade span:nth-of-type(7)  { animation-delay: 0.35s; }
.cascade span:nth-of-type(8)  { animation-delay: 0.40s; }
.cascade span:nth-of-type(9)  { animation-delay: 0.45s; }
.cascade span:nth-of-type(10) { animation-delay: 0.50s; }
.cascade span:nth-of-type(11) { animation-delay: 0.55s; }
.cascade span:nth-of-type(12) { animation-delay: 0.60s; }
.cascade span:nth-of-type(13) { animation-delay: 0.65s; }
.cascade span:nth-of-type(14) { animation-delay: 0.70s; }
.cascade span:nth-of-type(15) { animation-delay: 0.75s; }
.cascade span:nth-of-type(16) { animation-delay: 0.80s; }
.cascade span:nth-of-type(17) { animation-delay: 0.85s; }
.cascade span:nth-of-type(18) { animation-delay: 0.90s; }
.cascade span:nth-of-type(19) { animation-delay: 0.95s; }
.cascade span:nth-of-type(20) { animation-delay: 1.00s; }
.cascade span:nth-of-type(21) { animation-delay: 1.05s; }
.cascade span:nth-of-type(22) { animation-delay: 1.10s; }
.cascade span:nth-of-type(23) { animation-delay: 1.15s; }
.cascade span:nth-of-type(24) { animation-delay: 1.20s; }
.cascade span:nth-of-type(25) { animation-delay: 1.25s; }
.cascade span:nth-of-type(26) { animation-delay: 1.30s; }
.cascade span:nth-of-type(27) { animation-delay: 1.35s; }
.cascade span:nth-of-type(28) { animation-delay: 1.40s; }
.cascade span:nth-of-type(29) { animation-delay: 1.45s; }
.cascade span:nth-of-type(30) { animation-delay: 1.50s; }
.cascade span:nth-of-type(31) { animation-delay: 1.55s; }
.cascade span:nth-of-type(32) { animation-delay: 1.60s; }
.cascade span:nth-of-type(33) { animation-delay: 1.65s; }
.cascade span:nth-of-type(34) { animation-delay: 1.70s; }
.cascade span:nth-of-type(35) { animation-delay: 1.75s; }
@keyframes fall { to { opacity: 1; transform: translateY(0); } }

/* =============================================
   PÁGINA HEADER (internas) — verde se queda
   ============================================= */
.page-header {
    background: linear-gradient(135deg, var(--verde) 0%, #0f5a54 100%);
    padding: 80px 40px 30px;
    text-align: center;
    border-bottom: 3px solid var(--blue);
}

.page-header .section-label {
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 12px;
    display: block;
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
    line-height: 1.1;
}

.page-header h1 .pink { color: var(--pink); }
.page-header h1 .blue { color: var(--blue); }

.page-header p {
    margin-top: 16px;
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* =============================================
   CONTENIDO GENERAL
   ============================================= */
.contenido {
    padding: 60px 40px 100px;
    max-width: 900px;
    margin: 0 auto;
}

/* =============================================
   CARDS SERVICIOS — blancas sobre verde
   ============================================= */
.cards-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    color: var(--text-dark);
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(0,0,0,0.25);
}

/* Barra top azul en hover */
.service-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--pink));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    border-radius: var(--radius) var(--radius) 0 0;
}
.service-card:hover::before { transform: scaleX(1); }

.service-card .card-icon-big {
    font-size: 3.5rem;
    flex-shrink: 0;
    width: 90px;
    text-align: center;
}

.service-card .card-body h3 {
    font-size: 1.05rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.service-card .card-body p {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.65;
}

.service-card .card-accent {
    position: absolute;
    top: -10px; right: 20px;
    width: 4px; height: 40px;
    background: var(--blue);
    border-radius: 4px;
}
.service-card.alt .card-accent { background: var(--pink); }

/* =============================================
   STATS (Nosotros) — fondo azul profundo
   ============================================= */
.stats-section {
    background: var(--azul);
    padding: 80px 40px;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.stat-card {
    background: rgba(57,183,255,0.1);
    border: 1px solid rgba(57,183,255,0.3);
    border-radius: var(--radius);
    padding: 40px 20px;
    transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(57,183,255,0.2);
}

.stat-card .number {
    font-size: 3.2rem;
    font-weight: bold;
    color: var(--blue);
    display: block;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-card .label {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
}

/* =============================================
   EQUIPO
   ============================================= */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 50px;
}

.team-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 28px;
    text-align: center;
    color: var(--text-dark);
    transition: transform var(--transition), box-shadow var(--transition);
    border-top: 4px solid var(--blue);
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.avatar {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--pink));
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 4px 20px rgba(57,183,255,0.35);
}

.team-card h3 {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.team-card .cargo {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--blue);
}

/* =============================================
   CONTACTO — azul profundo
   ============================================= */
.contact-section {
    background: var(--azul);
    padding: 80px 40px;
}

.contact-inner {
    max-width: 700px;
    margin: 0 auto;
}

.contact-section h2 {
    font-size: 3rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 8px;
}
.contact-section h2 .pink { color: var(--pink); }
.contact-section h2 .blue { color: var(--blue); }

.contact-section .sub {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.contact-form-box {
    background: rgba(57,183,255,0.07);
    border: 1px solid rgba(57,183,255,0.25);
    border-radius: var(--radius);
    padding: 40px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

input, textarea {
    padding: 15px 20px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 10px;
    font-size: 0.95rem;
    color: var(--white);
    font-family: "Georgia", serif;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

input::placeholder, textarea::placeholder {
    color: rgba(255,255,255,0.4);
}

input:focus, textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(57,183,255,0.18);
}

textarea { min-height: 140px; resize: vertical; }

button {
    padding: 16px;
    background: var(--blue);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: bold;
    font-family: "Georgia", serif;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

button:hover {
    background: var(--pink);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,102,196,0.35);
}

/* =============================================
   FOOTER
   ============================================= */
footer {
    background: var(--blue-dark);
    padding: 50px 40px 30px;
    text-align: center;
    border-top: 2px solid rgba(255,102,196,0.2);
}

.footer-logo {
    height: 52px;
    filter: drop-shadow(0 0 10px rgba(255,102,196,0.3));
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.footer-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--pink); }

footer p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
    letter-spacing: 1px;
}
footer .pink { color: var(--pink); }
footer .blue  { color: var(--blue); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    nav { flex-direction: column; gap: 16px; padding: 16px 20px; }
    nav ul { flex-wrap: wrap; justify-content: center; gap: 10px; }

    .page-header h1 { font-size: 2.4rem; }
    .hero { padding: 40px 20px; }
    .hero-desc-card { padding: 28px 22px; }
    .contenido { padding: 40px 20px 70px; }

    .service-card { flex-direction: column; text-align: center; }
    .service-card .card-icon-big { width: auto; }

    .stats-grid { grid-template-columns: 1fr; }
    .team-grid  { grid-template-columns: 1fr; }

    .contact-section { padding: 60px 20px; }
    .contact-form-box { padding: 24px 20px; }
    .contact-section h2 { font-size: 2.2rem; }

    button { align-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
    .cascade span { opacity: 1; transform: none; animation: none; }
    .hero-logo    { animation: none; opacity: 1; }
}

/* =============================================
   HOME — SECCIÓN SERVICIOS
   ============================================= */
.home-servicios {
    background: var(--verde);
    padding: 90px 40px;
}

.home-servicios-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.home-section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-label-home {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 14px;
}

.home-section-header h2 {
    font-size: 2.8rem;
    font-weight: bold;
    letter-spacing: 1px;
    color: var(--white);
    margin-bottom: 14px;
}

.txt-pink { color: var(--pink); }
.txt-blue { color: var(--blue); }

.home-section-header p {
    color: rgba(255,255,255,0.55);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Grid de cards */
.home-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 24px;
    margin-bottom: 52px;
}

.home-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 34px 28px;
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    border-top: 4px solid transparent;
}

.home-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue), var(--pink));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.home-card:hover::before { transform: scaleX(1); }

.home-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px rgba(0,0,0,0.22);
}

/* Card destacada — siempre tiene la línea */
.home-card.featured {
    background: linear-gradient(145deg, #fff 60%, #f0f8ff 100%);
    border-top: 4px solid var(--blue);
    box-shadow: 0 8px 30px rgba(57,183,255,0.18);
}

.home-card-icon {
    font-size: 2.4rem;
    margin-bottom: 16px;
    display: block;
}

.home-card h3 {
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.home-card p {
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 20px;
}

.home-card-link {
    font-size: 0.78rem;
    font-weight: bold;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--blue);
    text-decoration: none;
    border-bottom: 1px solid rgba(57,183,255,0.3);
    padding-bottom: 2px;
    transition: color var(--transition), border-color var(--transition);
}

.home-card-link:hover {
    color: var(--pink);
    border-color: var(--pink);
}

/* Botones CTA */
.home-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: var(--blue);
    color: var(--white);
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-primary:hover {
    background: var(--pink);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,102,196,0.35);
}

.btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    background: transparent;
    color: var(--white);
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.3);
    font-size: 0.82rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: border-color var(--transition), color var(--transition), transform var(--transition);
}

.btn-secondary:hover {
    border-color: var(--pink);
    color: var(--pink);
    transform: translateY(-2px);
}

/* =============================================
   HOME — STRIP DE STATS
   ============================================= */
.home-stats {
    background: var(--blue-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    padding: 0;
    border-top: 2px solid rgba(255,102,196,0.2);
    border-bottom: 2px solid rgba(255,102,196,0.2);
}

.home-stat {
    flex: 1;
    min-width: 160px;
    padding: 40px 20px;
    text-align: center;
    transition: background var(--transition);
}

.home-stat:hover {
    background: rgba(255,255,255,0.06);
}

.home-stat-num {
    display: block;
    font-size: 2.6rem;
    font-weight: bold;
    color: var(--pink);
    line-height: 1;
    margin-bottom: 8px;
}

.home-stat-label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
}

.home-stat-sep {
    width: 1px;
    height: 60px;
    background: rgba(255,255,255,0.12);
    align-self: center;
}

/* Responsive home sections */
@media (max-width: 768px) {
    .home-servicios { padding: 60px 20px; }
    .home-section-header h2 { font-size: 2rem; }
    .home-cards-grid { grid-template-columns: 1fr; }
    .home-stat-sep { display: none; }
    .home-stats { flex-direction: column; }
    .home-stat { width: 100%; padding: 28px 20px; }
}

/* =============================================
   LÍNEAS DECORATIVAS DE FONDO
   ============================================= */
.deco-lines {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
}

@keyframes drawLine {
    0%   { stroke-dashoffset: 2200; opacity: 0; }
    10%  { opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 1; }
}

@keyframes drawLineSlow {
    0%   { stroke-dashoffset: 2600; opacity: 0; }
    15%  { opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 1; }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.2; transform: translateY(0); }
    50%       { opacity: 0.6; transform: translateY(7px); }
}

/* Hero lines — estáticas, siempre visibles */
.deco-hero .flow-line,
.deco-hero .flow-line-2 {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
}

.deco-hero .scroll-hint {
    opacity: 0;
    animation: scrollPulse 2s ease-in-out 1s infinite;
}

/* Servicios lines — azul sobre verde */
.deco-verde .flow-line {
    stroke-dasharray: 2200;
    stroke-dashoffset: 2200;
    animation: drawLine 3.5s ease-out 0.3s forwards;
}

.deco-verde .flow-line-2 {
    stroke-dasharray: 2600;
    stroke-dashoffset: 2600;
    animation: drawLineSlow 5s ease-out 0.8s forwards;
}

/* Contenido siempre encima */
.hero > *:not(.deco-lines) { position: relative; z-index: 1; }
.home-servicios-inner       { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
    .deco-lines path { animation: none !important; stroke-dashoffset: 0 !important; opacity: 1 !important; }
}

/* =============================================
   CASCADE — letra por letra (subtítulo hero)
   ============================================= */
.cascade-word span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: fall 0.5s forwards;
}

/* Delays para cada letra del subtítulo */
.cascade-word span:nth-child(1)  { animation-delay: 1.2s; }
.cascade-word span:nth-child(2)  { animation-delay: 1.26s; }
.cascade-word span:nth-child(3)  { animation-delay: 1.32s; }
.cascade-word span:nth-child(4)  { animation-delay: 1.38s; }
.cascade-word span:nth-child(5)  { animation-delay: 1.44s; }
.cascade-word span:nth-child(6)  { animation-delay: 1.50s; }
.cascade-word span:nth-child(7)  { animation-delay: 1.56s; }
.cascade-word span:nth-child(8)  { animation-delay: 1.62s; }
.cascade-word span:nth-child(9)  { animation-delay: 1.68s; }
.cascade-word span:nth-child(10) { animation-delay: 1.74s; }
.cascade-word span:nth-child(11) { animation-delay: 1.80s; }
.cascade-word span:nth-child(12) { animation-delay: 1.86s; }
.cascade-word span:nth-child(13) { animation-delay: 1.92s; }
.cascade-word span:nth-child(14) { animation-delay: 1.98s; }
.cascade-word span:nth-child(15) { animation-delay: 2.04s; }
.cascade-word span:nth-child(16) { animation-delay: 2.10s; }
.cascade-word span:nth-child(17) { animation-delay: 2.16s; }
.cascade-word span:nth-child(18) { animation-delay: 2.22s; }
.cascade-word span:nth-child(19) { animation-delay: 2.28s; }
.cascade-word span:nth-child(20) { animation-delay: 2.34s; }
.cascade-word span:nth-child(21) { animation-delay: 2.40s; }
.cascade-word span:nth-child(22) { animation-delay: 2.46s; }
.cascade-word span:nth-child(23) { animation-delay: 2.52s; }
.cascade-word span:nth-child(24) { animation-delay: 2.58s; }
.cascade-word span:nth-child(25) { animation-delay: 2.64s; }
.cascade-word span:nth-child(26) { animation-delay: 2.70s; }
.cascade-word span:nth-child(27) { animation-delay: 2.76s; }
.cascade-word span:nth-child(28) { animation-delay: 2.82s; }
.cascade-word span:nth-child(29) { animation-delay: 2.88s; }
.cascade-word span:nth-child(30) { animation-delay: 2.94s; }
.cascade-word span:nth-child(31) { animation-delay: 3.00s; }
.cascade-word span:nth-child(32) { animation-delay: 3.06s; }
.cascade-word span:nth-child(33) { animation-delay: 3.12s; }
.cascade-word span:nth-child(34) { animation-delay: 3.18s; }
.cascade-word span:nth-child(35) { animation-delay: 3.24s; }
.cascade-word span:nth-child(36) { animation-delay: 3.30s; }
.cascade-word span:nth-child(37) { animation-delay: 3.36s; }
.cascade-word span:nth-child(38) { animation-delay: 3.42s; }
.cascade-word span:nth-child(39) { animation-delay: 3.48s; }


/* =============================================
   CASCADE — bloques (cards, secciones)
   al entrar en viewport via IntersectionObserver
   ============================================= */
.cascade-block {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.65s ease, transform 0.65s ease;
    transition-delay: var(--card-delay, 0s);
}

.cascade-block.visible {
    opacity: 1;
    transform: translateY(0);
}

/* La card del hero aparece con delay fijo */
.hero-desc-card.cascade-block {
    opacity: 0;
    transform: translateY(36px);
    animation: fall-block 0.7s ease 1.4s forwards;
}

@keyframes fall-block {
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================
   ANIMACIÓN FLOWBOX CARDS
========================== */

.home-card{
    position: relative;
    overflow: hidden;

    opacity: 0;
    transform: translateY(60px);

    animation: cardReveal .8s ease forwards;
}

/* Cascada */

.home-card:nth-child(1){
    animation-delay: .15s;
}

.home-card:nth-child(2){
    animation-delay: .35s;
}

.home-card:nth-child(3){
    animation-delay: .55s;
}

.home-card:nth-child(4){
    animation-delay: .75s;
}

/* Hover principal */

.home-card{
    transition:
        transform .45s ease,
        box-shadow .45s ease;
}

.home-card:hover{
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0,0,0,.15);
}

/* Línea animada superior */

.home-card::before{
    content:"";
    position:absolute;

    top:0;
    left:-100%;

    width:100%;
    height:4px;

    background:linear-gradient(
        90deg,
        #39B7FF,
        #FF66C4
    );

    transition:.6s;
}

.home-card:hover::before{
    left:0;
}

/* Contenido interno */

.home-card-icon,
.home-card h3,
.home-card p,
.home-card-link{

    opacity:0;
    transform:translateY(25px);
}

/* Icono */

.home-card{
    --delayBase:0s;
}

.home-card:nth-child(1){
    --delayBase:.15s;
}

.home-card:nth-child(2){
    --delayBase:.35s;
}

.home-card:nth-child(3){
    --delayBase:.55s;
}

.home-card:nth-child(4){
    --delayBase:.75s;
}

.home-card-icon{
    animation:
    contentReveal .6s ease forwards;

    animation-delay:
    calc(var(--delayBase) + .15s);
}

.home-card h3{
    animation:
    contentReveal .6s ease forwards;

    animation-delay:
    calc(var(--delayBase) + .30s);
}

.home-card p{
    animation:
    contentReveal .6s ease forwards;

    animation-delay:
    calc(var(--delayBase) + .45s);
}

.home-card-link{
    animation:
    contentReveal .6s ease forwards;

    animation-delay:
    calc(var(--delayBase) + .60s);
}

/* Animación botón */

.home-card-link{
    transition:
        transform .3s ease,
        letter-spacing .3s ease;
}

.home-card:hover .home-card-link{
    transform:translateX(6px);
    letter-spacing:.5px;
}

/* Keyframes */

@keyframes cardReveal{

    from{
        opacity:0;
        transform:translateY(60px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

@keyframes contentReveal{

    from{
        opacity:0;
        transform:translateY(25px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}
/* ==========================
   NUESTRA IDENTIDAD
========================== */

.identity-section{
    padding:100px 8%;
}

.identity-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:30px;
    margin-top:50px;
}

.identity-card{

    background:#ffffff;

    border-radius:20px;

    padding:35px;

    box-shadow:
    0 8px 25px rgba(0,0,0,.06);

    border-top:5px solid #39B7FF;

    transition:
    transform .4s ease,
    box-shadow .4s ease,
    border-color .4s ease;
}

.identity-card:hover{

    transform:translateY(-10px);

    box-shadow:
    0 20px 40px rgba(0,0,0,.12);

    border-top-color:#FF66C4;
}

.identity-icon{

    font-size:2.5rem;

    margin-bottom:20px;
}

.identity-card h3{

    margin-bottom:15px;

    color:#1f2937;
}

.identity-card p{

    line-height:1.8;

    color:#6b7280;

    margin-bottom:25px;
}

.identity-status{

    display:inline-block;

    padding:8px 14px;

    border-radius:999px;

    background:#eef7ff;

    color:#39B7FF;

    font-size:.85rem;

    font-weight:600;
}
.identity-card{
    opacity:0;
    transform:translateY(60px);
    animation:identityReveal .8s ease forwards;
}

.identity-card:nth-child(1){
    animation-delay:.2s;
}

.identity-card:nth-child(2){
    animation-delay:.45s;
}

.identity-card:nth-child(3){
    animation-delay:.7s;
}

@keyframes identityReveal{

    from{
        opacity:0;
        transform:translateY(60px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}
/* ==========================
   CONTACTO NUEVO
========================== */

.contact-container{

    max-width:1400px;

    margin:auto;

    display:grid;

    grid-template-columns:1fr 1fr;

    align-items:center;

    gap:60px;
}

.contact-image-area{

    text-align:center;
}

.contact-girl{

    width:100%;
    max-width:500px;

    animation:floatGirl 4s ease-in-out infinite;
}

.contact-info-text{

    margin-top:20px;

    color:white;
}

.contact-info-text h3{

    font-size:2rem;

    margin-bottom:15px;
}

.contact-info-text p{

    line-height:1.8;
    opacity:.9;
}

@keyframes floatGirl{

    0%{
        transform:translateY(0);
    }

    50%{
        transform:translateY(-15px);
    }

    100%{
        transform:translateY(0);
    }
}

@media(max-width:900px){

    .contact-container{

        grid-template-columns:1fr;
    }

    .contact-image-area{

        order:-1;
    }

    .contact-girl{

        max-width:320px;
    }
}
/* =============================================
   ABOUT CONTENT
   ============================================= */

.about-content{
    padding:80px 40px;
    max-width:1200px;
    margin:auto;
}

.about-intro{
    text-align:center;
    max-width:900px;
    margin:0 auto 60px;
}

.about-intro h2{
    font-size:2.5rem;
    margin-bottom:20px;
    color:var(--white);
}

.about-intro p{
    color:rgba(255,255,255,.8);
    margin-bottom:20px;
    line-height:1.9;
}

.about-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:25px;
}

.about-card{
    background:rgba(57,183,255,0.08);
    border:1px solid rgba(57,183,255,0.25);
    border-radius:var(--radius);
    padding:35px;
    transition:transform var(--transition),
               box-shadow var(--transition);
}

.about-card:hover{
    transform:translateY(-6px);
    box-shadow:0 15px 35px rgba(57,183,255,0.18);
}

.about-card h3{
    color:var(--blue);
    margin-bottom:15px;
    font-size:1.2rem;
}

.about-card p{
    color:rgba(255,255,255,.8);
    line-height:1.8;
}
/* =============================================
   COMO EMPEZAR
   ============================================= */

.steps-section{
    padding:90px 40px;
}

.steps-grid{
    margin-top:50px;

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:24px;
}

.step-card{
    background:rgba(57,183,255,0.08);
    border:1px solid rgba(57,183,255,0.25);
    border-radius:var(--radius);

    padding:35px;

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.step-card:hover{
    transform:translateY(-6px);

    box-shadow:
        0 15px 35px rgba(57,183,255,0.15);
}

.step-number{
    display:block;

    font-size:3rem;
    font-weight:bold;

    color:var(--blue);

    margin-bottom:15px;
}

.step-card h3{
    margin-bottom:12px;

    color:var(--white);

    font-size:1.2rem;
}

.step-card p{
    color:rgba(255,255,255,.75);
    line-height:1.8;
}
/* =============================================
   HEADER COMO EMPEZAR
   ============================================= */

.steps-header{
    text-align:center;
    max-width:900px;
    margin:0 auto 60px;
}

.steps-kicker{
    display:inline-block;

    font-size:.75rem;
    letter-spacing:4px;
    text-transform:uppercase;

    color:var(--blue);

    margin-bottom:16px;
}

.steps-header h2{
    font-size:clamp(2.5rem,5vw,4rem);
    line-height:1.1;
    margin-bottom:20px;

    color:var(--white);
}

.steps-header .pink{
    color:var(--pink);
}

.steps-divider{
    width:120px;
    height:3px;

    margin:0 auto 24px;

    border-radius:999px;

    background:
    linear-gradient(
        90deg,
        var(--blue),
        var(--pink)
    );
}

.steps-header p{
    max-width:650px;
    margin:auto;

    color:rgba(255,255,255,.7);

    line-height:1.8;
 /*==============================
   BOTÓN FLOTANTE WHATSAPP
===============================*/

.whatsapp-float{

    position:fixed;

    right:20px;

    top:50%;

    transform:translateY(-50%);

    width:58px;
    height:58px;

    background:#25D366;

    border-radius:50%;

    display:flex;
    justify-content:center;
    align-items:center;

    box-shadow:0 8px 20px rgba(0,0,0,.25);

    transition:.3s;

    z-index:99999;
}

.whatsapp-float img{
    width:32px !important;
    height:32px !important;
    max-width:32px !important;
    max-height:32px !important;
    display:block;
    object-fit:contain;
}



.whatsapp-float:hover{

    transform:translateY(-50%) scale(1.1);

    box-shadow:0 10px 25px rgba(37,211,102,.5);
}

@media(max-width:768px){

    .whatsapp-float{

    position:fixed;

    right:20px;
    bottom:20px;

    width:58px;
    height:58px;

    background:#25D366;

    border-radius:50%;

    display:flex;
    justify-content:center;
    align-items:center;

    z-index:9999;
}

    .whatsapp-float svg{

        width:28px;
        height:28px;
    }

}
}
