/* ============================================
   GSoluciones - Brochure Digital
   Design System & Styles
   ============================================ */

/* === CSS Variables === */
:root {
    --color-primary: #1a237e;
    --color-primary-dark: #0d1442;
    --color-primary-light: #3949ab;
    --color-accent-red: #cc0000;
    --color-accent-yellow: #e6a800;
    --color-accent-blue: #003399;
    --color-accent-green: #2d8c2d;
    --color-text-dark: #1a1a2e;
    --color-text-medium: #4a4a6a;
    --color-text-light: #8888a8;
    --color-bg-light: #f5f7fa;
    --color-bg-white: #ffffff;
    --color-surface: rgba(255, 255, 255, 0.95);
    --font-primary: 'Outfit', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    --page-width: 1056px;
    --page-height: 816px;
    --page-ratio: 1.294;
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-elevated: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    background: #0a0a1a;
    color: var(--color-text-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === Brochure Container === */
.brochure-container {
    width: var(--page-width);
    height: var(--page-height);
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* === Pages === */
.page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(60px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.6s;
    overflow: hidden;
}

.page.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.page.exit-left {
    opacity: 0;
    transform: translateX(-60px);
}

/* === NAVIGATION === */
.nav-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.nav-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.nav-prev {
    left: 20px;
}

.nav-next {
    right: 20px;
}

.nav-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nav-arrow:disabled:hover {
    transform: translateY(-50%) scale(1);
    background: rgba(255, 255, 255, 0.1);
}

/* Page Dots */
.page-dots {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 100;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.dot.active {
    background: var(--color-accent-blue);
    width: 30px;
    border-radius: 5px;
}

/* === Export Button === */
.export-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    background: linear-gradient(135deg, var(--color-accent-blue), var(--color-primary-light));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(30, 136, 229, 0.3);
}

.export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(30, 136, 229, 0.5);
}

/* PDF Loading */
.pdf-loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.pdf-loading.show {
    display: flex;
}

.pdf-loading-content {
    text-align: center;
    color: white;
    font-family: var(--font-primary);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top: 3px solid var(--color-accent-blue);
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* PDF Custom Modal */
.pdf-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.pdf-modal.show {
    display: flex;
}

.pdf-modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    font-family: var(--font-primary);
}

.pdf-modal-title {
    color: var(--color-text-dark);
    margin: 0 0 10px 0;
    font-size: 22px;
}

.pdf-modal-desc {
    color: var(--color-text-secondary);
    margin: 0 0 20px 0;
    font-size: 14px;
}

.pdf-modal-checks-container {
    flex: 1;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    background: #fafafa;
}

.pdf-modal-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eaeaea;
}

.text-btn {
    background: none;
    border: none;
    color: var(--color-accent-blue);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    font-family: var(--font-primary);
}

.text-btn:hover {
    text-decoration: underline;
}

.pdf-checks-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pdf-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pdf-check-item label {
    font-size: 14px;
    color: var(--color-text-main);
    cursor: pointer;
    user-select: none;
}

.pdf-check-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--color-accent-blue);
}

.pdf-modal-actions {
    display: flex;
    justify-content:flex-end;
    gap: 15px;
}

.pdf-modal-actions button {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-primary);
}

.btn-cancel {
    background: white;
    border: 1px solid #ccc;
    color: var(--color-text-main);
}

.btn-cancel:hover {
    background: #f5f5f5;
}

.btn-confirm {
    background: var(--color-accent-blue);
    border: 1px solid var(--color-accent-blue);
    color: white;
}

.btn-confirm:hover {
    background: #1565c0;
}

/* ====================================================
   PAGE 1: PORTADA (COVER)
   ==================================================== */
.page-cover {
    background: var(--color-primary-dark);
}

.cover-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.cover-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(13, 20, 66, 0.92) 0%,
        rgba(26, 35, 126, 0.85) 40%,
        rgba(57, 73, 171, 0.75) 70%,
        rgba(30, 136, 229, 0.7) 100%
    );
}

.cover-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px;
}

.cover-decorative-top-right {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: var(--color-accent-red);
    opacity: 0.6;
    transform: rotate(45deg);
}

.cover-logo-area {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    animation: fadeInDown 1s ease-out;
}

.logo-icon {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    width: 50px;
    height: 50px;
    transform: rotate(45deg);
    flex-shrink: 0;
}

.logo-icon.small {
    width: 26px;
    height: 26px;
    gap: 1px;
}

.logo-icon.tiny {
    width: 18px;
    height: 18px;
    gap: 1px;
}

.logo-icon.medium {
    width: 44px;
    height: 44px;
    gap: 2px;
}

.logo-square {
    border-radius: 2px;
}

.logo-square.red { background: var(--color-accent-red); }
.logo-square.yellow { background: var(--color-accent-yellow); }
.logo-square.blue { background: var(--color-accent-blue); }
.logo-square.green { background: var(--color-accent-green); }

.logo-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.logo-name {
    font-family: var(--font-primary);
    font-size: 52px;
    font-weight: 800;
    color: white;
    letter-spacing: -1px;
    line-height: 1;
}

.logo-subtitle {
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 4px;
}

.cover-tagline {
    font-family: var(--font-primary);
    font-size: 22px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.5;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.cover-contact-info {
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.5s backwards;
}

.cover-contact-info p {
    font-family: var(--font-secondary);
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 6px;
}

.cover-contact-info strong {
    color: white;
    font-weight: 700;
    font-size: 20px;
}

.cover-website-btn {
    display: inline-block;
    padding: 14px 40px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 600;
    color: white;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
    animation: fadeInUp 1s ease-out 0.7s backwards;
}

.cover-website-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
}

.cover-website-btn .accent {
    color: var(--color-accent-yellow);
}

.cover-decorative-bottom-left {
    position: absolute;
    bottom: 30px;
    left: 30px;
    opacity: 0.5;
}

/* ====================================================
   PAGE SPLIT LAYOUT (Products, Consulting, Procedures)
   ==================================================== */
.page-split {
    display: flex;
    height: 100%;
    background: var(--color-bg-white);
}

.page-images-col {
    flex: 0 0 45%;
    position: relative;
    overflow: hidden;
}

.page-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-text-col {
    flex: 1;
    padding: 50px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.page-text-col.left-text {
    order: -1;
}

/* === Section Titles === */
.section-title {
    font-family: var(--font-primary);
    font-size: 38px;
    font-weight: 300;
    color: var(--color-text-dark);
    line-height: 1.15;
    margin-bottom: 16px;
}

.section-title .highlight {
    font-weight: 800;
    display: inline-block;
    position: relative;
    color: var(--color-text-dark);
}

.section-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: -6px;
    right: -6px;
    height: 14px;
    background: rgba(30, 136, 229, 0.15);
    border-radius: 3px;
    z-index: -1;
}

.section-title.white-text {
    color: white;
}

.section-title .highlight-light {
    font-weight: 800;
    display: inline-block;
    position: relative;
    color: white;
}

.section-title .highlight-light::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: -6px;
    right: -6px;
    height: 14px;
    background: rgba(229, 57, 53, 0.5);
    border-radius: 3px;
    z-index: -1;
}

.section-desc {
    font-size: 14px;
    color: var(--color-text-medium);
    line-height: 1.7;
    margin-bottom: 24px;
}

/* ====================================================
   PAGE 2: PRODUCTS
   ==================================================== */
.product-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.product-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 12px;
    background: var(--color-bg-light);
    border: 1px solid transparent;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.product-card:hover {
    background: white;
    border-color: rgba(30, 136, 229, 0.2);
    box-shadow: var(--shadow-card);
    transform: translateX(5px);
}

.product-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-accent-blue), var(--color-primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.product-info h3 {
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 4px;
}

.product-info p {
    font-size: 12px;
    color: var(--color-text-light);
    line-height: 1.5;
}

.card-arrow {
    margin-left: auto;
    font-size: 18px;
    color: var(--color-accent-blue);
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition-smooth);
}

.product-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ====================================================
   PAGE 3: CONSULTING SERVICES
   ==================================================== */
.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.service-item {
    padding: 20px;
    border-radius: 14px;
    background: var(--color-bg-light);
    border: 1px solid transparent;
    transition: var(--transition-smooth);
    cursor: pointer;
    text-align: center;
}

.service-item:hover {
    background: white;
    border-color: rgba(30, 136, 229, 0.2);
    box-shadow: var(--shadow-card);
    transform: translateY(-4px);
}

.service-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: white;
}

.service-icon.gubernamental { background: linear-gradient(135deg, #003399, #002266); }
.service-icon.privada { background: linear-gradient(135deg, #2d8c2d, #1e6b1e); }
.service-icon.justicia { background: linear-gradient(135deg, #cc0000, #990000); }
.service-icon.agraria { background: linear-gradient(135deg, #e6a800, #cc8800); }

.service-item h4 {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 6px;
}

.service-item p {
    font-size: 12px;
    color: var(--color-text-light);
    line-height: 1.4;
}

/* ====================================================
   PAGE 4: TRAINING (Full Background)
   ==================================================== */
.page-training {
    background: #1a1a2e;
}

.page-full-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.full-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.full-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(229, 57, 53, 0.88) 0%,
        rgba(183, 28, 28, 0.82) 40%,
        rgba(26, 26, 46, 0.9) 100%
    );
}

.page-overlay-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 50px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.training-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 30px;
}

.training-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: white;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.training-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
    border-color: rgba(255, 255, 255, 0.3);
}

.training-icon {
    font-size: 24px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    flex-shrink: 0;
}

.training-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    max-width: 700px;
}

.training-desc strong {
    color: white;
}

/* ====================================================
   PAGE 5: PROCEDURES
   ==================================================== */
.procedure-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.procedure-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    background: var(--color-bg-light);
    border: 1px solid transparent;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.procedure-item:hover {
    background: white;
    border-color: rgba(30, 136, 229, 0.2);
    box-shadow: var(--shadow-card);
    transform: translateX(5px);
}

.procedure-number {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: white;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.procedure-info h4 {
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 4px;
}

.procedure-info p {
    font-size: 12px;
    color: var(--color-text-light);
    line-height: 1.5;
}

/* ====================================================
   PAGE 6: CONTACT
   ==================================================== */
.page-contact {
    background: var(--color-primary-dark);
}

.contact-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.contact-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(13, 20, 66, 0.93) 0%,
        rgba(26, 35, 126, 0.88) 50%,
        rgba(30, 136, 229, 0.75) 100%
    );
}

.contact-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 50px 60px;
}

.contact-logo-area {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 35px;
    width: 100%;
    max-width: 600px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    text-align: left;
    color: white;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.14);
}

.contact-item svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--color-accent-blue);
}

.contact-item strong {
    display: block;
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
}

.contact-item a,
.contact-item span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
}

.contact-item a:hover {
    color: var(--color-accent-blue);
}

.contact-social {
    display: flex;
    gap: 14px;
    margin-bottom: 30px;
    justify-content: center;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition-smooth);
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.contact-cta-btn {
    display: inline-block;
    padding: 14px 40px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    color: white;
    transition: var(--transition-smooth);
}

.contact-cta-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
}

.contact-cta-btn .accent {
    color: var(--color-accent-yellow);
}

/* === Page Footer Logo === */
.page-footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 20px;
}

.page-footer-logo.light .footer-logo-text {
    color: rgba(255, 255, 255, 0.7);
}

.footer-logo-text {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text-light);
}

/* === Animations === */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ====================================================
   PDF EXPORT STYLES
   ==================================================== */
@media print {
    body {
        background: white;
        overflow: visible;
    }

    .brochure-container {
        width: 100%;
        height: auto;
        box-shadow: none;
        border-radius: 0;
    }

    .page {
        position: relative;
        opacity: 1;
        visibility: visible;
        transform: none;
        page-break-after: always;
        height: var(--page-height);
    }

    .nav-arrow,
    .page-dots,
    .export-btn,
    .pdf-loading {
        display: none !important;
    }
}

/* === PDF-specific class (applied during export) === */
.pdf-export-mode .brochure-container {
    border-radius: 0;
    box-shadow: none;
}

.pdf-export-mode .page {
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    page-break-after: always;
    break-after: page;
}

.pdf-export-mode .nav-arrow,
.pdf-export-mode .page-dots,
.pdf-export-mode .export-btn {
    display: none !important;
}

/* ====================================================
   RESPONSIVE (for smaller screens viewing)
   ==================================================== */
@media (max-width: 1100px) {
    :root {
        --page-width: 90vw;
        --page-height: calc(90vw / 1.294);
    }

    .section-title {
        font-size: 30px;
    }

    .logo-name {
        font-size: 40px;
    }

    .cover-tagline {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    :root {
        --page-width: 100vw;
        --page-height: 100vh;
    }

    .page-split {
        flex-direction: column;
    }

    .page-images-col {
        flex: 0 0 35%;
    }

    .page-text-col {
        padding: 30px;
    }

    .page-text-col.left-text {
        order: 1;
    }

    .section-title {
        font-size: 26px;
    }

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

    .page-overlay-content {
        padding: 30px;
    }

    .cover-content {
        padding: 30px;
    }

    .logo-name {
        font-size: 32px;
    }

    .nav-prev { left: 5px; }
    .nav-next { right: 5px; }

    .nav-arrow {
        width: 36px;
        height: 36px;
    }

    .export-btn {
        top: 10px;
        right: 10px;
        padding: 8px 14px;
        font-size: 11px;
    }

    .export-btn span {
        display: none;
    }
}

/* === Detail Pages === */
.detail-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--color-bg-light);
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    border: 1px solid rgba(0,0,0,0.08);
}

.detail-back:hover {
    background: var(--color-accent-blue);
    color: white;
    transform: translateX(-3px);
}

.detail-back.light {
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    border-color: rgba(255,255,255,0.2);
}

.detail-back.light:hover {
    background: rgba(255,255,255,0.3);
    color: white;
}

.detail-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.detail-list.compact {
    gap: 8px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    background: var(--color-bg-light);
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--color-text-main);
    border-left: 3px solid var(--color-accent-blue);
    transition: transform 0.2s ease;
}

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

.detail-list.light .detail-item {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.95);
    border-left-color: var(--color-accent-yellow);
}

.detail-list.compact .detail-item {
    padding: 8px 12px;
    font-size: 12px;
}

.detail-bullet {
    color: var(--color-accent-green);
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.detail-list.light .detail-bullet {
    color: var(--color-accent-yellow);
}

.left-text {
    order: -1;
}

/* Dark overlay detail pages (capacitación) */
.page-detail-dark .page-full-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.detail-overlay {
    background: linear-gradient(135deg, rgba(26,26,46,0.92) 0%, rgba(15,52,96,0.88) 100%) !important;
}

.page-overlay-content {
    position: relative;
    z-index: 2;
    padding: 50px 80px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.training-desc {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 700px;
}

/* Sub-dots navigation */
.dot.sub-dot {
    width: 6px;
    height: 6px;
}

.dot.main-dot {
    width: 10px;
    height: 10px;
}

.dot-separator {
    color: rgba(255,255,255,0.25);
    font-size: 10px;
    margin: 0 2px;
    user-select: none;
}

/* Highlight light for dark pages */
.highlight-light {
    color: var(--color-accent-yellow);
    font-style: italic;
    font-weight: 700;
}

.white-text {
    color: white;
}
