/* --- Variables de Estilo Unificadas --- */
:root {
    /* Paleta de colores (basada en el dashboard) */
    --background: #111827; /* bg-gray-900 */
    --surface-color: #1f2937; /* gray-800 */
    --border-color: #4b5563; /* gray-600 */
    --text-primary: #e5e7eb; /* gray-200 */
    --text-secondary: #9ca3af; /* gray-400 */
    --accent-color: #3b82f6; /* blue-500 */
    --accent-hover: #60a5fa; /* blue-400 */

    /* Tipografía */
    --font-headings: "Lora", serif;
    --font-body: "Inter", sans-serif;
}

/* --- Estilos Globales --- */
body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-headings);
    color: var(--text-primary);
}

a {
    color: var(--accent-hover);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--text-primary);
    text-decoration: none;
}

/* --- Encabezado --- */
.site-header {
    background-color: var(--background);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.logo-btn img {
    height: 60px;
    width: auto;
    border-radius: 8px;
}

nav {
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: var(--text-secondary);
    font-weight: 500;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dashboard-icon,
.theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}
.dashboard-icon:hover,
.theme-toggle:hover {
    color: var(--text-primary);
    border-color: var(--accent-hover);
}

/* --- Contenido Principal --- */
.site-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.hero {
    text-align: center;
    padding: 4rem 0;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

.content-section {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
}

.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}

/* --- Servicios --- */
.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    font-size: 1.1rem;
    font-weight: 500;
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.service-list li:hover {
    background-color: var(--surface-color);
    color: var(--accent-hover);
}

/* --- Citas y Mapa --- */
.calendar-embed-placeholder {
    height: 300px;
    background-color: var(--surface-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

#map {
    height: 350px;
    width: 100%;
    border-radius: 8px;
}

/* --- Pie de Página --- */
.site-footer {
    background-color: var(--surface-color);
    color: var(--text-secondary);
    padding: 3rem 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 2rem;
}

.footer-column h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Modales --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 8px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}
.modal-lg {
    max-width: 800px;
}
.modal-xl {
    max-width: 1100px;
}

.close-button {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-secondary);
}
.close-button:hover {
    color: var(--text-primary);
}
