* { box-sizing: border-box; }

:root {
    --navy: #0A1428; 
    --navy-hover: #162544; 
    --gold: #C5A880;
    --gray-text: #64748B; 
    --gray-light: #94A3B8; 
    --card-border: #E2E8F0;
    --bg-alabaster: #FAFAFA;
}

body, html {
    margin: 0; padding: 0; font-family: 'Inter', sans-serif; color: var(--navy);
    height: 100vh; width: 100vw; overflow: hidden; 
    background-color: transparent; 
}

.app-background {
    position: absolute; top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: url('Fondo.webp'); background-size: cover; background-position: right center;
    filter: sepia(0.2) saturate(1.1) brightness(1.02); z-index: -1;
}

.app-wrapper {
    display: flex; flex-direction: column; height: 100vh; width: 100vw; position: relative;
    padding: 0 4vw; 
}

/* =========================================
   HEADER Y BOTÓN MÓVIL
   ========================================= */
.top-header { height: 11vh; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; z-index: 10; }
.logo { height: clamp(50px, 5vw, 75px); width: auto; }

.top-right-slogan {
    text-align: right; font-size: clamp(0.55rem, 0.65vw, 0.75rem); letter-spacing: 1.5px; 
    color: var(--gray-text); text-transform: uppercase; line-height: 1.6;
}
.top-right-slogan .gold-line { height: 1px; width: 30px; background-color: var(--gold); margin-top: 6px; float: right; }

.mobile-menu-btn { display: none; } /* Oculto en PC */

/* =========================================
   VISTAS GENERALES (ESCRITORIO)
   ========================================= */
.main-content { height: 80vh; display: flex; align-items: center; position: relative; z-index: 10; }
.content-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3vw; width: 100%; max-width: 82vw; }

.text-column { padding-right: 2vw; }
.tag-gold { color: var(--gold); font-size: clamp(0.6rem, 0.7vw, 0.8rem); letter-spacing: 2px; font-weight: 600; text-transform: uppercase; margin-bottom: 0.8vh; display: block; }
.main-title { font-size: clamp(2.8vh, 4vw, 4.8rem); font-weight: 600; color: var(--navy); line-height: 1.05; margin-bottom: 0; letter-spacing: -1.5px; }
.sub-title { font-size: clamp(1.6vh, 2.5vh, 2.8rem); font-weight: 400; line-height: 1.1; margin-bottom: 1.2vh; letter-spacing: -1px; color: var(--gray-text); }
.heading-2 { font-size: clamp(1.2rem, 1.6vw, 2rem); font-weight: 600; color: var(--navy); line-height: 1.2; margin-bottom: 1.2vh; letter-spacing: -0.5px; }
.paragraph { font-size: clamp(0.85rem, 0.95vw, 1.05rem); color: var(--gray-text); line-height: 1.5; margin-bottom: 2vh; max-width: 90%; }

.action-buttons { display: flex; gap: 2vw; align-items: center; }
.btn-navy { background-color: var(--navy); color: white; padding: 1vh 1.5vw; font-size: clamp(0.8rem, 0.9vw, 1rem); font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; justify-content: space-between; width: clamp(180px, 14vw, 250px); transition: background-color 0.3s; }
.btn-navy:hover { background-color: var(--navy-hover); color: white; }
.btn-ghost { color: var(--navy); font-size: clamp(0.8rem, 0.9vw, 1rem); font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 2vw; border-bottom: 1px solid var(--gold); padding-bottom: 0.3rem; transition: color 0.3s; }
.btn-ghost:hover { color: var(--gold); }
.gold-icon { color: var(--gold); }

/* TARJETAS INICIO Y FORMULARIOS */
.cards-column { display: flex; flex-direction: column; justify-content: center; }
.cards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5vw; margin-bottom: 1vh; }
.info-card { background-color: white; border: 1px solid var(--card-border); padding: 1.2vw; display: flex; flex-direction: column; transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s; cursor: pointer; }
.info-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.05); border-color: var(--gold); transform: translateY(-3px); }

.card-header-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1vh; }
.card-num-box { font-size: clamp(0.65rem, 0.75vw, 0.85rem); font-weight: 600; }
.card-tag-right { font-size: clamp(0.5rem, 0.55vw, 0.65rem); color: var(--gray-light); letter-spacing: 1px; text-transform: uppercase; text-align: right; }
.divider { color: var(--card-border); margin-left: 0.3rem; font-weight: 300;}
.card-value { font-size: clamp(2.2rem, 3vw, 3.8rem); font-weight: 500; color: var(--navy); line-height: 1; margin-bottom: 0.3vh; letter-spacing: -2px; }
.card-subtitle { font-size: clamp(0.8rem, 0.85vw, 1rem); color: var(--navy); margin-bottom: 1vh; }
.card-title-text { font-size: clamp(0.85rem, 0.95vw, 1.1rem); font-weight: 500; color: var(--navy); line-height: 1.3; margin-bottom: 1vh; }
.card-footer { font-size: clamp(0.65rem, 0.7vw, 0.8rem); color: var(--gray-text); display: flex; justify-content: space-between; align-items: flex-end; line-height: 1.4; border-top: none; }
.arrow-icon { font-size: clamp(0.9rem, 1.1vw, 1.4rem); font-weight: bold; }
.decision-text { align-self: flex-end; text-align: right; font-size: clamp(0.55rem, 0.6vw, 0.7rem); letter-spacing: 1.5px; color: var(--gray-text); text-transform: uppercase; line-height: 1.6; margin-top: 0.8vh; }

.floating-wall-text { position: absolute; right: 5vw; top: 50%; transform: translateY(-50%); font-size: clamp(0.65rem, 0.75vw, 0.85rem); letter-spacing: 3px; color: var(--navy); line-height: 2.2; z-index: 5; }
.floating-wall-text .gold-line-v { height: 1px; width: 2.5vw; background-color: var(--gold); margin-top: 8px; }

/* ESTILOS DE CONTACTO */
.contacto-form-card { background: white; border: 1px solid var(--card-border); padding: 2vw; box-shadow: 0 4px 20px rgba(0,0,0,0.02); }
.border-card { border-color: var(--card-border); font-size: 0.9rem; }
.border-card:focus { border-color: var(--gold); box-shadow: none; }

/* BOTTOM NAV (ESCRITORIO) */
.bottom-nav { height: 9vh; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--card-border); flex-shrink: 0; z-index: 10; width: 100%; }
.nav-recorrido { display: flex; align-items: center; gap: 1vw; font-size: clamp(0.6rem, 0.65vw, 0.75rem); letter-spacing: 1.5px; color: var(--gray-text); font-weight: 600; flex: 1; }
.nav-recorrido .gold-line-h { width: 3vw; height: 2px; background-color: var(--gold); }
.nav-links-bottom { display: flex; align-items: center; justify-content: center; flex: 2; min-width: max-content; }
.nav-link-item { text-decoration: none; font-size: clamp(0.8rem, 0.9vw, 1.05rem); color: var(--gray-light); font-weight: 500; transition: color 0.3s; white-space: nowrap; }
.nav-link-item span { font-size: clamp(0.65rem, 0.75vw, 0.85rem); margin-right: 0.4rem; font-weight: 600; }
.nav-link-item:hover, .nav-link-item.active { color: var(--navy); }
.nav-link-item.active { border-bottom: 2px solid var(--gold); padding-bottom: 0.3vh; }
.nav-link-line { width: clamp(15px, 2vw, 30px); height: 1px; background-color: var(--card-border); margin: 0 1vw; }
.nav-right-branding { font-size: clamp(0.6rem, 0.65vw, 0.75rem); text-align: right; color: var(--gray-text); line-height: 1.4; flex: 1; }
.nav-right-branding strong { color: var(--navy); letter-spacing: 1px; font-size: clamp(0.65rem, 0.7vw, 0.8rem); }

/* VISTA 02: CATÁLOGO Y BUSCADOR */
.catalogo-wrapper { width: 100%; max-width: 82vw; display: flex; flex-direction: column; justify-content: center; height: 100%; }
.catalogo-header { margin-bottom: 2vh; max-width: 100%; }
.catalogo-header .main-title { font-size: clamp(2.8rem, 4vw, 4.8rem); font-weight: 600; color: var(--navy); letter-spacing: -1.5px; margin-bottom: 0.5vh; line-height: 1.1; }
.catalogo-header .sub-title { font-size: clamp(1.6rem, 2.4vw, 3rem); font-weight: 400; color: #5A6A80; letter-spacing: -1px; line-height: 1.2; white-space: nowrap; }

.buscador-container { position: relative; width: 240px; margin-bottom: 0.5vh; }
.buscador-input { width: 100%; padding: 0.45rem 1.8rem 0.45rem 0.7rem; font-size: 0.75rem; border: 1px solid var(--card-border); background: rgba(255,255,255,0.8); outline: none; transition: border-color 0.3s; }
.buscador-input:focus { border-color: var(--gold); background: #fff; }
.buscador-icon { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 0.75rem; pointer-events: none; opacity: 0.6; }
.buscador-resultados-dropdown { position: absolute; top: 100%; left: 0; width: 100%; background: white; border: 1px solid var(--card-border); box-shadow: 0 10px 25px rgba(0,0,0,0.1); z-index: 50; max-height: 220px; overflow-y: auto; }
.buscador-item { padding: 0.5rem 0.7rem; border-bottom: 1px solid var(--card-border); cursor: pointer; transition: background 0.2s; font-size: 0.75rem; }
.buscador-item:hover { background: var(--bg-alabaster); }

.flow-grid-master { position: relative; width: 100%; height: 48vh; }
.flow-card { position: absolute; width: 18%; height: 44%; padding: 1vw 1.2vw; display: flex; flex-direction: column; background-color: white; border: 1px solid rgba(226, 232, 240, 0.8); box-shadow: 0 4px 20px rgba(0,0,0,0.015); cursor: pointer; transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s; }
.flow-card:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.flow-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5vh; }
.flow-card-num { font-size: clamp(0.6rem, 0.65vw, 0.75rem); color: var(--gold); font-weight: 600; }
.flow-card-num .divider { color: rgba(226, 232, 240, 0.8); margin: 0 0.4rem; font-weight: 300;}
.flow-card-tag { font-size: clamp(0.45rem, 0.5vw, 0.6rem); color: var(--gray-light); font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase;}
.flow-card-title { font-size: clamp(0.85rem, 1vw, 1.2rem); font-weight: 500; color: var(--navy); line-height: 1.2; margin-bottom: 1vh;}
.flow-card-desc { font-size: clamp(0.65rem, 0.7vw, 0.8rem); color: var(--gray-text); line-height: 1.4; flex: 1; margin: 0;}
.flow-card-arrow { margin-top: auto; text-align: right; font-weight: bold; font-size: 1.1rem; line-height: 1; color: var(--gold);}

.grid-top-1 { left: 0%; top: 0%; }
.grid-top-2 { left: 20.5%; top: 0%; }
.grid-top-3 { left: 41%; top: 0%; }
.grid-top-4 { left: 61.5%; top: 0%; }
.grid-side-top { position: absolute; left: 82%; top: 0%; width: 18%; height: 44%; padding: 1vw 1.2vw; display: flex; flex-direction: column; justify-content: center; }

.grid-bot-1 { left: 10.25%; top: 52%; }
.grid-bot-2 { left: 30.75%; top: 52%; }
.grid-bot-3 { left: 51.25%; top: 52%; }
.grid-side-bot { position: absolute; left: 71.75%; top: 52%; width: 18%; height: 44%; padding: 1vw 1.2vw; display: flex; flex-direction: column; background-color: var(--navy); color: white; border: none; }

.grid-side-top .card-value-big { font-size: clamp(2.5rem, 3.5vw, 4.2rem); font-weight: 600; color: var(--navy); line-height: 1; letter-spacing: -2px; }
.grid-side-top .card-subtitle-dark { font-size: clamp(0.9rem, 1vw, 1.1rem); color: var(--navy); margin-bottom: 1vh; }
.grid-side-bot .card-tag-right { font-size: 0.6rem; letter-spacing: 2px; }
.grid-side-bot .card-title-text { font-size: clamp(1rem, 1.15vw, 1.3rem) !important; line-height: 1.3; font-weight: 500;}
.side-separator { height: 1px; background: var(--card-border); margin: 1vh 0; }
.side-separator-navy { height: 1px; background: rgba(255,255,255,0.1); margin: 1vh 0; }
.small-gray { font-size: clamp(0.65rem, 0.7vw, 0.8rem); color: var(--gray-text); }
.small-white { font-size: clamp(0.65rem, 0.7vw, 0.80rem); color: white; }

/* LÍNEAS DORADAS CONECTORAS (Área 2) */
.flow-lines-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.flow-lines-overlay .gold-node { position: absolute; width: 8px; height: 8px; background-color: var(--gold); border-radius: 50%; transform: translate(-50%, -50%) scale(0); opacity: 0; z-index: 3; box-shadow: 0 0 10px rgba(197, 168, 128, 0.9); }
.flow-lines-overlay .gold-line-v, .flow-lines-overlay .gold-line-h { position: absolute; background-color: var(--gold); opacity: 0.9; z-index: 2; box-shadow: 0 0 6px rgba(197, 168, 128, 0.4); }
.flow-lines-overlay .gold-line-v { width: 1.5px; height: 0; transform-origin: top; }
.flow-lines-overlay .gold-line-h { height: 1.5px; width: 0; }

/* VISTA 03: SOLUCIONES INTEGRALES */
.capacidades-wrapper { width: 100%; max-width: 90vw; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.cap-top-section { display: flex; height: 58%; align-items: stretch; justify-content: flex-start; }
.cap-text-col { width: 28%; display: flex; flex-direction: column; justify-content: flex-start; padding-top: 1vh; padding-right: 2vw; text-align: left; }
.cap-sub { font-size: clamp(1.4rem, 1.8vw, 2.2rem); margin-top: 0.5vh; line-height: 1.15; }
.cap-mapping-col { width: 46%; display: flex; align-items: stretch; justify-content: space-between; position: relative; }
.map-list-container { display: flex; flex-direction: column; width: 42%; height: 100%; }
.map-title-outside { font-size: 0.55rem; color: var(--gray-light); font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 1.5vh; text-align: left; }
.map-column { display: flex; flex-direction: column; gap: 0.8vh; height: 100%; justify-content: space-between; }
.map-item-box { display: flex; align-items: center; background: #FFFFFF; border: 1px solid var(--card-border); padding: 1vh 1vw; box-shadow: 0 2px 10px rgba(0,0,0,0.015); position: relative; z-index: 5; flex: 1; }
.map-item-box-small { display: flex; align-items: center; background: #FFFFFF; border: 1px solid var(--card-border); padding: 0.5vh 1vw; box-shadow: 0 2px 10px rgba(0,0,0,0.015); position: relative; z-index: 5; flex: 1; }
.map-icon { width: 1.6vw; height: 1.6vw; color: var(--gold); flex-shrink: 0; }
.map-text { font-size: clamp(0.7rem, 0.75vw, 0.85rem); color: var(--navy); line-height: 1.2; }
.map-num { font-size: 0.75rem; color: var(--gold); font-weight: 500; min-width: 1.5vw; }
.flex-1 { flex: 1; }
.map-svg-overlay { position: absolute; top: 3.5vh; left: 42%; width: 16%; height: calc(100% - 3.5vh); z-index: 1; pointer-events: none; overflow: visible; }
.map-path { fill: none; stroke: var(--gold); stroke-width: 1.5px; opacity: 0.6; stroke-dasharray: 200; stroke-dashoffset: 200; }
.anim-start .map-path { animation: drawCurve 1.5s forwards ease-in-out; }
@keyframes drawCurve { to { stroke-dashoffset: 0; } }
.cap-navy-card { 
    width: 18%; /* Un poco más ancha para dar respiro al texto */
    background: #061020; 
    color: white; 
    padding: 1.5vw; /* Relleno optimizado */
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    box-shadow: -10px 10px 30px rgba(0,0,0,0.15); 
    position: relative; 
    z-index: 2; 
    margin-left: 1vw; /* Margen ajustado para compensar el ancho extra */
    margin-top: 3.5vh; 
    overflow: hidden; /* Evita cualquier desbordamiento visual */
}
.card-tag { font-size: 0.5rem; color: rgba(255,255,255,0.5); font-weight: 600; letter-spacing: 2px; margin-bottom: 1.5vh; }
/* Letra ligeramente más pequeña y compacta para que embone perfectamente */
.card-title { font-size: clamp(0.95rem, 1.1vw, 1.4rem); font-weight: 500; line-height: 1.25; margin-bottom: 1.5vh; letter-spacing: -0.5px; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.card-footer-text { font-size: clamp(0.65rem, 0.7vw, 0.85rem); color: rgba(255,255,255,0.8); line-height: 1.5; font-weight: 300; margin-top: auto;}
.cap-bottom-section { display: flex; height: 16%; align-items: center; justify-content: space-between; border-top: 1px solid var(--card-border); padding-top: 2vh; margin-top: 5vh; }
.process-step { display: flex; align-items: center; gap: 1vw; flex: 1; }
.step-num { font-size: 0.75rem; color: var(--gold); font-weight: 600; }
.step-icon { width: 2vw; height: 2vw; color: var(--navy); flex-shrink: 0; }
.step-content h4 { margin: 0 0 0.5vh 0; font-size: clamp(0.9rem, 1vw, 1.1rem); font-weight: 600; color: var(--navy); }
.step-content p { margin: 0; font-size: clamp(0.6rem, 0.65vw, 0.75rem); color: var(--gray-text); line-height: 1.3; }
.process-arrow { font-size: 1.2rem; color: var(--gray-light); font-weight: 300; margin: 0 0.5vw; align-self: center; }

/* VISTA 04: NUESTRO ENFOQUE */
.enfoque-wrapper { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.enf-main-layout { display: flex; height: 65vh; gap: 2vw; align-items: flex-end; margin-bottom: 3vh; }
.enf-left-content { width: 56%; height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.enf-header .main-title { font-size: clamp(3rem, 4.2vw, 4.8rem); line-height: 1.05; letter-spacing: -1.5px; margin-bottom: 0.5vh; }
.enf-header .title-light { color: #5A6A80; font-weight: 500; }
.gold-line-title { width: 4vw; height: 1.5px; background-color: var(--gold); margin: 2vh 0; }
.enf-sub { font-size: clamp(1.2rem, 1.4vw, 1.6rem); line-height: 1.3; max-width: 90%; color: var(--gray-text); font-weight: 400; margin: 0;}
.enf-cards-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1vw; }
.enf-card { background: #FFFFFF; border: 1px solid var(--card-border); padding: 1.5vh 0.8vw; display: flex; flex-direction: column; box-shadow: 0 2px 10px rgba(0,0,0,0.015); transition: transform 0.3s, border-color 0.3s; cursor: pointer; }
.enf-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.enf-card-header { display: flex; align-items: center; gap: 0.5vw; margin-bottom: 1vh; }
.enf-num { font-size: 0.7rem; color: var(--gold); font-weight: 600; }
.enf-card-title { font-size: clamp(0.85rem, 0.9vw, 1.05rem); font-weight: 500; color: var(--navy); line-height: 1.2; margin: 0 0 1vh 0; }
.enf-card-desc { font-size: clamp(0.6rem, 0.65vw, 0.75rem); color: var(--gray-text); line-height: 1.4; font-weight: 300; margin: 0 0 1.5vh 0; flex: 1; }
.enf-card-footer { display: flex; justify-content: space-between; align-items: flex-end; font-size: 0.55rem; font-weight: 600; color: var(--navy); text-transform: uppercase; letter-spacing: 0.5px; }
.enf-arrow { font-size: 1rem; font-weight: 400; color: var(--gold);}
.enf-right-content { width: 22%; height: 85%; display: flex; flex-direction: column; } 
.enf-navy-card { width: 100%; height: 100%; background: #061020; color: white; padding: 1.5vw; display: flex; flex-direction: column; justify-content: space-between; box-shadow: -10px 10px 30px rgba(0,0,0,0.15); }
.enf-navy-header { font-size: 0.5rem; color: rgba(255,255,255,0.5); font-weight: 600; letter-spacing: 2px; margin-bottom: 2vh; text-transform: uppercase; }
.enf-navy-list { flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; gap: 0.5vh; }
.enf-list-item { display: flex; align-items: flex-start; gap: 0.8vw; border-bottom: 1px solid rgba(255,255,255,0.15); padding-bottom: 1vh; }
.enf-list-item.border-none { border-bottom: none; padding-bottom: 0; }
.enf-list-num { font-size: 0.65rem; color: rgba(255,255,255,0.8); display: flex; gap: 0.5vw; font-weight: 300; }
.divider-navy { color: rgba(255,255,255,0.2); }
.enf-list-text h4 { margin: 0 0 0.5vh 0; font-size: clamp(0.75rem, 0.85vw, 1rem); font-weight: 400; line-height: 1.2; letter-spacing: -0.5px; color: white; }
.enf-list-text p { margin: 0; font-size: clamp(0.55rem, 0.6vw, 0.7rem); color: rgba(255,255,255,0.6); line-height: 1.4; font-weight: 300; }
.enf-navy-footer { font-size: 0.55rem; color: rgba(255,255,255,0.5); line-height: 1.5; letter-spacing: 1.5px; text-transform: uppercase; margin-top: 1.5vh; font-weight: 500;}

/* ANIMACIONES GLOBALES ESCRITORIO */
.fade-in { opacity: 0; }
.d-1 { transition: opacity 0.6s ease; }
.anim-start .fade-in { opacity: 1; }
.anim-start .gold-node { animation: popInNode 0.4s forwards ease-out; }
.anim-start .draw-v { animation: drawV 0.5s forwards ease-in-out; }
.anim-start .draw-h { animation: drawH 0.5s forwards ease-in-out; }
@keyframes popInNode { to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
@keyframes drawV { to { height: var(--target); } }
@keyframes drawH { to { width: var(--target); } }

/* FICHA LATERAL (GLASSMORPHISM) */
.ficha-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(10, 20, 40, 0.3); backdrop-filter: blur(4px); z-index: 100; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
.ficha-overlay.active { opacity: 1; pointer-events: all; }
.ficha-panel { position: fixed; top: 0; right: -600px; width: 100%; max-width: 550px; height: 100vh; background-color: rgba(10, 20, 40, 0.85); backdrop-filter: blur(15px); box-shadow: -15px 0 50px rgba(0,0,0,0.5); z-index: 101; transition: right 0.4s ease; display: flex; flex-direction: column; color: white; border-left: 1px solid rgba(255, 255, 255, 0.1); }
.ficha-panel.active { right: 0; }
.ficha-header { padding: 3rem 4rem 2rem 4rem; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
.btn-close-ficha { background: none; border: none; font-size: 0.75rem; letter-spacing: 2px; color: rgba(255,255,255,0.7); cursor: pointer; padding: 0; margin-bottom: 2rem; transition: color 0.3s; font-weight: 500; }
.btn-close-ficha:hover { color: var(--gold); }
.ficha-area-num { font-size: 1.1rem; font-weight: 600; color: var(--gold); display: block; margin-bottom: 0.5rem; }
.ficha-title { font-size: 2.2rem; font-weight: 600; color: white; line-height: 1.1; margin-bottom: 0.5rem; letter-spacing: -1px; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.ficha-english { font-size: 0.85rem; color: rgba(255,255,255,0.5); letter-spacing: 1px; display: block; margin-bottom: 1.5rem; text-transform: uppercase;}
.ficha-sintesis { font-size: 1.05rem; color: rgba(255,255,255,0.9); line-height: 1.6; margin: 0; font-weight: 400; text-shadow: 0 1px 3px rgba(0,0,0,0.5);}
.ficha-body { flex: 1; overflow-y: auto; padding: 1rem 4rem 3rem 4rem; }
.servicio-item { border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding: 1.8rem 0; }
.servicio-header { display: flex; justify-content: space-between; align-items: flex-start; cursor: pointer; }
.servicio-id { font-size: 0.85rem; color: var(--gold); font-weight: 600; min-width: 50px; margin-top: 0.2rem; }
.servicio-titulo { font-size: 1.1rem; font-weight: 500; color: white; line-height: 1.4; margin: 0; padding-right: 1.5rem; transition: color 0.3s; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.servicio-icon { font-size: 1.5rem; color: rgba(255,255,255,0.5); transition: transform 0.3s, color 0.3s; font-weight: 300; line-height: 1; }
.servicio-item:hover .servicio-titulo, .servicio-item:hover .servicio-icon { color: var(--gold); }
.servicio-content { display: none; padding: 1.5rem 0 0.5rem 50px; }
.servicio-item.open .servicio-content { display: block; }
.servicio-item.open .servicio-icon { transform: rotate(45deg); color: var(--gold); }
.servicio-item.open .servicio-titulo { color: var(--gold); }
.servicio-sintesis { font-size: 0.95rem; color: rgba(255,255,255,0.75); line-height: 1.7; margin-bottom: 2rem; font-weight: 300; }
.servicio-acciones { display: flex; gap: 2.5rem; }
.btn-accion-link { font-size: 0.85rem; font-weight: 500; color: white; text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 3px; transition: color 0.3s; }
.btn-accion-link:hover { color: var(--gold); }
.ficha-footer { padding: 2rem 4rem; border-top: 1px solid rgba(255, 255, 255, 0.1); background: transparent; font-size: 0.85rem; color: rgba(255,255,255,0.5); text-align: center; }

/* =========================================
   MÓVIL (APP NATIVA CORPORATIVA)
   Cero impacto en el diseño de escritorio.
   ========================================= */
@media (max-width: 991px) {
    /* 1. Desbloqueo y Reseteo Base */
    body, html { height: auto !important; overflow-y: auto !important; overflow-x: hidden !important; }
    .app-background { position: fixed; } 
    .app-wrapper { height: auto !important; min-height: 100vh; padding: 2vh 5vw 8vh 5vw; }
    .main-content { height: auto !important; padding-top: 2vh; padding-bottom: 4vh; }
    
    /* 2. Header y Botón Premium */
    .top-right-slogan { display: none; }
    .bottom-nav { display: none !important; } 
    .mobile-menu-btn { 
        display: flex; align-items: center; gap: 0.5rem; background: rgba(255,255,255,0.9); 
        border: 1px solid var(--card-border); padding: 0.6rem 1.2rem; font-size: 0.75rem; 
        font-weight: 600; color: var(--navy); border-radius: 50px; cursor: pointer;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05); backdrop-filter: blur(5px);
    }
    
    /* 3. Menú Overlay Premium */
    .mobile-menu-overlay { 
        display: flex; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; 
        background: rgba(10, 20, 40, 0.98); z-index: 999;
        flex-direction: column; justify-content: center; align-items: center;
        opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
    }
    .mobile-menu-overlay.active { opacity: 1; pointer-events: all; }
    .mobile-menu-content { display: flex; flex-direction: column; gap: 2rem; width: 80%; }
    .mobile-nav-link { color: white; font-size: 1.5rem; text-decoration: none; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 1rem;}
    .mobile-nav-link span { color: var(--gold); margin-right: 1rem; font-weight: 600; }
    .btn-close-mobile { background: none; border: none; color: var(--gray-light); font-size: 0.8rem; align-self: flex-end; letter-spacing: 2px; margin-bottom: 2rem; cursor: pointer;}
    
    /* 4. Tipografías controladas para móvil */
    .main-title { font-size: 2.6rem !important; line-height: 1.1; }
    .sub-title { font-size: 1.5rem !important; white-space: normal !important; }
    
    /* VISTA 01: La firma (2x2 Grid) */
    .content-grid { grid-template-columns: 1fr; gap: 2rem; max-width: 100%; }
    .text-column { padding-right: 0; }
    .action-buttons { flex-direction: column; width: 100%; align-items: stretch; gap: 1rem;}
    .btn-navy, .btn-ghost { width: 100%; justify-content: space-between; }
    .cards-grid { grid-template-columns: 1fr 1fr; gap: 1rem; } /* Mantener en 2 columnas */
    .info-card { padding: 1rem; }
    .card-value { font-size: 2rem; }
    .card-title-text { font-size: 0.85rem; }

    /* VISTA 02: Catálogo (Línea de tiempo vertical elegante) */
    .catalogo-header { max-width: 100%; }
    .buscador-container { width: 100%; margin-top: 1rem;}
    .flow-lines-overlay { display: none; } /* Ocultamos las líneas de escritorio */
    
    .flow-grid-master { 
        display: flex; flex-direction: column; height: auto; gap: 1.2rem; 
        position: relative; padding-left: 1.5rem; /* Espacio para la línea de tiempo */
    }
    /* Línea vertical dorada de la línea de tiempo */
    .flow-grid-master::before {
        content: ''; position: absolute; left: 0; top: 1rem; bottom: 1rem;
        width: 2px; background: var(--gold); opacity: 0.5;
    }
    .flow-card, .grid-side-top, .grid-side-bot { 
        position: relative !important; width: 100% !important; left: 0 !important; top: 0 !important; 
        min-height: auto; margin-bottom: 0 !important; 
    }
    /* Nodos dorados conectados a las tarjetas */
    .flow-card::after, .grid-side-top::after, .grid-side-bot::after {
        content: ''; position: absolute; left: -1.5rem; top: 1.5rem;
        width: 10px; height: 10px; background: var(--gold); border-radius: 50%;
        transform: translateX(-4px); box-shadow: 0 0 0 4px var(--bg-alabaster);
    }
    
    /* VISTA 03: Soluciones (Pasos en 2x2) */
    .cap-top-section, .cap-mapping-col, .cap-bottom-section, .enf-main-layout { flex-direction: column; height: auto; gap: 2rem;}
    .cap-text-col, .cap-navy-card, .enf-left-content, .enf-right-content { width: 100% !important; margin: 0 !important; }
    .map-svg-overlay, .map-to-navy-arrow { display: none; }
    .map-list-container { width: 100%; }
    
    /* Pasos de diagnóstico en cuadricula 2x2 */
    .cap-bottom-section { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-top: 1rem; }
    .process-step { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .process-arrow { display: none; }
    
    /* VISTA 04: Enfoque (Tarjetas en 2x2) */
    .enf-cards-row { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .enf-card-title { font-size: 0.8rem; }
    .enf-card-desc { display: none; } /* Ocultamos texto largo para que respire */
    .enf-navy-card { padding: 1.5rem; }
    
    /* VISTA 05: Contacto */
    .contacto-wrapper .content-grid { gap: 1.5rem; }
    .contacto-form-card { padding: 1.5rem; }
    
    /* Ocultamos elementos flotantes */
    .floating-wall-text { display: none; }
}