/* ==========================================================================
   HOJA DE ESTILOS GLOBAL - CECLAT (citas-relacioneslatam.lat)
   ========================================================================== */

:root {
    --primary-dark: #1a252f;
    --secondary-dark: #2c3e50;
    --accent-gold: #b38f4f;
    --accent-gold-hover: #96743b;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --text-main: #333333;
    --text-muted: #666666;
    --border-color: #e2e8f0;
    --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-main);
    background-color: var(--bg-light);
}

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

section {
    padding: 60px 0;
}

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

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

/* --- 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-white);
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.5px;
}

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

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

nav a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

nav a:hover, nav a.active {
    color: var(--accent-gold);
}

/* --- Footer --- */
footer {
    background-color: var(--primary-dark);
    color: #cbd5e1;
    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;
    margin-bottom: 30px;
}

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

.footer-info h3 {
    color: var(--bg-white);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

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

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

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

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--bg-white);
}

.footer-bottom {
    border-top: 1px solid var(--secondary-dark);
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
}

/* --- Bloques de Alerta e Información Legal --- */
.gov-disclaimer {
    background-color: #fffbeb;
    border-left: 4px solid #d97706;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 4px;
}

.gov-disclaimer p {
    font-size: 0.9rem;
    color: #92400e;
    line-height: 1.5;
}

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

h1 { font-size: 2.5rem; line-height: 1.2; }
h2 { font-size: 1.8rem; position: relative; padding-bottom: 10px; }
h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-gold);
}

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

/* --- Elementos Reutilizables --- */
.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 ease;
}

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

.image-wrapper {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--border-color);
}

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

/* --- Listas y Tablas --- */
.info-list {
    list-style: none;
    margin-bottom: 25px;
}

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

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

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background-color: var(--bg-white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

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

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

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

/* --- Formularios --- */
.form-container {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px 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;
    color: var(--secondary-dark);
}

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

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

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