/* ===================================
   ALMA SALUD - ESTILOS PRINCIPALES
   Asistencia Médica a Domicilio
   =================================== */

/* ===================================
   RESET Y CONFIGURACIÓN BASE
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Paleta de Colores Corporativa */
    --azul-primario: #003D6B;
    --azul-secundario: #00508C;
    --amarillo-acento: #F5A623;
    --amarillo-hover: #E09612;
    --blanco: #FFFFFF;
    --gris-claro: #F7F9FC;
    --gris-oscuro: #2C3E50;
    --negro-suave: #1A1A1A;
    
    /* Tipografía */
    --font-titulos: 'Poppins', sans-serif;
    --font-cuerpo: 'Inter', sans-serif;
    
    /* Transiciones */
    --transition-smooth: all 0.3s ease;
    --transition-fast: all 0.2s ease;
    
    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(0, 61, 107, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 61, 107, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 61, 107, 0.16);
    --shadow-hover: 0 12px 32px rgba(0, 61, 107, 0.2);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-cuerpo);
    color: var(--negro-suave);
    line-height: 1.6;
    background-color: var(--blanco);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   HEADER - NAVEGACIÓN
   =================================== */

.header {
    background-color: var(--azul-primario);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.header.scrolled {
    padding: 8px 0;
    box-shadow: var(--shadow-lg);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition-fast);
}

.logo:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.logo-img {
    height: 95px;
    width: auto;
    object-fit: contain;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: var(--blanco);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.2rem;
    transition: var(--transition-fast);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--amarillo-acento);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--amarillo-acento);
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-cuerpo);
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--amarillo-acento);
    color: var(--blanco);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--amarillo-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--azul-primario);
    border: 2px solid var(--azul-primario);
}

.btn-secondary:hover {
    background-color: var(--azul-primario);
    color: var(--blanco);
}

.btn-header {
    padding: 10px 24px;
    font-size: 1.2rem;
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* Hamburger Menu (Mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background-color: var(--blanco);
    border-radius: 2px;
    transition: var(--transition-fast);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    background: var(--blanco);
    color: var(--negro-suave);
    padding: 70px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 50%, rgba(0, 61, 107, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-family: var(--font-titulos);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
    color: var(--azul-primario);
}

.hero-text h2 {
    font-family: var(--font-titulos);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--amarillo-acento);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 32px;
    color: var(--gris-oscuro);
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

.hero-image svg {
    width: 100%;
    height: auto;
    max-width: 600px;
}

.hero-img {
    width: 100%;
    height: auto;
    max-width: 600px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    display: block;
}

.hero-img-fade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(to right, var(--blanco) 0%, transparent 40%);
    pointer-events: none;
}

/* ===================================
   SOBRE NOSOTROS SECTION
   =================================== */

.about {
    padding: 0;
    background-color: var(--azul-primario);
    overflow: hidden;
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    min-height: 580px;
}

.about-text h2 {
    font-family: var(--font-titulos);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--blanco);
    margin-bottom: 24px;
}

.about-intro {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 40px;
}

.about-stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px 12px;
    transition: var(--transition-smooth);
}

.about-stat:hover {
    background: rgba(255, 255, 255, 0.16);
}

.stat-number {
    display: block;
    font-family: var(--font-titulos);
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--amarillo-acento);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    display: block;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.3;
}

.about-image {
    display: flex;
    flex-direction: column;
}

.about-img-wrapper {
    position: relative;
    flex: 1;
    min-height: 460px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.about-text {
    padding: 80px 40px 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-img-fade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to left, var(--azul-primario) 0%, transparent 40%);
    pointer-events: none;
}

/* ===================================
   SERVICIOS SECTION
   =================================== */

.services {
    padding: 100px 0;
    background-color: var(--blanco);
    background-image: radial-gradient(rgba(0,61,107,.11) 1px, transparent 1px);
    background-size: 24px 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: var(--font-titulos);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--azul-primario);
    margin-bottom: 26px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--amarillo-acento);
    border-radius: 2px;
    transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.15s;
}

.section-header h2.revealed::after {
    width: 56px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--gris-oscuro);
    max-width: 700px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.service-card::before {
    content: '';
    display: block;
    width: 36px;
    height: 3px;
    background: var(--amarillo-acento);
    border-radius: 2px;
    margin: 0 auto 28px;
}

.service-card {
    background: var(--blanco);
    padding: 40px 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background-color: var(--azul-primario);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--amarillo-acento);
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    background-color: var(--amarillo-acento);
    color: var(--blanco);
}

.service-card h3 {
    font-family: var(--font-titulos);
    font-size: 1.5rem;
    color: var(--azul-primario);
    margin-bottom: 16px;
    font-weight: 600;
}

.service-card p {
    color: var(--gris-oscuro);
    line-height: 1.7;
    font-size: 1rem;
}

/* ===================================
   STATS STRIP
   =================================== */

.stats-strip {
    background-color: var(--azul-primario);
    background-image: linear-gradient(rgba(0,61,107,0.72),rgba(0,61,107,0.72)),url('Imagenes/Publicaciones modelo/Imágenes Alma/WhatsApp Image 2026-04-17 at 1.13.40 PM (3).jpeg');
    background-size: auto 400%;
    background-position: 50% 38%;
    background-attachment: scroll;
    padding: 70px 0;
    position: relative;
}

.stats-strip::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, transparent, var(--amarillo-acento) 30%, var(--amarillo-acento) 70%, transparent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.stat-num-wrap {
    display: flex;
    align-items: baseline;
    gap: 2px;
    line-height: 1;
}

.stat-count {
    font-family: var(--font-titulos);
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--amarillo-acento);
}

.stat-suffix {
    font-family: var(--font-titulos);
    font-size: 2rem;
    font-weight: 700;
    color: var(--amarillo-acento);
}

.stat-item p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

/* ===================================
   POR QUÉ ELEGIRNOS SECTION
   =================================== */

.why-us {
    padding: 100px 0;
    background-color: var(--azul-primario);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 32px;
}

.why-card {
    grid-column: span 2;
}

.why-card:nth-child(4) {
    grid-column: 2 / span 2;
}

.why-card:nth-child(5) {
    grid-column: 4 / span 2;
}

.why-us .section-header h2 {
    color: var(--blanco);
}

.why-us .section-header p {
    color: rgba(255, 255, 255, 0.85);
}

.why-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 40px 32px;
    border-radius: 16px;
    transition: var(--transition-smooth);
    text-align: center;
}

.why-card:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-8px);
}

.why-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background-color: var(--amarillo-acento);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    color: var(--blanco);
    transition: var(--transition-smooth);
}

.why-card:hover .why-icon {
    background-color: var(--blanco);
    color: var(--azul-primario);
}

.why-card h3 {
    font-family: var(--font-titulos);
    font-size: 1.3rem;
    color: var(--blanco);
    margin-bottom: 16px;
    font-weight: 600;
}

.why-card p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    font-size: 1rem;
}

/* ===================================
   CÓMO CONTRATARNOS SECTION
   =================================== */

.how-it-works {
    padding: 100px 0;
    background-color: var(--blanco);
    background-image: radial-gradient(rgba(0,61,107,.11) 1px, transparent 1px);
    background-size: 24px 24px;
    color: var(--negro-suave);
}

.how-it-works .section-header h2 {
    color: var(--azul-primario);
}

.how-it-works .section-header p {
    color: var(--gris-oscuro);
}

.steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.step {
    background: var(--gris-claro);
    border: 1px solid rgba(0, 61, 107, 0.1);
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    flex: 1;
    max-width: 320px;
    transition: var(--transition-smooth);
}

.step:hover {
    background: var(--blanco);
    box-shadow: var(--shadow-md);
    transform: translateY(-6px);
}

.step-number {
    font-family: var(--font-titulos);
    font-size: 3rem;
    font-weight: 700;
    color: var(--amarillo-acento);
    opacity: 0.4;
    line-height: 1;
    margin-bottom: 16px;
}

.step-icon {
    width: 72px;
    height: 72px;
    background-color: var(--amarillo-acento);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 1.8rem;
    color: var(--blanco);
}

.step h3 {
    font-family: var(--font-titulos);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--azul-primario);
}

.step p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--gris-oscuro);
}

.step-connector {
    font-size: 1.5rem;
    color: var(--azul-primario);
    opacity: 0.4;
    padding: 0 16px;
    flex-shrink: 0;
}

.how-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 52px;
    flex-wrap: wrap;
}

.cta-path {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.cta-path-hint {
    font-size: 0.82rem;
    color: var(--gris-oscuro);
    opacity: 0.65;
    text-align: center;
}

.cta-divider {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gris-oscuro);
    opacity: 0.4;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    flex-shrink: 0;
    padding-bottom: 22px;
}

/* ===================================
   CONTACTO SECTION
   =================================== */

.contact {
    padding: 100px 0;
    background-color: var(--azul-primario);
    background-image: linear-gradient(rgba(0,61,107,0.85), rgba(0,61,107,0.85)), url('Imagenes/Publicaciones modelo/Imágenes Alma/WhatsApp Image 2026-04-17 at 1.13.38 PM (1).jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--blanco);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-info h2 {
    font-family: var(--font-titulos);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.contact-info > p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--blanco);
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.contact-method:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--amarillo-acento);
    transform: translateX(8px);
}

.method-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.method-icon.whatsapp {
    background-color: #25D366;
}

.method-icon.email {
    background-color: var(--amarillo-acento);
}

.method-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
}

.method-content h4 {
    font-family: var(--font-titulos);
    font-size: 1.2rem;
    margin-bottom: 4px;
    font-weight: 600;
}

.method-content p {
    opacity: 0.9;
    font-size: 1rem;
}

.contact-cta {
    background: rgba(255, 255, 255, 0.1);
    padding: 48px;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-content h3 {
    font-family: var(--font-titulos);
    font-size: 2rem;
    margin-bottom: 16px;
    font-weight: 600;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 32px;
    opacity: 0.95;
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    background-color: var(--blanco);
    color: var(--azul-primario);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 500px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 16px;
    transition: var(--transition-fast);
}

.footer-logo:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.footer-logo-img {
    height: 220px;
    width: auto;
    object-fit: contain;
}

.footer-brand p {
    color: var(--gris-oscuro);
    opacity: 1;
    line-height: 2;
    font-size: 1.5rem;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
    font-family: var(--font-titulos);
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-contact li {
    color: var(--gris-oscuro);
    text-decoration: none;
    opacity: 1;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--azul-primario);
    font-weight: 600;
    transform: translateX(4px);
}

.footer-contact svg {
    flex-shrink: 0;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 48px;
    height: 48px;
    background: rgba(0, 61, 107, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--azul-primario);
    transition: var(--transition-smooth);
}

.social-links a:hover {
    background: var(--amarillo-acento);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.footer-bottom {
    border-top: 1px solid rgba(0, 61, 107, 0.15);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: var(--gris-oscuro);
    opacity: 0.8;
    font-size: 0.95rem;
}

/* ===================================
   ANIMACIONES
   =================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

.fade-in-delay-1 {
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.fade-in-delay-2 {
    animation: fadeIn 0.8s ease-out 0.4s both;
}

.fade-in-delay-3 {
    animation: fadeIn 0.8s ease-out 0.6s both;
}

/* Scroll Reveal Animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   EFECTOS DINÁMICOS
   =================================== */

/* Hero image: floating */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-14px); }
}

.hero-img {
    animation: float 6s ease-in-out infinite;
}

/* Hero CTA: glow pulse */
@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(245,166,35,.4); }
    50% { box-shadow: 0 8px 32px rgba(245,166,35,.72); }
}

.hero-buttons .btn-primary {
    animation: glow-pulse 2.5s ease-in-out infinite;
}

/* Íconos: bounce al hacer hover */
@keyframes icon-bounce {
    0%   { transform: scale(1) rotate(0deg); }
    35%  { transform: scale(1.22) rotate(-6deg); }
    65%  { transform: scale(0.94) rotate(3deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.service-card:hover .service-icon {
    animation: icon-bounce 0.45s ease forwards;
}

.why-card:hover .why-icon {
    animation: icon-bounce 0.45s ease forwards;
}

/* Slide desde costados + stagger: service cards */
.services-grid .service-card:nth-child(odd)  { transform: translateX(-60px); transition-delay: 0s; }
.services-grid .service-card:nth-child(even) { transform: translateX(60px);  transition-delay: 0.12s; }
.services-grid .service-card:nth-child(3)    { transition-delay: 0.24s; }
.services-grid .service-card:nth-child(4)    { transition-delay: 0.36s; }
.services-grid .service-card.revealed        { transform: translateX(0); opacity: 1; }

/* Slide desde costados + stagger: why-cards */
.why-grid .why-card:nth-child(odd)  { transform: translateX(-60px); }
.why-grid .why-card:nth-child(even) { transform: translateX(60px); }
.why-grid .why-card:nth-child(1)    { transition-delay: 0s; }
.why-grid .why-card:nth-child(2)    { transition-delay: 0.1s; }
.why-grid .why-card:nth-child(3)    { transition-delay: 0.2s; }
.why-grid .why-card:nth-child(4)    { transition-delay: 0.3s; }
.why-grid .why-card:nth-child(5)    { transition-delay: 0.4s; }
.why-grid .why-card.revealed        { transform: translateX(0); opacity: 1; }

/* Stagger: stat items */
.stats-grid .stat-item:nth-child(1) { transition-delay: 0s; }
.stats-grid .stat-item:nth-child(2) { transition-delay: 0.12s; }
.stats-grid .stat-item:nth-child(3) { transition-delay: 0.24s; }
.stats-grid .stat-item:nth-child(4) { transition-delay: 0.36s; }

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .steps-grid {
        gap: 8px;
    }

    .step {
        padding: 28px 20px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text h2 {
        font-size: 1.5rem;
    }
    
    .contact-content {
        gap: 40px;
    }
}

/* Mobile Large (max-width: 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    /* Header Mobile */
    .nav {
        position: fixed;
        top: 82px;
        left: -100%;
        width: 100%;
        background-color: var(--azul-primario);
        padding: 32px 20px;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }
    
    .btn-header {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    /* Hero Mobile */
    .hero {
        padding: 60px 0 50px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text h2 {
        font-size: 1.3rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    /* Sections Mobile */
    .services,
    .why-us,
    .how-it-works,
    .contact {
        padding: 60px 0;
    }

    .steps-grid {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .step-connector {
        transform: rotate(90deg);
        padding: 0;
    }

    .step {
        max-width: 100%;
        width: 100%;
    }

    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about {
        overflow: visible;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 0;
        align-items: center;
        min-height: auto;
    }

    .about-image {
        display: block;
    }

    .about-img-wrapper {
        margin-left: 0;
        flex: none;
        height: 280px;
        min-height: auto;
        border-radius: 20px 20px 0 0;
    }

    .about-img {
        height: 100%;
    }

    .about-text {
        display: block;
        padding: 40px 24px;
    }

    /* Revert slide-from-sides a fadeUp en mobile */
    .services-grid .service-card:nth-child(odd),
    .services-grid .service-card:nth-child(even),
    .why-grid .why-card:nth-child(odd),
    .why-grid .why-card:nth-child(even) {
        transform: translateY(30px);
    }

    .about-text h2 {
        font-size: 2rem;
    }

    .about-intro {
        font-size: 1rem;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        margin-top: 28px;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .why-card,
    .why-card:nth-child(4),
    .why-card:nth-child(5) {
        grid-column: span 1;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info h2 {
        font-size: 2rem;
    }
    
    .contact-info > p {
        font-size: 1rem;
    }
    
    .contact-cta {
        padding: 32px 24px;
    }
    
    .cta-content h3 {
        font-size: 1.5rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Mobile Small (max-width: 480px) */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .btn-large {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    .service-card,
    .why-card {
        padding: 32px 24px;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .contact-method {
        padding: 16px;
    }
    
    .method-icon {
        width: 48px;
        height: 48px;
    }
}

/* ===================================
   UTILITY CLASSES
   =================================== */

.text-center {
    text-align: center;
}

.mb-16 {
    margin-bottom: 16px;
}

.mb-24 {
    margin-bottom: 24px;
}

.mb-32 {
    margin-bottom: 32px;
}

/* ===================================
   MEJORAS DE ACCESIBILIDAD
   =================================== */

/* Focus visible para navegación por teclado */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--amarillo-acento);
    outline-offset: 4px;
}

/* Mejora de contraste para textos */
@media (prefers-contrast: high) {
    :root {
        --gris-oscuro: #1A1A1A;
    }
}

/* Reducción de movimiento para usuarios con sensibilidad */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ===================================
   IMAGEN FULL WIDTH
   =================================== */
.fullwidth-image {
    width: 100%;
    line-height: 0;
}

.fullwidth-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ===================================
   FIN DE ESTILOS
   =================================== */
