/* ==========================================================================
   HOJA DE ESTILOS GLOBAL - ENFOQUE CORPORATIVO PREMIUM & GOOGLE ADS OPTIMIZED
   ========================================================================== */

:root {
    --primary-dark: #111827;
    --secondary-dark: #1f2937;
    --accent-gold: #d4af37;
    --accent-gold-hover: #aa8c2c;
    --text-main: #374151;
    --text-muted: #6b7280;
    --bg-light: #f9fafb;
    --bg-pure: #ffffff;
    --border-color: #e5e7eb;
    --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);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    font-size: 16px;
}

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

section {
    padding: 60px 0;
}

/* --- Header y Navegación --- */
header {
    background-color: var(--primary-dark);
    border-bottom: 3px solid var(--accent-gold);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo a {
    color: var(--bg-pure);
    font-size: 24px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 0.5px;
}

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

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

nav ul li a {
    color: #e5e7eb;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    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(--accent-gold);
    border-bottom: 2px solid var(--accent-gold);
}

/* --- Footer --- */
footer {
    background-color: var(--primary-dark);
    color: #e5e7eb;
    padding: 40px 0 20px 0;
    margin-top: 60px;
    border-top: 1px solid var(--secondary-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--secondary-dark);
}

.footer-info h3 {
    color: var(--accent-gold);
    margin-bottom: 15px;
}

.footer-info p {
    font-size: 14px;
    color: #9ca3af;
    max-width: 600px;
}

.footer-links-legal {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.footer-links-legal a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-links-legal a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    color: #6b7280;
}

/* --- Componentes Comunes de Alta Densidad --- */
h1 {
    font-size: 36px;
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-weight: 800;
}

h2 {
    font-size: 28px;
    color: var(--primary-dark);
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-gold);
}

h3 {
    font-size: 20px;
    color: var(--secondary-dark);
    margin-bottom: 15px;
}

p {
    margin-bottom: 20px;
    color: var(--text-main);
}

.intro-lead {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* --- Alertas y Deslindes (Requisito Google Ads Compliance) --- */
.gov-disclaimer {
    background-color: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 0 4px 4px 0;
}

.gov-disclaimer p {
    margin-bottom: 0;
    font-size: 14px;
    color: #b45309;
    font-weight: 500;
}

/* --- Botones --- */
.btn-primary {
    display: inline-block;
    background-color: var(--accent-gold);
    color: var(--primary-dark);
    padding: 12px 28px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    transition: background-color 0.2s, transform 0.1s;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary:hover {
    background-color: var(--accent-gold-hover);
    color: var(--bg-pure);
}

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

.data-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-pure);
    text-align: left;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.data-table th {
    background-color: var(--secondary-dark);
    color: var(--bg-pure);
    padding: 14px 16px;
    font-weight: 600;
    font-size: 14px;
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

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

/* --- Imágenes Responsivas --- */
.image-wrapper {
    margin: 25px 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
}

.responsive-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 450px;
}

/* --- Formularios --- */
.form-container {
    background-color: var(--bg-pure);
    padding: 40px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--primary-dark);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-stack);
    font-size: 15px;
    color: var(--text-main);
    transition: border-color 0.2s;
}

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

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

/* --- Grillas Funcionales (Layouts) --- */
.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.list-styled {
    list-style: none;
    margin: 20px 0;
}

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

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

/* --- Responsividad --- */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    nav ul {
        gap: 15px;
    }
    .grid-2col {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .footer-links-legal {
        align-items: flex-start;
    }
    h1 { font-size: 28px; }
    h2 { font-size: 22px; }
}