/* style.css - V3 RESPONSIVE */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;700&display=swap');

:root {
    --bg-color: #f9f3ed;
    --primary-color: #183d4c;
    --accent-color: #d5bdaf;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.95);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--primary-color);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.8;
    overflow-x: hidden;
}

/* Tipografía Base */
h1, h2, h3, h4 {
    font-weight: 300;
    margin: 0 0 20px 0;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--accent-color);
    margin: 20px auto 0;
}

/* CABECERA Y NAVEGACIÓN */
header {
    background: var(--glass);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 2px;
    color: var(--primary-color);
    text-transform: uppercase;
    z-index: 1001; /* Por encima del menú móvil */
}

/* Menú Escritorio por defecto */
nav {
    display: flex;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--primary-color);
    margin-left: 25px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    position: relative;
}

/* Botón Hamburguesa (Oculto en escritorio) */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
    z-index: 1001;
}

/* Botón Reservar */
.btn-reservar {
    background-color: var(--accent-color);
    color: var(--primary-color) !important;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    margin-left: 20px;
    border: 2px solid var(--accent-color);
    transition: all 0.3s ease;
    animation: pulse-gold 2s infinite;
}

.btn-reservar:hover {
    background: transparent;
    color: var(--primary-color);
}

/* SECCIONES */
.hero {
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding: 0 20px;
    position: relative;
}

/* Capa oscura sobre el hero para leer texto */
.hero::before {
    content: '';
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.3);
    z-index: 1;
}

.hero > div {
    z-index: 2;
    position: relative;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 100;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.section-padding {
    padding: 80px 10%;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 40px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color);
    margin-top: 20px;
}

/* GRID SYSTEM */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

/* Cards */
.service-card {
    background: var(--white);
    transition: transform 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.service-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.service-info {
    padding: 25px;
    flex-grow: 1;
}

/* Categorías */
.category-block {
    margin-bottom: 60px;
}
.category-title {
    border-left: 4px solid var(--accent-color);
    padding-left: 15px;
    color: var(--primary-color);
}

/* EQUIPO */
.team-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}
.team-member {
    text-align: center;
    width: 200px;
}
.team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    margin: 0 auto 15px;
    border: 3px solid var(--accent-color);
}

/* UBICACIÓN */
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    min-height: 400px;
}
.clinic-collage {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    height: 100%;
}
.collage-main { grid-row: 1 / span 2; background-size: cover; background-position: center; }
.collage-sub { background-size: cover; background-position: center; }
.map-container iframe { width: 100% !important; height: 100% !important; border:0; min-height: 300px; }

/* RESEÑAS Y MARCAS */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.review-card {
    background: var(--white);
    padding: 30px;
    border-top: 3px solid var(--accent-color);
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}
.brands-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    align-items: center;
}
.brand-logo {
    max-height: 50px;
    max-width: 120px;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: 0.3s;
}
.brand-logo:hover { filter: grayscale(0); opacity: 1; }

/* FOOTER */
.footer {
    background-color: var(--primary-color);
    color: var(--bg-color);
    padding: 60px 10% 20px;
    text-align: center;
}
.copyright {
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* ANIMACIONES */
@keyframes pulse-gold {
    0% { box-shadow: 0 0 0 0 rgba(213, 189, 175, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(213, 189, 175, 0); }
    100% { box-shadow: 0 0 0 0 rgba(213, 189, 175, 0); }
}

/* =========================================
   MÓVIL / RESPONSIVE (MEDIA QUERIES)
   ========================================= */
@media (max-width: 768px) {
    
    /* Header Móvil */
    header {
        padding: 15px 20px;
    }

    .menu-toggle {
        display: block; /* Mostrar icono hamburguesa */
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        border-top: 1px solid #eee;
        display: none; /* Oculto por defecto */
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }

    /* Clase que añade JS para mostrar menú */
    nav.active {
        display: flex;
    }

    nav a {
        margin: 10px 0;
        font-size: 1rem;
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    .btn-reservar {
        margin: 15px 0;
        display: inline-block;
        width: auto;
    }

    /* Hero Móvil */
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; padding: 0 10px; }
    .hero { height: 70vh; background-attachment: scroll; /* Parallax a veces falla en móvil */ }

    /* Secciones */
    .section-padding { padding: 60px 5%; }
    
    h2 { font-size: 2rem; }

    /* Grid General */
    .services-grid {
        grid-template-columns: 1fr; /* Una sola columna */
    }

    /* Sobre Nosotros */
    #experiencia .services-grid {
        grid-template-columns: 1fr !important;
    }
    #experiencia img { margin-bottom: 20px; }

    /* Ubicación (Collage y Mapa) */
    .location-grid {
        grid-template-columns: 1fr; /* Columna única */
        height: auto;
    }
    
    .clinic-collage {
        height: 300px; /* Altura fija para el collage en móvil */
    }
    
    .map-container {
        height: 300px; /* Altura fija para el mapa en móvil */
    }

    /* Marcas */
    .brands-container { gap: 20px; }
    .brand-logo { max-height: 40px; }
}