﻿:root {
    --primary: #0061f2;
    --warning: #f4c23d;
    --dark: #0b1f3a;
    --text: #f5f5f5;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
}

/* NAV */
.navbar {
    background: rgba(255,255,255,0.98) !important;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.nav-link {
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

    .nav-link:hover,
    .nav-link.active {
        color: var(--warning) !important;
    }

    .nav-link:after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: -2px;
        left: 50%;
        background: var(--warning);
        transition: all 0.3s ease;
    }

    .nav-link:hover:after {
        width: 100%;
        left: 0;
    }

/* Logo */
.brand-logo {
    width: 44px;
    height: 44px;
    font-size: 22px;
    font-weight: bold;
    flex-shrink: 0;
    transition: transform 0.4s ease;
}

    .brand-logo:hover {
        transform: rotate(12deg) scale(1.08);
    }

/* HERO */
.hero-bg {
    background: linear-gradient(rgba(11,31,58,0.78), rgba(11,31,58,0.78)), url('https://i.postimg.cc/pdH07BzL/702564591-27187318697529105-893506183839295575-n.jpg') center/cover no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: black;
    padding-top: 76px;
    padding-bottom: 60px;
    transition: background-position 8s ease;
}

    .hero-bg:hover {
        background-position: center 40%;
    }

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    transition: all 0.6s ease;
}

.hero-buttons .btn {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

    .hero-buttons .btn:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 25px rgba(244, 194, 61, 0.3);
    }

/* SECCIONES GENERALES */
.section-light {
    background: #f8f9fa;
    padding-top: 80px;
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: black;
    padding-top: 76px;
    padding-bottom: 60px;
    transition: all 0.5s ease;
}

/* TARJETAS */
.doctor-card {
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    overflow: hidden;
}

    .doctor-card:hover {
        transform: translateY(-15px);
        box-shadow: 0 25px 50px rgba(0,0,0,0.15) !important;
    }

/* BOTONES */
.btn-warning {
    background-color: #f4c23d;
    border-color: #f4c23d;
    color: #000;
    font-weight: 600;
    transition: all 0.4s ease;
}

    .btn-warning:hover {
        background-color: #e0b02c;
        border-color: #e0b02c;
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(244, 194, 61, 0.4);
    }

/* HORARIOS */
#horasContainer button {
    padding: 10px 16px;
    margin: 4px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}

    #horasContainer button:hover {
        border-color: #f4c23d;
        background: #fff9e6;
        transform: scale(1.05);
    }

    #horasContainer button.active {
        background: #f4c23d;
        color: #000;
        border-color: #f4c23d;
        transform: scale(1.08);
        box-shadow: 0 6px 15px rgba(244, 194, 61, 0.3);
    }

/* CARRUSEL */
.carousel-item img {
    height: 520px;
    object-fit: cover;
    transition: transform 6s ease;
}

.carousel-item.active img {
    transform: scale(1.03);
}

/* =====================
   RESPONSIVE BREAKPOINTS
   ===================== */

@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-bg {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .carousel-item img {
        height: 340px;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.9rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .brand-logo {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
}

/* Flatpickr */
.flatpickr-calendar {
    box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important;
    border-radius: 12px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
