/* ==========================================================================
   ESTILOS GLOBALES Y VARIABLES
   ========================================================================== */
:root {
    --primary-color: #111827; /* Azul oscuro/gris corporativo profundo */
    --secondary-color: #1f2937; /* Tono secundario para secciones */
    --accent-color: #c5a880; /* Dorado/bronce metálico elegante */
    --accent-hover: #b3946c;
    --text-color: #374151;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #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-color);
    background-color: var(--bg-white);
    line-height: 1.6;
}

/* ==========================================================================
   COMPONENTES REUTILIZABLES y UTILITIES
   ========================================================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 60px 0;
}

/* Bloque de Alerta Legal para Google Ads */
.gov-disclaimer {
    background-color: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 0 4px 4px 0;
}

.gov-disclaimer p {
    font-size: 0.9rem;
    color: #b45309;
    font-weight: 500;
}

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

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

/* Imágenes Responsivas */
.image-wrapper {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

/* Tablas de Datos Estructuradas */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    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);
}

/* Listas Informativas */
.info-list {
    list-style-type: none;
    margin: 20px 0;
}

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

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

/* Títulos */
h1, h2, h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

h1 { font-size: 2.5rem; line-height: 1.2; }
h2 { font-size: 1.85rem; border-bottom: 2px solid var(--accent-color); padding-bottom: 8px; margin-top: 30px; }
h3 { font-size: 1.3rem; margin-top: 20px; }

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
}

/* ==========================================================================
   HEADER Y NAV
   ========================================================================== */
header {
    background-color: var(--primary-color);
    border-bottom: 3px solid var(--accent-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

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

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

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

nav ul li a {
    color: #d1d5db;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    padding: 8px 0;
}

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

/* Top Banner de Deslinde */
.top-notice-bar {
    background-color: #1f2937;
    color: #9ca3af;
    font-size: 0.75rem;
    text-align: center;
    padding: 6px 10px;
    border-bottom: 1px solid #374151;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    background-color: var(--primary-color);
    color: #9ca3af;
    padding: 40px 0 20px 0;
    margin-top: 60px;
    border-top: 1px solid #2d3748;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

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

.footer-disclaimer-text {
    font-size: 0.8rem;
    line-height: 1.5;
    text-align: justify;
}

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

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

.footer-links ul li a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
}

/* ==========================================================================
   ESTILOS DE FORMULARIO (contacto.html)
   ========================================================================== */
.form-card {
    background-color: var(--bg-light);
    padding: 35px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

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

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

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

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

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