/* ==========================================================================
   LEVA SOLUCIONES ELÉCTRICAS Y CIVILES - ESTILO ESTUDIO DE DISEÑO / CORPORATIVO
   ========================================================================== */

/* --- BRAND DESIGN TOKENS --- */
:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Colors */
    --color-bg-dark: #07090c;
    --color-bg-panel: #101217;
    --color-blue-navy: #051428;
    --color-blue-panel: #0b1a30;
    --color-white: #ffffff;
    --color-light-grey: #f1f5f9;
    --color-light-card: #f8fafc;
    --color-light-panel: #f8fafc;
    
    /* Brand Accents */
    --color-orange: #f57c00;
    --color-orange-glow: rgba(245, 124, 0, 0.2);
    --color-green: #689f38;
    --color-green-glow: rgba(104, 159, 56, 0.2);
    --color-blue-electric: #00d2ff;
    
    /* Text Color */
    --text-white: #ffffff;
    --text-dark: #0f172a;
    --text-muted-light: #94a3b8;
    --text-muted-dark: #475569;
    
    /* Borders & Spacing */
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-dark: rgba(15, 23, 42, 0.08);
    --a4-width: 297mm;
    --a4-height: 210mm;
}

/* --- RESET & BASIC STYLING --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.5;
    overflow-x: hidden;
}

/* --- PREMIUM GLOWING ORBS --- */
.light-orb {
    position: fixed;
    border-radius: 50%;
    z-index: 1;
    filter: blur(120px);
    pointer-events: none;
    opacity: 0.25;
}

.orb-primary {
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-orange-glow) 0%, transparent 70%);
}

.orb-secondary {
    bottom: -300px;
    left: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--color-green-glow) 0%, transparent 70%);
}

.orb-accent {
    top: 40%;
    left: 20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.08) 0%, transparent 70%);
}

/* --- BRANDING AGENCY FIXED HEADER --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 75px;
    background: rgba(7, 9, 12, 0.7);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-glass);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-inner {
    width: var(--a4-width);
    max-width: 95%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 3.5mm;
}

.header-logo img {
    height: 42px;
    width: auto;
    background-color: white;
    padding: 1.5mm;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.logo-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 20px;
    letter-spacing: 0.5px;
    color: var(--text-white);
}

.logo-title span {
    color: var(--color-orange);
}

.header-nav {
    display: flex;
    gap: 6mm;
}

.header-nav a {
    color: var(--text-muted-light);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.header-nav a:hover {
    color: var(--color-orange);
}

.btn-export {
    background: var(--color-orange);
    color: white;
    border: none;
    padding: 9px 20px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(245, 124, 0, 0.3);
    transition: all 0.3s ease;
}

.btn-export:hover {
    background: #e65100;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(245, 124, 0, 0.4);
}

/* --- BROCHURE MAIN CONTAINER (SCREEN) --- */
.brochure-container {
    margin-top: 85px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 40px 0;
    z-index: 10;
    position: relative;
}

/* --- SLIDE PAGE DEFAULTS --- */
.page {
    width: var(--a4-width);
    height: var(--a4-height);
    background-color: var(--color-bg-panel);
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22mm 22mm 15mm 22mm;
    z-index: 5;
}

.slide-footer-branding {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 3.5mm;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 8.5px;
    letter-spacing: 2px;
    color: var(--text-muted-light);
    opacity: 0.4;
}

.section-services-white .slide-footer-branding {
    border-top-color: rgba(0, 0, 0, 0.05);
    color: var(--text-muted-dark);
}

/* ==========================================================================
   PAGE LAYOUTS (SLIDE-BY-SLIDE)
   ========================================================================== */

/* --- SLIDE 1: PORTADA --- */
.section-cover {
    background: radial-gradient(circle at 100% 0%, var(--color-blue-panel) 0%, var(--color-bg-dark) 100%);
    padding: 0;
}

.cover-editorial-grid {
    display: grid;
    grid-template-columns: 0.25fr 1.75fr;
    height: 100%;
    width: 100%;
}

.cover-sidebar-brand {
    background-color: var(--color-blue-navy);
    border-right: 4px solid var(--color-orange);
    display: flex;
    justify-content: center;
    align-items: center;
}

.sidebar-rotated-txt {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 16px;
    letter-spacing: 9px;
    color: rgba(255, 255, 255, 0.08);
}

.cover-content-panel {
    padding: 20mm 20mm 15mm 20mm;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cover-top-ribbon {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8mm;
}

.logo-box-editorial {
    width: 120px;
    height: 90px;
    background: white;
    border-radius: 4px;
    padding: 3mm;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.logo-box-editorial img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.badge-dian {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    color: var(--color-orange);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 10px;
    letter-spacing: 1px;
    padding: 1.5mm 3.5mm;
    border-radius: 3px;
}

.cover-headings h1 {
    font-family: var(--font-heading);
    font-size: 78px;
    font-weight: 900;
    letter-spacing: 5px;
    line-height: 0.9;
    color: var(--text-white);
}

.cover-headings h2 {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--color-orange);
    margin-top: 2.5mm;
}

.editorial-accent-bar {
    height: 5px;
    width: 100px;
    background-color: var(--color-orange);
    margin-top: 5mm;
    margin-bottom: 6mm;
}

.cover-paragraph {
    font-size: 13.5px;
    color: var(--text-muted-light);
    line-height: 1.6;
    max-width: 580px;
    margin-bottom: 8mm;
}

.cover-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8mm;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 6mm;
}

.meta-card .label {
    font-family: var(--font-heading);
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--color-orange);
    display: block;
    margin-bottom: 1mm;
}

.meta-card .value {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-white);
}

/* --- SLIDE 2: PERFIL DE LA COMPAÑÍA --- */
.section-profile {
    padding: 0;
}

.profile-split-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    height: 100%;
    width: 100%;
}

.profile-left-panel {
    background-color: var(--color-blue-navy);
    padding: 20mm 15mm;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--border-glass);
}

.profile-left-panel .panel-inner {
    max-width: 380px;
    margin-left: auto;
}

.profile-right-panel {
    background-color: var(--color-white);
    color: var(--text-dark);
    padding: 20mm 15mm;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-right-panel .panel-inner-light {
    max-width: 440px;
}

.section-kicker {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--color-orange);
    text-transform: uppercase;
    display: block;
    margin-bottom: 3mm;
}

.section-editorial-title-light {
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 900;
    line-height: 1.1;
    color: var(--text-white);
    margin-bottom: 5mm;
}

.editorial-accent-bar-green {
    height: 4px;
    width: 60px;
    background-color: var(--color-green);
    margin-bottom: 6mm;
}

.paragraph-editorial-light {
    font-size: 13px;
    color: var(--text-muted-light);
    line-height: 1.7;
    margin-bottom: 5mm;
    text-align: justify;
}

.subsection-editorial-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--color-blue-navy);
    margin-bottom: 4mm;
}

.paragraph-editorial-dark {
    font-size: 13px;
    color: var(--text-muted-dark);
    line-height: 1.6;
    margin-bottom: 5mm;
    text-align: justify;
}

.editorial-features-list {
    display: flex;
    flex-direction: column;
    gap: 3.5mm;
    margin-top: 4mm;
}

.e-feature-item {
    display: flex;
    align-items: center;
    gap: 4mm;
    background-color: var(--color-light-card);
    border: 1px solid var(--border-dark);
    padding: 2.5mm 3.5mm;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.e-feature-item:hover {
    transform: translateX(4px);
}

.e-feature-item .num-box {
    background-color: var(--color-blue-navy);
    color: white;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 13px;
    padding: 1.5mm 2.5mm;
    border-radius: 3px;
    min-width: 55px;
    text-align: center;
}

.e-feature-item .txt-box strong {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-blue-navy);
    text-transform: uppercase;
}

.e-feature-item .txt-box p {
    font-size: 10px;
    color: var(--text-muted-dark);
    margin-top: 0.5mm;
}

/* Slide 2 Overlapping Worker Photo Card Style */
.profile-worker-photo-overlay {
    position: absolute;
    bottom: 12mm;
    left: 20mm;
    width: 250px;
    background: rgba(11, 26, 48, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 3mm;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    gap: 2mm;
    z-index: 15;
}

.profile-worker-photo-overlay img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-worker-photo-overlay .overlay-tag {
    font-family: var(--font-heading);
    font-size: 9px;
    font-weight: 700;
    color: var(--color-orange);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

/* --- SLIDE 3: FILOSOFÍA CORPORATIVA --- */
.philosophy-asymmetric-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 82%;
    width: 100%;
}

.phil-card-light {
    background-color: var(--color-light-panel);
    color: var(--text-dark);
    padding: 18mm;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid rgba(0,0,0,0.06);
}

.phil-card-dark {
    background-color: var(--color-bg-panel);
    color: var(--text-white);
    padding: 18mm;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.phil-card-header {
    display: flex;
    align-items: center;
    gap: 4mm;
    margin-bottom: 4mm;
}

.phil-icon-container {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: var(--color-orange);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(245, 124, 0, 0.3);
}

.phil-icon-container.green {
    background-color: var(--color-green);
    box-shadow: 0 4px 12px rgba(104, 159, 56, 0.3);
}

.phil-card-header h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.card-bar-orange {
    height: 3px;
    width: 80px;
    background-color: var(--color-orange);
    margin-bottom: 5mm;
}

.card-bar-green {
    height: 3px;
    width: 80px;
    background-color: var(--color-green);
    margin-bottom: 5mm;
}

.phil-lead-dark {
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--color-blue-navy);
    margin-bottom: 4mm;
}

.phil-lead-light {
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--text-white);
    margin-bottom: 4mm;
}

.phil-body-dark {
    font-size: 12.5px;
    color: var(--text-muted-dark);
    line-height: 1.6;
    text-align: justify;
}

.phil-body-light {
    font-size: 12.5px;
    color: var(--text-muted-light);
    line-height: 1.6;
    text-align: justify;
}

.philosophy-bottom-values {
    height: 18%;
    background-color: var(--color-blue-navy);
    border-top: 2px solid var(--color-orange);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8mm;
    padding: 0 10mm;
}

.v-badge {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 10.5px;
    letter-spacing: 1.5px;
    padding: 2mm 5mm;
    border-radius: 20px;
}

/* --- SLIDES 4 & 6: SERVICES WHITE LAYOUT --- */
.section-services-white {
    background-color: var(--color-white);
    color: var(--text-dark);
    padding: 16mm 20mm;
}

.service-editorial-layout {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.service-editorial-header .editorial-tag {
    display: inline-block;
    background-color: var(--color-blue-navy);
    color: white;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 9px;
    letter-spacing: 1.5px;
    padding: 1mm 3mm;
    border-radius: 2px;
    margin-bottom: 2mm;
}

.service-editorial-header h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 900;
    color: var(--color-blue-navy);
    line-height: 1;
}

.header-line-orange {
    height: 3.5px;
    width: 120px;
    background-color: var(--color-orange);
    margin-top: 3.5mm;
}

.service-editorial-body {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 8mm;
    height: 100%;
    align-items: center;
}

.service-numbered-list {
    display: flex;
    flex-direction: column;
    gap: 3.5mm;
}

.service-item-row {
    display: flex;
    gap: 4.5mm;
    align-items: flex-start;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 3.5mm;
}

.service-item-row:last-child {
    border-bottom: none;
}

.giant-num {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--color-orange);
    line-height: 0.9;
    min-width: 38px;
}

.service-item-info h4 {
    font-family: var(--font-heading);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--color-blue-navy);
    margin-bottom: 0.5mm;
}

.service-item-info p {
    font-size: 11px;
    color: var(--text-muted-dark);
    line-height: 1.5;
}

/* Stacked Visual Box Layout */
.service-visual-panel {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-stack-box {
    width: 100%;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 4mm;
}

.visual-stack-box-green {
    width: 100%;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 4mm;
}

.visual-top-box {
    height: 125px;
    border: 1px solid var(--border-dark);
    border-radius: 4px;
    overflow: hidden;
}

.visual-top-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.visual-bottom-box {
    height: 155px;
    border: 3px solid var(--color-blue-navy);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.visual-bottom-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.visual-bottom-box .box-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-blue-navy);
    color: white;
    font-family: var(--font-heading);
    font-size: 7.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: center;
    padding: 1.5mm 0;
}

/* --- SLIDE 5: SERVICES DARK LAYOUT --- */
.section-services-dark {
    background-color: var(--color-bg-panel);
    color: var(--text-white);
    padding: 16mm 20mm;
}

.service-editorial-header-light .editorial-tag-green {
    display: inline-block;
    background-color: var(--color-green);
    color: white;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 9px;
    letter-spacing: 1.5px;
    padding: 1mm 3mm;
    border-radius: 2px;
    margin-bottom: 2mm;
}

.service-editorial-header-light h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 900;
    color: var(--text-white);
    line-height: 1;
}

.header-line-green {
    height: 3.5px;
    width: 120px;
    background-color: var(--color-green);
    margin-top: 3.5mm;
}

.service-editorial-body-reverse {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 8mm;
    height: 100%;
    align-items: center;
}

.service-item-row-light {
    display: flex;
    gap: 4.5mm;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 3.5mm;
}

.service-item-row-light:last-child {
    border-bottom: none;
}

.giant-num-green {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--color-green);
    line-height: 0.9;
    min-width: 38px;
}

/* CRITICAL CONTRAST BUG FIX: Force White color on Dian titles inside Dark Slides */
.section-services-dark .service-item-info h4 {
    color: var(--text-white) !important;
}

.service-item-row-light h4 {
    font-family: var(--font-heading);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--color-white) !important;
    margin-bottom: 0.5mm;
}

.service-item-row-light p {
    font-size: 11px;
    color: var(--text-muted-light);
    line-height: 1.5;
}

.visual-stack-box-green .visual-bottom-box {
    border-color: var(--color-green);
}

.visual-stack-box-green .visual-bottom-box .box-caption-green {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-green);
    color: white;
    font-family: var(--font-heading);
    font-size: 7.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: center;
    padding: 1.5mm 0;
}

/* --- SLIDE 7: DYNAMIC CLASSIFIED GALLERY --- */
.section-gallery-full {
    padding: 0;
}

.gallery-full-layout {
    display: grid;
    grid-template-columns: 0.3fr 1.7fr;
    height: 100%;
    width: 100%;
}

/* Sidebar filter control */
.gallery-sidebar-controls {
    background-color: var(--color-blue-navy);
    border-right: 1px solid var(--border-glass);
    padding: 8mm 4mm;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.sidebar-kicker {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 8px;
    letter-spacing: 1.5px;
    color: var(--color-orange);
    text-transform: uppercase;
}

.gallery-sidebar-controls h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    color: white;
    margin-top: 1mm;
    margin-bottom: 3mm;
}

.filter-hint {
    font-size: 10px;
    color: var(--text-muted-light);
    line-height: 1.4;
    margin-bottom: 6mm;
}

.filter-menu-scroll {
    display: flex;
    flex-direction: column;
    gap: 1.2mm;
    overflow-y: auto;
    flex-grow: 1;
    min-height: 0;
    padding-right: 1mm;
}

.filter-menu-scroll::-webkit-scrollbar {
    width: 4px;
}
.filter-menu-scroll::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
}

.filter-menu-btn {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted-light);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 9.5px;
    letter-spacing: 0.5px;
    text-align: left;
    padding: 2mm 3mm;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-menu-btn:hover {
    background: rgba(255,255,255,0.05);
    color: white;
}

.filter-menu-btn.active {
    background: var(--color-orange);
    color: white;
    border-color: var(--color-orange);
    box-shadow: 0 4px 10px rgba(245, 124, 0, 0.3);
}

/* Right Viewer Panel */
.gallery-viewer-panel {
    padding: 12mm 15mm 15mm 15mm;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 4mm;
    height: 100%;
    min-height: 0;
}

.gallery-viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--color-orange);
    padding-bottom: 3mm;
    margin-bottom: 4mm;
}

.print-only-header {
    display: none;
}

.gallery-viewer-header h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    color: white;
    letter-spacing: 0.5px;
}

#gallery-counter {
    font-size: 10px;
    font-weight: 700;
    color: var(--color-orange);
    text-transform: uppercase;
}

/* Scrollable grid containing all images */
.gallery-scrollable-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3.5mm;
    flex-grow: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 2mm;
    align-content: start;
}

.gallery-scrollable-grid::-webkit-scrollbar {
    width: 6px;
}
.gallery-scrollable-grid::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}

.img-thumb-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-glass);
    border-radius: 4px;
    overflow: hidden;
    height: 100px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-thumb-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.img-thumb-card:hover {
    transform: translateY(-2px);
    border-color: var(--color-orange);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.img-thumb-card:hover img {
    transform: scale(1.06);
}

.img-thumb-card .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9) 70%);
    padding: 1.5mm 2.5mm;
    font-size: 8px;
    font-weight: 600;
    color: white;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

/* --- SLIDE 8: CONTACTO COMERCIAL --- */
.section-contact {
    padding: 0;
}

.contact-trifold-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    height: 100%;
    width: 100%;
}

.trifold-panel {
    padding: 20mm 12mm;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.panel-navy {
    background-color: var(--color-blue-navy);
    border-right: 1px solid var(--border-glass);
}

.panel-navy .trifold-panel-inner {
    max-width: 260px;
    margin-left: auto;
}

.panel-white {
    background-color: var(--color-white);
    color: var(--text-dark);
    border-right: 1px solid var(--border-dark);
}

.panel-white .trifold-panel-inner-light {
    max-width: 280px;
    margin: 0 auto;
}

.panel-grey {
    background-color: var(--color-bg-panel);
}

.panel-grey .trifold-panel-inner {
    max-width: 260px;
    margin-right: auto;
}

.panel-navy h2 {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 900;
    line-height: 0.9;
    color: white;
}

.panel-navy span {
    font-family: var(--font-heading);
    font-size: 9.5px;
    font-weight: 700;
    color: var(--color-orange);
    letter-spacing: 1.5px;
    display: block;
    margin-top: 1mm;
}

.editorial-accent-bar-orange-thin {
    height: 3px;
    width: 60px;
    background-color: var(--color-orange);
    margin-top: 4mm;
    margin-bottom: 5mm;
}

.trifold-paragraph {
    font-size: 11px;
    color: var(--text-muted-light);
    line-height: 1.6;
    margin-bottom: 6mm;
}

.trifold-dian-list {
    display: flex;
    flex-direction: column;
    gap: 2mm;
}

.dian-seal-item {
    background-color: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 2mm 3.5mm;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 2mm;
    text-transform: uppercase;
}

.panel-white h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 900;
    color: var(--color-blue-navy);
    letter-spacing: 1px;
    margin-bottom: 1.5mm;
}

.trifold-divider {
    height: 3.5px;
    width: 50px;
    background-color: var(--color-orange);
    margin-bottom: 6mm;
}

.trifold-contact-links {
    display: flex;
    flex-direction: column;
    gap: 5mm;
}

.t-contact-item {
    display: flex;
    gap: 3.5mm;
    align-items: flex-start;
}

.t-contact-item i {
    color: var(--color-orange);
    font-size: 15px;
    margin-top: 1mm;
}

.t-contact-item strong {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 11.5px;
    color: var(--color-blue-navy);
    display: block;
}

.t-contact-item p {
    font-size: 11.5px;
    color: var(--text-muted-dark);
    line-height: 1.4;
}

.corporate-seal-card {
    background-color: rgba(255,255,255,0.01);
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    padding: 6mm 4mm;
    text-align: center;
}

.seal-logo-container {
    width: 100px;
    height: 75px;
    background: white;
    border-radius: 4px;
    padding: 2.5mm;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 5mm auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.seal-logo-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.corporate-seal-card h4 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 800;
    color: white;
}

.seal-nit {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    color: var(--color-orange);
    display: block;
    margin-top: 1mm;
    margin-bottom: 4mm;
}

.seal-legal-rep {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 3mm;
}

.seal-legal-rep strong {
    font-size: 11px;
    color: white;
    display: block;
}

.seal-legal-rep p {
    font-size: 9px;
    color: var(--text-muted-light);
}

/* ==========================================================================
   LIGHTBOX MODAL STYLING (PREMIUM SCREEN EFFECT)
   ========================================================================== */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 9, 12, 0.95);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-image {
    max-width: 85%;
    max-height: 75%;
    object-fit: contain;
    border: 3px solid white;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    transform: scale(0.95);
    animation: zoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes zoomIn {
    to { transform: scale(1); }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--text-muted-light);
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--color-orange);
}

.lightbox-caption {
    margin-top: 5mm;
    color: white;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.5px;
    max-width: 80%;
}

/* ==========================================================================
   PRINT LAYOUT SYSTEM (A4 MULTI-PAGE EXPANSION SYSTEM)
   ========================================================================== */
@media print {
    @page {
        size: A4 landscape;
        margin: 0;
    }

    /* Hide screen UI elements */
    .no-print, .action-bar, .lightbox-modal, .light-orb, .gallery-sidebar-controls {
        display: none !important;
    }

    body {
        background-color: var(--color-bg-dark) !important;
        color: var(--text-white) !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .brochure-container {
        display: block !important; /* Force block to fix flex container print pagination bug */
        margin-top: 0 !important;
        padding: 0 !important;
        gap: 0 !important;
    }

    .print-only-header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        border-bottom: 2px solid var(--color-orange);
        padding-bottom: 3mm;
        margin-bottom: 6mm;
    }

    /* Print sizes layout */
    .page {
        width: var(--a4-width) !important;
        height: var(--a4-height) !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        page-break-after: always !important;
        break-after: page !important;
        overflow: hidden !important;
        margin: 0 !important;
    }

    /* MULTI-PAGE PRINT FOR GALLERY: Force gallery section to flow naturally */
    .section-gallery-full {
        grid-template-columns: 1fr !important;
        height: auto !important; /* Allow section to expand beyond single A4 height */
        min-height: auto !important;
        page-break-after: always !important;
        break-after: page !important;
        overflow: visible !important;
        padding: 10mm !important;
    }

    .gallery-full-layout {
        display: block !important;
        height: auto !important;
    }

    .gallery-viewer-panel {
        display: block !important;
        height: auto !important;
        padding: 10mm 15mm !important;
    }

    .gallery-viewer-header {
        page-break-after: avoid !important;
        break-after: avoid !important;
    }

    /* Grid configuration for printing: 3 images per row, large, wrapping pages */
    .gallery-scrollable-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        height: auto !important;
        overflow: visible !important;
        gap: 5mm !important;
        page-break-inside: auto !important;
        break-inside: auto !important;
    }

    /* Force all 69 images to show and wrap pages cleanly */
    .img-thumb-card {
        display: block !important; /* Force displays filtered items */
        opacity: 1 !important;
        transform: none !important;
        height: 50mm !important; /* Perfect physical printable card height */
        margin-bottom: 5mm !important;
        page-break-inside: avoid !important; /* Avoid cutting image card in half */
        break-inside: avoid !important;
    }

    /* Print color background fixes */
    .page, .profile-left-panel, .profile-right-panel, .phil-card-light, .phil-card-dark, 
    .philosophy-bottom-values, .panel-navy, .panel-white, .panel-grey, .v-badge, .badge-dian,
    .visual-bottom-box, .visual-bottom-box .box-caption, .logo-box-editorial, .seal-logo-container,
    .img-thumb-card, .img-thumb-card .caption, .e-feature-item, .e-feature-item .num-box,
    .visual-stack-box-green .visual-bottom-box, .visual-stack-box-green .visual-bottom-box .box-caption-green,
    .section-services-white {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}
