/* ==========================================================================
   LÁRNACA CONSULTORES - SISTEMA DE DISEÑO Y MAQUETACIÓN CSS3 PURO
   Ecosistema Dual de Marca - Arquitectura Frontend Senior
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES DE DISEÑO (:root)
   -------------------------------------------------------------------------- */
:root {
    /* Paleta Cromática Institucional */
    --bg-dark: #161616;
    --bg-basalt: #2A2A2A;
    --bg-light: #F4F5F7;
    --bg-white: #FFFFFF;
    --accent-cyan: #38BDC8;
    --accent-cyan-light: rgba(56, 189, 200, 0.12);
    --accent-cyan-glow: rgba(56, 189, 200, 0.35);
    --accent-ui: #2796A1;
    --accent-ui-hover: #1f7b84;
    
    /* Tipografía y Textos */
    --text-main: #2A2A2A;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    --text-white: #F8FAFC;
    --font-heading: 'Cinzel', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Superficies y Glassmorphism */
    --glass-dark: rgba(22, 22, 22, 0.75);
    --glass-navbar: rgba(22, 22, 22, 0.85);
    --glass-navbar-scrolled: rgba(18, 18, 18, 0.95);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-card: rgba(255, 255, 255, 0.85);

    /* Bordes, Sombras y Transiciones */
    --border-light: #E2E8F0;
    --border-dark: #334155;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 35px -5px rgba(0, 0, 0, 0.12), 0 10px 15px -5px rgba(0, 0, 0, 0.06);
    --shadow-cyan: 0 8px 25px rgba(56, 189, 200, 0.25);

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

    /* Contenedor Máximo */
    --container-width: 1240px;
    --navbar-height: 84px;
}

/* --------------------------------------------------------------------------
   2. RESET Y ESTILOS BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-main);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

img, svg, picture {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    outline: none;
}

ul, ol {
    list-style: none;
}

input, select, textarea, button {
    font-family: var(--font-body);
}

/* Contenedor Base */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* Secciones Generales */
.section {
    padding: 100px 0;
    position: relative;
}

/* Cabeceras de Sección */
.section-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-ui);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.35rem;
    font-weight: 700;
    color: var(--bg-dark);
    letter-spacing: 0.5px;
    line-height: 1.25;
    margin-bottom: 16px;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--accent-cyan), var(--accent-ui));
    margin: 0 auto 20px;
    border-radius: var(--radius-full);
}

.section-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   3. SELLO OPERATIVO V7 (INTEGRACIÓN OFICIAL DE MARCA)
   -------------------------------------------------------------------------- */
.larnaca-logo-wrapper {
    display: inline-flex;
    flex-direction: column;
    width: max-content;
    user-select: none;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.larnaca-logo-wrapper:hover {
    transform: scale(1.02);
}

.larnaca-brand-name {
    font-family: var(--font-body);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: 0.1em;
    line-height: 1.1;
    text-align: center;
}

.larnaca-accent {
    color: var(--accent-cyan);
}

.larnaca-divider {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 2px 0 4px;
}

.larnaca-line {
    flex-grow: 1;
    height: 1.5px;
    background: linear-gradient(to right, transparent 0%, var(--accent-cyan) 25%);
}

.larnaca-brand-category {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-white);
    line-height: 1;
    letter-spacing: 0;
}

/* Sello en versión negativa / claro según contexto */
.larnaca-logo--negative .larnaca-brand-name,
.larnaca-logo--negative .larnaca-brand-category {
    color: var(--text-white);
}

.sello-wrapper-mini {
    display: inline-flex;
    flex-direction: column;
    width: 160px;
    margin-bottom: 20px;
}

.sello-wrapper-mini .larnaca-brand-name {
    font-size: 1.5rem;
    color: var(--bg-dark);
}

.sello-wrapper-mini .larnaca-brand-category {
    font-size: 0.55rem;
    color: var(--bg-dark);
}

/* --------------------------------------------------------------------------
   4. NAVBAR FLOTANTE CON GLASSMORPHISM
   -------------------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    background-color: var(--glass-navbar);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: background-color var(--transition-normal), height var(--transition-normal), box-shadow var(--transition-normal);
}

.navbar.scrolled {
    height: 72px;
    background-color: var(--glass-navbar-scrolled);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-bottom-color: rgba(56, 189, 200, 0.2);
}

.navbar.scrolled .larnaca-brand-name {
    font-size: 1.7rem;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.brand-link {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-size: 0.92rem;
    font-weight: 500;
    color: #CBD5E1;
    position: relative;
    padding: 6px 0;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-cyan);
    transition: width var(--transition-fast);
}

.nav-link:hover, .nav-link:focus {
    color: var(--text-white);
}

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

/* Botón Hamburguesa Móvil */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 24px;
    background: transparent;
    padding: 0;
    z-index: 1001;
}

.hamburger-bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-white);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

.mobile-toggle.active .hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-toggle.active .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .hamburger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   5. BOTONES Y COMPONENTES UI
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-normal);
    cursor: pointer;
    white-space: nowrap;
}

.btn--cta, .btn--primary {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-ui) 100%);
    color: var(--bg-dark);
    box-shadow: 0 4px 15px rgba(56, 189, 200, 0.3);
}

.btn--cta:hover, .btn--primary:hover {
    background: linear-gradient(135deg, #4ef2fe 0%, #2db4c2 100%);
    box-shadow: 0 8px 25px rgba(56, 189, 200, 0.5);
    transform: translateY(-2px);
    color: #0d0d0d;
}

.btn--secondary {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-white);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
}

.btn--secondary:hover {
    background-color: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn--outline-cyan {
    background-color: transparent;
    color: var(--accent-ui);
    border: 1.5px solid var(--accent-cyan);
    font-size: 0.85rem;
    padding: 10px 18px;
}

.btn--outline-cyan:hover {
    background-color: var(--accent-cyan);
    color: var(--bg-dark);
    box-shadow: var(--shadow-cyan);
}

.btn--full {
    width: 100%;
}

/* Badges y Etiquetas */
.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
}

.badge--sector {
    background-color: #E2E8F0;
    color: var(--bg-basalt);
}

.badge--priority {
    background-color: rgba(56, 189, 200, 0.15);
    color: var(--accent-ui);
    border: 1px solid rgba(56, 189, 200, 0.3);
}

.badge--critical {
    background-color: rgba(239, 68, 68, 0.12);
    color: #DC2626;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.badge--info {
    background-color: rgba(100, 116, 139, 0.12);
    color: #475569;
}

/* --------------------------------------------------------------------------
   6. HERO BANNER MONUMENTAL
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--bg-dark);
    padding-top: calc(var(--navbar-height) + 40px);
    padding-bottom: 80px;
    overflow: hidden;
}

.hero__video-bg {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 120%; /* Altura excedente para permitir el margen de movimiento parallax */
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.hero__bg-overlay {
    position: absolute;
    inset: 0;
    /* Reintegramos los gradientes para asegurar legibilidad de los textos sobre cualquier frame del video */
    background: 
        radial-gradient(circle at 80% 20%, rgba(56, 189, 200, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 10% 80%, rgba(39, 150, 161, 0.1) 0%, transparent 60%),
        linear-gradient(180deg, rgba(22, 22, 22, 0.75) 0%, rgba(22, 22, 22, 0.95) 100%),
        radial-gradient(circle at 50% 50%, transparent 0%, rgba(10, 10, 10, 0.8) 100%);
    pointer-events: none;
    z-index: 1;
}

/* --------------------------------------------------------------------------
   9. SECCIÓN: CONFIANZA CORPORATIVA (CLIENTES)
   -------------------------------------------------------------------------- */
.clients-section {
    background-color: var(--bg-white);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 40px;
    align-items: center;
    justify-items: center;
    padding: 30px 0;
}

.client-logo {
    width: 100%;
    max-width: 160px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.45;
    filter: grayscale(100%);
    transition: all var(--transition-normal);
}

.client-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
}

.client-logo svg {
    width: 100%;
    height: 100%;
    color: var(--text-muted);
}

.client-logo:hover svg {
    color: var(--accent-ui);
}

@media (max-width: 1024px) {
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 50px;
    }
}

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

.hero__container {
    position: relative;
    z-index: 2;
}

.hero__content {
    max-width: 860px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(56, 189, 200, 0.1);
    border: 1px solid rgba(56, 189, 200, 0.35);
    border-radius: var(--radius-full);
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}

.badge-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-cyan);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: 3.6rem;
    font-weight: 800;
    color: var(--text-white);
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 24px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.hero__title-accent {
    background: linear-gradient(135deg, #ffffff 30%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__subtitle {
    font-size: 1.15rem;
    font-weight: 300;
    color: #E2E8F0;
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 740px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero__trust-strip {
    display: flex;
    align-items: center;
    gap: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.trust-check {
    color: var(--accent-cyan);
    font-weight: 800;
}

/* Indicador de Scroll */
.hero__scroll-indicator {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    z-index: 2;
    transition: opacity var(--transition-fast);
}

.hero__scroll-indicator:hover {
    color: var(--accent-cyan);
}

.mouse-icon {
    width: 22px;
    height: 34px;
    border: 2px solid var(--text-light);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.mouse-wheel {
    width: 4px;
    height: 6px;
    background-color: var(--accent-cyan);
    border-radius: 2px;
    animation: scrollWheel 1.8s infinite;
}

@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

.scroll-label {
    font-size: 0.65rem;
    letter-spacing: 2px;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   7. SECCIÓN: QUIÉNES SOMOS & MÉTRICAS
   -------------------------------------------------------------------------- */
.about-section {
    background-color: var(--bg-white);
}

.value-statement-card {
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    margin-bottom: 60px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: stretch;
}

.value-statement-card__accent-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-cyan) 0%, var(--accent-ui) 100%);
    z-index: 2;
}

.value-statement-card__body {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 36px 40px;
    flex: 1;
}

.value-statement-card__legacy {
    background-color: transparent;
    padding: 30px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid var(--border-light);
    min-width: 260px;
}

.legacy-logo {
    width: 240px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
}

@media (max-width: 768px) {
    .value-statement-card {
        flex-direction: column;
    }
    .value-statement-card__legacy {
        border-left: none;
        border-top: 1px solid var(--border-light);
        padding: 28px;
    }
}

.value-quote-icon {
    color: var(--accent-cyan);
    flex-shrink: 0;
    margin-top: 4px;
}

.value-statement-card__text h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--bg-dark);
    margin-bottom: 8px;
}

.value-statement-card__text p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Grid de Métricas */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.metric-card {
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 40px 30px;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.metric-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(56, 189, 200, 0.4);
    background-color: var(--bg-white);
}

.metric-card--featured {
    background-color: var(--bg-dark);
    border-color: var(--border-dark);
    color: var(--text-white);
}

.metric-card--featured:hover {
    background-color: #1a1a1a;
    border-color: var(--accent-cyan);
}

.metric-card--featured .metric-card__title {
    color: var(--text-white);
}

.metric-card--featured .metric-card__description {
    color: #94A3B8;
}

.metric-card--featured .metric-card__footer {
    border-top-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-cyan);
}

.metric-card__badge {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(56, 189, 200, 0.15);
    color: var(--accent-cyan);
    border: 1px solid rgba(56, 189, 200, 0.3);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

.metric-card__icon-wrapper {
    width: 54px;
    height: 54px;
    background-color: var(--accent-cyan-light);
    color: var(--accent-ui);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform var(--transition-fast);
}

.metric-card--featured .metric-card__icon-wrapper {
    background-color: rgba(56, 189, 200, 0.2);
    color: var(--accent-cyan);
}

.metric-card:hover .metric-card__icon-wrapper {
    transform: scale(1.1);
}

.metric-card__number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--accent-ui);
    line-height: 1;
    margin-bottom: 12px;
}

.metric-card--featured .metric-card__number {
    color: var(--accent-cyan);
}

.metric-card__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bg-dark);
    margin-bottom: 10px;
}

.metric-card__description {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.metric-card__footer {
    padding-top: 15px;
    border-top: 1px solid var(--border-light);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   8. SECCIÓN: DIVISIONES ESPECIALIZADAS
   -------------------------------------------------------------------------- */
.divisions-section {
    background-color: var(--bg-light);
}

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

.division-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 44px 36px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all var(--transition-normal);
}

.division-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--bg-basalt), var(--accent-cyan));
    border-top-left-radius: var(--radius-md);
    border-top-right-radius: var(--radius-md);
}

.division-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(56, 189, 200, 0.4);
}

.division-card__header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.division-card__icon {
    width: 60px;
    height: 60px;
    background-color: var(--bg-dark);
    color: var(--accent-cyan);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.division-card__tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-ui);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.division-card__title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--bg-dark);
    margin-top: 2px;
}

.division-card__lead {
    font-size: 0.98rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.division-card__list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 32px;
    flex-grow: 1;
}

.division-card__item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.item-bullet {
    width: 8px;
    height: 8px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    margin-top: 7px;
    flex-shrink: 0;
}

.item-text strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--bg-dark);
    margin-bottom: 2px;
}

.item-text p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.division-card__footer {
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

/* --------------------------------------------------------------------------
   9. SECCIÓN: PORTAFOLIO TÉCNICO FILTRABLE
   -------------------------------------------------------------------------- */
.portfolio-section {
    background-color: var(--bg-white);
}

/* Filtros Interactivos */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background-color: var(--bg-light);
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-light);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.filter-btn .filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 700;
}

.filter-btn:hover {
    background-color: #E2E8F0;
    border-color: #CBD5E1;
}

.filter-btn.active {
    background-color: var(--bg-dark);
    color: var(--text-white);
    border-color: var(--bg-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.filter-btn.active .filter-count {
    background-color: var(--accent-cyan);
    color: var(--bg-dark);
}

/* Grid de Proyectos */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.portfolio-card {
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    padding: 28px;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-normal);
    opacity: 1;
    transform: scale(1);
}

.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-cyan);
    background-color: var(--bg-white);
}

.portfolio-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.portfolio-card__tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.portfolio-card__year {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.portfolio-card__body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-card__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bg-dark);
    line-height: 1.35;
    margin-bottom: 8px;
}

.portfolio-card__location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--accent-ui);
    font-weight: 500;
    margin-bottom: 14px;
}

.portfolio-card__details {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.portfolio-card__meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px 14px;
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
}

.meta-val {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--bg-dark);
}

.meta-val.val--success {
    color: var(--accent-ui);
}

.meta-val.val--active {
    color: #DC2626;
}

.portfolio-card__bottom {
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tech-spec {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   10. SECCIÓN: CAPACIDAD TÉCNICA & ORGANIGRAMA
   -------------------------------------------------------------------------- */
.capacity-section {
    background-color: var(--bg-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.team-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transition: all var(--transition-normal);
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(56, 189, 200, 0.4);
}

.team-card--lead {
    grid-column: span 1;
    border-top: 4px solid var(--accent-cyan);
}

.team-card__badge {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--accent-ui);
    background-color: var(--accent-cyan-light);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

.team-card__avatar {
    margin-bottom: 18px;
}

.avatar-ring {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: var(--bg-light);
    border: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-basalt);
    transition: all var(--transition-fast);
}

.team-card--lead .avatar-ring {
    background-color: var(--bg-dark);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    width: 80px;
    height: 80px;
}

.avatar-ring img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: grayscale(100%) contrast(120%);
    opacity: 0.85;
    transition: all var(--transition-normal);
}

.team-card:hover .avatar-ring img {
    filter: grayscale(20%) contrast(110%);
    opacity: 1;
}

.team-card:hover .avatar-ring {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 16px rgba(56, 189, 200, 0.3);
}

.team-card__name {
    font-family: var(--font-heading);
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--bg-dark);
    margin-bottom: 4px;
}

.team-card__role {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-ui);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.team-card__bio {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 20px;
    flex-grow: 1;
}

.team-card__focus {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
}

.team-card__focus span {
    font-size: 0.72rem;
    font-weight: 600;
    color: #475569;
    background-color: var(--bg-light);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   11. SECCIÓN: CONTACTO TÉCNICO & DATOS FISCALES
   -------------------------------------------------------------------------- */
.contact-section {
    background-color: var(--bg-white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
}

.contact-card {
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.contact-card__header {
    margin-bottom: 28px;
}

.contact-card__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bg-dark);
    margin-bottom: 6px;
}

.contact-card__subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Formulario */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group {
    position: relative;
    display: flex;
    flex-direction: column;
    margin-top: 6px;
}

.form-label {
    position: absolute;
    top: 14px;
    left: 14px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.25s ease;
    pointer-events: none;
    background-color: transparent;
    padding: 0 4px;
    z-index: 1;
}

.required {
    color: #DC2626;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 18px 14px 10px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--text-main);
    transition: all var(--transition-fast);
}

.form-textarea {
    resize: vertical;
    min-height: 110px;
    padding-top: 24px;
}

/* Ocultar placeholder genérico para el efecto flotante */
.form-input::placeholder, .form-textarea::placeholder {
    color: transparent;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(56, 189, 200, 0.15);
    outline: none;
}

/* Activadores del Floating Label */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label,
.form-textarea:focus ~ .form-label,
.form-textarea:not(:placeholder-shown) ~ .form-label,
.form-select:focus ~ .form-label,
.form-select:valid ~ .form-label {
    top: -10px;
    left: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-ui);
    background-color: var(--bg-white);
}

.form-textarea {
    resize: vertical;
    min-height: 110px;
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '▾';
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-submit-wrapper {
    margin-top: 10px;
}

/* Tarjeta de Información Lateral */
.contact-card--info {
    background-color: var(--bg-dark);
    color: var(--text-white);
    border-color: var(--border-dark);
    display: flex;
    flex-direction: column;
}

.contact-info__header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info__header .larnaca-brand-name {
    text-align: left;
    font-size: 1.6rem;
}

.contact-info__title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 6px;
}

.contact-info__subtitle {
    font-size: 0.85rem;
    color: #94A3B8;
}

.contact-info__list {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 30px;
    flex-grow: 1;
}

.info-block {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.info-block__icon {
    color: var(--accent-cyan);
    background-color: rgba(56, 189, 200, 0.12);
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-block__label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-cyan);
    font-weight: 600;
    margin-bottom: 2px;
}

.info-block__value {
    font-size: 0.9rem;
    color: #E2E8F0;
    line-height: 1.5;
}

.info-block__value a {
    color: #E2E8F0;
}

.info-block__value a:hover {
    color: var(--accent-cyan);
}

.contact-info__badge {
    padding: 16px;
    background-color: rgba(56, 189, 200, 0.08);
    border-left: 3px solid var(--accent-cyan);
    border-radius: var(--radius-sm);
}

.badge-tag {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-cyan);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.contact-info__badge p {
    font-size: 0.82rem;
    color: #CBD5E1;
    margin: 0;
}

/* --------------------------------------------------------------------------
   12. MODAL NATIVO (#quote-modal)
   -------------------------------------------------------------------------- */
.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
    padding: 20px;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal__dialog {
    position: relative;
    z-index: 2;
    background-color: var(--bg-white);
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: var(--radius-md);
    padding: 0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-top: 4px solid var(--accent-cyan);
    transform: scale(0.92) translateY(20px);
    transition: transform var(--transition-normal);
}

.modal.active .modal__dialog {
    transform: scale(1) translateY(0);
}

.modal__close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 10;
}

.modal__close-btn:hover {
    background-color: var(--bg-dark);
    color: var(--text-white);
    transform: rotate(90deg);
    border-color: var(--bg-dark);
}

.modal__header {
    background-color: var(--bg-light);
    padding: 32px 40px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 30px;
}

.modal__form {
    padding: 0 40px 40px 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal__tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-ui);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
}

.modal__title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--bg-dark);
    margin-bottom: 8px;
}

.modal__subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.modal__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    margin-top: 10px;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2500;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background-color: var(--bg-dark);
    color: var(--text-white);
    padding: 14px 22px;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--accent-cyan);
    box-shadow: var(--shadow-lg);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 380px;
}

@keyframes toastSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* --------------------------------------------------------------------------
   13. FOOTER INSTITUCIONAL (SELLO NEGATIVO)
   -------------------------------------------------------------------------- */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-white);
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-dark);
    position: relative;
}

.footer__main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer__brand-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer__lead {
    font-size: 0.9rem;
    color: #94A3B8;
    line-height: 1.7;
    max-width: 360px;
}

.footer__compliance {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.compliance-badge {
    font-size: 0.75rem;
    color: var(--accent-cyan);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer__main-logo {
    width: 210px;
    height: auto;
    margin-bottom: 5px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

.footer__heading {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer__heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background-color: var(--accent-cyan);
}

.footer__nav-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__nav-list a {
    font-size: 0.88rem;
    color: #94A3B8;
    transition: color var(--transition-fast);
}

.footer__nav-list a:hover {
    color: var(--accent-cyan);
    padding-left: 4px;
}

.footer__address {
    font-size: 0.88rem;
    color: #94A3B8;
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer__contact-line {
    font-size: 0.88rem;
    color: #94A3B8;
    line-height: 1.7;
}

.footer__contact-line a {
    color: var(--accent-cyan);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
    color: #64748B;
    flex-wrap: wrap;
    gap: 16px;
}

.footer__copyright strong {
    color: #CBD5E1;
}

.footer__legal-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer__legal-links a {
    color: #64748B;
}

.footer__legal-links a:hover {
    color: var(--accent-cyan);
}

.footer__legal-links .sep {
    color: #475569;
}

/* --------------------------------------------------------------------------
   14. ANIMACIONES AL SCROLL (INTERSECTION OBSERVER)
   -------------------------------------------------------------------------- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* --------------------------------------------------------------------------
   15. RESPONSIVE BREAKPOINTS (MEDIA QUERIES)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero__title {
        font-size: 2.8rem;
    }
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    .divisions-grid {
        grid-template-columns: 1fr;
    }
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .footer__main {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    :root {
        --navbar-height: 70px;
    }

    .navbar {
        height: var(--navbar-height);
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--navbar-height));
        background-color: rgba(18, 18, 18, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 40px 24px;
        gap: 30px;
        transform: translateX(100%);
        transition: transform var(--transition-normal);
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        width: 100%;
    }

    .nav-link {
        font-size: 1.1rem;
    }

    .nav-cta-wrapper {
        width: 100%;
        text-align: center;
    }

    .nav-cta-wrapper .btn {
        width: 100%;
    }

    .hero {
        min-height: auto;
        padding-top: calc(var(--navbar-height) + 30px);
        padding-bottom: 60px;
    }

    .hero__title {
        font-size: 2.2rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__scroll-indicator {
        display: none;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 24px 18px;
    }

    .footer__main {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }

    .modal__dialog {
        padding: 24px 18px;
    }
}
