:root{
  --brand:#000;
  --nav:linear-gradient(90deg, #FFD700, #fdfaea);
  --bg:#f9f5ef;
  --green:rgb(70,212,118);
  --gris-header:linear-gradient(135deg, #b4a292, #6a6a6a);;
  --naranja-header:#ff8c42;
}

/* ================= BASE ================= */
*{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background:var(--bg);
  color:#222;
}

/* ================= HEADER ================= */
.header-flex{
  width:100%;
  background: var(--gris-header);
  padding: 22px 30px;

  display: flex;
  align-items: center;
}

/* columnas */
.header-izq,
.header-der{
  flex:1;
  display:flex;
  justify-content:center;
  align-items:center;
}

.header-centro{
  flex:2;
  text-align:center;
  color: var(--naranja-header);
}

/* texto */
.header-centro h1{
  font-size: 34px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0;
}

.header-centro p{
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  margin: 5px 0 0;
}

/* imágenes */
.logo{
  width:90px;
}

.muneco{
  width:60px;
}

/* ================= NAV ================= */
.nav-bar{
  background: var(--nav);
  display: flex;
  align-items: center;
  padding: 14px 24px;
  position: sticky;
  top: 0;
  z-index: 2000; /* 🔥 subir prioridad */
}

/* logo nav */
.nav-logo{
  width:45px;
  height:auto;
  max-height:45px;
}

/* contenedores nav */
.nav-izq{
  flex:1;
}

.nav-links{
  flex:2;
  display:flex;
  justify-content:center;
  gap:24px;
}

.nav-der{
  flex:1;
  margin-left:auto;
  text-align:right;
}

/* enlaces nav */
.nav-links a{
  text-decoration:none;
  color:#000;
  font-weight:600;
}

.nav-links a.active{
  border-bottom:3px solid #000;
}

/* teléfono */
.nav-der a{
  color:#000;
  text-decoration:underline;
  font-weight:600;
}



/* ===== BOTÓN HAMBURGUESA ===== */
.menu-toggle{
  display:none;
  background:none;
  border:none;
  font-size:28px;
  cursor:pointer;
}

@media (max-width:768px){

  .menu-toggle{
    display:block;
    align-self:flex-end;
  }

  .nav-links{
    display:none;
    flex-direction:column;
    width:100%;
    background:#fae103;
    padding:12px 0;
  }

  .nav-links a{
    padding:10px;
    font-size:16px;
  }

  .nav-links.show{
    display:flex;
  }
}


/* ===== DROPDOWN SERVICIOS ===== */

.dropdown{
  position: relative;
}

/* ===== CARRUSEL ===== */
/* Flechas blancas */
.carousel-control-prev-icon,
.carousel-control-next-icon{
  filter: invert(1);
}

/* Quitar fondo, sombra y overlay al pasar el mouse */
.carousel-control-prev,
.carousel-control-next{
  background: transparent !important;
  opacity: 1;
}

.carousel-control-prev:hover,
.carousel-control-next:hover,
.carousel-control-prev:focus,
.carousel-control-next:focus{
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

.carousel-item{
  aspect-ratio: 1 / 1;
}

.carousel-item img{
  width: 100%;
  height: 100%;
}

#simpleCarousel{
  max-width: 800px;   /* prueba 800px o 850px si lo quieres más pequeño */
  margin: 0 auto;     /* centrar */
}



@media (max-width: 768px){
  .carousel-item{
    aspect-ratio: 4 / 5;
  }
}
/* botón */
.dropdown-btn{
  color:#000;
  font-weight:600;
  text-decoration:none;
  padding-bottom: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* flecha */
.flecha{
  font-size: 11px;
  transition: transform 0.3s ease;
}

/* menú */
.dropdown-menu{
  position: absolute;
  top: 100%;          /* sin huecos */
  left: 0;
  width: 320px;
  background: rgba(255,255,255,0.97);
  border-radius: 6px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  list-style: none;
  padding: 8px 0;
  display: none;
  z-index: 999;
}


/* mostrar menú */
.dropdown:hover .dropdown-menu{
  display: block;
}

/* rotar flecha */
.dropdown:hover .flecha{
  transform: rotate(180deg);
}

/* items */
.dropdown-menu li a{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
}

/* hover item */
.dropdown-menu li a:hover{
  background: #f2f2f2;
}

/* línea amarilla */
.dropdown:hover .dropdown-btn{
  border-bottom:3px solid #fae103;
}

/* ================= HERO IMAGEN ================= */
.hero-img{
  position:relative;
  text-align:center;
  max-width:1000px;   /* 🔥 controla el ancho */
  margin:0 auto 30px; /* centra y separa */
}

.hero-img img{
  width:100%;
  height:auto;
  display:block;
  border-radius:8px;  /* opcional */
}

@keyframes pulse-cta {
  0%   { transform:scale(1); box-shadow:0 0 0 0 rgba(70,212,118,.6); }
  70%  { transform:scale(1.05); box-shadow:0 0 0 18px rgba(70,212,118,0); }
  100% { transform:scale(1); box-shadow:0 0 0 0 rgba(70,212,118,0); }
}

/* ================= emoji ================= */

.emoji{
  margin-right:6px;
}

@media (max-width:768px){
  .emoji{
    display:none;
  }
}


/* botón sobre la imagen */
.hero-btn{
  position:absolute;
  bottom:30px;
  left:50%;
  transform:translateX(-50%);
  padding:14px 32px;
  background:var(--green);
  color:#000;
  font-weight:bold;
  border-radius:8px;
  text-decoration:none;
  box-shadow:0 6px 18px rgba(0,0,0,.25);
}

.hero-btn:hover{
  background:#5ee59ba2;
}

/* ================= BOTÓN PRINCIPAL ================= */
.btn-whatsapp{
  animation: pulse-cta 2s infinite;
  display:inline-block;
  padding:25px 80px;
  background:var(--green);
  color:#000;
  font-weight:bold;
  border-radius:6px;
  text-decoration:none;
}

/*========Boton asesor=======*/
/* Contenedor flotante */
.btn-asesor {
  position: fixed;        /* flota sobre todo */
  top: -100px;            /* inicia fuera de la pantalla */
  left: 10px;             /* distancia de la izquierda */
  z-index: 9999;          /* siempre encima */
  opacity: 0;             /* invisible al inicio */
  transition: top 0.6s ease, opacity 0.6s ease; /* animación */
}

.btn-asesor.show {
  top: 120px;              /* posición final */
  opacity: 1;             /* visible */
}

/* Estilo del botón */
.btn-asesor a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px;
  background: var(--green);
  color: #000;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  transition: transform 0.2s ease;
}

.btn-asesor a:hover {
  transform: scale(1.05);
}



/* Logo */
.asesor-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

/* ================== RESPONSIVE MOVIL ================== */
@media (max-width: 768px) {

  /* Contenedor */
  .btn-asesor {
    left: 8px;
    top: 80px; /* más arriba para que no tape el número */
  }

  /* Botón */
  .btn-asesor a {
    padding: 6px 8px;
    gap: 6px;
    font-size: 12px;
    border-radius: 50px;
  }

  /* Logo más pequeño */
  .asesor-logo {
    width: 26px;
    height: 26px;
  }

}

/* ===== TÍTULOS CON LÍNEA ROJA CENTRADA ===== */
.titulo-seccion{
  position:relative;
  padding-bottom:14px;
  text-align:center;
  font-size:2rem;
  font-weight:700;
  color:#1f2937;
}

.titulo-seccion::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:0;
  transform:translateX(-50%);
  width:70px;
  height:4px;
  background:#e10600;
  border-radius:2px;
}

/* ================= COMENTARIOS ================= */

.comentarios-section {
  background:#f6f9f6;
  padding:60px 20px;
  text-align:center;
}

.titulo-comentarios {
  font-size:32px;
  font-weight:700;
  color:#000000;
  margin-bottom:10px;
  position:relative;
}

.titulo-comentarios::after {
  content:'';
  width:80px;
  height:4px;
  background:red;
  display:block;
  margin:10px auto 30px;
  border-radius:2px;
}

.carousel {
  overflow:hidden;
  max-width:1100px;
  margin:auto;
}

.carousel-track {
  display:flex;
  gap:20px;
  animation: scroll 35s linear infinite;
}

.testimonio-card {
  min-width:300px;
  background:#fff;
  padding:25px;
  border-radius:12px;
  box-shadow:0 10px 25px rgba(0,0,0,.08);
  text-align:left;
}

.estrellas {
  color:#ffc107;
  font-size:18px;
  margin-bottom:10px;
}

.testimonio-card p {
  font-size:14px;
  color:#444;
  margin-bottom:15px;
}

.testimonio-card strong {
  display:block;
  color:#0a7a3c;
}

.testimonio-card span {
  font-size:12px;
  color:#777;
}

@keyframes scroll {
  0% { transform:translateX(0); }
  100% { transform:translateX(-50%); }
}

/* ================= SOBRE NOSOTROS ================= */

.contenedor-sobre{
  max-width:1800px;   /* ajusta aquí */
  margin:0 auto;
  padding:0 15px;
}

.sobre-nosotros{
  background:#ececec;
  padding:80px 0;
}

.sobre-nosotros .card{
  border:none;
  border-radius:18px;
}

.sobre-nosotros .card-body{
  padding:50px 40px;
}

.sobre-nosotros p{
  font-size:1rem;
  line-height:1.8;
  color:#4b5563;
}

.sobre-nosotros img{
  max-width:100%;
  border-radius:16px;
}

.mapa{
  width:100%;
  height:260px;
  border:0;
  border-radius:16px;
}

@media (min-width:768px){
  .sobre-nosotros .col-md-4:first-child{
    text-align:left;
  }
}

@media (max-width:768px){

  .sobre-nosotros .card-body{
    padding:30px 20px;
  }

  .sobre-nosotros h3{
    margin-top:20px;
  }

  .mapa{
    height:220px;
  }
}

/* ===== BOTÓN CONÓCENOS ===== */
.btn-conocenos{
  display:block;           /* 🔥 clave */
  width:fit-content;       /* mantiene tamaño del botón */
  margin:20px auto 0;      /* centra horizontal */
  padding:12px 32px;
  font-weight:700;
  border-radius:10px;
  background:#34e100a1;
  color:#e62323;
  box-shadow:0 10px 20px rgba(95, 233, 68, 0.911);
  transition:.3s ease;
}

.btn-conocenos:hover{
  background:#38f812b4;
  transform:translateY(-2px);
}

/* reutilizamos la animación del CTA */
.btn-pulse{
  animation:pulse-cta 2s infinite;
}



/* ================= WHATSAPP FLOTANTE ================= */
.wa-float{
  position:fixed;
  right:18px;
  bottom:18px;
  width:72px;
  height:72px;
  border-radius:50%;
  background:#22c55e;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:9999;
}

/* icono */
.wa-float img{
  width:34px;
}

/* TEXTO */
.wa-text{
  position:absolute;
  right:80px;
  background:#22c55e;
  color:#000;
  padding:6px 12px;
  border-radius:20px;
  font-size:14px;
  font-weight:600;
  white-space:nowrap;
  box-shadow:0 4px 12px rgba(0,0,0,.25);
  animation: aparecer .6s ease forwards;
  opacity:1;                 /* 🔥 siempre visible */
  transform:translateX(0);   /* 🔥 sin desplazamiento */
}

/* ===== BOTÓN TELÉFONO ===== */
.btn-telefono{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:#22c55e;
  color:#000;
  padding:8px 14px;
  border-radius:999px;
  font-weight:700;
  text-decoration:none;
  box-shadow:0 4px 10px rgba(0,0,0,.25);
  transition:.3s ease;
  white-space:nowrap;
}

.btn-telefono:hover{
  background:#16a34a;
  transform:translateY(-2px);
}

/* número */
.telefono-num{
  font-size:15px;
}

@keyframes aparecer{
  from{ opacity:0; transform:translateX(10px); }
  to{ opacity:1; transform:translateX(0); }
}

/* ================= SERVICIOS TARJETAS ================= */
/* ===== TARJETAS SERVICIOS ===== */
.servicios-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:25px;
}

.servicio{
  position:relative;
  height:260px;
  overflow:hidden;
  border-radius:8px;
  cursor:pointer;
}

.servicio img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .4s ease;
}

.servicio-hover{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.45);
  color:#fff;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  transition:.4s ease;
}

.servicio-hover p{
  opacity:0;
  margin-top:10px;
  transition:.3s ease;
}

/* HOVER */
.servicio:hover img{
  transform:scale(1.1);
}

.servicio:hover .servicio-hover{
  background:rgba(0,0,0,.7);
  outline:2px solid #fff;
  outline-offset:-15px;
}

.servicio:hover p{
  opacity:1;
}

/* procuestionario */

/* ===== FRANJA ===== */
.franja-info{
  position: relative;
  max-width: 1200px;
  margin: 100px auto 40px; /* 🔥 espacio desde el nav */
  display: flex;
  align-items: center;
  background: linear-gradient(
  90deg,
  #6fcf97 0%,   /* verde claro */
  #2fa66a 45%,  /* transición */
  #0b7a3b 100% /* verde botón */
  );
  padding: 25px 40px;
  z-index: 1; /* debajo del nav */
}

/* TEXTO */
.franja-contenido{
  flex: 1;
}

.franja-contenido h2{
  font-weight: 700;
  font-size: 22px;
}

/* IMAGEN */
.franja-foto{
  flex: 1;
  position: relative;
}

.franja-foto img{
  position: absolute;
  right: 40px;     /* no tan a la derecha */
  bottom: -120px;   /* sobresale pero controlado */
  height: 240px;   /* grande */
  z-index: 1;      /* nunca encima del nav */
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px){
  .franja-info{
    flex-direction: column;
    text-align: center;
    padding-bottom: 60px;
  }

  .franja-foto img{
    position: static;
    height: 200px;
    margin-top: 20px;
  }
}

/* CUESTIONARIO */


.contacto {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    max-width: 600px;
    margin: 50px auto;
    color: #0a7a3b;
    padding:60px 20px;
}

.header-centro h1{
  text-align:center;
  font-size:40px;
}

.contacto p{
  text-align:center;
}

form {
    display: flex;
    flex-direction: column;
}

.fila {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

input, textarea {
    width: 100%;
    border: none;
    border-bottom: 2px solid #0a7a3b;
    padding: 10px;
    font-size: 16px;
    outline: none;
}

textarea {
    resize: none;
    height: 100px;
    margin-bottom: 20px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 30px;
}

.checkbox input {
    width: auto;
    margin: 0;
}

button {
    background-color: #0a7a3b;
    color: white;
    border: none;
    padding: 12px;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    background-color: #086530;
}

/*CINTA*/

.cinta-info{
  background-image: url("../Imagenes/fondo.webp"); /* AJUSTA AQUÍ */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 400px;
  padding: 100px 0;
}

.cinta-cont{
  background-image: url("../Imagenes/fondo2.webp"); /* AJUSTA AQUÍ */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 400px;
  padding: 100px 0;
}


.overlay{
  background: rgba(0,0,0,0.55);
  padding: 60px 20px;
}

.titulo-cinta{
  text-align: center;
  font-size: 36px;
  color: #fff; /* blanco para contraste */
  font-weight: 700;
  margin-bottom: 10px;
}

.linea-roja{
  width: 80px;
  height: 4px;
  background-color: red;
  margin: 0 auto 50px auto;
}

.cinta-box {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 30px;
}

.cinta-item {
  width: 180px; /* controla el ancho uniforme */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #fff;
}

.cinta-item .icono {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid #f1c40f;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}



.cinta-icono{
  width:75px;
  height:75px;
  border:2px solid #fae103;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:15px;
  font-size:32px;
  color:#fae103;
}

.cinta-texto strong{
  display:block;
  font-size:28px;
  font-weight:700;
}

.cinta-texto small{
  display:block;
  margin-top:6px;
  font-size:13px;
  letter-spacing:1px;
}



/*FOOTER*/


/* =========================
   FOOTER
   ========================= */

footer.header-flex{
  width: 100%;
  background: var(--gris-header);
  padding: 12px 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* columnas */
footer.header-flex .header-izq,
footer.header-flex .header-der{
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

footer.header-flex .header-centro{
  flex: 2;
  text-align: center;
  color: var(--naranja-header);
}

/* texto */
footer.header-flex p{
  margin: 3px 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-transform: uppercase;
}

/* imágenes */
footer.header-flex .logo{
  width: 60px;
}

footer.header-flex .muneco{
  width: 45px;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 768px){
  footer.header-flex{
    flex-direction: column;
    gap: 8px;
    padding: 14px;
  }

  footer.header-flex p{
    font-size: 13px;
  }

  footer.header-flex .logo{
    width: 55px;
  }

  footer.header-flex .muneco{
    width: 40px;
  }
}

/* opcional: ocultar muñeco en móviles pequeños */
@media (max-width: 480px){
  footer.header-flex .header-der{
    display: none;
  }
}

/* animación */
@keyframes pulse{
  0%{box-shadow:0 0 0 0 rgba(34,197,94,.3)}
  70%{box-shadow:0 0 0 18px rgba(34,197,94,0)}
  100%{box-shadow:0 0 0 0 rgba(34,197,94,0)}
}

.wa-pulse{
  animation:pulse 2.6s infinite;
}

/* ================= RESPONSIVE ================= */
@media(max-width:900px){
  .cards{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:600px){
  .cards{
    grid-template-columns:1fr;
  }

  .header-flex{
    flex-direction:column;
  }

  .header-der{
    display:none;
  }

  .nav-links{
    gap:14px;
  }

  .hero-btn{
    bottom:18px;
    padding:12px 22px;
    font-size:14px;
  }
}
/* ===== AJUSTE CINTA ICONOS MOBILE ===== */
@media (max-width: 768px){

  .cinta-box{
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  .cinta-item{
    width: 100%;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .cinta-texto strong{
    font-size: 24px;
  }

  .cinta-texto small{
    font-size: 13px;
    line-height: 1.4;
  }
}

/* ===== NAV ORDENADA EN MÓVIL ===== */
@media (max-width: 768px){

  .nav-bar{
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
  }

  /* LOGO */
  .nav-izq{
    width: 100%;
    text-align: center;
  }

  .nav-logo{
    width: 40px;
  }

  /* LINKS */
  .nav-links{
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 15px;
  }

  .nav-links a{
    padding: 6px 10px;
  }

  /* TELÉFONO */
  .nav-der{
    width: 100%;
    text-align: center;
    margin-left: 0;
  }

  .nav-der a{
    display: inline-block;
    font-size: 15px;
    padding: 6px 12px;
  }
}

/* ===== TELÉFONO COMO BOTÓN (MÓVIL) ===== */
@media (max-width:768px){
  .nav-der{
    order:2;
    flex:1;
    text-align:right;
  }

  .btn-telefono{
    padding:6px 12px;
    font-size:14px;
  }
} 

.srv-img video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px; /* si ya usas bordes */
}

