/* css/style.css */

/* --- Variables y Estilos Globales --- */
:root {
    --primary-color: #cda45e; /* Un tono dorado/bronce */
    --dark-color: #1a1814;
    --dark-gray: #222;
    --light-color: #fff;
    --text-color: #f0f0f0;
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Lato', sans-serif;
}

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

body {
    font-family: var(--font-secondary);
    background-color: var(--dark-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--font-primary);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

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



/* --- Header y Navegación --- */
header {
    background: var(--dark-gray);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

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

.logo {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
}

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

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

nav a {
    color: var(--light-color);
    font-size: 1.1rem;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

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

/* --- Hero Section (Inicio) --- */
#hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../img/hero-bg.jpg') no-repeat center center/cover;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--light-color);
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--dark-color);
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s;
}

.btn:hover {
    background-color: #e6b972;
    color: #000;
}

/* --- Secciones Principales --- */
main {
    padding: 4rem 0; /* Ajustado el padding general */
}

section {
    margin-bottom: 4rem; /* Añadido margen inferior a todas las secciones */
}

/* ================================================= */
/* == AJUSTE FINAL DE ESPACIADO PARA LOS TÍTULOS == */
/* ================================================= */
/* Este código añade espacio por ENCIMA de los títulos principales en cada página */

#servicios h2,
#galeria-page h2,
#contacto-page h2,
#personal h2,
#especialidades h2 {
    margin-top: 3rem; /* <-- PUEDES CAMBIAR ESTE NÚMERO */
}

/* --- Servicios (Inicio) --- */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.servicio-card {
    background: var(--dark-gray);
    padding: 2rem;
    text-align: center;
    border: 1px solid #333;
    transition: transform 0.3s ease;
}

.servicio-card:hover {
    transform: translateY(-5px);
}

.servicio-card h3 {
    font-size: 1.5rem;
    color: var(--light-color);
}

.servicio-card .precio {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* --- Galería --- */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem; /* Un poco más de separación */
}

.galeria-item {
    aspect-ratio: 1 / 1; 
    border: 3px solid var(--dark-gray);
    overflow: hidden; 
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.galeria-item:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center; 
}

/* --- Contacto --- */
#contacto-page .subtitulo {
    text-align: center;
    max-width: 600px;
    margin: -1rem auto 3rem auto;
    font-size: 1.1rem;
}

.contacto-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background: var(--dark-gray);
    padding: 2rem;
    border: 1px solid #333;
}

.info-contacto p {
    margin-bottom: 1rem;
}

.info-contacto hr {
    border: 0;
    border-top: 1px solid #444;
    margin: 1.5rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    background: #333;
    border: 1px solid #555;
    color: var(--light-color);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.form-group-checkbox input {
    margin-right: 10px;
}

.form-group-checkbox label {
    font-size: 0.9rem;
}

.form-group-checkbox a {
    text-decoration: underline;
}

button[type="submit"] {
    width: 100%;
    text-transform: uppercase;
}


/* --- Footer --- */
footer {
    background: var(--dark-gray);
    color: #aaa;
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid #333;
}

footer a {
    color: #aaa;
}

footer a:hover {
    color: var(--primary-color);
}

/* --- Estilos para el Menú Hamburguesa --- */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: background-color 0.3s ease;
}

/* --- Responsive Design --- */
@media(max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 65px;
        left: 0;
        width: 100%;
        background: var(--dark-gray);
        padding: 1rem 0;
        border-top: 1px solid #333;
    }

    nav.nav-active ul {
        display: flex;
    }

    nav ul li {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    nav ul li a {
        display: block;
        padding: 1rem 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .contacto-wrapper {
        grid-template-columns: 1fr;
    }
}

/* --- Floating WhatsApp Button --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.4);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: white;
}

/* ================================== */
/* === ESTILOS PARA NUEVAS SECCIONES === */
/* ================================== */

/* --- Estilos para la sección "Nuestro Personal" --- */
.personal-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2.5rem;
    align-items: left;
}

.personal-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border: 1px solid #444;
}

.personal-texto {
    text-align: left;
}

.personal-texto h3 {
    font-size: 20px;
    color: var(--light-color);
}

.personal-texto p {
    margin-bottom: 1rem;
    font-size: 18px;
}

/* --- Estilos para la sección "Especialidades" --- */
.especialidad-card {
    background: var(--dark-gray);
    padding: 2rem;
    text-align: center;
    border: 1px solid #333;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.especialidad-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.especialidad-icono {
    margin-bottom: 1.5rem;
}

.especialidad-icono svg {
    width: 64px;
    height: 64px;
    fill: var(--light-color); /* Cambiado a blanco según solicitado */
}

.especialidad-card h3 {
    font-size: 1.5rem;
    color: var(--light-color);
    margin-bottom: 0.5rem;
}

.especialidad-card p {
    font-size: 1rem;
    color: #aaa;
}

/* --- Responsive para las nuevas secciones --- */
@media(max-width: 768px) {
    .personal-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .personal-img {
        max-width: 300px;
        margin: 0 auto 2rem auto;
    }
}