/* ==========================================================================
   ESTILOS GLOBALES - CITASRELEXTERIOR.LAT
   ========================================================================== */

:root {
    --primary-dark: #0f172a;
    --secondary-dark: #1e293b;
    --accent-gold: #b45309;
    --accent-sand: #fef3c7;
    --text-main: #334155;
    --text-light: #f8fafc;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #cbd5e1;
    --max-width: 1200px;
    --font-stack: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

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

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

/* Header & Navegación */
header {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 15px 0;
    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;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
}

.logo span {
    color: #f59e0b;
}

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

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

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

nav ul li a:hover, nav ul li a.active {
    background-color: var(--accent-gold);
    color: var(--bg-white);
}

/* Bloque Deslinde Gubernamental (Google Ads Policy) */
.gov-disclaimer {
    background-color: #fffbeb;
    border-left: 4px solid #d97706;
    padding: 15px;
    margin: 20px 0;
    font-size: 0.9rem;
    color: #92400e;
    border-radius: 0 4px 4px 0;
}

.gov-disclaimer strong {
    color: #78350f;
}

/* Secciones Principales */
main {
    padding: 40px 0;
}

h1, h2, h3 {
    color: var(--primary-dark);
    margin-bottom: 20px;
}

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

p {
    margin-bottom: 15px;
    text-align: justify;
}

/* Listas */
ul, ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

li {
    margin-bottom: 8px;
}

/* Imágenes Modulares */
.image-wrapper {
    margin: 25px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

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

/* Tablas de Datos Estructuradas */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background-color: var(--bg-white);
}

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

.data-table th {
    background-color: var(--secondary-dark);
    color: var(--text-light);
    font-weight: 600;
}

.data-table tr:nth-child(even) {
    background-color: #f1f5f9;
}

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

.btn-primary:hover {
    background-color: #92400e;
}

/* Formulario de Captación */
.lead-form {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    max-width: 700px;
    margin: 30px auto;
}

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

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

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

.form-control:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.15);
}

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

/* Footer Único */
footer {
    background-color: var(--primary-dark);
    color: #94a3b8;
    padding: 40px 0 20px 0;
    font-size: 0.85rem;
    margin-top: 50px;
    border-top: 4px solid var(--accent-gold);
}

footer p {
    text-align: center;
    margin-bottom: 15px;
}

.footer-links {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links li {
    margin: 0 12px;
}

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

.footer-links li a:hover {
    color: #f59e0b;
}

.footer-notice {
    max-width: 900px;
    margin: 20px auto 0 auto;
    padding-top: 20px;
    border-top: 1px solid #334155;
    text-align: center;
    line-height: 1.4;
    font-size: 0.75rem;
}