/* =============================================================================
   Pexelium - Portal de Conocimiento Institucional
   Estilos Principales
   ============================================================================= */

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    color: #0A1128;
    background-color: #FFFFFF;
    line-height: 1.6;
    letter-spacing: -0.3px;
}

/* Paleta de Colores */
:root {
    --primary-deep-navy: #0A1128;
    --accent-mint-soft: #C2E7DA;
    --accent-gold-sand: #EAB676;
    --neutral-light-gray: #F0F0F0;
    --neutral-white: #FFFFFF;
    --text-dark: #0A1128;
    --text-light: #4A5568;
    --border-light: #E2E8F0;
}

/* Tipografía */
h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--primary-deep-navy);
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2.25rem;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-deep-navy);
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--primary-deep-navy);
}

p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
    color: var(--text-light);
}

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

a:hover {
    color: var(--primary-deep-navy);
    text-decoration: underline;
}

/* Layout General */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    background-color: var(--primary-deep-navy);
    color: var(--neutral-white);
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

header .logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent-mint-soft);
}

header nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
}

header nav a {
    color: var(--neutral-white);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: var(--accent-mint-soft);
    text-decoration: none;
}

header nav a.active {
    color: var(--accent-gold-sand);
    border-bottom: 2px solid var(--accent-gold-sand);
    padding-bottom: 0.25rem;
}

/* Secciones */
section {
    margin: 3rem 0;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-light);
}

section:last-child {
    border-bottom: none;
}

section.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(10, 17, 40, 0.95) 0%, rgba(10, 17, 40, 0.9) 100%);
    color: var(--neutral-white);
    text-align: center;
}

section.hero h1 {
    color: var(--neutral-white);
    font-size: 3.5rem;
}

section.hero p {
    color: var(--accent-mint-soft);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Composiciones de Dos Columnas */
.section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin: 2rem 0;
}

.section-content.image-right {
    grid-template-columns: 1fr 1fr;
}

.section-content.image-left {
    grid-template-columns: 1fr 1fr;
}

.section-content.image-left .text {
    order: 2;
}

.section-content.image-left img {
    order: 1;
}

.section-content img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    max-width: 95%;
}

/* Tarjetas */
.card {
    background: var(--neutral-white);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-mint-soft);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary-deep-navy);
    color: var(--neutral-white);
    border: 2px solid var(--primary-deep-navy);
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    background-color: var(--accent-gold-sand);
    border-color: var(--accent-gold-sand);
    color: var(--primary-deep-navy);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-deep-navy);
    border: 2px solid var(--accent-gold-sand);
}

.btn-secondary:hover {
    background-color: var(--accent-gold-sand);
    color: var(--primary-deep-navy);
}

/* Footer */
footer {
    background-color: var(--primary-deep-navy);
    color: var(--neutral-white);
    padding: 3rem 2rem;
    margin-top: 3rem;
}

footer .footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

footer .footer-section h3 {
    color: var(--accent-mint-soft);
    margin-bottom: 1rem;
}

footer a {
    color: var(--neutral-white);
    font-size: 0.95rem;
}

footer a:hover {
    color: var(--accent-gold-sand);
}

footer .footer-bottom {
    border-top: 1px solid rgba(194, 231, 218, 0.3);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Disclaimer y Limitaciones */
.disclaimer {
    background-color: var(--neutral-light-gray);
    border-left: 4px solid var(--accent-mint-soft);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 2px;
}

.disclaimer h4 {
    color: var(--primary-deep-navy);
    margin-bottom: 0.5rem;
}

.disclaimer p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
}

/* Lista de Conceptos */
ul, ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

ul li, ol li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

ul li {
    list-style-type: disc;
    color: var(--text-light);
}

ol li {
    list-style-type: decimal;
    color: var(--text-light);
}

/* Bloque de Fondo Contrastante */
.highlight-section {
    background-color: var(--accent-mint-soft);
    padding: 3rem;
    border-radius: 4px;
    margin: 2rem 0;
}

.highlight-section h2 {
    color: var(--primary-deep-navy);
}

.highlight-section p {
    color: var(--primary-deep-navy);
}

/* Responsive */
@media (max-width: 768px) {
    main {
        padding: 0 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .section-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-content.image-left img {
        order: 2;
    }

    .section-content.image-left .text {
        order: 1;
    }

    header nav ul {
        gap: 1rem;
        font-size: 0.85rem;
    }

    section {
        margin: 2rem 0;
        padding: 2rem 0;
    }

    section.hero {
        padding: 2rem 0;
    }

    section.hero h1 {
        font-size: 2rem;
    }

    footer .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    p {
        font-size: 1rem;
    }

    header nav {
        flex-direction: column;
        gap: 1rem;
    }

    header nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn {
        display: block;
        width: 100%;
    }
}
