/* Base Styles - ANETIF Official Identity */
@import url('https://fonts.googleapis.com/css2?family=Aller:wght@400;700&family=Roboto:wght@400;700&display=swap');

:root {
    /* ANETIF Official Colors */
    --primary-color: #721414;
    --secondary-color: #FEFEFE;
    --text-color: #000000;
    --white: #FEFEFE;
    --background-light: #FEFEFE;
    --border-color: #E0E0E0;
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-strong: 0 8px 24px rgba(0, 0, 0, 0.16);
    --transition: all 0.3s ease;

    /* Typography */
    --font-primary: 'Aller', 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;

    /* Spacing and Layout */
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
}

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

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
}

body {
    font-family: var(--font-primary);
    line-height: var(--line-height-base);
    color: var(--text-color);
    background-color: var(--white);
    margin: 0;
    padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
    font-weight: 400;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #5a1010;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-xxl) 0;
    position: relative;
    overflow: hidden;
    z-index: 10;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    font-size: 1.125rem;
    color: var(--text-color);
    font-weight: 400;
}

.bg-light {
    background-color: var(--background-light);
    position: relative;
    z-index: 10;
}

/* Grid Systems */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-lg);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
    align-items: center;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

/* Utilities */
.text-center {
    text-align: center;
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
    margin-bottom: var(--spacing-lg);
    color: var(--text-color);
}

.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    padding: var(--spacing-xs) 0;
    position: relative;
    padding-left: var(--spacing-md);
}

.feature-list li::before {
    content: "●";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2em;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

/* Circular Design Elements */
.circle-decoration {
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: inline-block;
    margin: 0 4px;
}

.circle-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin: var(--spacing-sm) 0;
}

.circle-group .circle {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0.8;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .promotional-banner,
    .header,
    .footer {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
    }

    .section {
        page-break-inside: avoid;
    }

    * {
        background: white !important;
        color: black !important;
    }
}

/* Ocultar secciones temporalmente */
#noticias, #recursos {
    display: none !important;
}

/* Ocultar enlaces de menú */
.nav-link[href="#noticias"], 
.nav-link[href="#recursos"] {
    display: none !important;
}