body{
    font-family: 'Montserrat', sans-serif;
    background-color: #222;
}

html {
    scroll-behavior: smooth;
}

section {
    padding: 100px 0;
    min-height: 100vh;
}

nav {
    background-color: #0A3375;
    color: #FFF;
    font-size: 15px;
}

.header{
    background-color: #E2E2E2;
}

.text-white{
    color: #FFF;
    font-size: 15px;
}

/* menu */
.nav-fade {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards;
}
.nav-fade:nth-child(1) { animation-delay: 0.2s; }
.nav-fade:nth-child(2) { animation-delay: 0.4s; }
.nav-fade:nth-child(3) { animation-delay: 0.6s; }
.nav-fade:nth-child(4) { animation-delay: 0.8s; }

.nav-link {
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s;
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: #8BBF40;
    transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* imagen */
.header {
    display: flex;
    height: 150px;
    background-color: #fff;
}
.logo-containers {
    width: 25%;
    height: 100%;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.header-right {
    width: 75%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.phone {
    padding: 20px 20px;
    color: #000;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}
.navbar {
    background-color: #2B3741;
}
.phone i {
    color: #8BBF40;
    font-size: 1.4rem;
}
.phone-number {
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 25px;
}
.phone-number:hover {
    color: #8BBF40;
}
.phone {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1.2rem;
}
.flag-icon {
    width: 20px;
    height: auto;
    border-radius: 3px;
}
.navbar-nav .nav-item {
    margin: 0 10px;
}
.navbar-nav .nav-link {
    padding: 10px 20px;
}
.navbar {
    margin-bottom: 0;
}

/* inicio */
#inicio {
    margin: 0;
    padding: 0;
    position: relative;
}
.banner-grid {
    position: relative;
    width: 100%;
    height: 600px; /* para escritorio */
    background-image: url('../img/banner2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.banner-text {
    position: absolute;
    top: 40%;
    left: 5%;
    transform: translateY(-50%);
    max-width: 600px;
    color: #fff;
    z-index: 2;
}
.banner-overlay {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 30px;
    border-radius: 10px;
}
/* .banner-grid .cell {
    opacity: 0;
    animation: reveal 0.6s forwards;
    animation-timing-function: ease-in;
    background-color: rgba(94, 75, 75, 0.2);
}
@keyframes reveal {
    to { opacity: 3; }
} */

.sticky-nav {
    position: sticky;
    top: 0;
    background-color: #000;
    z-index: 999;
    padding: 10px;
}
.sticky-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}
.sticky-nav a {
    color: white;
    text-decoration: none;
}

/* slider */


.custom-slider-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.custom-slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.custom-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100vh; /* O usa altura fija como 300px si prefieres */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Botones */
.slider-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 2;
}

.slider-button.prev {
  left: 10px;
}

.slider-button.next {
  right: 10px;
}

/* Botones */
.slider-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 2;
}




/* marcas de carros */
.logo-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1000px;
    margin: auto;
    background-color: #f8f9fa;
}
.logo-container img {
    width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}
.logo-container img:hover {
    filter: grayscale(0%);
}

/* NUEVAS CLASES PARA SECCIÓN INSURANCE */
.image-left {
    flex: 1 1 30%; 
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    background-image: url('../img/insurance.jpg');
    background-size: cover;
    background-position: center;
}

.content-right {
    flex: 1 1 60%; 
    background: #2b3741;
    padding: 2rem; 
}


.info-box {
    display: inline-block;
    background-color: #f0f4ff;
    color: #2B3741;
    padding: 15px 20px;
    border-radius: 10px;
    border-left: 5px solid #82C452;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-style: italic;
    max-width: 500px;
    margin: 20px 0;
}
.info-box1 {
    display: inline-block;
    background-color: #1f2a33;
    color: #FFF;
    padding: 15px 20px;
    border-radius: 10px;
    border-left: 5px solid #FF2626;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-style: italic;
    max-width: 500px;
    margin: 20px 0;
}

/* services */
.servicios{
    background-color: #2B3741;
    color: #FFF;
    margin-top: 0 !important;
}
#servicios > .container-fluid {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
.toast-container-custom {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 30px auto;
    padding: 20px;
    max-width: 1000px;
}
.card {
    width: 300px;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
    transition: transform 0.2s, box-shadow 0.2s;
    color: #f0f0f0;
    border: 1px solid #3a3a3a;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.9);
}
.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #444;
}
.card-content {
    padding: 15px;
    text-align: left;
}
.card-content h2 {
    margin: 0 0 10px;
    font-size: 20px;
    color: #82C452;
}
.card-content p {
    margin: 0;
    font-size: 14px;
    color: #ccc;
}
.card-horizontal {
    display: flex;
    background: linear-gradient(145deg, #2b2b2b, #1a1a1a);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
    border: 1px solid #3a3a3a;
    max-width: 900px;
    margin: 0 auto;
}
.card-horizontal img {
    width: 300px;
    height: auto;
    object-fit: cover;
}
.card-horizontal .card-text {
    padding: 20px;
    flex: 1;
}
.card-text h2 {
    color: #82C452;
    margin-bottom: 15px;
}
.card-text ul {
    padding-left: 20px;
    list-style-type: disc;
    color: #ccc;
    font-size: 15px;
}
.card-text ul li {
    margin-bottom: 6px;
}

.accordion {
    max-width: 90%;
    margin: auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}
.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: #1f2937;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
}
.accordion-icon {
    transition: transform 0.3s ease;
    font-size: 40px;
}
.accordion-item.active .accordion-icon {
    transform: rotate(90deg);
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    background: #2B3741;
    padding: 0 24px;
}
.accordion-item.active .accordion-content {
    max-height: 600px;
    padding: 16px 24px 20px;
}
.accordion-content ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.accordion-content li {
    margin-bottom: 12px;
    display: flex;
    align-items: start;
    gap: 10px;
    color: #FFF;;
    font-size: 16px;
}
.accordion-content li i {
    color: #10b981;
    font-size: 18px;
    margin-top: 2px;
}
.accordion-header:hover {
    cursor: pointer;
    background-color: #34495e !important;
}

/* Galería y Lightbox */
.slider-container {
    overflow: hidden;
    position: relative;
}
.slider-track {
    display: flex;
    gap: 15px;
    padding: 10px 0;
    animation: scroll-left 25s linear infinite; /* Animación más lenta */
}
.slider-img {
    height: 180px;
    width: auto;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}
.slider-img:hover {
    transform: scale(1.05);
}
@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    text-align: center;
}
.lightbox-content {
    max-width: 80%;
    max-height: 80%;
}
.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}
.close:hover {
    color: #f1c40f;
}

/* Textos y botones */
.text-medio {
    font-size: 2rem;
    font-weight: 600;
    display: block;
    margin-bottom: 15px;
}
.call{
    background-color: #82C452;
    padding: 10px;
}
.animated-border {
    font-size: 1.2rem;
    margin-bottom: 20px;
}
.text-num{
    font-size: 40px;
    color: #8BBF40;
}
.blink-icon {
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.blink-icon:hover {
    color: #0565AC;
}
.bg-successs{
    background-color: #8BBF40;
    color: #000;
    padding: 10px;
}
.alinear-izquierda {
    text-align: left;
    padding-left: 1rem;
    margin: 0 auto;
}
.social-icon i {
    font-size: 1.8rem;
    color: #fff;
    transition: color 0.3s, transform 0.3s;
}
.social-icon:hover i {
    color: #8bc34a;
    transform: scale(1.2);
}
.btn-style {
    background: linear-gradient(135deg, #8bc34a, #558b2f);
    color: white;
    border: none;
    padding: 10px 25px;
    font-weight: bold;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: background 0.3s, transform 0.2s;
}
.btn-style:hover {
    background: linear-gradient(135deg, #7cb342, #33691e);
    transform: scale(1.05);
}

/* Menú flotante */
.floating-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #8bc34a;
    color: #000;
    border: none;
    font-size: 24px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    z-index: 1001;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.bubble-menu {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    padding: 10px 0;
    z-index: 1000;
    display: none;
    min-width: 150px;
}
.bubble-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.bubble-menu ul li {
    padding: 10px 20px;
}
.bubble-menu ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    display: block;
}
.bubble-menu ul li:hover {
    background-color: #f0f0f0;
}
.bubble-menu.active {
    display: block;
}

/* Testimonios */
.testimonios-section {
    background: white;
    padding: 40px 20px;
    max-width: 100%;
    margin: auto;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}
.testimonial {
    display: none;
    text-align: center;
    transition: opacity 1s;
}
.testimonial.active {
    display: block;
}
.testimonial p {
    font-size: 1.1em;
    color: #555;
}
.testimonial h4 {
    margin-top: 15px;
    color: #333;
}
.dots {
    text-align: center;
    margin-top: 20px;
}
.dot {
    display: inline-block;
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    cursor: pointer;
}
.dot.active {
    background-color: #333;
}


.agendar-section {
  padding: 40px 0;
  background-color: #1a1a1a;
}

.agendar-container {
  max-width: 1100px;
  margin: auto;
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.formulario {
  flex: 1 1 50%;
  min-width: 320px;
  color: #fff;
}

.formulario h3 {
  margin-bottom: 20px;
}

#contactForm {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.form-control {
  flex: 1;
  padding: 10px;
  border-radius: 5px;
  background-color: #2b3741;
  color: white;
  border: none;
  min-width: 140px;
}

.form-button {
  text-align: right;
}

.form-button button {
  background-color: #8bc34a;
  color: #000;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

.form-image {
  flex: 1 1 45%;
  text-align: center;
}

.form-image img {
  max-width: 100%;
  height: 450px;
  object-fit: contain;
}


.slider-container {
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  padding: 10px 0;
  height: auto; /* No forzar altura */
}

.slider-track {
  display: flex;
  gap: 10px;
  align-items: center;
}

.slider-img {
  width: 180px;             /* Controlar el ancho */
  height: 120px;            /* Fijar alto razonable */
  object-fit: cover;        /* Recorta sin deformar */
  border-radius: 8px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.slider-img:hover {
  transform: scale(1.05);
}

#contacto {
  padding: 40px 20px;        /* Ajusta el padding */
  margin: 0 auto;
  max-width: 1100px;
  height: auto !important;   /* Evita altura forzada */
  min-height: unset !important; /* Borra restricciones heredadas */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 20px;
}


  #bookForm input,
  #bookForm textarea {
    border-radius: 8px;
    font-size: 0.9rem;
    border: 1px solid #ddd;
    box-shadow: none;
  }

  #bookForm input:focus,
  #bookForm textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.1rem rgba(0, 123, 255, 0.1);
  }

  .modal-title {
    font-size: 1.25rem;
    color: #333;
  }

  .btn-close {
    font-size: 0.8rem;
    filter: none;
  }
/* ================================================================== */
/* =============== AQUI COMIENZAN LAS REGLAS RESPONSIVE =============== */
/* ================================================================== */

/* Para tablets y pantallas más pequeñas (hasta 992px) */
@media (max-width: 992px) {
    section {
        padding: 60px 0; /* Menos padding en pantallas pequeñas */
    }

    /* Apila las columnas de la sección Insurance */
    #servicios .container-fluid {
        flex-direction: column;
        min-height: auto;
    }

    #servicios .image-left {
        min-height: 40vh; /* Reducimos la altura de la imagen en móviles */
        width: 100%;
        flex: auto; /* Resetea el flex */
    }

     #servicios .content-right {
        width: 100%;
        flex: auto; /* Resetea el flex */
    }

    /* El header necesita reajustarse */
    .header {
        flex-direction: column;
        height: auto; /* Altura automática */
        padding: 15px;
    }

    .logo-containers,
    .header-right {
        width: 100%;
        text-align: center;
    }
    
    .logo-containers {
        margin-bottom: 15px;
        max-height: 100px;
    }

    .phone {
        justify-content: center; /* Centra el teléfono */
        margin-top: 15px;
    }

    .navbar-collapse {
        background-color: #2B3741; /* Fondo para el menú desplegado */
        padding: 15px;
        margin-top: 10px;
        border-radius: 5px;
        text-align: center;
    }
}

/* Para teléfonos móviles (hasta 768px) */
@media (max-width: 768px) {
    /* Ajusta los textos del banner principal */
    .banner-text {
        position: relative; /* Cambia a relativo para que fluya con el contenido */
        transform: none;
        max-width: 100%;
        padding: 20px;
        text-align: center;
        left: auto;
        top: auto;
        color: white; /* Asegurar color */
    }
    
    #inicio {
        display: flex;
        flex-direction: column;
    }

    .banner-grid {
        height: 300px;
        background-size: cover; /* 👈 mantener cover aquí */
        background-color: #000; /* fondo oscuro si acaso hay bordes */
    }

    .banner-text {
        order: 2; /* El texto va después */
        background-color: #1c1c1c; /* Fondo para que sea legible */
    }
    
    .col-md-12 {
        order: 3; /* La barra social va al final */
    }

    .text-medio {
        font-size: 1.5rem; /* Reduce el tamaño del texto */
    }

    .animated-border {
        font-size: 1rem;
    }

    .text-num {
        font-size: 30px;
    }

    /* Ajuste en el formulario de contacto */
    .agendar-container {
    flex-direction: column;
    align-items: center;
  }

  .form-row {
    flex-direction: column;
  }

  .form-button {
    text-align: center;
  }

  .form-image img {
    height: auto;
    max-height: 300px;
  }
    
    .card-horizontal {
        flex-direction: column;
        text-align: center;
    }

    .card-horizontal img {
        width: 100%;
        height: 200px;
    }

    .phone {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 5px;
    color: #fff;
    background-color: #1f2937;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;

  }

  .phone a,
  .phone span {
    width: 100%;
    margin-top: 5px;
  }

  .phone-number {
    font-size: 1.2em;
    color: #FFF;
  }

  .phone i{
    display: none;
  }

  .phone span{
    display: none;
  }

  .slider-img {
    width: 120px;
    height: 90px;
  }

    #contacto {
    padding: 20px 10px;
    gap: 15px;
  }

   .custom-slide {
    height: auto;
    aspect-ratio: 16 / 9;
    background-size: contain;
    background-color: #000; /* Si sobra espacio */
  }

  .slider-button {
    font-size: 1.5rem;
  }

  .logo-container img {
    max-width: 80px;
  }

 

   .custom-slide {
    height: 250px; /* más bajo en móvil si no usas 100vh */
  }

 .menu-movil {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: #fff;
        border-top: 1px solid #ccc;
        display: flex;
        justify-content: space-around;
        padding: 10px 0;
        z-index: 999;
      }

      .menu-movil a {
        text-decoration: none;
        color: #333;
        font-size: 14px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
      }

      .menu-movil a i {
        font-size: 20px;
        margin-bottom: 3px;
      }


.floating-button{
    display: none;
}

#menuButton{
      display: none !important;
}
.navbar{
    display:none
}

}


@media (max-width: 480px) {
    .banner-grid {
        height: 220px; /* un poco más alto para móviles alargados */
    }

      .custom-slide {
    height: auto;
    aspect-ratio: 16 / 10;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }

  .logo-container img {
    max-width: 70px;
  }

  .floating-button{
    display: none;
}

#menuButton{
      display: none !important;
}

.navbar{
    display:none
}
}


@media (max-width: 1024px) {
      .banner-grid {
        height: auto;
        aspect-ratio: 16 / 9;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        background-color: #000;
    }
     .logo-container img {
    flex: 1 0 30%;
    max-width: 30%;
  }
}


@media (max-width: 600px) {
    .banner-grid {
        height: auto;
        aspect-ratio: 16 / 9; /* o ajusta el ratio real de tu imagen */
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        background-color: #000;
    }

  .logo-container img {
    flex: 1 0 45%;
    max-width: 45%;
  }

.floating-button{
    display: none;
}

#menuButton{
       display: none !important;
}

.navbar{
    display:none
}
}