/* ============================================
   SISTEMA DE DISEÑO OCDE - ESTILOS GLOBALES
   ============================================ */

/* Colores del Sistema de Diseño OCDE */
:root {
    /* Colores Corporativos */
    --color-rojo: #EB1E23;
    --color-gris: #58595B;
    --color-amarillo: #F3A600;
    --color-guinda: #AA2228;

    /* Colores Secundarios */
    --color-rosado: #D87D82;
    --color-gris-claro: #EBEAEA;
    --color-amarillo-claro: #FDEFDA;
    --color-gris-2: #6F6F6E;
    --color-rojo-2: #E64144;

    /* Colores de Texto */
    --color-blanco: #FFFFFF;
    --color-texto: #21272A;

    /* Alias para compatibilidad */
    --peru-red: #EB1E23;
    --peru-red-dark: #AA2228;
    --ocde-blue: #003087;
    --ocde-blue-light: #0064B0;
}

/* ============================================
   ESTILOS GLOBALES
   ============================================ */

/* Smooth scrolling para toda la página */
html {
    scroll-behavior: smooth;
}

/* Typography System según Guía de Estilos */
body {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-texto);
}

/* Mejora en selección de texto */
::selection {
    background-color: var(--peru-red);
    color: white;
}

/* Mejora visual para scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-gris-claro);
}

::-webkit-scrollbar-thumb {
    background: var(--peru-red);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--peru-red-dark);
}

/* ============================================
   TIPOGRAFÍA
   ============================================ */

/* Estilos globales solo para elementos sin clases */
h3 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-texto);
}

p {
    font-weight: 400;
    line-height: 1.6;
}

.text-small {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

.text-tag {
    font-size: 15px;
    font-weight: 600;
}

.text-breadcrumb {
    font-size: 11px;
    font-weight: 400;
}

.text-legend {
    font-size: 11px;
    font-weight: 400;
}

.text-category {
    font-size: 12px;
    font-weight: 500;
}

.text-menu {
    font-size: 17px;
    font-weight: 600;
}

.text-button {
    font-size: 17px;
    font-weight: 700;
}

/* Mobile Typography - Solo para elementos sin clases */
@media (max-width: 768px) {
    h3 {
        font-size: 18px;
    }

    p {
        font-size: 15px;
    }

    .text-small {
        font-size: 14px;
    }

    .text-tag {
        font-size: 13px;
    }

    .text-breadcrumb {
        font-size: 12px;
    }

    .text-legend {
        font-size: 11px;
    }

    .text-category {
        font-size: 11px;
    }

    .text-menu {
        font-size: 16px;
    }

    .text-button {
        font-size: 15px;
    }
}

/* ============================================
   BOTONES
   ============================================ */

/* Botón en fondo blanco - Botón rojo */
.btn-primary {
    background-color: var(--color-rojo);
    color: var(--color-blanco);
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid var(--color-rojo);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-primary:hover {
    background-color: var(--color-guinda);
    border-color: var(--color-guinda);
    color: var(--color-blanco);
    transform: scale(1.05);
}

.btn-primary svg {
    fill: var(--color-blanco);
}

/* Botón en fondo rojo - Botón blanco */
.btn-secondary {
    background-color: var(--color-blanco);
    color: var(--color-rojo);
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid var(--color-blanco);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-secondary:hover {
    background-color: var(--color-amarillo-claro);
    border-color: var(--color-amarillo-claro);
    transform: scale(1.05);
}

.btn-secondary svg {
    fill: var(--color-rojo);
}

/* Botón outline */
.btn-outline {
    background-color: transparent;
    color: var(--color-rojo);
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid var(--color-rojo);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-outline:hover {
    background-color: var(--color-rojo);
    color: var(--color-blanco);
    transform: scale(1.05);
}

.btn-download {
    background-color: var(--color-rojo);
    color: var(--color-blanco);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background-color: var(--color-guinda);
}

/* ============================================
   TAGS
   ============================================ */

.tag-yellow {
    background-color: var(--color-amarillo);
    color: var(--color-blanco);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    display: inline-block;
}

.tag-red {
    background-color: var(--color-rojo);
    color: var(--color-blanco);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    display: inline-block;
}

/* ============================================
   LINKS
   ============================================ */

a {
    color: var(--color-rojo);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-guinda);
}

/* ============================================
   MENÚ
   ============================================ */

/* Línea decorativa del menú */
.menu-header {
    position: relative;
}

.menu-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background-image: url('../images/linea-divisoria-menu.jpg');
    background-repeat: repeat-x;
    background-size: auto 6px;
    z-index: 1;
}

/* ============================================
   UTILIDADES Y ANIMACIONES
   ============================================ */

/* Sombras más profesionales */
.shadow-elegant {
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
}

/* Efecto hover mejorado para cards */
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

/* Gradiente sutil para fondos */
.bg-gradient-subtle {
    background: linear-gradient(135deg, var(--color-gris-claro) 0%, var(--color-blanco) 100%);
}

/* Animación de entrada */
@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-slide-in {
    animation: slideInUp 0.6s ease-out;
}

/* Separador para sección Acerca de la OCDE */
.seccion-acerca-ocde::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background-image: url('../images/linea-divisoria-menu.jpg');
    background-repeat: repeat-x;
    background-size: auto 6px;
    z-index: 10;
}

/* ============================================
   CONTENEDORES PERSONALIZADOS
   ============================================ */

.container-1400 {
    max-width: 1400px !important;
}

.container-1250 {
    max-width: 1250px !important;
}

.container-custom {
    max-width: 1250px !important;
}

@media (min-width: 1024px) and (max-width: 1279px) {
    .container-custom {
        max-width: 1100px !important;
    }
}

/* ============================================
   GLIGHTBOX OVERLAY
   ============================================ */

/* Overlay oscuro para popups/lightbox */
.goverlay {
    background: rgba(0, 0, 0, 0.5) !important;
}

/* ============================================
   SOMBRA INFERIOR PARA SECCIONES
   ============================================ */

/* Sombra inferior con degradado para separación de secciones */
section.sombra-inferior-sec {
    position: relative;
}

section.sombra-inferior-sec::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.25));
    pointer-events: none;
    z-index: 0;
}

section.sombra-inferior-sec > * {
    z-index: 1;
}

/* ============================================
   LÍNEA DIVISORIA SUPERIOR PARA SECCIONES
   ============================================ */

/* Línea decorativa superior para secciones */
section.linea-divisoria-superior::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background-image: url('../images/linea-divisoria-menu.jpg');
    background-repeat: repeat-x;
    background-size: auto 6px;
    z-index: 10;
}
