@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800;900&display=swap');

/* variables */
:root{
    --litte-red-color: #f05454;
    --light-blue-color: #16c5ff;
    --dark-color: #3b3838;
    --clear-gray: #a1a1a0;
    --light-gray: #c4c4c4;
    --dark-gray: #a1a1a0;
    --light-color: #fff;
    --poppins-font: 'Poppins', sans-serif;
    --transition: all 0.3s ease-in-out;
    --box-shadow: 0 0 15px 2px rgba(0, 0, 0, 0.2)!important;
}

/* some resets */
*{
    padding: 0;
    margin: 0;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
}
html{
    font-size: 10px;
    scroll-behavior: smooth;
}
body{
    font-size: 1.6rem;
    line-height: 1.6;
    font-family: var(--poppins-font);
}
/* prevent background scroll when mobile nav is open */
body.no-scroll{ overflow: hidden; }
img{
    width: 100%;
    display: block;
}
ul{
    list-style: none;
}
a{
    text-decoration: none;
    color: var(--dark-color);
}
.bg-blue{ background: linear-gradient(180deg, rgba(160,160,160,0.95) 0%, rgba(160,160,160,0.9) 100%); }
.bg-white{
    background-color: var(--light-color);
}
.text-white{
    color: var(--light-color);
}

/* button */
.btn, button{
    border: none;
    cursor: pointer;
}
.btn{
    padding: .9rem 4rem;
    border-radius: 3rem;
    display: inline-block;
    background-color: var(--light-color);
    font-weight: 500;
    -webkit-box-shadow: 0 0 7px 2px rgba(0, 0, 0, 0.2);
            box-shadow: 0 0 7px 2px rgba(0, 0, 0, 0.2);
    -webkit-transition: var(--transition);
    -o-transition: var(--transition);
    transition: var(--transition);
}
.btn-light-blue{
    background-color: var(--litte-red-color);
    color: var(--light-color);
}
.btn-group{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}
.btn-group .btn{
    width: 100%;
}

.btn:hover{
    -webkit-box-shadow: var(--box-shadow);
            box-shadow: var(--box-shadow);
}
.btn.hovered { transform: scale(1.05); }

.container{
    max-width: 95vw;
    margin: 0 auto;
    padding: 0 1rem;
}
.flex{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}
.grid{
    display: grid;
}
input{
    outline: 0;
}
.lead{
    font-size: 25px;
    text-transform: capitalize;
}
h1, h2, h3{
    text-transform: capitalize;
    margin-top: 0;
    line-height: 1.3;
}
.text{
    opacity: 0.9;
}
.text-md{
    font-size: 1.5rem;
}
.text-lg{
    font-size: 2rem;
    font-weight: 500;
}
.text-sm{
    font-size: 1.3rem;
}
.py{
    padding: 10.9rem 0;
}
.text-center{
    text-align: center;
}

/* header */
/* Navbar */
body { padding-top: 72px; }
.navbar{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: .8rem 0;
    z-index: 999;
    backdrop-filter: saturate(120%) blur(2px);
    transition: box-shadow .2s ease, background-color .2s ease;
}
.navbar.scrolled{ box-shadow: 0 6px 20px rgba(0,0,0,.15); background: rgba(160,160,160,0.98); }
.navbar .container{
    justify-content: space-between;
}
.navbar-brand img{ width: 210px; transition: transform .25s ease; }
.navbar-brand img:hover{ transform: scale(1.03); }
.navbar-show-btn, .navbar-hide-btn{
    background-color: transparent;
    width: 30px;
    -webkit-transition: var(--transition);
    -o-transition: var(--transition);
    transition: var(--transition);
}
button[class ^= navbar]:hover{
    -webkit-transform: scale(1.1);
        -ms-transform: scale(1.1);
            transform: scale(1.1);
}

.navbar-collapse{
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh; /* ensure it covers the full viewport */
    padding: 8rem 3rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-shadow: -3px 0 20px 8px rgba(0, 0, 0, 0.1);
        box-shadow: -3px 0 20px 8px rgba(0, 0, 0, 0.1);
    -webkit-transform: translateX(110%);
        -ms-transform: translateX(110%);
            transform: translateX(110%);
    -webkit-transition: var(--transition);
    -o-transition: var(--transition);
    transition: var(--transition);
    z-index: 1000;
    overflow-y: auto; /* allow menu content to scroll if taller than viewport */
    -webkit-overflow-scrolling: touch;
}
/* navbar show class */
.navbar-show{
    -webkit-transform: translateX(0);
        -ms-transform: translateX(0);
            transform: translateX(0);
}
.navbar-hide-btn{
    position: absolute;
    right: 2rem;
    top: 4.5rem;
}
.nav-item{
    margin: 1.2rem 0;
}
.nav-link{
    opacity: 0.95;
    font-weight: 600;
    padding: .8rem 0;
    transition: color .2s ease, transform .2s ease;
    display: inline-block;
}
.nav-link:hover{
    opacity: 1;
    color: var(--litte-red-color);
    transform: translateX(6px);
}

/* header inner */
.header-inner{
    padding-top: 16rem;
}
.header-inner-left h1{
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: 0;
}
.header-inner-left h1 span{
    font-weight: 600;
    text-transform: uppercase;
}
.header-inner-left .lead{
    opacity: 0.9;
}
.header-inner-left .text{
    margin: 5.8rem 0;
    max-width: 500px;
    margin-right: auto;
    margin-left: auto;
}
.header-inner-left .btn-group{
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}
.header-inner-right{ margin-top: 6rem; }
.header-inner-right img{
    max-width: 520px;
    margin: 10rem 0;
    margin-right: auto;
    margin-left: auto;
}
/* services section (simplified) */
.line-art{
    max-width: 240px;
    margin: auto;
}
.line-art img{
    width: 30px;
}
.line-art div{
    width: 100px;
    height: 2px;
    background-color: var(--light-gray);
}

/* Objetivos section */
#objetivos { padding: 8rem; }
#objetivos .section-title{ text-align: center; }
.services-inner{ padding: 6rem 0; }
.service-item{ padding: 3rem; margin-bottom: 3rem; }
.service-item:last-child{ margin-bottom: 0; }
.service-item .icon img{
    width: 80px;
    margin: auto;
}
.service-item h3{
    margin: 5rem 0;
    opacity: 0.7;
}
/* CTA button enhancements */
.nav-cta{
    background: var(--litte-red-color);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,.15);
    transition: transform .2s ease, box-shadow .2s ease;
}
.nav-cta:hover{ transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.25); }

/* footer */
.footer{
    background-color: var(--dark-color);
}
.footer-item{
    margin-bottom: 6rem;
}
.footer-item:last-child{
    margin-bottom: 0;
}
.footer-head{
    text-transform: uppercase;
    font-weight: 500;
    font-size: 2.4rem;
    margin-bottom: 4rem;
}
.footer-item .icon{
    width: 120px;
    margin: auto;
}
.footer-item .text{
    padding: 3rem 0;
    max-width: 500px;
    margin-right: auto;
    margin-left: auto;
}
.footer-item address{
    font-size: 1.5rem;
    font-style: normal;
}
.footer-item .tags-list{
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
}
.footer-item .tags-list li{
    margin: .5rem 1rem;
    padding: .5rem 1rem;
    background-color: rgb(58, 58, 58);
    border-radius: .4rem;
}
.footer-item a{
    margin-bottom: 1rem;
    display: inline-block;
    -webkit-transition: var(--transition);
    -o-transition: var(--transition);
    transition: var(--transition);
}
.footer-item a:hover{
    color: var(--dark-gray);
}
.footer-item:last-child .text{
    padding-top: 0;
}
.footer-item .appointment-info li{
    margin: 1rem 0;
}
.footer-item .appointment-info li span{
    margin-left: 1rem;
}
.footer-links{
    border-top: 2px solid var(--dark-gray);
    padding: 4.5rem 0;
}
.footer-links li{
    margin: 0 2.4rem;
    font-size: 2rem;
}
.footer-links li a{
    height: 40px;
    width: 40px;
    border-radius: 50%;
    border: 2px solid var(--light-color);
    -webkit-transition: var(--transition);
    -o-transition: var(--transition);
    transition: var(--transition);
}
.footer-links li a:hover{
    background-color: var(--light-color);
    color: var(--litte-red-color);
}

/* Carrusel (Noticias) */
.noticias-section {
    padding: 8rem;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}
.noticias-section .news-title{ text-align: center; }
.carousel-row{ display: flex; align-items: center; justify-content: center; gap: 1rem; width: 100%; }
.carousel-images {
    display: grid;
    grid-template-columns: 1fr;
    width: min(900px, 90vw);
    height: clamp(200px, 35vw, 380px);
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    background: #fff;
}
.carousel-img {
    display: none;
    object-fit: cover;
    width: 100%;
    height: 100%;
    animation: fadeIn .4s ease-in;
}
.carousel-img.active { display: block; }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
.carousel-btn {
    background: var(--light-blue-color);
    color: #fff;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 2rem;
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform .2s;
}
.carousel-btn:hover { background: var(--litte-red-color); transform: scale(1.05); }

/* Nosotros section */
#nosotros { padding: 8rem; }
#nosotros .section-title{ text-align: center; margin-bottom: 2rem; }
.nosotros-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}
.nosotros-grid video{ width: 100%; height: auto; border-radius: .6rem; box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.nosotros-grid audio{ width: 100%; }
@media(max-width: 900px){ .nosotros-grid{ grid-template-columns: 1fr; } }

/* Formulario contacto */
#contacto { padding: 8rem; }
#contacto h2{ text-align: center; margin-bottom: 1.6rem; }
.contact-form{ display: grid; grid-template-columns: 1fr; gap: 1rem 2rem; max-width: 1000px; margin: 0 auto; }
.form-row{ display: flex; flex-direction: column; }
.form-row--full{ grid-column: 1 / -1; }
.form-actions{ margin-top: .5rem; }
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%;
    margin-bottom: 1rem;
    border-radius: .5rem;
    border: 1px solid var(--light-gray);
    font-family: var(--poppins-font);
    font-size: 1.4rem;
    transition: box-shadow 0.3s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
    box-shadow: 0 0 5px var(--light-blue-color);
}
.contact-form button {
    width: 100%;
}

@media (min-width: 768px){
    .contact-form{ grid-template-columns: 1fr 1fr; }
}


.reservation-container,
.reservation-container-2 {
    background-color: var(--litte-red-color);
    color: #fff;
    padding: 1rem;
}
.reservation-container-2 { background-color: #f08989; }
.filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem;
    justify-content: center;
}
.filters h2 { flex: 1 0 100%; text-align: center; }
.filter { display: flex; flex-direction: column; min-width: 180px; }
.filter label { margin-bottom: .4rem; }
.filter select {
    padding: .8rem;
    border-radius: .5rem;
    border: 1px solid var(--light-gray);
}
#searchBtn {
    padding: .8rem 1.6rem;
    background: #b1a4a4;
    color: #fff;
    border-radius: 2rem;
}
#searchBtn:hover { background: #00405f; }
.search-fields {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.search-fields input {
    padding: .8rem;
    border-radius: .5rem;
    border: 1px solid var(--light-gray);
}

/* Doctor cards */
.doctor-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,.1);
    margin: 1.2rem auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-width: 980px;
}
.doctor-info { display: flex; gap: 1.6rem; padding: 1.6rem; border-bottom: 1px solid #eee; }
.doctor-info img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.doctor-info h2 { margin: 0 0 .5rem 0; }
.doctor-info p { margin: .2rem 0; color: #555; }
.schedule { display: flex; flex-wrap: wrap; padding: 1rem; gap: .6rem; }
.day, .time { background: #f08989; color: #fff; border-radius: 4px; padding: .6rem .8rem; text-align: center; }
.day { background: var(--litte-red-color); font-weight: 600; }

/* Responsive */
@media (max-width: 600px) {
    .carousel-images { width: 90vw; height: 45vw; }
    .doctor-info { flex-direction: column; align-items: center; text-align: center; }
}

@media(min-width: 450px){
    .navbar-collapse{
        width: 320px;
    }
    .btn-group .btn{
        width: auto;
    }
    .btn-group .btn:first-child{
        margin-right: 48px;
        margin-bottom: 0;
    }
    .border-line{
        width: 405px;
    }

}

@media(min-width: 768px){
    .header-inner-left h1{
        font-size: 5.7rem;
    }
    .services-inner{
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-inner{
        grid-template-columns: repeat(2, 1fr);
        -webkit-column-gap: 6rem;
           -moz-column-gap: 6rem;
                column-gap: 6rem;
    }
    .footer-inner{ text-align: left; }
    .footer-item .icon, .footer-item .text{
        margin-left: 0;
    }
    .footer-item .tags-list{
        -webkit-box-pack: start;
            -ms-flex-pack: start;
                justify-content: flex-start;
    }
}

@media(min-width: 992px){
    .header-inner{
        padding-top: 3.2rem;
    }
    .header-inner .container{
        grid-template-columns: 545px auto;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
        height: calc(100vh - 32px);
        position: relative;
    }
    .header-inner-left{
        text-align: left;
    }
    .header-inner-left .text{
        margin-left: 0;
    }
    .header-inner-left .btn-group{
        -webkit-box-pack: start;
            -ms-flex-pack: start;
                justify-content: start;
    }
    .header-inner-right img{
        position: absolute;
        bottom: 0;
        right: 0;
        padding-left: 5rem;
    }
}

@media(min-width: 1200px){
    .navbar-show-btn, .navbar-hide-btn{
        display: none;
    }
    .navbar-collapse{
        -webkit-transform: translateX(0);
            -ms-transform: translateX(0);
                transform: translateX(0);
        position: relative;
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
            -ms-flex-direction: row;
                flex-direction: row;
        -webkit-box-pack: end;
            -ms-flex-pack: end;
                justify-content: flex-end;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
        width: 100%;
        height: auto;
        padding: 0;
        background-color: transparent;
        -webkit-box-shadow: none;
                box-shadow: none;
        -webkit-transition: none;
        -o-transition: none;
        transition: none;
    }
    .navbar-nav{
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
    }
    .nav-item{
        margin: 0;
        margin-left: 3.5rem;
    }
    .nav-link{
        color: var(--light-color);
        opacity: 1;
        font-weight: 500;
        position: relative;
    }
    .nav-link::after{
        content: "";
        position: absolute;
        top: 100%;
        left: 0;
        height: 2px;
        width: 0;
        background-color: var(--light-color);
        opacity: 0;
        -webkit-transition: var(--transition);
        -o-transition: var(--transition);
        transition: var(--transition);
    }
    .nav-link:hover{
        -webkit-transform: none;
            -ms-transform: none;
                transform: none;
        color: var(--light-color);
    }
    .nav-link:hover::after{
        opacity: 1;
        width: 100%;
    }
    .header-inner-right{
        width: 100%;
    }
    .header-inner-right img{
        padding-left: 0;
        max-width: 647px;
    }
    .services-inner{ grid-template-columns: repeat(4, 1fr); column-gap: 2rem; }
    .service-item{
        margin-bottom: 0;
    }
    .footer-inner{
        grid-template-columns: repeat(4, 1fr);
        -webkit-column-gap: 6rem;
           -moz-column-gap: 6rem;
                column-gap: 6rem;
    }
}

@media(min-width: 1480px){
    /* general */
    .container{
        max-width: 81vw;
    }
}

/* transition and animation stopper */
.resize-animation-stopper *{
    -webkit-animation: none!important;
            animation: none!important;
    -webkit-transition: none!important;
    -o-transition: none!important;
    transition: none!important;
}