/* ==========================================================================
   HOJA DE ESTILOS GLOBAL - ERLAT (citas-relacioneserlat.lat)
   ========================================================================== */

:root {
    --primary-dark: #0f2e22;
    --secondary-dark: #1b3f32;
    --accent-gold: #c5a059;
    --accent-gold-hover: #aa8643;
    --bg-light: #f4f6f5;
    --bg-white: #ffffff;
    --text-main: #2d3732;
    --text-muted: #5a6560;
    --border-color: #d1dcd6;
    --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); }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
section { padding: 50px 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 { 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.35rem; font-weight: 700; text-decoration: none; }
.logo span { color: var(--accent-gold); }
nav ul { display: flex; list-style: none; gap: 25px; }
nav a { color: #e2e8f0; text-decoration: none; font-weight: 500; }
nav a:hover, nav a.active { color: var(--accent-gold); }

footer { background-color: var(--primary-dark); color: #cbd5e1; padding: 40px 0 20px 0; margin-top: 50px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-info h3 { color: var(--bg-white); margin-bottom: 15px; }
.footer-links h4 { color: var(--accent-gold); margin-bottom: 15px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #94a3b8; text-decoration: none; font-size: 0.85rem; }
.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; }

.gov-disclaimer { background-color: #f0f7f4; border-left: 4px solid #2b6cb0; padding: 20px; margin-bottom: 30px; }
.gov-disclaimer p { font-size: 0.88rem; color: #2b6cb0; }

h1, h2, h3 { color: var(--primary-dark); margin-bottom: 20px; }
h1 { font-size: 2.3rem; }
h2 { font-size: 1.7rem; border-bottom: 2px solid var(--accent-gold); padding-bottom: 8px; }

.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; }
.btn-primary:hover { background-color: var(--accent-gold-hover); }
.image-wrapper { box-shadow: 0 10px 25px rgba(0,0,0,0.04); border-radius: 6px; overflow: hidden; }
.responsive-img { width: 100%; height: auto; display: block; }

.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-size: 1.2rem; }

.data-table { width: 100%; border-collapse: collapse; margin: 25px 0; background-color: var(--bg-white); }
.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); }
.data-table tr:nth-child(even) { background-color: var(--bg-light); }

.form-container { background-color: var(--bg-white); padding: 40px; border-radius: 6px; box-shadow: 0 4px 20px rgba(0,0,0,0.03); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; }
.form-control { width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: 4px; }