 
:root {
  --color-primary: #0c0f53;
  --color-secondary:#39a4dc;
  --color-light:#ffff;
}
body{
  background: #ffff;
}
/**BOTON*/
/* =============================== */
.boton-clasico {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color:var(--color-light);
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}
.boton-clasico:hover {
    background: linear-gradient(135deg, #19028a, #94cef0);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/**NAVBAR*/
/* =============================== */
.navbar {
  background-color: var(--color-light);
  /* height: 80px;  <- Eliminar o comentar esta línea */
  padding-top: 1.5rem; /* Añadir padding superior */
  padding-bottom: 1.5rem; /* Añadir padding inferior */
  /* O usar la abreviatura: padding: 1.5rem 0; */
} 
.navbar-brand img{
    height: 50px; 
    width: auto;
}
.navbar-toggler{
    border:none;
    font-size: 1.25rem;
}
.navbar-toggler:focus, 
.btn-close:focus{
    box-shadow:none;
    outline:none;
}
.nav-link{
    font-weight: 500;
    font-style: oblique;
    position: relative;
}
.navbar .nav-link{
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
 }
.navbar .nav-link::before{
    content:"";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color:var(--color-secondary);
    visibility: hidden;
    transition: 0.3s ease-in-out;
 }
.navbar .nav-link:hover,
.navbar .nav-link.active{
    color:var(--color-secondary)!important;
}
.navbar .nav-link:hover::before,
.navbar .nav-link.active::before{
    width: 100%;
    visibility: visible;
}

/* =============================== */

/**CARRUSEL*/
/* =============================== */
/* HERO FULL WIDTH */
.hero-section{
    padding: 0;
}

.hero-section .carousel,
.hero-section .carousel-inner,
.hero-section .carousel-item{
    width: 100%;
}

.hero-section img{
    width: 100%;
    height: auto;
    display: block;
}

/* BOTONES DEL CAROUSEL */
.hero-section .carousel-control-prev,
.hero-section .carousel-control-next{
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background-color: var(--color-light);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.hero-section .carousel-control-prev{ left: 20px; }
.hero-section .carousel-control-next{ right: 20px; }

/* Mostrar botones al pasar el mouse */
.hero-section .carousel:hover .carousel-control-prev,
.hero-section .carousel:hover .carousel-control-next{
    opacity: 1;
}

/* Hover botones */
.hero-section .carousel-control-prev:hover,
.hero-section .carousel-control-next:hover{
    background-color: var(--color-primary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

/* ICONOS */
.hero-section .carousel-control-prev-icon,
.hero-section .carousel-control-next-icon{
    background: none;
    width: 20px;
    height: 20px;
    position: relative;
}

.hero-section .carousel-control-prev-icon::before,
.hero-section .carousel-control-next-icon::before{
    content: '';
    border: solid var(--color-secondary);
    border-width: 0 3px 3px 0;
    padding: 6px;
    position: absolute;
    top: 50%;
    left: 50%;
}

/* Flechas */
.hero-section .carousel-control-prev-icon::before{
    transform: translate(-50%, -50%) rotate(135deg);
}

.hero-section .carousel-control-next-icon::before{
    transform: translate(-50%, -50%) rotate(-45deg);
}
/* =============================== */
/**NOSOTROS*/
/* =============================== */
.nosotros {
    padding-top: 60px;
    padding-bottom: 60px;
    background-color:var(--color-light);
}
.nosotros .col-md-6 {
    margin-bottom: 40px;
}
.icon-shape {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    color:var(--color-light);
    font-size: 2.2rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}
.icon-shape:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}
.titulo-nosotros {
    color:var(--color-secondary);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

}
.parrafo-nosotros {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #5a5858;
    text-align: center;
}
.titulo-nosotros::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background:var(--color-primary);
    margin: 8px auto 0 auto;
    border-radius: 2px;
}
/* =============================== */
/**CLIENTES*/
/* =============================== */
.clientes-title {
  font-size: 1.5rem;
  font-weight: 700;
  color:var(--color-secondary);
}
.client-carousel {
  overflow: hidden;
  position: relative;
  width: 100%;
}
.carousel-track {
  display: flex;
  gap: 50px;
  will-change: transform;
}
.carousel-track img {
  max-width: 180px;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.carousel-track img:hover {
  transform: scale(1.1);
}
/* =============================== */
/**AGENTE*/
/* =============================== */
.titulo-principal {
    font-size: 2rem; /* grande y llamativo */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 700;
    color:var(--color-secondary);
    line-height: 1.2;
    margin-bottom: 20px;
    position: relative;
    letter-spacing: 1px;
}
.titulo-principal::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    border-radius: 2px;
    margin-top: 12px;
}
.parrafo-section {
  font-size: 0.95rem;
    line-height: 1.65;
    color: #5a5858;
    text-align: justify;
}

.texto-span {
    color: var(--color-secondary);
    font-weight: 600;
}
/* =============================== */
/**SERVICIOS*/
/* =============================== */
.servicios {
  padding: 80px 20px;
}
.services-section {
  margin-bottom: 60px;
}
.services-title {
   font-size: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 700;
    color:var(--color-secondary);
    line-height: 1.2;
    margin-bottom: 20px;
    position: relative;
    letter-spacing: 1px;
}
.services-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
  margin: 12px auto 0;
  border-radius: 2px;
}

.services-subtitle {
  font-size: 1.25rem;
  font-weight: 700;
  color:var(--color-primary);
  opacity: 0.85;
  line-height: 1.6;
  margin-top: 10px;
}
.card-hover-with-icon {
  height: 450px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  color:var(--color-light);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.card-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
  z-index: 0;
}
.card-hover-with-icon .card-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background:var(--color-light); 
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  border: 2px solid rgba(0,0,0,0.1);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: background 0.3s ease, border 0.3s ease;
}
.card-icon i {
  font-size: 28px;
  color:var(--color-primary); 
  transition: color 0.3s ease;
}
.card-hover-with-icon:hover .card-icon {
  background:var(--color-secondary);
  border-color: var(--color-primary);
}
.card-hover-with-icon:hover .card-icon i {
  color:var(--color-light);
}
.card-hover-with-icon .card-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: 50px 20px 30px;
  position: relative;
  z-index: 2;
  transition: opacity 0.3s ease;
}
.card-hover-with-icon h4 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.card-hover-with-icon p {
  font-size: 0.95rem;
  line-height: 1.65;
  text-align: justify;
  margin-bottom: 12px;
  opacity: 0.85;
}
.card-hover-with-icon::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 55%;
  background: linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0.55), transparent);
  pointer-events: none;
  z-index: 1;
}
.card-hover-text {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  color:var(--color-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 10;
  padding: 60px 20px 20px 20px; 
}
.card-hover-text p {
  font-size: 1.2rem;
  margin: 0 0 20px 0;
}
.btn-contact {
  display: inline-block;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
  color:var(--color-light);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  z-index: 12;
  overflow: hidden;
}
.btn-contact:hover {
  background: linear-gradient(135deg,  #05e2e2,#291e7e);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 25px rgba(0,0,0,0.3);
}
.btn-contact::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(255,255,255,0.2);
  transform: skewX(-25deg);
  transition: left 0.5s ease;
}
.btn-contact:hover::after {
  left: 125%;
}
.card-hover-with-icon:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.3);
}
.card-hover-with-icon:hover .card-body {
  opacity: 0;
}
.card-hover-with-icon:hover .card-hover-text {
  opacity: 1;
}
/* =============================== */
/**TESTIMONIOS*/
/* =============================== */

.testimonios .container{
  position: relative;
  z-index: 2;
}
.testimonios {
  display: flex;
  flex-direction: column; 
  justify-content: center; 
  align-items: center; 
  min-height: 300px; 
  padding: 60px 20px; 
  text-align: center;
  background: linear-gradient(195deg, #016f6f, var(--color-primary));
}
.testimonios h2.text-center.fw-bold {
 font-size: 2rem; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 700;
    color:var(--color-light);
    line-height: 1.2;
    margin-bottom: 20px;
    position: relative;
    letter-spacing: 1px;
}
.testimonios h2.text-center.fw-bold::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(135deg, var(--color-light), var(--color-light));
  margin: 10px auto 0; 
  border-radius: 2px;
}
.test-row {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  height: auto;
  min-height: 250px; 
}
.test-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateX(50px);
  transition: all 1s ease-in-out;
  text-align: center;
  padding: 60px 40px; 
  border-radius: 20px;
  background:var(--color-light);
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
  box-sizing: border-box;
}
.test-item.active {
  opacity: 1;
  transform: translateX(0);
  position: relative;
}
.test-item img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--color-secondary);
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.test-item h3 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 15px;
  font-weight: 700;
}
.test-item p {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  color: #5a5858;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}
.indicators {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}
.dot {
  width: 12px;
  height: 12px;
  background: #ccc;
  border-radius: 50%;
  margin: 0 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #05e2e2;
  transform: scale(1.3);
}
/* =============================== */
/**PREGUNTAS*/
/* =============================== */
.faq-header-glass {
  text-align: center;
  padding: 100px 20px;
  margin: 60px auto;
  max-width: 900px;
  border-radius: 24px;
background:var(--color-light);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  position: relative;
}
.faq-title {
  font-size: 2rem; /* grande y llamativo */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 700;
    color:var(--color-secondary);
    line-height: 1.2;
    margin-bottom: 20px;
    position: relative;
    letter-spacing: 1px;
}
.faq-title::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
   background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
  margin: 14px auto 0;
  border-radius: 2px;
}

.faq-subtitle {
   font-size: 1.25rem;
  font-weight: 700;
  color:var(--color-primary);
  opacity: 0.85;
  line-height: 1.6;
  margin-top: 10px;
   opacity: 0;
  transform: translateY(20px);
  transition: all 1s ease;
}
.faq-header-glass.visible .faq-title,
.faq-header-glass.visible .faq-subtitle {
  opacity: 1;
  transform: translateY(0);
}
.mt-8 .btn {
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid #0554ca;
  background: #ffffff;
  color: #111827;
  transition: all 0.3s ease;
}
.mt-8 .btn:hover {
  background: #f3f4f6;
  border-color: #4f46e5;
  color: var(--color-primary);
}
.accordion {
  max-width: 800px;
  margin: 80px auto;
}
.accordion-card {
  background: var(--color-light);
  border-radius: 16px;
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1rem;
  color: #111827;
  text-decoration: none;
  transition: color 0.3s ease;
}
.accordion-toggle:hover {
  color: #4f46e5;
  cursor: pointer;
}
.accordion-card.active .question-text {
  color: #4f46e5;
}
.collapse-toggle i {
  font-size: 1.1rem;
  transition: transform 0.3s ease, color 0.3s ease;
}
.accordion-card.active .collapse-toggle i {
  transform: rotate(45deg);
  color: #4f46e5;
}
.answer-wrapper {
  height: 0;
  overflow: hidden;
  transition: height 0.35s ease;
}
.answer {
  padding: 16px 24px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #4b5563;
  border-top: 1px solid #e5e7eb;
}
.mt-8 {
  margin-top: 60px;
  text-align: center;
}
.mt-8 .btn {
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  transition: all 0.3s ease;
}
.mt-8 .btn:hover {
  background: #f3f4f6;
  border-color: #4f46e5;
  color: #4f46e5;
}
/* =============================== */
/**FOOTER*/
/* =============================== */
.footer {
  background:var(--color-primary);
  
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  border-top: 1px solid #ffffff;
  padding-top: 60px;
  padding-bottom: 30px;
}

.footer a {
  color:var(--color-secondary); /* azul premium */
  text-decoration: none;
  transition: all 0.3s ease;
}
.footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer .fs-4 a svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease, fill 0.3s ease;
  fill: #ffffff;
}
.footer .fs-4 a:hover svg {
  fill: #4f46e5;
  transform: scale(1.1);
}
/* Footer titles */
.footer h3 {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 16px;
  color:var(--color-light);
  letter-spacing: -0.5px;
}

/* Footer lists */
.footer .nav-footer .nav-link {
  padding: 0;
  margin-bottom: 10px;
  color:var(--color-light);
  font-weight: 400;
  font-style: normal;
}

.footer .nav-footer .nav-link:hover {
  color: #00ddff;
}
.footer p {
  margin-bottom: 8px;
  color: #ffffff;
}

/* Border top row */
.footer .border-top {
  border-color: var(--color-light) !important;
  margin-top: 40px;
  padding-top: 20px;
}

.footer span {
  font-size: 0.85rem;
  color:var(--color-light);
}
.footer .container {
  position: relative;
  z-index: 1;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 100%;
  box-shadow: 0 -15px 30px rgba(0,0,0,0.03);
  border-radius: 24px 24px 0 0;
  pointer-events: none;
  z-index: 0;
}
/********/
/* Ocultar botón en móviles */
@media (max-width: 991px){
    .boton-clasico{
        display: none;
    }
     

   .hero-section .carousel-item img{
        height: 65vh;
        object-fit: cover;
        object-position: center;
    }
       .titulo-principal{
        text-align: center;
    }

    .titulo-principal::after{
        margin: 12px auto 0 auto; /* centra la línea */
    }
      .card-hover-text {
    padding: 40px 15px 15px 15px; /* menos padding lateral y superior */
  }

  /* Botón centrado y adaptable */
  .btn-contact {
    display: block;
    width: 90%;
    max-width: 250px;
    margin: 15px auto 0;
    padding: 12px 20px;
    font-size: 1rem;
    text-align: center;
    border-radius: 50px;
    box-sizing: border-box;
    transition: all 0.3s ease;
  }

  /* Icono más pequeño y centrado */
  .card-hover-with-icon .card-icon {
    width: 60px;
    height: 60px;
    top: 10px;
  }

 .card-hover-with-icon h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }

  .card-hover-with-icon p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
   .footer {
    text-align: center;
  }
  .footer .d-md-flex {
    flex-direction: column;
    gap: 10px;
    justify-content: center !important;
  }
 
    .navbar-toggler{
        padding: 10px 12px; /* ajusta el tamaño del área clickeable */
        font-size: 1.5rem;  /* agranda el icono */
    }

    .navbar .container-fluid{
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        padding: 10px 35px;
    }

    .boton-clasico{
        display: none; /* oculta agendar cita en móvil */
    }

    .navbar-brand{
        margin-right: 8px;
    }
    
}

