/* Contenedor Flotante */
.whatsapp-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1000;
}

/* Burbuja de Mensaje */
.whatsapp-badge {
  background-color: #ffffff;
  color: #1a1a1a;
  padding: 10px 16px;
  border-radius: 20px;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.15);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  animation: floatBadge 3s ease-in-out infinite;
  white-space: nowrap;
}

/* Flecha apuntando al botón */
.whatsapp-badge::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px 0 6px 8px;
  border-style: solid;
  border-color: transparent transparent transparent #ffffff;
}

/* Botón cerrar burbuja */
.close-badge {
  background: none;
  border: none;
  font-size: 16px;
  color: #999;
  cursor: pointer;
  padding: 0 0 0 4px;
  line-height: 1;
}

.close-badge:hover {
  color: #333;
}

/* Botón Verde de WhatsApp */
.whatsapp-btn {
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  text-decoration: none;
  flex-shrink: 0;
}

.whatsapp-icon {
  width: 35px;
  height: 35px;
}

.whatsapp-btn:hover {
  background-color: #20ba5a;
  transform: scale(1.08);
}

/* Animación de suave rebote para llamar la atención */
@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Adaptación para Pantallas Pequeñas */
@media (max-width: 768px) {
  .whatsapp-container {
    bottom: 20px;
    right: 15px;
  }
  
 
  .whatsapp-badge {
    font-size: 12px;
    padding: 8px 12px;
  }
  .whatsapp-btn {
    width: 50px;
    height: 50px;
  }
  .whatsapp-icon {
    width: 28px;
    height: 28px;
  }
}
/* REVELAR TEXTO AL PASAR EL RATON*/
/* 1. estado inicial. escondido abajo */
.revelar {
    opacity: 0;
    transform: translatey(50px);
    transition: all 0.8s ease-out;
}
/* 2. Estado cuando entra en pantalla: sube y aparece */
.revelar.activo{
    opacity: 1;
    transform: translateY(0);
}
.card:hover{
   background-color: teal;
    color:silver;
}
.menu a{
  padding-left: 15px;
  padding-right: 15px;
}
.menu a:hover{
    background-color: #0077b6;
    color: aliceblue;
    border-radius: 5px;
    padding: 15px;
}
.servicios {
    margin-top: 0px;   
}

:root{--gold:#d1a645; --black:#121212; --white:#ffffff
}
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Plus Jakarta Sans',sans-serif
}

body{
    background:#f8f8f6
}
header{
    position:fixed;
    top:15px;left:50%;
    transform:translateX(-50%);
    width:95%;
    max-width:1250px;
    background:#fff;
    border-radius:16px;
    padding:12px 24px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    z-index:100;
    box-shadow:0 10px 30px rgba(0,0,0,0.1)
}

.logo{
    font-weight:800;font-size:1.6rem;line-height:1
}
.logo span{
    color:var(--gold);font-weight:400;font-size:0.7rem;letter-spacing:3px;display:block
}
nav{
    display:flex;gap:20px;
    align-items:center
}
nav a{
    text-decoration:none;
    color:#000;
    font-weight:600;
    font-size:0.9rem
}
.btn-gold{
    background:var(--gold);
    color:#000;
    padding:12px 22px;
    border-radius:10px;
    text-decoration:none;
    font-weight:800;
    display:inline-flex;gap:8px
}

.hero{
    height:95vh;
    background: linear-gradient(90deg, rgba(0,0,0,0.55) 35%, rgba(0,0,0,0.2) 100%), url('fondo.jpg'); 
    background-size:cover; 
    background-position:center ; 
    display:flex; 
    align-items:center; 
    padding:0 6%; 
    color:#fff; 
    border-radius:0 0 30px 30px
}

.hero-text{
    max-width:600px; 
    margin-top:80px
}

.badge{
    background:var(--gold);
    color:#000;
    display:inline-block;
    padding:6px 14px;
    border-radius:20px;
    font-size:0.75rem;
    font-weight:800;
    margin-bottom:20px
}

.hero h1{
    font-size:3.5rem;
    line-height:0.95;
    margin-bottom:20px
}

.hero p{
    opacity:0.8;
    margin-bottom:30px;
    line-height:1.5
}

.stats{
    display:flex;gap:30px;
    margin-top:40px;
    font-size:0.85rem
}

.stats b{
    color:var(--gold)
}

.servicios{padding:70px 6%;text-align:center}
.servicios h2{font-size:2.2rem;margin-bottom:10px}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:40px}
.card{background:#fff;border:1px solid #e8dcc0;border-radius:16px;padding:30px;text-align:center}
.card .icon{width:60px;height:60px;background:var(--gold);border-radius:50%;display:grid;place-items:center;margin:0 auto 15px;font-size:1.8rem}

p{
    text-align: justify;
}

footer{background:var(--black);color:#d1a645;padding:20px 6%;display:flex;justify-content:space-between;font-size:0.8rem}

@media(max-width:800px){
    .cards{grid-template-columns:1fr}
    .hero h1{font-size:2.3rem} 
    nav a{display:none}
}
/* DENTRO DE LA CLASE .hero ESTA LA IMAGEN DE FONDO DEL INICIO ESTO ES PARA QUE EL LOGO DE LA IMAGEN BAJE MAS ABAJO */
@media (min-width:900px){
    .hero{
    background-position: center 20%; 
}
}
@media(max-width:700px){
    p {
        text-align: justify;
    }
    /*.quitar-cita-ahora{
        display: none !important;
    } */
}

html { scroll-behavior: smooth; }

/* Inicia Estilos para el Carrusel */
/* --- ESTILOS DEL CARRUSEL --- */
.galeria {
  padding: 60px 20px;
  text-align: center;
  background-color: #f9fbfd;
}

.galeria h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #1a202c;
}

.carrusel-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

/* La ventana oculta lo que sobresale */
.carrusel-window {
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* El riel que se desplaza horizontalmente */
.carrusel-track {
  display: flex;
  width: 100%;
  transition: transform 0.5s ease-in-out;
}

/* Cada tarjeta ocupa el 100% de la ventana */
.carrusel-item {
  min-width: 100%;
  box-sizing: border-box;
  position: relative;
}

.carrusel-item img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.carrusel-item p {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: #ffffff;
  margin: 0;
  padding: 20px 15px 12px;
  font-weight: 600;
  font-size: 1.1rem;
  text-align: center;
}

/* Botones de navegación */
.carrusel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  border: none;
  font-size: 22px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.carrusel-btn:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.1);
}

.carrusel-btn.prev { left: -22px; }
.carrusel-btn.next { right: -22px; }

@media (max-width: 600px) {
  .carrusel-btn.prev { left: 10px; }
  .carrusel-btn.next { right: 10px; }
  .carrusel-item img { height: 260px; }
}
@media (min-width:900px){
   
    .carrusel-item {
  min-width: 100%;
  box-sizing: border-box;
  position: relative;
}
}
/* Fin Estilos para el Carrusel */

/*la seccion de nosotros adactarlas a moviles que la imagen quede arriba y el texto abajo*/
  @media (max-width: 768px) {
   .about .about-container {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
    
    .about-image, about-text{
      width: 100%;
    }
    .about-image img{
      width: 100%;
      height: auto;
      display:block;
    }
    .about-image{
      order: 2;
    }
    .about-text{
      order: 1;
    }
    .about-text h2{
      text-align: center;
    }
  }