/* ==========================================================
   styles.css — Somas Quality, C.A.
   Orden: base · header · hero · botones · nosotros · servicios ·
          hitos · proyectos · clientes · formularios · footer ·
          tarjetas 3D · redes · animaciones · accesibilidad
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

/* ==========================================================
   1. BASE
   ========================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Montserrat', sans-serif; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { background-color: #dee1e4; color: #6b8299; line-height: 1.6; overflow-x: hidden; }
.container { width: 90%; max-width: 1100px; margin: 0 auto; }
.text-center { text-align: center; }

/* ==========================================================
   2. ENCABEZADO Y NAVEGACIÓN (bloque único, sin duplicados)
   ========================================================== */
:root {
    --color-header-bg: #32465a;
    --color-blanco: #ffffff;
    --color-primario: #1d5cb0;
    --color-primario-hover: #154585;
    --color-texto: #ffffff;
    --color-texto-hover: #93c5fd;
    --color-borde: rgba(255, 255, 255, 0.35);
    --color-menu-bg: #ffffff;
    --color-menu-texto: #1e293b;
    --color-fondo-hover: #f1f5f9;
}

/* Header: sin borde ni padding propio (el espaciado lo da .nav-container-fijo) */
.header {
    position: fixed; top: 0; left: 0; width: 100%;
    background-color: var(--color-header-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    border: 0; padding: 0; margin: 0;
    z-index: 1000; transition: none;
}

/* Blindaje: ningún pseudoelemento puede dibujar barras sobre el logo */
.header::before, .header::after,
.nav-container-fijo::before, .nav-container-fijo::after,
.logo::before, .logo::after,
.logo-link::before, .logo-link::after { content: none !important; display: none !important; }

/* Al hacer scroll (.compacto) solo cambia la sombra, NUNCA el tamaño */
.header.compacto { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25); padding: 0; }

.nav-container-fijo {
    width: 100%; max-width: 1300px; margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex; justify-content: space-between; align-items: center;
    box-sizing: border-box;
}

/* --- Logo 100% estático --- */
.logo { flex-shrink: 0; margin: 0; padding: 0; transform: none; transition: none; } /* hijo directo del flex */
.logo-link {
    display: flex; align-items: center; flex-shrink: 0; gap: 10px;
    text-decoration: none; color: var(--color-blanco);
    transition: none; transform: none;
}
.logo-link:hover, .header.compacto .logo-link { transform: none; }
.logo-img, .logo img.logo-img {
    display: block; flex-shrink: 0; height: 42px; width: auto; max-width: none;
    object-fit: contain; transition: none; transform: none;
}
.logo-text {
    flex-shrink: 0; white-space: nowrap; display: flex; flex-direction: column;
    line-height: 1.1; font-size: 1.15rem; font-weight: 700; letter-spacing: 0.5px;
    color: var(--color-blanco);
}
.logo-text small { font-size: 0.75rem; font-weight: 600; color: #93c5fd; }

/* --- Menú (PC) --- */
.nav-menu { display: flex; align-items: center; gap: 1.25rem; }
.nav-menu a {
    position: relative; /* ancla los subrayados al propio enlace */
    text-decoration: none; color: var(--color-texto);
    font-weight: 500; font-size: 0.95rem; white-space: nowrap;
    transition: color 0.2s ease;
}
.nav-menu a:hover { color: var(--color-texto-hover); }

/* Subrayado animado: solo enlaces directos del menú */
.nav-menu > a:not(.btn-cotizar-nav):not(.btn-nav)::after {
    content: ""; position: absolute; left: 0; bottom: -4px;
    width: 100%; height: 2px; background: var(--color-texto-hover);
    transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.nav-menu > a:not(.btn-cotizar-nav):not(.btn-nav):hover::after { transform: scaleX(1); }

.btn-cotizar-nav {
    background-color: var(--color-primario) !important; color: var(--color-blanco) !important;
    padding: 0.55rem 1.2rem; border-radius: 6px; font-weight: 600 !important;
    transition: background-color 0.2s ease !important;
}
.btn-cotizar-nav:hover { background-color: var(--color-primario-hover) !important; }

.btn-nav {
    border: 1.5px solid var(--color-borde); padding: 0.5rem 1rem; border-radius: 6px;
    color: var(--color-blanco) !important; font-weight: 500; transition: all 0.2s ease;
}
.btn-nav:hover { border-color: var(--color-blanco); background-color: rgba(255, 255, 255, 0.1); }

/* Selector de idioma */
.lang-selector-container { display: flex; align-items: center; flex-shrink: 0; }
.lang-select {
    padding: 0.4rem 0.6rem; border: 1px solid var(--color-borde); border-radius: 6px;
    background-color: var(--color-blanco); color: var(--color-menu-texto);
    font-size: 0.85rem; font-weight: 500; cursor: pointer; outline: none;
    transition: border-color 0.2s ease;
}
.lang-select:focus, .lang-select:hover { border-color: var(--color-primario); }

/* Submenú desplegable (por si lo reactivas en el HTML) */
.dropdown { position: relative; display: inline-block; }
.dropdown-trigger { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; color: var(--color-texto); }
.arrow { font-size: 0.75rem; transition: transform 0.2s ease; }
.dropdown-menu {
    display: none; position: absolute; top: 100%; left: 0; min-width: 230px;
    background-color: var(--color-menu-bg); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px; padding: 0.5rem 0; margin-top: 0.6rem; border: 1px solid #e2e8f0; z-index: 1001;
}
.dropdown-menu a { display: block; padding: 0.7rem 1.25rem; color: var(--color-menu-texto) !important; font-size: 0.9rem; text-align: left; }
.dropdown-menu a:hover { background-color: var(--color-fondo-hover); color: var(--color-primario) !important; padding-left: 1.45rem; transition: all 0.2s ease; }

@media (min-width: 901px) {
    .dropdown:hover .dropdown-menu { display: block; }
    .dropdown:hover .arrow { transform: rotate(180deg); color: var(--color-texto-hover); }
}

/* Botón hamburguesa */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; flex-shrink: 0; }
.menu-toggle .bar { width: 25px; height: 3px; background-color: var(--color-blanco); border-radius: 3px; transition: all 0.3s ease; }
.menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Móvil (<= 900px) */
@media (max-width: 900px) {
    .menu-toggle { display: flex !important; position: relative; z-index: 1200; }
    .nav-menu {
        display: none; position: absolute; top: 100%; left: 0; width: 100%;
        background-color: var(--color-header-bg); flex-direction: column; align-items: flex-start;
        padding: 1.5rem 2rem; gap: 1.2rem; box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
        border-top: 1px solid rgba(255, 255, 255, 0.1); box-sizing: border-box;
    }
    .nav-menu.is-active { display: flex !important; z-index: 1100; }
    .nav-menu a, .dropdown { width: 100%; }
    .dropdown-menu {
        position: static; box-shadow: none; border: none; background-color: rgba(0, 0, 0, 0.18);
        border-left: 3px solid var(--color-primario); border-radius: 4px; margin-top: 0.5rem; padding: 0.2rem 0;
    }
    .dropdown-menu a { color: var(--color-blanco) !important; }
    .dropdown.is-open .dropdown-menu { display: block; }
    .dropdown.is-open .arrow { transform: rotate(180deg); }
    .btn-cotizar-nav, .btn-nav { text-align: center; display: block; width: 100%; box-sizing: border-box; }
}

/* ==========================================================
   3. PORTADA (HERO) CON VIDEO
   ========================================================== */
.hero-section {
    position: relative; height: 75vh; min-height: 500px;
    display: flex; align-items: center; justify-content: center; text-align: center;
    overflow: hidden; padding-top: 60px;
}
.hero-video {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    min-width: 100%; min-height: 100%; width: auto; height: auto; object-fit: cover; z-index: 0;
    filter: brightness(1.1) contrast(1.05); image-rendering: -webkit-optimize-contrast;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(rgba(15, 23, 32, 0.45), rgba(15, 23, 32, 0.55)); z-index: 1; }
.hero-content { position: relative; z-index: 2; }
/* Caja de tamaño fijo: aunque la imagen tarde en cargar, nada se corre de lugar */
.hero-logo-box { height: 160px; margin-bottom: 20px; display: flex; align-items: center; justify-content: center; }
.hero-logo-img { display: block; max-width: 160px; max-height: 160px; width: auto; height: auto; margin: 0; }
.hero-section h1 { font-size: 2.5rem; letter-spacing: 4px; margin-bottom: 10px; }
.slogan { font-size: 0.95rem; letter-spacing: 2px; color: #a0b2c6; margin-bottom: 35px; }
.hero-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }

/* ==========================================================
   4. BOTONES GENERALES Y TÍTULOS
   ========================================================== */
.btn {
    padding: 12px 24px; border-radius: 4px; text-decoration: none; font-weight: 600;
    font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase; transition: all 0.3s;
}
.btn-primary { background-color: #3a5368; color: #fff; border: none; cursor: pointer; }
.btn-primary:hover { background-color: #2b3e4f; }
.btn-secondary { border: 1px solid #7a92a5; color: #fff; }
.btn-secondary:hover { background-color: #fff; color: #1c2b36; }
.btn-block { width: 100%; text-align: center; }
.section-title { text-align: center; font-size: 1.8rem; color: #1c2b36; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 40px; }

/* ==========================================================
   5. QUIÉNES SOMOS Y ACORDEÓN
   ========================================================== */
.seccion-nosotros { padding: 90px 0; background-color: #ffffff; }
.nosotros-intro { max-width: 900px; margin: 0 auto 30px auto; text-align: justify; font-size: 1rem; color: #4a5a6a; }
.mision-vision-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.info-card {
    background: #ffffff; border: 1px solid #e2e8f0; padding: 30px; border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03); text-align: left;
}
.info-card h3 { color: #1c2b36; margin-bottom: 15px; font-size: 1.2rem; }
.info-card p { color: #4a5a6a; font-size: 0.95rem; line-height: 1.6; }

/* Misión / Visión: elevación al pasar el cursor (proyectos tienen su propio efecto) */
.info-card:not(.proyecto-card-amplio) { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.info-card:not(.proyecto-card-amplio):hover { transform: translateY(-6px); box-shadow: 0 14px 28px rgba(0, 0, 0, 0.15); }

/* Bloques ocultos (acordeón) */
.bloque-oculto { max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.8s ease-in-out, opacity 0.5s ease-in-out; }
.bloque-oculto.abierto { max-height: 5000px; opacity: 1; }
.bloque-oculto:not(.abierto) { padding-top: 0 !important; padding-bottom: 0 !important; border-width: 0 !important; }

.btn-conoce-mas {
    display: inline-flex; align-items: center; justify-content: center;
    background-color: #2d3952; color: #ffffff; font-weight: 600; font-size: 0.95rem;
    padding: 12px 28px; border: none; border-radius: 6px; cursor: pointer;
    box-shadow: 0 4px 12px rgba(17, 23, 71, 0.3); transition: all 0.3s ease;
}
.btn-conoce-mas:hover { background-color: #3c476b; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(98, 108, 161, 0.4); }

/* ==========================================================
   6. SERVICIOS
   ========================================================== */
.servicios-principales-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin-bottom: 30px; }
.servicio-card-num {
    background-color: #ffffff; padding: 30px 20px; border-radius: 6px; text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04); transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.servicio-card-num:hover { transform: translateY(-6px); box-shadow: 0 14px 28px rgba(0, 0, 0, 0.15); }
.servicio-card-num .num { font-size: 2rem; font-weight: 700; color: #3a5368; margin-bottom: 10px; }
.servicio-card-num h4 { font-size: 0.95rem; color: #1c2b36; }

/* ==========================================================
   7. TRAYECTORIA E HITOS · VALORES
   ========================================================== */
.seccion-trayectoria { padding: 40px 0 20px 0; background: transparent; color: #1c2b36; }
.seccion-trayectoria .section-title { color: #1c2b36; }
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; text-align: center; }
.metric-box {
    background-color: #ffffff; padding: 30px; border-radius: 6px; border: 1px solid #e2e8f0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03); transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.metric-box:hover { transform: translateY(-6px); box-shadow: 0 14px 28px rgba(0, 0, 0, 0.15); }
.metric-number { font-size: 2.2rem; font-weight: 700; color: #0f1720; display: block; margin-bottom: 10px; }
.metric-box p { color: #4a5a6a; }

/* Valores: aparecen uno a uno al abrir "Conoce Más" */
.valor-tag {
    background: rgba(255, 255, 255, 0.1); color: #ffffff; padding: 8px 16px; border-radius: 20px;
    font-size: 0.9rem; font-weight: 600; opacity: 0; transform: translateY(20px); display: inline-block;
}
.bloque-oculto.abierto .valor-tag { animation: fadeInUp 0.6s forwards ease-out; }
.bloque-oculto.abierto .valor-tag:nth-child(1) { animation-delay: 0.1s; }
.bloque-oculto.abierto .valor-tag:nth-child(2) { animation-delay: 0.2s; }
.bloque-oculto.abierto .valor-tag:nth-child(3) { animation-delay: 0.3s; }
.bloque-oculto.abierto .valor-tag:nth-child(4) { animation-delay: 0.4s; }
.bloque-oculto.abierto .valor-tag:nth-child(5) { animation-delay: 0.5s; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* ==========================================================
   8. PROYECTOS (tarjetas)
   ========================================================== */
.proyectos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; align-items: start; }

.proyecto-card-amplio {
    background: #ffffff; padding: 30px; border-radius: 12px; border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03); transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden;
}
/* Barra superior de la tarjeta: solo al pasar el cursor */
.proyecto-card-amplio::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, #0284c7, #38bdf8); opacity: 0; transition: opacity 0.3s ease;
}
.proyecto-card-amplio:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(2, 132, 199, 0.12); border-color: rgba(56, 189, 248, 0.4); }
.proyecto-card-amplio:hover::before { opacity: 1; }
.proyecto-card-amplio h3 { color: #1c2b36; margin-bottom: 10px; font-size: 1.35rem; }
.proyecto-card-amplio p { color: #4a5a6a; font-size: 0.95rem; line-height: 1.6; margin-bottom: 15px; }

.proyecto-imagenes-dual { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.proyecto-img-container { position: relative; overflow: hidden; border-radius: 8px; background: #0f1720; cursor: pointer; height: 210px; }
.img-zoom { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); }
.proyecto-img-container:hover .img-zoom { transform: scale(1.12); }
.zoom-hint {
    position: absolute; bottom: 10px; right: 10px; background: rgba(15, 23, 32, 0.85); backdrop-filter: blur(4px);
    color: #ffffff; padding: 5px 10px; font-size: 0.75rem; font-weight: 500; border-radius: 6px;
    opacity: 0; transform: translateY(10px); transition: all 0.3s ease;
}
.proyecto-img-container:hover .zoom-hint { opacity: 1; transform: translateY(0); }

.especificaciones-extra {
    display: none; background: #f8fafc; border-left: 3px solid #38bdf8; padding: 12px 15px; margin-bottom: 15px;
    border-radius: 0 6px 6px 0; font-size: 0.9rem; color: #334155; text-align: left;
}
.especificaciones-extra ul { margin: 0; padding-left: 18px; }
.especificaciones-extra li { margin-bottom: 6px; }

.proyecto-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #f1f5f9; padding-top: 15px; margin-top: auto; }
.ubicacion-tag { font-size: 0.8rem; font-weight: 700; color: #0284c7; text-transform: uppercase; }
.btn-ver-mas { background: #0f1720; color: #ffffff; border: none; padding: 6px 14px; font-size: 0.85rem; font-weight: 600; border-radius: 4px; cursor: pointer; transition: background 0.3s; }
.btn-ver-mas:hover { background: #38bdf8; color: #0f1720; }

/* Modal (lightbox) */
.modal-zoom-overlay { display: none; position: fixed; z-index: 9999; inset: 0; background: rgba(15, 23, 32, 0.92); justify-content: center; align-items: center; padding: 20px; }
.modal-content-img { max-width: 90%; max-height: 85vh; border-radius: 8px; box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5); object-fit: contain; }
.modal-close { position: absolute; top: 25px; right: 35px; color: #ffffff; font-size: 40px; font-weight: bold; cursor: pointer; }

/* ==========================================================
   9. CLIENTES
   ========================================================== */
.cliente-card-logo {
    background: #ffffff; padding: 22px; border-radius: 12px; border: 1px solid #e2e8f0;
    display: flex; align-items: center; justify-content: center; width: 100%; height: 120px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03); transition: all 0.4s ease; overflow: hidden;
}
.cliente-card-logo img {
    max-width: 85%; max-height: 75px; width: auto; height: auto; object-fit: contain;
    filter: grayscale(100%) brightness(1.1); opacity: 0.75; transition: all 0.4s ease;
}
.cliente-card-logo:hover { transform: translateY(-6px); box-shadow: 0 15px 35px rgba(2, 132, 199, 0.15); border-color: #0284c7; }
.cliente-card-logo:hover img { filter: grayscale(0%) brightness(1); opacity: 1; transform: scale(1.08); }

/* ==========================================================
   10. POSTULACIÓN CV, COTIZACIÓN Y CONTACTO
   ========================================================== */
.seccion-postulate { padding: 90px 16px; background-color: #ffffff; }
.postulate-intro { text-align: center; max-width: 650px; margin: 0 auto 40px auto; color: #4a5a6a; font-size: 0.95rem; line-height: 1.6; }
.postulate-form { max-width: 550px; margin: 0 auto; background-color: #f8fafc; padding: 40px; border-radius: 6px; border: 1px solid #e2e8f0; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: #1c2b36; margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; box-sizing: border-box; padding: 12px; border: 1px solid #cbd5e1; border-radius: 4px;
    font-size: 0.9rem; font-family: inherit; color: #1c2b36; background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
/* Textarea: ancho completo, sin arrastre manual (crece solo con el script) */
.form-group textarea { display: block !important; width: 100% !important; min-height: 110px; box-sizing: border-box !important; resize: none !important; overflow-y: hidden; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #3a5368; box-shadow: 0 0 0 3px rgba(58, 83, 104, 0.15); }

.form-submit-btn { display: inline-block; width: 100%; padding: 12px 20px; background-color: #3a5368; color: #ffffff; border: none; border-radius: 4px; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: background-color 0.2s ease; }
.form-submit-btn:hover { background-color: #2c3e50; }

.seccion-contacto { padding: 80px 16px; background-color: #f4f6f8; }
.contacto-card { max-width: 600px; margin: 0 auto; background-color: #ffffff; padding: 35px; border-radius: 6px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04); text-align: center; }
.contacto-card p { margin-bottom: 12px; color: #2c3e50; line-height: 1.5; }
.contacto-card a { color: #3a5368; font-weight: 600; text-decoration: none; transition: color 0.2s ease; }
.contacto-card a:hover { color: #1c2b36; text-decoration: underline; }

@media (max-width: 640px) {
    .seccion-postulate { padding: 50px 16px; }
    .postulate-form { padding: 24px 16px; }
    .seccion-contacto { padding: 50px 16px; }
    .contacto-card { padding: 24px 16px; }
}

/* ==========================================================
   11. FOOTER
   ========================================================== */
footer { background-color: #111a21; color: #7a92a5; text-align: center; padding: 30px 16px; font-size: 0.8rem; }
.admin-link { color: #7a92a5; text-decoration: none; transition: color 0.2s ease; }
.admin-link:hover { color: #ffffff; }
.credits { margin-top: 8px; font-size: 0.8rem; color: #94a3b8; letter-spacing: 0.5px; }
.credits strong { color: #cbd5e1; font-weight: 600; }

/* ==========================================================
   12. SOPORTE TÉCNICO POR ÁREAS (tarjetas con giro 3D)
   ========================================================== */
#soporte-areas { padding: 60px 0 20px 0; background: transparent; }
.areas-grid-interactiva { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 25px; justify-content: center; align-items: stretch; }

.area-card-pro {
    position: relative; background-color: transparent; perspective: 1000px; min-height: 220px;
    border: none; border-radius: 16px; overflow: hidden; box-shadow: none;
    display: flex; align-items: flex-end; text-align: left;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.area-card-pro:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(56, 189, 248, 0.2); }

.area-card-inner {
    position: relative; width: 100%; height: 100%; min-height: 220px; text-align: left;
    transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1); transform-style: preserve-3d;
    border-radius: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.area-card-pro:hover .area-card-inner { transform: rotateY(180deg); }

.area-card-front, .area-card-back {
    position: absolute; width: 100%; height: 100%;
    backface-visibility: hidden; -webkit-backface-visibility: hidden;
    border-radius: 16px; overflow: hidden; display: flex; align-items: flex-end;
}
.area-card-front { background-color: #16222c; border: 1px solid rgba(255, 255, 255, 0.1); }
.area-card-back { position: relative; background-color: #0f1720; transform: rotateY(180deg); border: 1px solid #38bdf8; }

.area-content { position: relative; z-index: 2; padding: 30px; width: 100%; }
.area-card-front .area-content { background: linear-gradient(to top, rgba(46, 51, 56, 0.45) 30%, rgba(15, 23, 32, 0.6) 100%); }

.img-back-real { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; filter: brightness(0.85) contrast(1.1); }
.area-content-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; z-index: 2; padding: 25px;
    background: linear-gradient(to top, rgba(15, 23, 32, 0.92) 40%, rgba(15, 23, 32, 0.4) 85%, transparent 100%);
}
.area-card-back .area-content-overlay h3, .area-card-back .area-content-overlay p { color: #ffffff; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9); }

.area-numero { display: inline-block; font-size: 1.2rem; font-weight: 800; color: #38bdf8; margin-bottom: 8px; background: rgba(56, 189, 248, 0.15); padding: 4px 10px; border-radius: 6px; }
.area-card-pro h3 { color: #ffffff; font-size: 1.25rem; margin-bottom: 8px; font-weight: 700; }
.area-card-pro p { color: #ffffff; font-size: 0.9rem; margin: 0; opacity: 0.9; text-shadow: 0 2px 4px rgba(46, 51, 56, 0.45); }

.area-card-full { grid-column: span 1; }
@media (min-width: 992px) { .area-card-full { grid-column: 2 / span 1; } }

/* ==========================================================
   13. REDES SOCIALES
   ========================================================== */
.redes-container { display: flex; gap: 15px; align-items: center; margin: 15px 0; }
.btn-red {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; font-size: 0.9rem; font-weight: 600;
    border-radius: 6px; text-decoration: none; transition: all 0.3s ease;
    border: 1px solid #cbd5e1; background: #ffffff; color: #1e293b;
}
.btn-red:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }
.btn-red.social-ig:hover { background: #fdf2f8; color: #db2777; border-color: #f472b6; }
.btn-red.social-li:hover { background: #f0f9ff; color: #0284c7; border-color: #38bdf8; }

/* ==========================================================
   14. ANIMACIONES (scroll reveal, portada)
   ========================================================== */
@keyframes aparecer { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

.reveal { opacity: 0; }
.reveal.visible { opacity: 1; animation: aparecer 0.8s ease backwards; animation-delay: var(--d, 0s); }

.hero-content > * { animation: aparecer 1s ease backwards; }
.hero-content > :nth-child(1) { animation-delay: 0.1s; }
.hero-content > :nth-child(2) { animation-delay: 0.3s; }
.hero-content > :nth-child(3) { animation-delay: 0.5s; }
.hero-content > :nth-child(4) { animation-delay: 0.7s; }

/* Logo de la portada 100% estático: sin flotar ni animación de entrada */
.hero-content > .hero-logo-box { animation: none; }
.hero-logo-img { animation: none !important; transform: none !important; }

/* ==========================================================
   15. ACCESIBILIDAD: reducir movimiento
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; }
    .valor-tag { opacity: 1; transform: none; }
}