/* ------------------------------
   BASE
------------------------------ */

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background: #f5f7fb; /* NUEVO */
}

.section {
    padding: 90px 0;
}

.section-title {
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center; /* NUEVO */
}

/* ------------------------------
   NAVBAR
------------------------------ */

.navbar {
    padding: 18px 0;
}

.navbar-brand {
    font-weight: 600;
    color: #2c7a7b;
}

.navbar .nav-link {
    font-weight: 500;
    color: #333;
    transition: 0.2s;
}

.navbar .nav-link:hover {
    color: #2c7a7b;
}

/* botón navbar (NUEVO) */
.navbar .btn-main {
    background: #38b2ac;
    border: none;
    padding: 10px 22px;
    transition: 0.3s;
}

.navbar .btn-main:hover {
    background: #2c7a7b;
}

/* ------------------------------
   DROPDOWN
------------------------------ */

.dropdown-menu {
    border: none;
    border-radius: 14px;
    padding: 12px;
    margin-top: 10px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    min-width: 220px;
}

.dropdown-item {
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 500;
    color: #333;
    transition: all 0.25s ease;
}

.dropdown-item:hover {
    background: #f0fdfa;
    color: #2c7a7b;
    transform: translateX(4px);
}

.dropdown-toggle::after {
    margin-left: 6px;
}

@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

/* ------------------------------
   HERO
------------------------------ */

.hero {
    background: linear-gradient(rgba(44,122,123,0.85), rgba(44,122,123,0.85)),
        url("https://images.unsplash.com/photo-1576091160550-2173dba999ef");
    background-size: cover;
    background-position: center;
    color: white;
    padding: 140px 0;
    text-align: center;
}

.hero h1 {
    font-size: 52px;
    font-weight: 700;
}

.hero p {
    font-size: 18px;
    opacity: 0.9;
}

/* HERO BOOKING */

.hero-booking {
    position: relative;
    min-height: 70vh;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
    color: white;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    overflow: hidden;
}

/* overlay encima de la imagen */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* contenido encima de todo */
.hero-booking .container {
    position: relative;
    z-index: 2;
}

.hero-booking h1 {
    font-size: 52px;
    font-weight: 700;
}

.hero-booking p {
    font-size: 18px;
    opacity: 0.9;
}

/* ------------------------------
   BOTONES
------------------------------ */

.btn-main {
    background: #38b2ac;
    border: none;
    padding: 12px 28px;
    transition: 0.25s;
}

.btn-main:hover {
    background: #2c7a7b;
}

/* NUEVO */
.btn-primary {
    background-color: #38b2ac;
    border: none;
}

.btn-primary:hover {
    background-color: #2c7a7b;
}

/* ------------------------------
   BOOKING
------------------------------ */

.booking-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

/* horarios */
.time-slot {
    border: 1px solid #dee2e6;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: 0.25s;
}

.time-slot:hover {
    background: #38b2ac;
    color: white;
    border-color: #38b2ac;
}

.time-selected {
    background: #38b2ac;
    color: white;
}

/* doctor */
.doctor-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.doctor-box {
    text-align: center;
    margin-bottom: 30px;
}

/* inputs */
.form-control,
.form-select {
    border-radius: 8px;
    padding: 10px;
}

/* ------------------------------
   SERVICIOS
------------------------------ */

.service-card {
    border: none;
    border-radius: 15px;
    padding: 35px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: 0.3s;
    background: white;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.service-icon {
    font-size: 40px;
    color: #38b2ac;
    margin-bottom: 20px;
}

/* ------------------------------
   PROBLEMAS
------------------------------ */

.problem-item {
    background: white;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.05);
    position: relative;
    padding-left: 45px;
    font-weight: 500;
    transition: 0.25s;
}

.problem-item::before {
    content: "✓";
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: #38b2ac;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.problem-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.08);
}

/* ------------------------------
   EQUIPO
------------------------------ */

.team img {
    width: 140px;
    border-radius: 50%;
    margin-bottom: 15px;
}

/* ------------------------------
   CTA
------------------------------ */

.cta {
    background: #38b2ac;
    color: white;
    padding: 80px 0;
    text-align: center;
}

/* ------------------------------
   FOOTER
------------------------------ */

footer {
    background: #1a202c;
    color: white;
    padding: 40px 0;
    text-align: center; /* NUEVO */
}

/* CONTENEDOR MÁS ANCHO */
.team-slider {
    max-width: 700px;
    margin: 0 auto;
    position: relative; /* IMPORTANTE */
}

/* TARJETA MÁS GRANDE */
.team-card {
    background: white;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    transition: 0.3s;
}

/* FOTO MÁS GRANDE */
.team-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
}

/* TEXTO MÁS LEGIBLE */
#teamDesc {
    color: #555;
    line-height: 1.7;
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto;
}

/* FLECHAS MÁS SEPARADAS */
.team-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    background: #38b2ac;
    border: none;
    color: white;

    width: 45px;
    height: 45px;
    border-radius: 50%;

    cursor: pointer;
    transition: 0.3s;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 10;
}

.team-arrow:hover {
    background: #38b2ac;
    color: white;
}

.team-arrow.left {
    left: 10px;
}

.team-arrow.right {
    right: 10px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .team-slider {
        max-width: 90%;
    }

    .team-card {
        padding: 40px 20px;
    }

    .team-arrow.left {
        left: -20px;
    }

    .team-arrow.right {
        right: -20px;
    }
}

.team-card:hover {
    transform: translateY(-5px);
}

.map-wrapper {
    width: 90%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    margin: 30px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ------------------------------
   PERFIL
------------------------------ */

.profile-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.profile-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #38b2ac;
}

/* menú lateral */
.profile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.profile-menu li {
    padding: 10px 0;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: 0.2s;
}

.profile-menu li:hover {
    color: #38b2ac;
}

.profile-menu .active {
    font-weight: 600;
    color: #38b2ac;
}

/* contenido */
.profile-content {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

/* citas */
.appointment-card {
    background: #f9fbfc;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-left: 4px solid #38b2ac;
}

.appointment-card h6 {
    margin: 0;
    font-weight: 600;
}

.appointment-card p {
    margin: 0;
    font-size: 14px;
    color: #555;
}

.appointment-card span {
    font-size: 13px;
    color: #888;
}