/* ==========================================================================
   ESTILOS GLOBALES Y VARIABLES
   ========================================================================== */
:root {
    --primary-color: #13322B; /* Verde institucional oscuro */
    --secondary-color: #988052; /* Dorado/Arena metálico */
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #F4F6F4;
    --bg-white: #FFFFFF;
    --border-color: #E0E0E0;
    --max-width: 1200px;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-stack);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   DESLINDE OFICIAL (DISCLAIMER)
   ========================================================================== */
.gov-disclaimer {
    background-color: #FFF3CD;
    border-left: 4px solid #FFC107;
    color: #856404;
    padding: 12px 20px;
    font-size: 0.85rem;
    text-align: center;
    font-weight: 500;
}

.gov-disclaimer strong {
    color: #533f03;
}

/* ==========================================================================
   HEADER Y NAVEGACIÓN
   ========================================================================== */
header {
    background-color: var(--primary-color);
    border-bottom: 3px solid var(--secondary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo a {
    color: var(--bg-white);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo span {
    color: var(--secondary-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: #E0E0E0;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

nav ul li a:hover, 
nav ul li a.active {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    background: linear-gradient(rgba(19, 50, 43, 0.9), rgba(19, 50, 43, 0.8)), url('https://images.unsplash.com/photo-1569336415962-a4bd9f69cd83?auto=format&fit=crop&w=1200&q=80') no-repeat center center/cover;
    color: var(--bg-white);
    padding: 100px 0 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #E0E0E0;
}

/* ==========================================================================
   COMPONENTES DE CONTENIDO
   ========================================================================== */
.main-content {
    padding: 60px 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1px 1px;
    grid-template-columns: repeat(auto-fit, minmax(45%, 1fr));
    gap: 40px;
    align-items: center;
}

.section-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

p {
    margin-bottom: 20px;
    color: var(--text-dark);
    font-size: 1rem;
}

.lead-text {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

/* Listas Estructuradas */
.styled-list {
    list-style: none;
    margin-bottom: 30px;
}

.styled-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
}

.styled-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Tablas de Datos */
.table-responsive {
    overflow-x: auto;
    margin: 30px 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.data-table th, .data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background-color: var(--primary-color);
    color: var(--bg-white);
    font-weight: 600;
}

.data-table tr:nth-child(even) {
    background-color: var(--bg-light);
}

/* Imágenes Responsivas */
.image-wrapper {
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 4px;
    overflow: hidden;
}

.responsive-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

/* Botones */
.btn-primary {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--bg-white);
    padding: 14px 28px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover {
    background-color: #836e43;
}

/* ==========================================================================
   FORMULARIOS
   ========================================================================== */
.form-card {
    background-color: var(--bg-light);
    padding: 40px;
    border-top: 4px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-white);
    font-family: var(--font-stack);
    font-size: 1rem;
    border-radius: 4px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-checkbox input {
    margin-top: 4px;
}

.form-checkbox label {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    background-color: #1A1A1A;
    color: #B3B3B3;
    padding: 40px 0 20px 0;
    border-top: 4px solid var(--secondary-color);
    font-size: 0.85rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-info {
    flex: 1;
    min-width: 250px;
}

.footer-links {
    flex: 1;
    min-width: 200px;
}

.footer-links h4 {
    color: var(--bg-white);
    margin-bottom: 15px;
    font-size: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #B3B3B3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
}

.footer-disclaimer {
    font-size: 0.75rem;
    line-height: 1.4;
    color: #888888;
    margin-top: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
    }
    nav ul {
        margin-top: 15px;
    }
    nav ul li {
        margin: 0 10px;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .grid-2 {
        grid-template-columns: 1fr;
    }
}