/*
  estilos-index.css
  ------------------
  Estilos generales para la página principal, navbar, banners, cards, botones y footer.
  Incluye reglas responsive y tipografía base para todo el sitio.
*/

/*  Reset y tipografía base */
* {
    box-sizing: border-box;
    /* Asegura que padding y border no aumenten el tamaño total del elemento */
    margin: 0;
    /* Elimina márgenes predeterminados */
    font-family: Raleway, sans-serif;
    /* Fuente base del sitio */
}

/* 🌍 Configuración del HTML y body */
html,
body {
    max-width: 100vw;
    /* Evita desbordamiento horizontal */
    overflow-x: hidden;
    /* Oculta scroll horizontal */
}

body {
    min-height: 100vh;
    /* Asegura que el body tenga al menos el alto de la ventana */
    display: flex;
    flex-direction: column;
    /* Permite que el contenido principal crezca y el footer quede al final */
    width: 100%;
    background-color: #FAEBD7;
    /* Color de fondo suave */
}

main {
    flex: 1 0 auto;
    /* Permite que el main ocupe el espacio restante entre header y footer */
}

/* Navbar principal */
.navbar {
    background-color: #ffffff !important;
    /* Fondo blanco */
    height: 78px !important;
    /* Altura fija */
}

/* Logo de la clínica */
.logo {
    max-width: 76px;
    height: 76px;
}

/* Banner principal */
.banner {
    object-fit: cover;
    margin-top: 35px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 35px !important;
    /* Separación inferior */
}

/* Imagen dentro del banner */
.banner img {
    height: 650px;
    object-fit: fill;
    /* La imagen se deforma para llenar el espacio */
}

/* Sección sobre nosotros (imagen) */
.sobre-img {
    border-radius: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    color: white;
    padding: 20px;
    margin-bottom: 20px;
}

/* Títulos y textos generales */
h1 {
    font-weight: bold;
    text-align: center;
    font-size: 30px;
    color: black;
}

h2 {
    font-size: 36px;
    color: black;
    text-align: center;
}

h3 {
    font-weight: bold;
    font-size: 30px;
    color: black;
    text-align: center;
}

h6 {
    font-weight: bold;
    text-align: center;
    font-size: 16px;
    color: black;
}



/* Cards de servicios */
.servicio-card {
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 2px 8px #0001;
    /* Sombra ligera */
    transition: transform .2s, box-shadow .2s;
    margin-bottom: 35px;
}
.artesanias-destacadas {
    width: 100%;
    height: 200px;
    object-fit: cover;
    /* Asegura que la imagen cubra el área sin deformarse */
}
/*  Hover en cards de servicios */
.servicio-card:hover {
    transform: translateY(-6px) scale(1.03);
    /* Efecto de elevación */
    box-shadow: 0 6px 24px #0002;
}

/* Cards de equipo */
.equipo-card {
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 2px 8px #0001;
    transition: box-shadow .2s;
}

/* Hover en cards de equipo */
.equipo-card:hover {
    box-shadow: 0 6px 24px #0002;
}

/* Footer */
.footer {
    background: #ffffff;
    color: #FF6F00;
    font-size: 1rem;
}

/* Enlaces del footer */
.footer a {
    color: #FF6F00;
    margin: 0 0.5rem;
}

/* Navbar links activos y focus */
.nav-link.active,
.nav-link:focus {
    color: #FF6F00 !important;
    font-weight: 600;
}

/* Transición de color en navbar links */
.nav-link {
    transition: color .2s;
}

.nav-link:hover {
    color: #FF7F32 !important;
}

/* Efecto fade-in para animaciones */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    /* Empieza desplazado hacia abajo */
    transition: opacity .7s, transform .7s;
}

.fade-in.visible {
    opacity: 1;
    transform: none;
    /* Posición final */
}

/* Footer contenido */
.footer-contenido {
    text-align: center !important;
    width: 100% !important;
    justify-content: space-between !important;
}
.boton{
    background-color: #FF6F00;
    color: #fff !important;
    border-radius: 15px !important;
    padding: 10px  !important;
    border: none !important;
}
.boton:hover {
    color: #FF7F32 !important;
    background-color: #fff !important;
    border: 1px solid #FF7F32 !important;
}

/* Responsive: dispositivos móviles (ancho ≤ 480px) */
@media screen and (max-width: 480px) {

    .navbar {
        height: auto !important;
    }

    .banner img {
        height: 500px;
        object-fit: cover;
    }

    .sobre-img {
        border-radius: 0;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        color: white;
        padding: 20px;
    }

    h5 {
        font-size: 1.5rem;
        font-weight: bold;
    }

    .opiniones-clientes-container {
        flex-direction: column;
        align-items: center;
    }

    .opiniones-card {
        width: 90%;
        min-width: unset;
        margin-bottom: 20px;
    }
}

/* Responsive: tablets (481px a 900px) */
@media screen and (max-width: 900px) and (min-width: 481px) {

    .navbar {
        height: auto !important;
    }

    .banner img {
        height: 500px;
        object-fit: cover;
    }

    .sobre-img {
        border-radius: 0;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        color: white;
        padding: 20px;
    }

    h5 {
        font-size: 1.5rem;
        font-weight: bold;
    }

    /* Opiniones responsivas */
    .opiniones-clientes-container {
        flex-direction: column;
        align-items: center;
    }

    .opiniones-card {
        width: 90%;
        min-width: unset;
        margin-bottom: 20px;
    }
}

/*Estilos para opiniones*/
.opiniones-clientes-section {
    width: 100%;
    margin: 0 auto 40px auto;
    padding: 0 0 10px 0;
}

.opiniones-titulo {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 30px;
    margin-top: 0;
}

.opiniones-clientes-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.opiniones-card {
    background: #ffffff;
    border-radius: 6px;
    padding: 28px 24px 24px 24px;
    min-width: 320px;
    max-width: 370px;
    min-height: 130px;
    font-size: 1rem;
    justify-content: flex-start;
}

.opiniones-card .mb-2 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.opiniones-card .mt-2 {
    margin-top: 18px;
    font-weight: bold;
}