/* ===== PALETA DE COLORES ===== */
:root {
    --azul-principal: #595c84;
    --azul-secundario: #595c84;
    --azul-claro: #f0f1f5;
    --gris-texto: #111111;
    --blanco: #f0f1f5;
    --azrl: #595c84;
    --nv: #ffffff;
    --DORADO: #595c84;
    --GRSOSCURO: #595c84;
    --NEGRO: #000000;
    --LAVANDA: #595c84;
}

/* sección de la Dra. de index2*/
#dra {
    padding-top: 100px; /* ajusta según la altura de tu navbar */
}
.fade-in{
    opacity:0;
    transform:translateY(40px);
    animation:fadeInUp 0.7s forwards;
}

@keyframes fadeInUp{
    to{
        opacity:1;
        transform:none;
    }
}

.btn-tratamientos{
    background:#595c84; /* se cambio al nuevo color principal Lumina */
    border:none;
    padding:8px 16px;
    border-radius:6px;
    margin-top:10px;
    cursor:pointer;
    font-size:14px;
}

.btn-tratamientos:hover{
    background:#595c84;
}

.lista-tratamientos{
    display:none;
    margin-top:12px;
    text-align:left;
    font-size:14px;
    padding-left:18px;
}

.lista-tratamientos li{
    margin-bottom:4px;
}

/* ===== ACORDEÓN PROFESIONAL ===== */

.accordion-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgb(0, 0, 0);
}

.accordion-header {
    width: 100%;
    padding: 18px;
    background: #595c84;
    color: white;
    border: none;
    text-align: left;
    font-size: 18px;
    cursor: pointer;
    font-weight: 600;
}

.accordion-content {
    display: none;
    background: white;
    padding: 25px;
}

.accordion-content ul {
    columns: 2;
    column-gap: 50px;
    list-style: none;
}

.accordion-content li {
    margin-bottom: 10px;
    font-size: 15px;
    position: relative;
    padding-left: 18px;
}

.accordion-content li::before {
    content: "•";
    color: #595c84;
    position: absolute;
    left: 0;
}

@media(max-width: 768px) {
    .accordion-content ul {
        columns: 1;
    }
}


/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

.logo {
    display: flex;
    align-items: center;    /* Centra  */
    gap: 10px;  /* Espacio entre logo y texto */
}

.logo img {
    width: 180px;
    height: auto;
}

@media (max-width: 768px) {
    .logo img {
        width: 140px;
    }
}
.nav-link.active { /* Color activo para el desplace en el navbar */
    color:#595c84 !important;
    transition: color 0.3s, text-shadow 0.3s;
}


.logo-text {
    color: #120000 !important;/* se agrego el color dorado al texto */
    font-weight: 600;
    letter-spacing: 2px;
    font: bold 23px 'Segoe UI', sans-serif; /* Tamaño de fuente y estilo */
}

body {
    color: var(--gris-texto);
    background: #595c84; /* color de fondo general de la pagina, se agrego color para no tener conflictos con las secciones*/
    line-height: 1.6;
    background-image: url("imagenes/Efecto\ trama.jpg");
    background-size: cover;        /* Ajusta la imagen a toda la pantalla */
    background-position: center;   /* Centra la imagen */
    background-repeat: no-repeat;  /* Evita que se repita */
    background-attachment: fixed;  /* Efecto tipo parallax */
}


/* ===== TIPOGRAFÍA  ===== */
h1 {
    font-size: 70px;
    font-weight: 700;
    color: white;
    font-family: 'Raleway', sans-serif;
}

@media (max-width: 768px) {
    h1 {
        font-size: 28px;
    }
}

h2 {
    font-size: 28px;
    /* 24 - 30px */
    font-weight: 600;
    color: var(--azul-principal);
    margin-bottom: 20px;
    
}
h2.dorado {
    color: #000000 !important;
}
h2.text-center { /* clase para centrar el texto y cambiar el color a dorado dentro de los tratamientos*/
    text-align: center;
    color: #595c84 !important;
}

h3 {
    font-size: 20px;    /* 18 - 24px */
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 10px;
    font-family: sans-serif;
} 
 
p {
    font-size: 16px;
    /* 14 - 18px */
    margin-bottom: 15px;
    color: #000000; /* color del texto informativo*/
    font-family: 'Open Sans', sans-serif;
}
p.neg{
    color: #fcfcfc;
}
 
/* ===== HEADER ===== */
.header {
    background: rgb(255, 255, 255);
    padding: 8px 0;
    box-shadow: 0 2px 10px rgb(0, 0, 0);
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: background 0.3s ease;
}

.header.scrolled {
    background: rgb(255, 255, 255); /* Fondo claro con ligero desenfoque */
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Navbar links */
.navbar-nav .nav-link {
    font-size: 17px;  /* tamaño del texto navbar */
    font-weight: 600;
    letter-spacing: 1px;
    transition: 0.3s ease;
    margin-left: 20px;
    color: #000000 !important;
}

/* ===== color al pasar el mouse ===== */
.navbar-nav .nav-link:hover {
    color: #5056a4 !important;
}

/* ===== HERO VIDEO (altura del video)==== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    background-color: transparent; /* color de fondo mientras se desplaza */
}

.hero-video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateZ(0);
    will-change: transform;
}

/* ===== color de fondo del overlay ===== */
.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
}

/* ===== contenido del hero ===== */
.hero-content {
    position: relative;
    z-index: 2;
    color: var(--blanco);
}

/* ===== SECCIONES ===== */
.section {
    padding: 40px 0 20px 0;
    scroll-margin-top: 90px;
}

.bg-light { /* color de fondo para las secciones se coloca en*/
    background: var(--azul-claro);
}

.section-title {
    text-align: center;
    margin-bottom: 20px;
    color: #595c84; /* color dorado para los títulos de las secciones */
}

/* ===== NOSOTROS ===== */
.section-nosotros {
    background: #595c84;
}

.about-img img,
.about-img {
    display: block;
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: none;
    border: none;
    margin: 0 auto;
}

.about-text {
    padding-left: 20px;
}

.about-text h3 {
    margin-bottom: 15px; 
    color:#595c84; /* color dorado para el subtítulos en h3 */
}

.about-text p {
    text-align: justify;
}

/* ===== SERVICIOS ===== */
.services {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.service-card {
    background: rgb(255, 255, 255);
    padding: 30px;
    border-radius: 10px;
    width: 300px;
    box-shadow: 0 5px 15px rgb(0, 0, 0);
    transition: 0.3s;
}

/* color de fondo, texto y título para las tarjetas de servicios */
.card-servicio {
    background-color: #ffffff; /* color de fondo */
    border-radius: 15px;
    border: none;
}
.card-servicio .card-title {
    color: #595c84; /* color del título */
}
.card-servicio .card-text {
    color: #000000; /* color del texto */
}

.service-card:hover {
    transform: translateY(-5px);
}
#servicios::after {
    content: "";
    display: block;
    height: 1px;
    width: 50%; /* ancho reducido */
    margin: 20px auto; /* centra la línea */
    background: linear-gradient(to right, transparent, #000000, transparent);
}
.divider{
    height: 1px;
    background: linear-gradient(to right, transparent, rgb(0, 0, 0), transparent); /* degradado dorado */
    width: 50%;        /* ancho reducido */
    margin: 0 auto;    /* centrado sin espacio extra */
    display: block;    /* asegura que sea solo una línea */
    line-height: 0;    /* evita que se genere altura extra */
}

.galeria-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 60px 0 40px;
}

.galeria-section .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.gallery-description {
    color: #2c2c2c;
    max-width: 700px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.7;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    min-height: 220px;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 35px 65px rgba(0, 0, 0, 0.14);
}

.gallery-card:hover img {
    transform: scale(1.03);
}

.btn {
    background: linear-gradient(125deg, #525360, #141c8975);
    color: rgb(255, 255, 255);
    padding: 10px 25px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.50);
    display: inline-block;
    text-decoration: none;
}

.hero-content h1 {
    font-size: 55px;
    margin: 0 auto;
    max-width: 900px;
}

.hero-content p {
    font-size: 24px;
    margin-top: 18px;
    line-height: 1.4;
}

.about .text-center img,
.about-img img {
    width: 100%;
    max-width: 400px;
    height: auto;
}

@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }

    .hero {
        height: auto;
        padding: 120px 20px 60px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .about-text {
        padding-left: 0;
        text-align: center;
    }

    .about-text h2 {
        font-size: 32px;
    }

    .about-text p {
        font-size: 16px;
    }

    .container.about {
        padding: 20px;
    }

    .gallery-description {
        font-size: 15px;
    }

    .gallery-grid {
        gap: 18px;
    }

    .gallery-card {
        min-height: 180px;
    }

    .mapa {
        margin-top: 30px;
    }

    .mapa iframe {
        height: 320px;
    }

    .contacto-formulario h2 {
        font-size: 30px;
    }

    .section {
        padding: 30px 0;
    }

    .info-item {
        align-items: flex-start;
    }

    .redes-sociales {
        justify-content: start;
    }
}

.btn:hover {
    background: linear-gradient(125deg, #525360, #141c8975);    /* tono al pasar el cursor */
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.529);
}
.btn:focus,
.btn:active,
.btn-primary:focus,
.btn-primary:active {
    background: linear-gradient(125deg, #525360, #141c8975) !important; /* Lumina slate */
    color: white !important;              /* texto blanco */
    border-color: #040404 !important;     /* borde slate */
    box-shadow: none !important;          
}


/* ===== CONTACTO ===== */
.contacto {
    background: #ffffff; /* color de fondo para la sección de contacto */
}

.contacto-formulario {
    padding-right: 20px;
}

@media (max-width: 768px) {
    .contacto-formulario {
        padding-right: 0;
    }
}

.contacto-subtitulo {
    color: #595c84;
    font-size: 13px;
    letter-spacing: 2px;
    font-weight: 600;
}

.contacto-formulario h2 {
    font-size: 38px;
    margin: 10px 0 20px;
}

.contacto-formulario p {
    margin-bottom: 30px;
    color: #000000;
}

/* FORMULARIO */

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    border: 1px solid #595c84;
    border-radius: 4px;
    font-size: 14px;
}

.contact-form textarea {
    height: 130px;
}

.contact-form .btn {
    background: linear-gradient(125deg, #525360, #141c8975);
    color: rgb(255, 255, 255);
    border: none;
    padding: 14px 28px;
    border-radius: 4px;
    cursor: pointer;
}

/* INFO */
.contacto-info h3 {
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 15px;
}

.info-item p {
    margin: 0;
    color: #000000;
}

/* REDES SOCIALES */

.redes-sociales {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.redes-sociales a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
    color: rgb(255, 255, 255);
    transition: 0.3s;
    text-decoration: none;
}


/* INSTAGRAM */
.instagram {
    background: linear-gradient(100deg, #ffd500, #ff0000b7, #0011ff);
}

.instagram:hover {
    background: linear-gradient(100deg, #fae061, #ff5d5db7, #5e69ff);
    transform: scale(1.1);
}

/* FACEBOOK */
.facebook {
    background: rgb(24, 74, 168);
}

.facebook:hover {
    background-color: rgb(85, 141, 246);
    transform: scale(1.1);
}


/* MAPA */
.mapa {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.mapa iframe {
    border-radius: 23px;
    width: 100%;
    max-width: 100%;
    height: 500px;
    margin: 0;
    display: block;
}

/* ===== FOOTER ===== */
.footer {
    background: transparent;
    padding: 0;
}

.footer-bar { 
    background: #eceeef;
    color: #000000;
    text-align: center;
    padding: 30px 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    border-radius: 0;
    margin: 0;
    width: 100%;
    letter-spacing: 1px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .logo-text {
        font-size: 18px;
    }

    .navbar-nav .nav-link {
        font-size: 16px;
        margin-left: 10px;
    }

    .about-text h2 {
        font-size: 24px;
    }

    .contacto-formulario h2 {
        font-size: 30px;
    }
}

/* ===== EFECTOS DE HOVER PARA TARJETAS ===== */
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgb(0, 0, 0);
    transition: all 0.3s ease;
}

.card .bi {
    transition: transform 0.3s ease;
}

.card:hover .bi {
    transform: scale(1.1);
}

/* ===== BOTÓN FLOTANTE DE WHATSAPP ===== */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-float a {
    display: inline-block;
    background-color: rgb(90, 200, 50);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    line-height: 60px;
    font-size: 30px;    
    box-shadow: 0 4px 8px rgb(0, 0, 0);
    transition: all 0.3s ease;
}

.whatsapp-float a:hover {
    background-color: rgb(25, 225, 50);
    transform: scale(1.1);
}


#scrollToTopBtn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgb(0, 0, 0);
}

/* ===== TARJETAS CON EFECTO FLIP ===== */
.card-flip {
    perspective: 1000px;
    height: 400px;
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transition: transform 0.6s;
}

.card-back {
    transform: rotateY(180deg);
}

.card.flipped .card-front {
    transform: rotateY(180deg);
}

.card.flipped .card-back {
    transform: rotateY(0deg);
}

.tratamientos-list {
    text-align: left;
    list-style: none;
    padding: 0;
    max-height: 250px;
    overflow-y: auto;
}

.tratamientos-list li {
    margin-bottom: 8px;
    padding-left: 10px;
    border-left: 3px solid #595c84;
}

/*SECCION */

.servicio-detalle {
    padding: 60px 20px;
    background: #f8f9fa;
}

.container {
    max-width: 1100px;
    margin: auto;
}

/* TITULO */

.titulo-servicio {
    text-align: center;
    font-size: 2.3rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #000000;
}

/* DESCRIPCION */

.descripcion-servicio {
    text-align: center;
    max-width: 700px;
    margin: auto;
    margin-bottom: 40px;
    font-size: 1.1rem;
    color: #000000;
}

/* GRID */

.tratamientos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

/* TARJETAS */

.tratamiento-card {
    background: #ffffff;
    padding: 18px;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    transition: 0.3s;
    text-decoration: none;
    color: #595c84;
    display: block;
}

/* HOVER */

.tratamiento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgb(0, 0, 0);
}

/*                                     BOTON REGRESAR */

.boton-regresar {
    margin-top: 40px;   /*para agreg espacio arriba */
    margin-bottom: 20px;
    text-align: center; /* para el botón centrado */
}

.btn-regresar {
    display: inline-block;
    background: linear-gradient(125deg, #525360, #141c8975); /* degradado */
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 30px; /* estilo redondeado */
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.25); /* sombra */
    transition: all 0.3s ease;
}

.btn-regresar:hover {
    transform: translateY(-2px); /* efecto de elevación hover */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.25);
}

.bootstrap-gallery .card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgb(0, 0, 0);
    transition: all 0.3s ease;
}