/* ============================================
   SIEEC S.A.S. – Stylesheet v5.0
   Reset → Variables → Base → Componentes →
   Secciones → Responsive
   ============================================ */

/* --- RESET --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- VARIABLES --- */
:root {
    --color-cta:       #0a369d;
    --cta-hover:       #3061d1;
    --color-fondo:     #cfdee7;
    --color-secundary: #bbd6ff56;
    --white:           #ffffff;
    --black:           #000000;
    --gris:            #eeeeee;
    --text-p:          #555555;
    --azul-oscuro:     #002147;
    --azul-claro:      #007bff;
    --whatsapp:        #25d366;
    --whatsapp-hover:  #1ebe57;
    --shadow-sm:       0 2px 10px rgba(0,0,0,0.10);
    --shadow-md:       0 4px 10px rgba(0,0,0,0.10);
    --shadow-lg:       0 10px 20px rgba(0,0,0,0.15);
    --radius-sm:       5px;
    --radius-md:       10px;
    --radius-lg:       15px;
    --radius-pill:     50px;
    --transition:      all 0.3s ease;
}

/* --- BASE --- */
html { scroll-behavior: smooth; }

body {
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    width: 100%;
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul  { list-style: none; }
a   { text-decoration: none; }

/* ============================================
   SKIP LINK (ACCESIBILIDAD)
   ============================================ */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--color-cta);
    color: var(--white);
    padding: 10px 20px;
    z-index: 9999;
    border-radius: 0 0 var(--radius-sm) 0;
    font-weight: bold;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}

/* ============================================
   SPLASH SCREEN
   ============================================ */
#sieec-splash {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #0a369d;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.55s cubic-bezier(0.76, 0, 0.24, 1),
                opacity   0.55s ease;
    will-change: transform;
}

#sieec-splash.splash-out {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.splash-logo-wrap {
    background: #ffffff;
    border-radius: 50%;
    width: 170px;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 80px rgba(255, 255, 255, 0.18);
    animation: splash-spin-in 0.95s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.splash-logo-wrap img {
    width: 130px;
    height: 130px;
    object-fit: contain;
    border-radius: 50%;
    pointer-events: none;
    user-select: none;
}

@keyframes splash-spin-in {
    from {
        opacity: 0;
        transform: scale(0.3) rotate(-270deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .splash-logo-wrap { animation: none; opacity: 1; }
    #sieec-splash.splash-out { transform: none; opacity: 0; }
}

@media (max-width: 480px) {
    .splash-logo-wrap { width: 130px; height: 130px; }
    .splash-logo-wrap img { width: 100px; height: 100px; }
}

/* ============================================
   NAVBAR
   ============================================ */
header {
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 900;
}

.navbar {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: var(--white);
    position: relative;
    transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

header.scrolled .navbar {
    background-color: rgba(255, 255, 255, 0.97);
}

header.scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.14);
}

.logo img {
    width: 40px;
    height: 40px;
}

/* ---- HAMBURGUESA ---- */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    z-index: 1001;
    margin-left: auto;
}

.hamburger:hover { background: var(--gris); }

.ham-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--black);
    border-radius: 2px;
    transition: transform 0.35s ease, opacity 0.35s ease;
    transform-origin: center;
}

/* Estado abierto */
.hamburger.open .ham-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open .ham-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open .ham-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- NAV LINKS ---- */
.nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(300px, 80vw);
    height: 100dvh;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 80px 20px 30px;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow-y: auto;
    display: flex;
}

.nav-links.open {
    right: 0;
}

.nav-links li { border-bottom: 1px solid var(--gris); }
.nav-links li:last-child { border-bottom: none; }

.nav-links a:not(.cta-navbar) {
    display: block;
    padding: 14px 10px;
    color: var(--black);
    font-weight: bold;
    transition: var(--transition);
    border-radius: var(--radius-sm);
}

.nav-links a:not(.cta-navbar):hover {
    color: var(--white);
    background-color: var(--color-cta);
}

/* CTA dentro del menú móvil */
.nav-cta-mobile {
    margin-top: 20px;
    border: none !important;
}

.nav-links .nav-cta-mobile .cta-navbar {
    display: block;
    text-align: center;
    width: 100%;
}



/* CTA – centrado en móvil, normal en desktop */
.cta-navbar-desktop {
    display: inline-flex;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    padding: 8px 14px;
    white-space: nowrap;
    min-height: 40px;
}

/* Overlay oscuro detrás del menú */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 999;
}

.nav-overlay.open {
    display: block;
}

/* CTA NAVBAR */
.cta-navbar {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background-color: var(--color-cta);
    color: #ffffff ;
    font-weight: bold;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    min-height: 44px;
}

.cta-navbar:hover {
    background-color: var(--cta-hover);
}

/* ---- DESKTOP ---- */
@media (min-width: 1024px) {
    .hamburger { display: none; }
    .nav-overlay { display: none !important; }

    .nav-links {
        position: static;
        width: auto;
        height: auto;
        flex-direction: row;
        gap: 0.5rem;
        padding: 0;
        box-shadow: none;
        background: transparent;
        overflow: visible;
    }

    .nav-links li { border-bottom: none; }
    .nav-cta-mobile { display: none; }

    .nav-links a {
        padding: 10px 20px;
    }

    .cta-navbar-desktop {
        position: static;
        transform: none;
        font-size: inherit;
        padding: 10px 20px;
        min-height: 44px;
        white-space: normal;
    }
}

/* ============================================
   HERO
   ============================================ */
.hero-section {
    padding: 80px 20px;
    width: 100%;
    min-height: 100dvh;
    background: url('sieecfondo.avif') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-text {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-shadow: 0 0 10px rgba(0,0,0,0.9);
}

.hero-text h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--gris);
    line-height: 1.2;
}

.hero-text > p {
    margin-top: 1rem;
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--gris);
}

.cta-hero {
    display: inline-block;
    padding: 15px 50px;
    background-color: var(--color-cta);
    color: var(--white);
    margin-top: 1.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-weight: bold;
    font-size: 1rem;
    min-height: 44px;
}

.cta-hero:hover {
    transform: translateY(-3px);
    background-color: var(--cta-hover);
}

.sello-calidad {
    display: inline-flex;
    align-items: center;
    margin-top: 2rem;
    gap: 12px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: var(--radius-pill);
}

.icono-sello { font-size: 1.2rem; }

.sello-calidad p {
    color: var(--white);
    font-size: 0.9rem;
    margin: 0;
    letter-spacing: 0.5px;
    text-shadow: none;
}

.sello-calidad strong { color: var(--cta-hover); }

@media (max-width: 768px) {
    .sello-calidad { padding: 8px 15px; font-size: 0.8rem; }
}

/* ============================================
   BOTÓN "VER MÁS INFORMACIÓN"
   ============================================ */
.btn-ver-mas-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 1.5rem;
    padding: 12px 24px;
    background-color: var(--color-cta);
    color: var(--white);
    font-weight: bold;
    font-size: 0.95rem;
    border-radius: var(--radius-pill);
    transition: var(--transition);
    align-self: flex-start;
    min-height: 44px;
    border: 2px solid var(--color-cta);
}

.btn-ver-mas-info:hover {
    background-color: var(--cta-hover);
    border-color: var(--cta-hover);
    transform: translateY(-2px);
}

.btn-ver-mas-info--light {
    background-color: transparent;
    color: var(--color-cta);
    border: 2px solid var(--color-cta);
    margin-top: 1.5rem;
}

.btn-ver-mas-info--light:hover {
    background-color: var(--color-cta);
    color: var(--white);
}

/* ============================================
   SECCIÓN QUIÉNES SOMOS
   ============================================ */
.solucion-section {
    padding: 100px 20px;
    margin: 40px 0;
}

.solucion-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    align-items: center;
}

.solucion-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 500px;
    text-align: left;
}

.titulito {
    color: #666;
    letter-spacing: 0.3rem;
}

.flecha {
    color: var(--cta-hover);
    font-size: 1.25rem;
    font-weight: bold;
}

.solucion-text h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--color-cta);
    line-height: 1.3;
}

.solucion-img img {
    width: 100%;
    max-width: 390px;
    border-radius: var(--radius-md);
    margin: 2rem auto 0;
}

.solucion-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
}

.card {
    border: 1px solid var(--gris);
    border-radius: var(--radius-sm);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-cta);
}

.emoji { font-size: 2rem; }
.card-title { font-weight: bold; margin: 10px 0; }
.card p { opacity: 0.85; font-size: 0.875rem; color: var(--text-p); }

@media (min-width: 1024px) {
    .solucion-container {
        flex-direction: row;
        gap: 4rem;
        align-items: center;
        justify-content: center;
    }
    .solucion-text {
        flex: 1;
        max-width: 520px;
    }
    .solucion-img {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .titulito { letter-spacing: 1rem; }
}

/* ============================================
   SERVICIOS
   ============================================ */
.servicios-section {
    padding: 80px 20px;
    margin: 40px 0;
    text-align: center;
}

.servicios-section h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
    color: var(--color-cta);
}

.servicios-section > p {
    font-size: 0.9rem;
    color: var(--text-p);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.servicios-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: 230px;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 2.5rem auto 0;
}

.servicio {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 20px;
    text-align: left;
    box-shadow: 0 0 30px var(--color-secundary);
    border-radius: var(--radius-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.servicio:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(10, 54, 157, 0.14);
}

.servicio h3 { color: var(--cta-hover); font-size: 1rem; }
.servicio p  { font-size: 0.875rem; color: var(--text-p); line-height: 1.5; }

.btn-ver {
    border: none;
    background: none;
    text-align: left;
    font-weight: bold;
    color: var(--cta-hover);
    position: absolute;
    bottom: 15px;
    left: 15px;
    padding: 10px;
    cursor: pointer;
    transition: var(--transition);
    min-height: 44px;
    font-size: 0.875rem;
}

.btn-ver:hover { color: var(--color-cta); }

.servicio.extra {
    display: none;
    opacity: 0;
    transform: translateY(30px);
}

.servicio.extra.visible {
    display: flex;
    animation: fadeInUp 0.6s forwards;
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

.cta-servicios {
    display: inline-block;
    padding: 15px 40px;
    border-radius: var(--radius-sm);
    background-color: var(--color-cta);
    color: var(--white);
    margin-top: 2rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    min-height: 44px;
}

.cta-servicios:hover {
    transform: translateY(-4px);
    background-color: var(--cta-hover);
}

/* ============================================
   MODALES
   ============================================ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.modal.active { display: flex; }

.modal-content {
    background: var(--white);
    border-radius: 12px;
    width: 100%;
    max-width: 800px;
    overflow: hidden;
    animation: modalIn 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-flex { display: flex; }

.modal-img { width: 50%; flex-shrink: 0; }
.modal-img img { width: 100%; height: 100%; object-fit: cover; }

.modal-text {
    width: 50%;
    padding: 25px;
    position: relative;
}

.modal-text h3 {
    margin-bottom: 10px;
    color: var(--color-cta);
    font-size: 1.1rem;
    padding-right: 30px;
}

.modal-text p { margin-bottom: 15px; color: var(--text-p); font-size: 0.9rem; }

.modal-text ul {
    margin-bottom: 20px;
    padding-left: 20px;
    list-style: disc;
}

.modal-text ul li { color: var(--text-p); font-size: 0.875rem; margin-bottom: 5px; }

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--black);
    line-height: 1;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-modal {
    display: inline-flex;
    align-items: center;
    background: var(--color-cta);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 6px;
    transition: var(--transition);
    font-weight: bold;
    font-size: 0.875rem;
    min-height: 44px;
}

.btn-modal:hover { background-color: var(--cta-hover); }

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

@media (max-width: 768px) {
    .modal-flex { flex-direction: column; }
    .modal-img, .modal-text { width: 100%; }
    .modal-img { height: 220px; }
    .modal-img img { height: 100%; }
}

/* ============================================
   GALERÍA / SLIDER
   ============================================ */
.gallery-container {
    padding: 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.gallery-title {
    text-align: center;
    color: var(--color-cta);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    margin-bottom: 40px;
}

.slider-wrapper {
    overflow: hidden;
    position: relative;
    border-radius: var(--radius-md);
}

.projects-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    grid-template-columns: unset !important;
    gap: 20px;
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    align-items: stretch;
}

.project-card {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: var(--black);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,25,47,0.95) 20%, rgba(10,25,47,0.7) 60%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.text {
    color: var(--white);
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.text h3 { font-size: 1.2rem; margin-bottom: 8px; color: var(--azul-claro); }
.text p  { font-size: 0.9rem; line-height: 1.5; margin: 0; }

.project-card:hover .overlay,
.project-card.active .overlay { opacity: 1; }

.project-card:hover .text,
.project-card.active .text { transform: translateY(0); }

.project-card:hover img,
.project-card.active img { transform: scale(1.08); }

/* Touch hint — badge visible solo en móvil */
.touch-hint {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    white-space: nowrap;
    pointer-events: none;
    z-index: 3;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    animation: hint-pulse 2.5s ease-in-out infinite;
}

@keyframes hint-pulse {
    0%, 100% { opacity: 0.85; }
    50%       { opacity: 0.4;  }
}

@media (hover: none) and (pointer: coarse) {
    .touch-hint { display: flex; }
}

.project-card.active .touch-hint {
    opacity: 0 !important;
    visibility: hidden;
    pointer-events: none;
    animation-play-state: paused;
}

/* Botones de navegación */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: 2px solid var(--color-cta);
    color: var(--color-cta);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(4px);
    transition: background 0.25s ease, color 0.25s ease,
                transform 0.25s ease, box-shadow 0.25s ease,
                opacity 0.25s ease;
}

.slider-btn:hover:not(:disabled) {
    background: var(--color-cta);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.slider-btn--prev { left: 10px; }
.slider-btn--next { right: 10px; }

/* Indicadores (dots) */
.slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--color-cta);
    background: transparent;
    cursor: pointer;
    padding: 0;
    min-width: unset;
    min-height: unset;
    transition: background 0.3s ease, transform 0.3s ease;
}

.slider-dot.active {
    background: var(--color-cta);
    transform: scale(1.35);
}

.slider-dot:hover:not(.active) {
    background: rgba(10, 54, 157, 0.25);
}

/* En touch: deshabilitar hover CSS de tarjetas */
@media (hover: none) and (pointer: coarse) {
    .project-card:hover .overlay  { opacity: 0 !important; }
    .project-card:hover .text     { transform: translateY(20px) !important; }
    .project-card:hover img       { transform: none !important; }

    /* .active debe ganar aunque :hover esté activo simultáneamente en Android */
    .project-card.active .overlay { opacity: 1 !important; }
    .project-card.active .text    { transform: translateY(0) !important; }
    .project-card.active img      { transform: scale(1.08) !important; }
}

/* Accesibilidad: foco en el slider */
.slider-wrapper:focus-visible {
    outline: 3px solid var(--cta-hover);
    outline-offset: 4px;
}

/* ============================================
   ESTADÍSTICAS
   ============================================ */
.stats-section { padding: 0 10px 80px; }

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 1100px;
    margin: 0 auto;
}

.stat-item {
    background-color: var(--white);
    padding: 20px 10px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-md);
    border-bottom: 4px solid var(--color-cta);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.stat-num {
    display: block;
    color: var(--color-cta);
    font-weight: 800;
    font-size: clamp(1.2rem, 4vw, 2.5rem);
    line-height: 1;
}

.stat-desc {
    color: #444;
    font-weight: 600;
    text-transform: uppercase;
    font-size: clamp(0.6rem, 2vw, 0.85rem);
    letter-spacing: 0.5px;
}

@media (min-width: 1024px) {
    .stat-item:hover {
        transform: translateY(-5px);
        border-color: var(--cta-hover);
    }
}

@media (max-width: 400px) {
    .stats-container { gap: 5px; }
    .stat-item { padding: 12px 5px; }
}

/* ============================================
   PERFIL INGENIERO
   ============================================ */
.about-engineer {
    background-color: var(--white);
    padding: 100px 20px;
    display: flex;
    justify-content: center;
}

.about-container {
    width: 100%;
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 4 / 5;
    background-color: var(--color-fondo);
    border-radius: 20px;
    overflow: hidden;
    border-left: 8px solid var(--color-cta);
    box-shadow: 20px 20px 0 var(--color-fondo);
}

.image-placeholder img { width: 100%; height: 100%; object-fit: cover; }

.about-subtitle {
    color: var(--cta-hover);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.about-title {
    color: var(--color-cta);
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    line-height: 1.2;
    margin-bottom: 20px;
}

.about-text {
    color: var(--text-p);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

.about-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--color-fondo);
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    color: var(--color-cta);
    font-weight: bold;
    margin-top: 10px;
}

.badge-icon {
    background-color: var(--color-cta);
    color: var(--white);
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    .about-image { max-width: 320px; margin: 0 auto; }
    .image-placeholder { box-shadow: 10px 10px 0 var(--color-fondo); }
    .about-badge { justify-content: center; }
    .btn-ver-mas-info--light { align-self: center; }
}

/* ============================================
   FORMULARIO DE CONTACTO
   ============================================ */
.contacto {
    padding: 80px 20px 100px;
    background: var(--white);
    display: flex;
    justify-content: center;
}

.form-container {
    width: 100%;
    max-width: 450px;
    background: var(--color-fondo);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.form-container h2 { margin-bottom: 10px; color: var(--color-cta); font-size: 1.5rem; }
.form-container > p { margin-bottom: 25px; font-size: 0.875rem; color: #444; }

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    margin-bottom: 15px;
    gap: 6px;
}

label { font-size: 0.8rem; font-weight: 600; color: var(--color-cta); margin-left: 2px; }

input, select, textarea {
    padding: 12px;
    border-radius: 8px;
    border: 2px solid transparent;
    font-size: 0.875rem;
    outline: none;
    width: 100%;
    transition: var(--transition);
    font-family: inherit;
    background: var(--white);
}

textarea { resize: vertical; min-height: 100px; }

.cta-form {
    background: var(--color-cta);
    color: var(--white);
    padding: 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    margin-top: 10px;
    width: 100%;
    box-shadow: 0 4px 6px rgba(10,54,157,0.2);
    min-height: 48px;
}

.cta-form:hover {
    background: var(--cta-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(10,54,157,0.3);
}

.cta-form:active { transform: translateY(0); }

.cta-form:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Estado focus */
.form-group.focused label {
    color: var(--cta-hover);
}

/* Validación: error */
.form-group.error label {
    color: #c62828;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #c62828;
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.1);
}

.field-error {
    font-size: 0.73rem;
    color: #c62828;
    font-weight: 500;
    min-height: 1em;
    margin-top: -2px;
    display: block;
}

/* Validación: válido */
.form-group.valid input,
.form-group.valid select,
.form-group.valid textarea {
    border-color: var(--azul-claro);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.08);
}

/* Error de envío */
.form-send-error {
    color: #c62828;
    font-size: 0.8rem;
    text-align: center;
    margin-top: 10px;
    font-weight: 500;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  box-shadow: none;
}

/* ============================================
   TOAST
   ============================================ */
.toast {
    visibility: hidden;
    min-width: 260px;
    background-color: #333;
    color: var(--white);
    text-align: center;
    border-radius: 8px;
    padding: 16px 20px;
    position: fixed;
    z-index: 1100;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    font-size: 0.9rem;
}

.toast.show {
    visibility: visible;
    animation: fadeInOut 4s;
}

@keyframes fadeInOut {
    0%   { bottom: 0;    opacity: 0; }
    10%  { bottom: 30px; opacity: 1; }
    90%  { bottom: 30px; opacity: 1; }
    100% { bottom: 0;    opacity: 0; }
}

/* ============================================
   FAQ – PREGUNTAS FRECUENTES
   ============================================ */
.faq-section {
    padding: 80px 20px 100px;
    background: var(--color-fondo);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-pretitulo {
    color: var(--cta-hover);
    font-weight: 700;
    letter-spacing: 0.3rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.faq-container h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--color-cta);
    line-height: 1.3;
    margin-bottom: 10px;
}

.faq-subtitulo {
    color: var(--text-p);
    font-size: 0.95rem;
    margin-bottom: 40px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border-left: 4px solid var(--color-cta);
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 18px 20px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    gap: 16px;
    transition: var(--transition);
    min-height: 44px;
}

.faq-question span:first-child {
    font-weight: 700;
    color: var(--azul-oscuro);
    font-size: 0.95rem;
    line-height: 1.4;
    flex: 1;
}

.faq-question:hover span:first-child {
    color: var(--color-cta);
}

.faq-icon {
    font-size: 1.4rem;
    color: var(--color-cta);
    font-weight: 400;
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-fondo);
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
    background: var(--color-cta);
    color: var(--white);
}

.faq-answer {
    padding: 0 20px 20px;
    border-top: 1px solid var(--gris);
}

.faq-answer p {
    color: var(--text-p);
    font-size: 0.9rem;
    line-height: 1.7;
    padding-top: 15px;
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    background-color: var(--color-cta);
    color: var(--white);
    padding: 60px 20px 20px;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo { font-size: 1.8rem; margin-bottom: 15px; font-weight: 800; }
.footer-info p { color: #bdc3c7; line-height: 1.6; font-size: 0.9rem; }

.footer-contact h3,
.footer-social h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ecf0f1;
    margin-bottom: 15px;
    transition: var(--transition);
    font-size: 0.9rem;
    min-height: 44px;
}

.contact-item:hover { color: var(--white); opacity: 0.85; }
.contact-item svg { width: 20px; height: 20px; flex-shrink: 0; opacity: 0.7; }

.social-icons { display: flex; gap: 15px; }

.social-icons a {
    color: var(--white);
    background: rgba(255,255,255,0.1);
    padding: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    min-width: 44px;
    min-height: 44px;
}

.social-icons a:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-4px);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.8rem;
    color: #7f8c8d;
}

@media (min-width: 768px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
    .footer-info { flex: 1; max-width: 380px; }
}

/* ============================================
   BOTÓN FLOTANTE WHATSAPP
   ============================================ */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: var(--whatsapp);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 4px 12px rgba(0,0,0,0.3);
    z-index: 950;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float:hover {
    background-color: var(--whatsapp-hover);
    transform: scale(1.12);
    box-shadow: 2px 6px 18px rgba(0,0,0,0.4);
}

@media (max-width: 768px) {
    .whatsapp-float svg { width: 28px; height: 28px; }
}

/* ============================================
   ACCESIBILIDAD
   ============================================ */
:focus-visible {
    outline: 3px solid var(--cta-hover);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

/* ============================================
   ANIMACIONES DE SCROLL
   ============================================ */
[data-anim] {
    opacity: 0;
}

[data-anim="fade-up"] {
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-anim="fade-in"] {
    transition: opacity 0.65s ease;
}

[data-anim="slide-right"] {
    transform: translateX(-28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-anim].anim-visible {
    opacity: 1 !important;
    transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
    [data-anim] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Mobile: animaciones calibradas para scroll rápido */
@media (max-width: 767px) {
    [data-anim="fade-up"] {
        transform: translateY(20px);
        transition: opacity 0.6s ease,
                    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    }
    [data-anim="slide-right"] {
        transform: translateX(-20px);
        transition: opacity 0.6s ease,
                    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    }
    [data-anim="fade-in"] {
        transition: opacity 0.6s ease;
    }
}

/* ============================================
   TRANSICIONES DE PÁGINA
   ============================================ */
.page-transition-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: #fff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-transition-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

/* ============================================
   TABLET (768px – 1023px)
   ============================================ */
@media (min-width: 768px) and (max-width: 1023px) {

    .solucion-container {
        flex-direction: row;
        gap: 2.5rem;
        align-items: center;
    }
    .solucion-text {
        flex: 1;
        max-width: none;
    }
    .solucion-img {
        flex: 0 0 320px;
    }
    .solucion-img img {
        max-width: 100%;
        margin-top: 0;
    }
    .solucion-card {
        grid-template-columns: 1fr;
    }

    .servicios-container {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: minmax(230px, auto);
    }
    .servicio {
        padding-bottom: 55px;
    }
}


button, a {
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}