/* Ensure team card footers (emails) align across columns */
.team-card {
    display: flex;
    flex-direction: column;
}

.team-card .team-email {
    margin-top: auto; /* push footer to bottom of the card */
}

/* --- VARIABLES Y ESTILOS GLOBALES --- */
:root {
    --dark-bg: #222831;
    --secondary-bg: #393E46;
    --primary-color: #FFD369; /* Amarillo/Dorado de tu imagen */
    --light-text: #EEEEEE;
    --font-family: 'Poppins', sans-serif;
    --font-family-1: 'Poppins', sans-serif;
    --font-family-2: 'Roboto', sans-serif;
    --font-family-3: 'Open Sans', sans-serif;
    --font-family-4: 'Lato', sans-serif;
    --font-family-5: 'Montserrat', sans-serif;
    --social-bar-bg: #181c22; /* Más oscuro que la navbar */
    --social-bar-height: 32px;
    --whatsapp-green: #25D366;
    --card-bg: #2C2F36;
    --shadow-color: rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}

/* --- SOCIAL BAR --- */
.social-bar {
    width: 100%;
    height: var(--social-bar-height);
    background: var(--social-bar-bg);
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: end;
    -webkit-justify-content: flex-end;
    justify-content: flex-end;
    padding: 0 2rem;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1100;
    /* Sin borde inferior */
    box-sizing: border-box;
}

.social-bar .social-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-left: 18px;
    transition: color 0.2s, transform 0.2s;
    text-decoration: none;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    box-sizing: border-box;
}

.social-bar .social-icon:hover {
    color: var(--whatsapp-green);
    transform: scale(1.15);
}

.social-label {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-right: 1rem;
    white-space: nowrap;
    font-family: 'Poppins', sans-serif; /* fallback */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: inline-block !important;
    visibility: visible !important;
}

@media (max-width: 768px) {
    .social-bar {
        padding: 0 1rem;
        height: 28px;
        -webkit-box-pack: start;
        -webkit-justify-content: flex-start;
        justify-content: flex-start;
    }
    .social-bar .social-icon {
        font-size: 1rem;
        margin-left: 12px;
    }
    .social-label {
        font-size: 0.8rem;
        margin-right: 0.5rem;
    }
}

/* --- WHATSAPP FLOAT BUTTON --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--whatsapp-green);
    color: #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    font-size: 2.2rem;
    z-index: 1200;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.whatsapp-float i {
    color: #fff;
}

.whatsapp-float:hover {
    background: #128C7E;
    transform: scale(1.08);
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 18px;
        right: 18px;
        width: 49px;
        height: 49px;
        font-size: 1.5rem;
    }
}

body {
    font-family: var(--font-family);
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 48px;
}

h1, h2, h3, h4 {
    line-height: 1.2;
    color: var(--light-text);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--primary-color); }
p { margin-bottom: 1rem; }

/* Botón principal (hero + CTA global) - estilo original amarillo redondeado */
.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--dark-bg);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.section-subtitle {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    font-size: 1.1rem;
    font-weight: 300;
}

.content-section {
    padding: calc(80px + var(--social-bar-height) + 64px) 0 80px 0;
}

@media (max-width: 768px) {
    .content-section {
        padding: calc(60px + var(--social-bar-height) + 56px) 0 60px 0;
    }
}

.bg-darker {
    background-color: var(--secondary-bg);
}

/* Reglas eliminadas por error de sintaxis, se agregan correctamente en el bloque de media queries */
/* Estilos acordeón para servicios en móvil */
@media (max-width: 768px) {
    .services-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    .service-card {
        background: var(--dark-bg);
        border-radius: 12px;
        box-shadow: 0 2px 12px #0002;
        padding: 0;
        margin: 0;
        overflow: hidden;
        transition: box-shadow 0.2s;
    }
    .service-accordion-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 20px;
        cursor: pointer;
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--primary-color);
        background: none;
        border: none;
        outline: none;
        transition: background 0.2s;
    }
    .service-accordion-header:hover {
        background: #22283122;
    }
    .service-accordion-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s cubic-bezier(0.4,0,0.2,1);
        background: var(--dark-bg);
        padding: 0 20px;
        color: var(--light-text);
        font-size: 1rem;
    }
    .service-card.open .service-accordion-content {
        max-height: 500px;
        padding-bottom: 18px;
    }
    .service-accordion-icon {
        font-size: 1.3rem;
        color: var(--primary-color);
        margin-left: 10px;
        transition: transform 0.3s;
    }
    .service-card.open .service-accordion-icon {
        transform: rotate(90deg);
    }
    /* HIDE LEFT CHECKMARKS IN MOBILE (cleaner look) */
    .service-card li::before { display: none; }
}
.fade-in {
    animation: fadeInBody 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-up {
    animation: fadeUp 1s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInBody {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.cta-button:hover {
    background-color: #ffc94a;
    transform: translateY(-3px);
}

/* --- BARRA DE NAVEGACIÓN --- */
 .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: var(--social-bar-height);
    z-index: 1000;
    background-color: rgba(34, 40, 49, 0.85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: background-color 0.3s ease;
    padding: 1rem 1rem;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
    margin-left: 16px;
    z-index: 1101;
}
.hamburger {
    width: 28px;
    height: 3px;
    background: var(--primary-color);
    display: block;
    position: relative;
    border-radius: 2px;
    transition: all 0.3s;
}
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 28px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s;
}
.hamburger::before {
    top: -9px;
}
.hamburger::after {
    top: 9px;
}
.nav-toggle.open .hamburger {
    background: transparent;
}
.nav-toggle.open .hamburger::before {
    transform: rotate(45deg) translate(5px,5px);
}
.nav-toggle.open .hamburger::after {
    transform: rotate(-45deg) translate(5px,-5px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
    transition: all 0.3s;
}

@media (max-width: 900px) {
    .nav-menu {
        gap: 0.2rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100vw;
        background: rgba(34,40,49,0.98);
        flex-direction: column;
        align-items: flex-start;
        padding: 1.2rem 0.5rem 1.2rem 1.5rem;
        box-shadow: 0 8px 32px #0005;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: max-height 0.3s, opacity 0.3s;
        z-index: 1102;
    }
    .nav-menu.nav-menu-open {
        max-height: 400px;
        opacity: 1;
        pointer-events: auto;
    }
    .service-item {
        background: none;
        border-radius: 8px;
        margin-bottom: 8px;
        box-shadow: none;
        transition: background 0.2s;
        cursor: pointer;
        position: relative;
        padding: 0;
    }
    .service-item .service-accordion-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1), padding 0.25s;
        background: var(--dark-bg);
        padding: 0 0 0 0;
        color: var(--light-text);
        font-size: 1rem;
    }
    /* Two-column toggle: left = text (flexible), right = icon (fixed) */
    .service-item-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 8px 0;
        width: 100%;
        background: transparent;
        border: none;
        color: var(--light-text);
        cursor: pointer;
    }
    .service-item-toggle .toggle-text {
        flex: 1 1 auto;
        text-align: left;
        padding-right: 8px;
        min-width: 0; /* allow ellipsis/wrapping correctly */
    }
    .service-item-toggle .toggle-icon {
        flex: 0 0 44px; /* más compacto y sutil */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    /* Ensure accordion content and paragraphs use full width but never underlap the icon column */
    .service-item .service-accordion-content,
    .service-item-content,
    .service-card p {
        padding-right: 0; /* no need to reserve with new layout */
        box-sizing: border-box;
    }

    /* Mobile-only: make the accordion/content area span the card inner width,
       keep comfortable padding from the card edges and center text. This
       affects only the inner content paragraphs (both types used across cards). */
    .service-item .service-accordion-content,
    .service-item-content {
        width: 100%;
        padding: 14px 18px; /* breathing room from card edges */
        margin: 0 auto;
        text-align: center; /* center text inside the content area */
        box-sizing: border-box;
        word-break: break-word; /* allow longer words to wrap */
    }
}
.spinner {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 3px solid #FFD369;
    border-top: 3px solid #222831;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-left: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#contact-form[aria-busy="true"] {
    pointer-events: none;
    opacity: 0.7;
}

/* .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: var(--social-bar-height);
    z-index: 1000;
    background-color: rgba(34, 40, 49, 0.85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: background-color 0.3s ease;
    padding: 1rem 2rem;
}
 */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 100px; /* tamaño prominente en desktop */
    width: auto;
    max-width: 280px; /* evita desbordes si el SVG es muy ancho */
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    .logo-img {
        height: 80px; /* +4px para más presencia en mobile */
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 80px; /* +4px para presencia sin romper */
        max-width: 160px;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 20px;
}

.nav-link {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    padding: 5px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

/* --- SECCIÓN INICIO (HERO) --- */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 80px; /* Espacio para el navbar */
    /* Descomenta la siguiente línea y cambia la URL para agregar una imagen de fondo */
    /* background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://via.placeholder.com/1920x1080') no-repeat center center/cover; */
}

.hero-content p {
    font-size: 1.2rem;
    font-weight: 300;
    max-width: 600px;
    margin: 1rem auto 2rem auto;
}

/* --- SECCIÓN SERVICIOS --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 3rem;
}
    .service-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .service-item {
        background: none;
        border-radius: 8px;
        margin-bottom: 8px;
        box-shadow: none;
        transition: background 0.2s;
        cursor: pointer;
        position: relative;
        padding: 0;
    }
    .service-item .service-accordion-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s cubic-bezier(0.4,0,0.2,1);
        background: var(--dark-bg);
        color: var(--light-text);
        font-size: 0.98rem;
        padding: 0 10px;
    }
    .service-item.open .service-accordion-content {
        max-height: 200px;
        padding-bottom: 10px;
    }
    /* Left align headings in mobile and move chevron to the far right */
    .service-item-toggle { text-align: left; }
    /* Pulsing circle inside the fixed icon column (small, subtle) */
    .more-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 14px; /* aún más reducido y discreto */
        height: 14px;
        border-radius: 50%;
        background: linear-gradient(135deg, rgba(255,211,105,0.98), rgba(255,211,105,0.9));
        box-shadow: 0 1px 2px rgba(0,0,0,0.08); /* muy tenue */
        animation: morePulse 2.8s infinite ease-in-out; /* pulso aún más suave */
        overflow: hidden; /* keep chevron inside the circle to avoid overlap */
        vertical-align: middle;
    }
    /* Chevron: dark color, subtle vertical drop animation (no pulsing) */
    .more-icon i {
        color: var(--secondary-bg); /* use palette variable */
        font-size: 10px; /* tamaño fijo en px para consistencia dentro del círculo */
        position: relative;
        display: inline-block;
        animation: moreDrop 1.6s ease-in-out infinite;
        animation-direction: alternate;
        text-shadow: 0 1px 1px rgba(0,0,0,0.18);
        transform-origin: center;
        line-height: 1;
    }
    /* When open: point the chevron up and pause the drop animation so it rests upward */
    .service-item.open .more-icon i {
        transform: rotate(180deg);
        animation-play-state: paused;
        top: 1px; /* menor offset con círculo más pequeño */
    }

.service-card {
    background-color: var(--dark-bg);
    padding: 30px;
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
}

.service-card ul {
    list-style: none;
    padding-left: 0;
}

.service-card li {
    margin-bottom: 0.5rem;
    padding-left: 1.2em;
    position: relative;
}

.service-card li::before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: 600;
}

/* Estilos para los toggles de items dentro de las tarjetas (solo en móvil se comportan como acordeón) */
.service-item-toggle {
    background: transparent;
    border: none;
    color: var(--light-text);
    text-align: left;
    padding: 8px 0;
    width: 100%;
    font-weight: 600;
    cursor: pointer;
}
.service-item-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 0 0 0;
    color: var(--light-text);
    font-weight: 400;
    transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1), padding 0.25s ease;
}
.service-item.open .service-item-content {
    max-height: 240px; /* suficiente para un párrafo corto */
    padding: 6px 0 12px 0;
}

/* 'Más' icon (sutil animación) - versión reducida y consistente */
.more-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px; /* tamaño uniforme y discreto */
    height: 14px;
    margin-left: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,211,105,1), rgba(255,211,105,0.85));
    box-shadow: 0 1px 3px rgba(255,211,105,0.08);
    vertical-align: middle;
    transform-origin: center;
    animation: morePulse 2.8s infinite ease-in-out;
    overflow: hidden;
}

@keyframes morePulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.92; }
    100% { transform: scale(1); opacity: 1; }
}

/* Chevron drop animation: subtle vertical movement only */
@keyframes moreDrop {
    0% { top: 0; }
    100% { top: 2px; }
}

/* En escritorio: mostrar todo el contenido de las listas (sin colapsar) */
@media (min-width: 769px) {
    /* En pantallas de escritorio mostramos siempre el contenido y desactivamos el icono */
    .service-item-content { display: block !important; max-height: none !important; padding: 6px 0 12px 0 !important; }
    .service-item-toggle .more-icon { display: none; }
}

/* --- SECCIÓN METODOLOGÍA --- */
.method-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
    margin-top: 3rem;
}

.step-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.step h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* --- SECCIÓN CONTACTO --- */
.contact-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 3rem;
    align-items: center;
}

#contact-form {
    display: flex;
    flex-direction: column;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #555;
    background-color: var(--secondary-bg);
    color: var(--light-text);
    font-family: var(--font-family);
    font-size: 1rem;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-details p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-details i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 20px;
    background-color: var(--secondary-bg);
    font-size: 0.9rem;
}

footer p {
    margin: 1px 0;
}

footer .footer-dev {
    font-size: 0.8rem;
}

footer .footer-dev a {
    color: var(--primary-color);
    text-decoration: none;
}

.font-selector {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.8rem;
}

.font-selector label {
    margin-right: 0.5rem;
    color: var(--light-text);
}

.font-selector select {
    background: var(--secondary-bg);
    color: var(--light-text);
    border: 1px solid #555;
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
}


/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .navbar { flex-direction: column; }
    .nav-menu { margin-top: 10px; }
    .nav-item { margin: 0 10px; }

    .services-grid { grid-template-columns: 1fr; }
    .method-steps { grid-template-columns: repeat(2, 1fr); }
    .contact-container { grid-template-columns: 1fr; }

    .contact-details { margin-top: 2rem; text-align: center; }

    .nav-logo {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    .navbar {
        padding: 0 1.25rem 0.1rem 1.25rem; /* un poco más de margen en mobile */
    }
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px; /* más respiración entre items */
    }
    .nav-link {
        font-size: 1rem;
        padding: 6px 0;
    }
    .social-bar {
        padding: 0 0.5rem;
        height: 28px;
    }
    .hero {
        padding-top: 60px;
        height: auto;
        min-height: 60vh;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }
    .cta-button {
        font-size: 1rem;
        padding: 10px 18px;
        width: 100%;
        box-sizing: border-box;
    }
    .container {
        padding: 0 20px;
    }

    /* Make CTA breathe on mobile: don't let the full-width button stick to the edges */
    .cta-button {
        display: block;
        width: calc(100% - 32px); /* leave 16px space each side */
        max-width: 720px;
        margin: 0 auto;
        padding: 10px 18px;
        box-sizing: border-box;
    }
    .content-section {
        padding: 36px 0 36px 0;
        margin-left: 6px;
        margin-right: 6px;
    }
    .service-card {
        padding: 18px;
    }
    .method-steps {
        gap: 10px;
    }
    .step-icon {
        font-size: 2rem;
    }
    .contact-container {
        gap: 20px;
    }
    .whatsapp-float {
        width: 49px;
        height: 49px;
        font-size: 1.5rem;
        bottom: 12px;
        right: 12px;
    }
    footer {
        padding: 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .method-steps { grid-template-columns: 1fr; }

    .nav-logo {
        font-size: 1rem;
    }
    .nav-link {
        font-size: 0.95rem;
    }
    .hero-content h1 {
        font-size: 1.5rem;
    }
    .container {
           padding: 0 10px;
    }

    /* extra spacing for very small screens so CTA doesn't touch edges */
    .container.cta-friendly, .container {
        padding-left: 14px;
        padding-right: 14px;
    }
    .cta-button {
        width: calc(100% - 28px); /* slightly less full width on very small screens */
        max-width: 680px;
        margin: 0 auto;
    }
    .cta-button {
        font-size: 0.95rem;
        padding: 8px 10px;
    }
    /* extra right padding on very small screens to keep text clear of the icon; reduced to match content padding */
    .service-item .service-accordion-content,
    .service-item-content,
    .service-card p {
        padding-right: 18px; /* align with mobile content padding for full-width feel */
    }
    .service-card {
        padding: 10px;
    }
    .contact-details {
        font-size: 0.95rem;
    }
    .whatsapp-float {
        width: 43px;
        height: 43px;
        font-size: 1.25rem;
        bottom: 10px;
        right: 8px;
    }
    footer {
        padding: 8px;
        font-size: 0.7rem;
    }
}

/* --- SECCIÓN EQUIPO --- */
.team-section {
    margin-top: 3rem;
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 2rem;
}

.team-card {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow-color);
/* --- TEAM (mobile-only) --- */
@media (max-width: 768px) {
    .team-section { margin-top: 1.5rem; }
    .team-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 0.75rem;
    }
    /* Centered vertical card layout on mobile */
    .team-card {
        display: block;
        text-align: center;
        padding: 12px;
        /* keep base background/shadow from desktop styles */
    }
    .team-photo {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        object-fit: cover;
        display: block;
        margin: 0 auto 8px auto;
    }
    .team-card h4 {
        margin: 0 0 4px 0;
        font-size: 1.05rem;
        line-height: 1.25;
        text-align: center;
    }
    .team-card p {
        margin: 0;
        font-size: 0.9rem;
        line-height: 1.45;
        text-align: center;
        text-align: center;
    }
}
    text-align: center;
}

.team-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 1rem auto;
}

.team-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.team-card p {
    font-size: 0.9rem;
    line-height: 1.4;
}

.team-email {
    margin-top: 12px;
    padding: 10px 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: rgba(0,0,0,0.06); /* leve matiz para separar el pie */
    opacity: 0.95;
}
.team-email i { color: var(--primary-color); font-size: 0.95rem; }
.team-email a {
    color: var(--light-text);
    text-decoration: none;
}
.team-email a:hover { text-decoration: underline; }

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .team-card {
        padding: 15px;
    }
    .team-photo {
        width: 80px;
        height: 80px;
    }
    .team-card h4 {
        font-size: 1.1rem;
    }
    .team-card p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .team-grid {
        gap: 15px;
    }
    .team-card {
        padding: 10px;
    }
    .team-photo {
        width: 70px;
        height: 70px;
    }
    .team-card h4 {
        font-size: 1rem;
    }
    .team-card p {
        font-size: 0.8rem;
    }
}

/* Honeypot (oculto fuera de pantalla para bots) */
.hp-field {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}
.hp-field input {
    width: 1px !important;
    height: 1px !important;
}

/* --- WhatsApp Contact Selector --- */
.wa-selector {
    position: fixed;
    right: 12px;
    bottom: 64px; /* above the floating button */
    width: 280px;
    background: var(--secondary-bg);
    color: var(--light-text);
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.25);
    padding: 10px 10px 12px 10px;
    z-index: 1201;
    transform: translateY(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}
.wa-selector.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.wa-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin: 2px 0 8px 4px;
}
.wa-list { display: flex; flex-direction: column; gap: 8px; }
.wa-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px;
    border: none;
    background: var(--card-bg);
    color: inherit;
    border-radius: 10px;
    box-shadow: 0 4px 12px var(--shadow-color);
    cursor: pointer;
    text-align: left;
}
.wa-item:hover { filter: brightness(1.02); }
.wa-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}
.wa-name { font-weight: 700; font-size: 0.95rem; }
.wa-role { display: block; font-size: 0.8rem; opacity: 0.85; }
.wa-close {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--light-text);
    font-size: 1.1rem;
    cursor: pointer;
}
@media (max-width: 480px) {
    .wa-selector { right: 8px; left: 8px; width: auto; }
}

/* Fix: balance CSS blocks - added missing closing brace */