/* ============================================================
   MODELO DE OPERACIÓN - SGP
   Paleta: #0d1b2a / #0a1a2a / #0f2a3a / #1e4d78 / #258BB7 / #40e0d0
   ============================================================ */

:root {
    --azul-profundo: #0d1b2a;
    --azul-oscuro: #0a1a2a;
    --azul-medio: #1e4d78;
    --azul-corporativo: #258BB7;
    --turquesa: #40e0d0;
    --blanco: #ffffff;
    --gris-claro: #f8fafc;
    --gris-texto: #cbd7e5;
    --gris-secundario: #9fb1c4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--gris-claro);
}

/* ============================================================
   HEADER
   ============================================================ */

.sgp-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
    padding: 12px 0;
    background: var(--azul-profundo);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(64, 224, 208, 0.15);
}

.sgp-container {
    width: 92%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.sgp-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
    transition: opacity 0.3s ease;
}

.sgp-logo:hover {
    opacity: 0.9;
}

.sgp-logo-img {
    width: 100%;
    height: 26px;
    margin: 6px;
    object-fit: contain;
}

.sgp-nav {
    display: flex;
    gap: 28px;
}

.sgp-nav .nav-link {
    color: var(--gris-texto);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    padding-bottom: 4px;
    position: relative;
}

.sgp-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--azul-corporativo);
    transition: width 0.3s ease;
}

.sgp-nav .nav-link:hover {
    color: var(--blanco);
}

.sgp-nav .nav-link:hover::after {
    width: 100%;
}

.btn-volver {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(64, 224, 208, 0.1);
    color: var(--turquesa);
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(64, 224, 208, 0.2);
}

.btn-volver:hover {
    background: rgba(64, 224, 208, 0.2);
    transform: translateX(-3px);
}

/* ============================================================
   HERO
   ============================================================ */

.modelo-hero {
    background: linear-gradient(135deg, var(--azul-oscuro) 0%, var(--azul-profundo) 100%);
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.modelo-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(64, 224, 208, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.modelo-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(64, 224, 208, 0.15);
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.hero-badge i {
    color: var(--turquesa);
    font-size: 1rem;
}

.hero-badge span {
    color: var(--turquesa);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.modelo-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--blanco);
    margin-bottom: 20px;
}

.modelo-hero h1 .highlight {
    color: var(--turquesa);
    position: relative;
}

.modelo-hero p {
    font-size: 1rem;
    color: var(--gris-texto);
    line-height: 1.6;
}

/* ============================================================
   PROCESO OPERATIVO - TIMELINE
   ============================================================ */

.proceso-section {
    padding: 60px 0;
    background: var(--gris-claro);
}

.proceso-header {
    text-align: center;
    margin-bottom: 60px;
}

.proceso-badge {
    display: inline-block;
    background: rgba(30, 77, 120, 0.1);
    color: var(--azul-medio);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.proceso-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--azul-profundo);
    margin-bottom: 12px;
}

.proceso-header h2 .highlight {
    color: var(--azul-corporativo);
}

.proceso-header p {
    color: var(--gris-secundario);
    max-width: 600px;
    margin: 0 auto;
}

/* Timeline */
.proceso-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.proceso-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--turquesa), var(--azul-corporativo));
}

.proceso-step {
    display: flex;
    margin-bottom: 48px;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--azul-medio), var(--azul-corporativo));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blanco);
    font-weight: 800;
    font-size: 1.2rem;
    margin-right: 24px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 20px rgba(30, 77, 120, 0.3);
}

.step-content {
    flex: 1;
    background: var(--blanco);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    gap: 20px;
    border: 1px solid rgba(30, 77, 120, 0.1);
}

.step-content:hover {
    transform: translateX(8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    border-color: rgba(30, 77, 120, 0.2);
}

.step-icon {
    width: 48px;
    height: 48px;
    background: rgba(30, 77, 120, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-icon i {
    font-size: 1.3rem;
    color: var(--azul-medio);
}

.step-text h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--azul-profundo);
    margin-bottom: 8px;
}

.step-text p {
    font-size: 0.85rem;
    color: var(--gris-secundario);
    line-height: 1.5;
    margin: 0;
}

/* ============================================================
   BENEFICIOS
   ============================================================ */

.beneficios-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--azul-oscuro) 0%, var(--azul-profundo) 100%);
    position: relative;
}

.beneficios-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(64, 224, 208, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.beneficios-header {
    text-align: center;
    margin-bottom: 60px;
}

.beneficios-badge {
    display: inline-block;
    background: rgba(64, 224, 208, 0.15);
    color: var(--turquesa);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.beneficios-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--blanco);
    margin-bottom: 12px;
}

.beneficios-header h2 .highlight {
    color: var(--turquesa);
}

.beneficios-header p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

.beneficio-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    border-radius: 24px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(64, 224, 208, 0.1);
    height: 100%;
}

.beneficio-card:hover {
    transform: translateY(-8px);
    border-color: rgba(64, 224, 208, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.beneficio-icon {
    width: 70px;
    height: 70px;
    background: rgba(64, 224, 208, 0.15);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.beneficio-icon i {
    font-size: 2rem;
    color: var(--turquesa);
}

.beneficio-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--blanco);
    margin-bottom: 12px;
}

.beneficio-card p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin: 0;
}

/* ============================================================
   CTA MODELO
   ============================================================ */

.cta-modelo {
    padding: 80px 0;
    background: var(--gris-claro);
}

.cta-modelo-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-modelo-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--azul-profundo);
    margin-bottom: 16px;
}

.cta-modelo-content h3 .highlight {
    color: var(--azul-corporativo);
}

.cta-modelo-content p {
    color: var(--gris-secundario);
    margin-bottom: 32px;
}

.btn-cta-modelo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--azul-medio), var(--azul-corporativo));
    color: var(--blanco);
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(30, 77, 120, 0.3);
}

.btn-cta-modelo:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(30, 77, 120, 0.4);
    color: var(--blanco);
}

.btn-cta-modelo i {
    transition: transform 0.3s ease;
}

.btn-cta-modelo:hover i {
    transform: translateX(4px);
}

/* ============================================================
   FOOTER
   ============================================================ */

.sgp-footer {
    background: var(--azul-profundo);
    padding: 40px 0 20px;
    border-top: 1px solid rgba(64, 224, 208, 0.1);
}

.footer-content {
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.footer-brand i {
    font-size: 1.5rem;
    color: var(--turquesa);
}

.footer-brand span {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--blanco);
}

.footer-brand small {
    color: var(--gris-secundario);
    font-size: 0.7rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--gris-texto);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--turquesa);
}

.footer-copyright p {
    color: var(--gris-secundario);
    font-size: 0.7rem;
    margin: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 992px) {
    .sgp-nav {
        display: none;
    }

    .btn-volver span {
        display: none;
    }

    .btn-volver {
        padding: 8px 12px;
    }

    .modelo-hero h1 {
        font-size: 2rem;
    }

    .proceso-header h2,
    .beneficios-header h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .modelo-hero {
        padding: 120px 0 60px;
    }

    .modelo-hero h1 {
        font-size: 1.6rem;
    }

    .step-content {
        flex-direction: column;
        text-align: center;
    }

    .step-icon {
        margin: 0 auto;
    }

    .proceso-timeline::before {
        left: 29px;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }

    .proceso-timeline {
        padding-left: 10px;
    }

    .cta-modelo-content h3 {
        font-size: 1.4rem;
    }
}

@media (max-width: 576px) {
    .sgp-logo-img {
        width: 100%;
        height: 20px;
    }

    .modelo-hero h1 {
        font-size: 1.4rem;
    }

    .modelo-hero p {
        font-size: 0.9rem;
        padding: 0 16px;
    }

    .proceso-header h2,
    .beneficios-header h2 {
        font-size: 1.3rem;
    }

    .step-content {
        padding: 16px;
    }

    .step-text h3 {
        font-size: 1rem;
    }

    .step-text p {
        font-size: 0.8rem;
    }

    .beneficio-card {
        padding: 24px 20px;
    }

    .cta-modelo-content h3 {
        font-size: 1.2rem;
    }
}

/* ============================================================
   SECCIÓN DE IMAGEN DESTACADA
   ============================================================ */

.imagen-destacada-section {
    padding: 10px 0;
    background: var(--gris-claro);
}

.imagen-destacada-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-top: 20px;
}

.imagen-destacada-content {
    order: 1;
}

.imagen-badge {
    display: inline-block;
    background: rgba(30, 77, 120, 0.1);
    color: var(--azul-medio);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.imagen-destacada-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--azul-profundo);
    margin-bottom: 16px;
}

.imagen-destacada-content h2 .highlight {
    color: var(--azul-corporativo);
}

.imagen-destacada-content p {
    color: var(--gris-secundario);
    line-height: 1.6;
}

.imagen-destacada-container {
    order: 2;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.imagen-destacada {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.imagen-destacada-container:hover .imagen-destacada {
    transform: scale(1.02);
}

.imagen-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 0.8rem;
}

.imagen-caption i {
    color: var(--turquesa);
}

/* Alternar orden en móvil */
@media (max-width: 992px) {
    .imagen-destacada-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .imagen-destacada-content {
        text-align: center;
    }
}

/* ============================================================
   GALERÍA DE IMÁGENES
   ============================================================ */

.galeria-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--azul-oscuro) 0%, var(--azul-profundo) 100%);
    position: relative;
}

.galeria-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(64, 224, 208, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.galeria-header {
    text-align: center;
    margin-bottom: 48px;
}

.galeria-badge {
    display: inline-block;
    background: rgba(64, 224, 208, 0.15);
    color: var(--turquesa);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.galeria-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--blanco);
    margin-bottom: 12px;
}

.galeria-header h2 .highlight {
    color: var(--turquesa);
}

.galeria-header p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.galeria-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: pointer;
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.galeria-item:hover img {
    transform: scale(1.05);
}

.galeria-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.galeria-item:hover .galeria-overlay {
    opacity: 1;
}

.galeria-overlay i {
    font-size: 2rem;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding: 16px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.galeria-item:hover .galeria-overlay i {
    transform: scale(1.1);
}

/* ============================================================
   SECCIÓN DE VIDEO
   ============================================================ */

.video-section {
    padding: 60px 0;
    background: var(--gris-claro);
}

.video-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.video-header {
    text-align: center;
    margin-bottom: 40px;
}

.video-badge {
    display: inline-block;
    background: rgba(30, 77, 120, 0.1);
    color: var(--azul-medio);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.video-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--azul-profundo);
    margin-bottom: 12px;
}

.video-header h2 .highlight {
    color: var(--azul-corporativo);
}

.video-header p {
    color: var(--gris-secundario);
    max-width: 600px;
    margin: 0 auto;
}

.video-container {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background: #000;
}

.video-element {
    width: 100%;
    height: auto;
    display: block;
}

.video-caption {
    text-align: center;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--gris-secundario);
}

.video-caption i {
    color: var(--turquesa);
    font-size: 1rem;
}

@media (max-width: 768px) {
    .galeria-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 16px;
    }

    .video-header h2,
    .galeria-header h2,
    .imagen-destacada-content h2 {
        font-size: 1.5rem;
    }
}

/* ============================================================
   MODAL PARA AMPLIAR IMÁGENES
   ============================================================ */

.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 27, 42, 0.95);
    backdrop-filter: blur(8px);
    z-index: 10000;
    cursor: pointer;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.image-modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 1000px;
    height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: modalZoomIn 0.3s ease;
}

@keyframes modalZoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.image-modal-close:hover {
    color: #40e0d0;
    background: rgba(64, 224, 208, 0.2);
    transform: rotate(180deg);
}

.image-modal-img {
    max-width: 100%;
    max-height: 85%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.image-modal-caption {
    margin-top: 20px;
    color: #cbd7e5;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Responsive modal */
@media (max-width: 768px) {
    .image-modal-content {
        width: 95%;
        height: 85%;
        padding: 15px;
    }
    
    .image-modal-close {
        top: 10px;
        right: 15px;
        font-size: 1rem;
        width: 35px;
        height: 35px;
    }
    
    .image-modal-caption {
        font-size: 0.75rem;
        margin-top: 15px;
    }
}
/* Native image dialogs: shared keyboard behavior with the main site. */
.image-modal[open] { display: flex; border: 0; padding: 0; max-width: 100vw; max-height: 100dvh; margin: auto; }
.image-modal::backdrop { background: #0d1b2aeb; }
.image-modal-close { border: 1px solid #ffffff50; font-size: 1.5rem; }
.galeria-overlay { width: 100%; border: 0; }
.galeria-overlay:focus-visible { opacity: 1; }
.imagen-destacada-container { position: relative; }
.gallery-feature-open { position: absolute; z-index: 2; bottom: 16px; right: 16px; padding: 10px 16px; background: #0d1b2a; color: white; border: 1px solid #ffffff80; border-radius: 5px; }
