
        /* Variables globales y paleta institucional */
        :root {
            --color-primary: #2c3e50;
            --color-accent: #1565c0;
            --color-text: #2c3e50;
            --bg-body: #e0e5ec;
            --paper: #fdfdfd;
            --border-green: #2e7d32;
        }

        * {
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: var(--bg-body);
            color: var(--color-text);
            margin: 0;
            padding: 20px 15px 60px 15px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            min-height: 100vh;
            overflow-x: hidden; /* Cero scrollbar horizontal */
        }

        /* Barra de navegación superior */
        .navbar-top {
            width: 100%;
            max-width: 920px;
            margin: 0 auto 16px auto;
            background: var(--color-primary);
            padding: 12px 25px;
            border-radius: 8px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: white;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        }
        .navbar-top a { color: white; text-decoration: none; font-weight: bold; }
        .navbar-top a:hover { color: #4fc3f7; }

        /* Encabezado de sección superior: ¿Qué hacemos? */
        .section-hero {
            width: 100%;
            max-width: 920px;
            text-align: center;
            margin: 5px auto 20px auto;
        }
        .section-badge {
            display: inline-block;
            font-size: 0.78em;
            font-weight: 700;
            color: var(--color-accent);
            background: #e0f2fe;
            padding: 3px 12px;
            border-radius: 12px;
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .section-hero h1 {
            color: var(--color-primary);
            font-size: 2em;
            margin: 0 0 8px 0;
            font-weight: 700;
        }
        .section-hero p {
            color: #64748b;
            font-size: 1.02em;
            max-width: 720px;
            margin: 0 auto;
            line-height: 1.5;
        }

        /* Contenedor del cuaderno */
        .notebook-container {
            position: relative;
            background-color: var(--paper);
            width: 100%;
            max-width: 920px;
            height: 680px;
            margin: 0 auto 40px auto;
            border-radius: 5px 20px 20px 5px;
            box-shadow: 
                15px 15px 25px rgba(0,0,0,0.15),
                inset -3px 0 10px rgba(0,0,0,0.02);
            padding: 40px 50px 75px 85px;
            background-image: linear-gradient(#e8ecef 1px, transparent 1px);
            background-size: 100% 34px;
            background-position: 0 40px;
            overflow-x: hidden;
        }

        /* Argollas laterales */
        .rings {
            position: absolute;
            top: 30px;
            bottom: 30px;
            left: -10px;
            display: flex;
            flex-direction: column;
            justify-content: space-around;
        }
        .ring {
            width: 40px;
            height: 14px;
            background: linear-gradient(to bottom, #d3d3d3, #fff, #999);
            border-radius: 10px;
            box-shadow: 3px 3px 5px rgba(0,0,0,0.3);
            position: relative;
            z-index: 10;
        }
        .ring::after {
            content: '';
            position: absolute;
            right: 5px;
            top: 50%;
            transform: translateY(-50%);
            width: 12px;
            height: 12px;
            background-color: var(--bg-body);
            border-radius: 50%;
            box-shadow: inset 2px 2px 4px rgba(0,0,0,0.3);
        }

        /* Páginas con scroll vertical */
        .page { 
            display: none; 
            animation: fadeIn 0.35s ease-in-out; 
            max-height: 545px;
            overflow-y: auto;
            overflow-x: hidden;
            padding-right: 12px;
            width: 100%;
        }
        .page.active { display: block; }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateX(8px); }
            to { opacity: 1; transform: translateX(0); }
        }

        .page::-webkit-scrollbar { width: 5px; }
        .page::-webkit-scrollbar-track { background: transparent; }
        .page::-webkit-scrollbar-thumb { background: #bcc5cf; border-radius: 4px; }
        .page::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

        /* Tipografía interna del cuaderno */
        h2 { 
            color: var(--color-accent); 
            font-size: 1.55em; 
            margin-top: 0; 
            margin-bottom: 12px; 
            background-color: var(--paper); 
            display: inline-block; 
            padding-right: 12px;
        }
        p, li { 
            line-height: 1.55; 
            font-size: 0.98em; 
            color: var(--color-text); 
            margin-bottom: 10px; 
        }
        ul { margin: 8px 0 14px 20px; padding: 0; }
        li { margin-bottom: 6px; }

        /* Contenedores de imagen */
        .media-box {
            width: 100%;
            max-width: 100%;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 3px 10px rgba(0,0,0,0.12);
            margin: 10px 0 14px 0;
            border: 3px solid white;
            background-color: #eee;
            text-align: center;
        }
        .media-box img {
            width: 100%;
            height: 175px;
            display: block;
            object-fit: cover;
            object-position: center;
        }

        .media-box.fit-person {
            background-color: #1e293b;
        }
        .media-box.fit-person img {
            height: 210px;
            object-fit: cover;
            object-position: center 10%;
        }

        /* Flujo en 4 pasos (Página 6) */
        .steps-flow {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            margin-top: 10px;
            width: 100%;
        }
        .step-card {
            background: #ffffff;
            border-top: 4px solid var(--color-accent);
            padding: 12px 14px;
            border-radius: 6px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
            background-color: #f8fafc;
        }
        .step-num {
            display: inline-block;
            font-size: 0.78em;
            font-weight: bold;
            color: var(--color-accent);
            background: #e2e8f0;
            padding: 2px 8px;
            border-radius: 10px;
            margin-bottom: 6px;
            text-transform: uppercase;
        }
        .step-card h4 { margin: 0 0 4px 0; font-size: 0.98em; color: var(--color-primary); }
        .step-card p { margin: 0; font-size: 0.88em; line-height: 1.4; color: #475569; }

        .extra-protocols {
            margin-top: 12px;
            background: #ffffff;
            border-left: 4px solid var(--color-primary);
            padding: 10px 14px;
            border-radius: 4px;
            box-shadow: 0 2px 6px rgba(0,0,0,0.05);
            width: 100%;
        }
        .extra-protocols h5 { margin: 0 0 5px 0; color: var(--color-primary); font-size: 0.92em; }
        .extra-protocols p { margin: 0; font-size: 0.86em; color: #555; }

        /* Cuadrícula de resoluciones (Página 7) */
        .check-grid-extended {
            display: grid;
            grid-template-columns: 1fr;
            gap: 10px;
            margin-top: 10px;
            width: 100%;
        }
        .check-item-ext {
            background: white;
            border-left: 5px solid var(--border-green);
            padding: 12px 14px;
            box-shadow: 0 2px 6px rgba(0,0,0,0.06);
            border-radius: 4px;
            background-color: #f9fbf9;
        }
        .res-header {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 4px;
        }
        .check-icon {
            color: var(--border-green);
            font-size: 1.1em;
            font-weight: bold;
        }
        .check-item-ext h4 { margin: 0; color: var(--border-green); font-size: 0.98em; }
        .check-item-ext p { margin: 0; font-size: 0.88em; line-height: 1.45; color: #334155; }

        /* Controles de paginación del cuaderno */
        .controls {
            position: absolute;
            bottom: 20px;
            right: 45px;
            display: flex;
            align-items: center;
            gap: 15px;
            background-color: var(--paper);
            padding: 6px 0;
            z-index: 50;
        }
        .page-counter { font-size: 0.9em; color: #555; font-weight: bold; }
        .btn-nav {
            background-color: var(--color-primary);
            color: white;
            border: none;
            padding: 7px 18px;
            border-radius: 20px;
            cursor: pointer;
            font-weight: bold;
            font-size: 0.88em;
            transition: 0.2s;
        }
        .btn-nav:hover { background-color: var(--color-accent); }
        .btn-nav:disabled { background-color: #cbd5e1; cursor: not-allowed; }

        /* =======================================================
           SECCIÓN INFERIOR: NUESTRA TRAYECTORIA
           ======================================================= */
        .experience-section {
            width: 100%;
            max-width: 920px;
            background: #ffffff;
            border-radius: 12px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.08);
            padding: 40px;
            margin-bottom: 30px;
        }

        .experience-header {
            text-align: center;
            margin-bottom: 35px;
        }
        .experience-header h3 {
            color: var(--color-primary);
            font-size: 1.8em;
            margin: 0 0 10px 0;
        }
        .experience-header p {
            color: #64748b;
            font-size: 1.05em;
            max-width: 750px;
            margin: 0 auto;
            line-height: 1.5;
        }

        /* Indicadores de autoridad técnica */
        .kpi-strip {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 15px;
            margin-bottom: 40px;
        }
        .kpi-item {
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            padding: 16px;
            border-radius: 8px;
            text-align: center;
        }
        .kpi-value {
            font-size: 1.6em;
            font-weight: 800;
            color: var(--color-accent);
            display: block;
        }
        .kpi-label {
            font-size: 0.82em;
            color: #475569;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        /* Línea de tiempo cronológica */
        .timeline {
            position: relative;
            margin: 0 auto 40px auto;
            padding: 10px 0;
        }
        .timeline::before {
            content: '';
            position: absolute;
            top: 0;
            bottom: 0;
            left: 20px;
            width: 3px;
            background: #cbd5e1;
        }
        .timeline-item {
            position: relative;
            margin-bottom: 28px;
            padding-left: 55px;
        }
        .timeline-dot {
            position: absolute;
            left: 13px;
            top: 5px;
            width: 17px;
            height: 17px;
            border-radius: 50%;
            background: var(--color-accent);
            border: 3px solid #ffffff;
            box-shadow: 0 0 0 2px var(--color-accent);
        }
        .timeline-card {
            background: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            padding: 18px 22px;
            box-shadow: 0 2px 6px rgba(0,0,0,0.04);
            transition: transform 0.2s, box-shadow 0.2s;
        }
        .timeline-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 14px rgba(0,0,0,0.08);
        }
        .timeline-title {
            margin: 0 0 6px 0;
            color: var(--color-primary);
            font-size: 1.15em;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 8px;
        }
        .timeline-role {
            font-size: 0.82em;
            color: var(--color-accent);
            background: #e0f2fe;
            padding: 3px 10px;
            border-radius: 12px;
            font-weight: 600;
        }
        .timeline-desc {
            margin: 0 0 12px 0;
            font-size: 0.93em;
            color: #475569;
            line-height: 1.5;
        }
        .tech-badges {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }
        .badge {
            background: #f1f5f9;
            color: #334155;
            border: 1px solid #cbd5e1;
            padding: 3px 9px;
            border-radius: 6px;
            font-size: 0.78em;
            font-weight: 600;
        }

        /* Catálogo de servicios */
        .services-section {
            border-top: 1px solid #e2e8f0;
            padding-top: 35px;
            margin-bottom: 35px;
        }
        .services-title {
            text-align: center;
            margin: 0 0 25px 0;
            color: var(--color-primary);
            font-size: 1.4em;
        }
        .services-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
        }
        .service-box {
            border: 1px solid #e2e8f0;
            padding: 16px;
            border-radius: 8px;
            background: #f8fafc;
            border-left: 4px solid var(--color-accent);
        }
        .service-box h5 {
            margin: 0 0 6px 0;
            font-size: 1em;
            color: var(--color-primary);
        }
        .service-box p {
            margin: 0;
            font-size: 0.88em;
            color: #475569;
            line-height: 1.45;
        }

        /* =======================================================
           TARJETA DE CONTACTO INTELIGENTE (GMAIL DIRECTO + WA)
           ======================================================= */
        .contact-card {
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            padding: 24px;
            margin-top: 20px;
        }
        .contact-card-header {
            margin-bottom: 16px;
        }
        .contact-card-header h4 {
            margin: 0 0 4px 0;
            color: var(--color-primary);
            font-size: 1.25em;
        }
        .contact-card-header p {
            margin: 0;
            color: #64748b;
            font-size: 0.9em;
        }
        .contact-form-row {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 12px;
            margin-bottom: 18px;
        }
        .form-group {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        .form-group label {
            font-size: 0.84em;
            font-weight: 600;
            color: var(--color-primary);
        }
        .form-input {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid #cbd5e1;
            border-radius: 6px;
            font-size: 0.9em;
            color: var(--color-text);
            background: #ffffff;
            outline: none;
            transition: border-color 0.2s;
        }
        .form-input:focus {
            border-color: var(--color-accent);
        }
        .contact-form-actions {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
        }

        /* Botones de acción */
        .btn-action-wa {
            background-color: #25D366;
            color: white;
            border: none;
            padding: 10px 22px;
            border-radius: 25px;
            font-weight: 600;
            font-size: 0.88em;
            cursor: pointer;
            box-shadow: 0 2px 5px rgba(37, 211, 102, 0.25);
            transition: background-color 0.2s, transform 0.1s;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }
        .btn-action-wa:hover {
            background-color: #1ebc57;
            transform: translateY(-1px);
        }

        .btn-action-email {
            background-color: #c0392b;
            color: white;
            border: none;
            padding: 10px 22px;
            border-radius: 25px;
            font-weight: 600;
            font-size: 0.88em;
            cursor: pointer;
            box-shadow: 0 2px 5px rgba(192, 57, 43, 0.25);
            transition: background-color 0.2s, transform 0.1s;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }
        .btn-action-email:hover {
            background-color: #a93226;
            transform: translateY(-1px);
        }

        .contact-status {
            margin-top: 14px;
            padding: 10px 15px;
            border-radius: 6px;
            font-size: 0.9em;
            font-weight: 500;
            animation: fadeIn 0.3s ease-in-out;
        }
        .contact-status.success {
            background-color: #ecfdf5;
            color: #065f46;
            border: 1px solid #a7f3d0;
        }
        .contact-status.error {
            background-color: #fef2f2;
            color: #991b1b;
            border: 1px solid #fecaca;
        }

        @media (max-width: 768px) {
            .notebook-container { 
                padding: 25px 15px 80px 35px; 
                height: auto;
                min-height: 690px;
            }
            .controls {
                right: 20px;
                bottom: 15px;
            }
            .steps-flow { grid-template-columns: 1fr; }
            .media-box img { height: 140px; }
            .media-box.fit-person img { height: 170px; }
            .kpi-strip { grid-template-columns: 1fr 1fr; }
            .services-grid { grid-template-columns: 1fr; }
            .experience-section { padding: 25px 15px; }
            .contact-form-row { grid-template-columns: 1fr; gap: 10px; }
            .section-hero h1 { font-size: 1.6em; }
        }
    
