:root {
    --color-plum: #973A5E;
    --color-green: #466F4C;
    --color-magenta: #C2055C;
    --color-gray: #5C5F58;
    --color-black: #070907;
    --color-light: #f4f7f6;
    --color-white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
body { color: var(--color-black); background-color: var(--color-light); line-height: 1.6; scroll-behavior: smooth; }
a { text-decoration: none; transition: 0.3s; }

/* HEADER */
header {
    background: var(--color-white);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}
.logo { font-size: 24px; font-weight: 800; color: var(--color-green); text-transform: uppercase; }
.logo span { color: var(--color-magenta); }

nav ul { display: flex; list-style: none; gap: 25px; }
nav a { color: var(--color-gray); font-weight: 500; }
nav a:hover { color: var(--color-magenta); }

.btn-cita {
    background: var(--color-magenta);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
}
.btn-cita:hover { background: var(--color-plum); transform: scale(1.05); }

/* HERO SECTION */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(7,9,7,0.6), rgba(7,9,7,0.6)), url('https://images.unsplash.com/photo-1629909613654-28e377c37b09?auto=format&fit=crop&q=80&w=2070') center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}
.hero h1 { font-size: 3.5rem; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; max-width: 700px; margin-bottom: 30px; }

/* SLIDER (PRO) */
.slider-container {
    width: 100%;
    overflow: hidden;
    background: var(--color-white);
    padding: 60px 0;
}
.slider {
    display: flex;
    width: 300%;
    animation: slide 15s infinite ease-in-out;
}
.slide {
    width: 100.33%;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0 5%;
}
.slide img {
    width: 100%;
    max-width: 1000px;
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
@keyframes slide {
    0% { transform: translateX(0); }
    30% { transform: translateX(0); }
    33% { transform: translateX(-33.33%); }
    63% { transform: translateX(-33.33%); }
    66% { transform: translateX(-66.66%); }
    96% { transform: translateX(-66.66%); }
    100% { transform: translateX(0); }
}

/* INFO BAR (HORARIO, TEL, DIR) */
.info-bar {
    background: var(--color-green);
    color: white;
    padding: 30px 5%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    text-align: center;
}
.info-item i { font-size: 2rem; margin-bottom: 10px; color: #fff; }
.info-item h4 { margin-bottom: 5px; text-transform: uppercase; letter-spacing: 1px; }

/* SERVICES */
.services { padding: 100px 5%; text-align: center; }
.services h2 { font-size: 2.5rem; color: var(--color-plum); margin-bottom: 50px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
    border-bottom: 5px solid transparent;
}
.card:hover { transform: translateY(-10px); border-color: var(--color-magenta); }
.card i { font-size: 3rem; color: var(--color-green); margin-bottom: 20px; }

 /* NUEVO MÓDULO: DOCTORES / EQUIPO */
        .team-section {
            padding: 100px 5%;
            text-align: center;
            background-color: var(--color-light);
        }
        .team-section h2 {
            font-size: 2.5rem;
            color: var(--color-plum);
            margin-bottom: 50px;
        }
        .team-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 30px;
            max-width: 1200px;
            margin: 0 auto;
        }
        .doctor-card {
            background: var(--color-white);
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            border-top: 5px solid var(--color-green);
        }
        .doctor-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 35px rgba(0,0,0,0.1);
        }
        .doctor-img-container {
            width: 100%;
            height: 320px;
            overflow: hidden;
            background: #eef2f1;
        }
        .doctor-card img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        .doctor-card:hover img {
            transform: scale(1.05);
        }
        .doctor-info {
            padding: 25px 20px;
        }
        .doctor-info h3 {
            color: var(--color-black);
            font-size: 1.4rem;
            margin-bottom: 5px;
        }
        .doctor-role {
            color: var(--color-magenta);
            font-weight: 600;
            font-size: 0.95rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 15px;
        }
        .doctor-bio {
            color: var(--color-gray);
            font-size: 0.9rem;
            line-height: 1.5;
        }


/* CONTACT & MAP */
.contact-section {
    display: flex;
    flex-wrap: wrap;
    background: var(--color-white);
}
.contact-info { flex: 1; min-width: 300px; padding: 80px 5%; background: var(--color-black); color: white; }
.contact-info h2 { color: var(--color-magenta); margin-bottom: 30px; }
.map-container { flex: 1; min-width: 300px; min-height: 400px; background: #ddd; }

/* FOOTER */
footer { background: #000; color: #888; padding: 40px 5%; text-align: center; border-top: 1px solid #222; }

@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    header { padding: 15px 20px; }
    nav { display: none; }
    .slide img { height: 300px; }
}

.reviews-section {
    padding: 80px 5%;
    text-align: center;
    background-color: var(--color-white);
}
.reviews-section h2 { color: var(--color-plum); margin-bottom: 40px; }
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}
.review-card {
    background: var(--color-light);
    padding: 30px;
    border-radius: 15px;
    text-align: left;
    transition: 0.3s;
    border: 1px solid #eee;
}
.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.stars { color: #FFD700; margin-bottom: 15px; font-size: 1.2rem; }
.review-card p {
    font-style: italic;
    color: var(--color-gray);
    margin-bottom: 20px;
    font-size: 0.95rem;
}
.author { display: flex; align-items: center; gap: 12px; }
.author img { width: 40px; height: 40px; border-radius: 50%; }
.author span { font-weight: 600; color: var(--color-black); }
.google-link {
    display: inline-block;
    color: var(--color-gray);
    font-weight: 500;
    border-bottom: 2px solid var(--color-magenta);
    padding-bottom: 5px;
}

/* BANNER DE COOKIES OPTIMIZADO */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 350px;
    background: var(--color-white);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-left: 5px solid var(--color-green);
    transform: translateY(150%);
    transition: transform 0.5s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { font-size: 0.85rem; color: var(--color-gray); line-height: 1.4; }
.cookie-banner a { color: var(--color-green); text-decoration: underline; font-weight: 600; }
.cookie-buttons { display: flex; gap: 10px; }
.btn-cookie-accept {
    background: var(--color-magenta);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    flex: 1;
}
.btn-cookie-refuse {
    background: transparent;
    color: var(--color-gray);
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
}

@media (max-width: 480px) {
    .cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
    }
}