/* ----------------------------------------
  Fuente base
---------------------------------------- */
body {
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  color: #222;
  background-color: #fff;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* ----------------------------------------
  Paleta de colores Whirlpool
---------------------------------------- */
:root {
  --lagoma-red: #d63c2b;
  --lagoma-gray: #f5f5f5;
  --lagoma-dark: #333333;
  --whatsapp-green: #25d366;
}

/* ----------------------------------------
  Utilidades generales
---------------------------------------- */
.bg-gray {
  background-color: var(--lagoma-gray);
}

.bg-yellow {
  background-color: var(--lagoma-red);
}

.text-yellow {
  color: var(--lagoma-red);
}

.text-dark {
  color: var(--lagoma-dark);
}

.btn-yellow {
  background-color: var(--lagoma-red);
  color: #000;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 0.3rem;
  transition: background-color 0.3s ease;
}

.btn-yellow:hover {
  background-color: #d63c2b;
  color: #000;
}

/* Evita la detección automática de números como links */
meta[name="format-detection"] {
  content: "telephone=no";
}

/* Estilo para enlaces de teléfono detectados automáticamente */
.phone-text {
  color: #d63c2b !important;
  text-decoration: none !important;
}

/* También para casos donde Safari ya aplicó su estilo */
.phone-text a {
  color: #d63c2b !important;
  text-decoration: none !important;
}

/* ----------------------------------------
  Barra superior
---------------------------------------- */
.topbar {
  background-color: var(--lagoma-gray);
  font-size: 0.9rem;
  padding: 0.3rem 0;
  color: #444;
}

.topbar a {
  position: relative;
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.topbar a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease-in-out;
}

.topbar a:hover::after {
  transform: scaleX(1);
}

/* ----------------------------------------
  Encabezado / menú
---------------------------------------- */
.border-yellow {
  border-bottom: 2px solid var(--lagoma-red);
}

.navbar-brand img {
  max-height: 75px;
}

.navbar-nav .nav-link {
  color: #222;
  font-weight: 500;
  padding: 0.5rem 1rem;
  position: relative;
  transition: color 0.2s ease;
  text-decoration: none;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background-color: var(--lagoma-red);
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--lagoma-red);
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

/* Botón de WhatsApp y reutilizable */
.btn-yellow {
  background-color: var(--lagoma-red);
  color: #fff;
  border-radius: 2rem;
  padding: 0.5rem 1.5rem;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-yellow:hover {
  background-color: black;
  color: var(--lagoma-red);
  text-decoration: none;
}

/* Logos unificados (hero + banner) */
.brand-logo { height: clamp(44px, 7vw, 84px); width: auto; }

/* Halo para fondos oscuros (banner bg-dark, captions del slider, etc.) */
.bg-dark .brand-logo,
.carousel-caption .brand-logo { filter: drop-shadow(0 1px 4px rgba(255,255,255,.25)); }

/* Separador de logos en el hero */
.brand-sep { font-size: 1.5rem; opacity: .8; }

/* Mejor legibilidad del texto del slider */
.carousel-caption { text-shadow: 0 2px 8px rgba(0,0,0,.5); }

[id] {
  scroll-margin-top: 110px; /* ajustá este valor al alto real de tu navbar */
}

/* ----------------------------------------
  Carrusel principal
---------------------------------------- */
.slide-bg {
  height: 450px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.carousel-caption {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
  color: #fff;
}

.carousel-caption h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.carousel-caption p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.carousel-control-prev,
.carousel-control-next {
  z-index: 3 !important;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-size: 100% 100%;
  background-image: none;
}

.carousel-control-prev-icon::after,
.carousel-control-next-icon::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  border: solid white;
  border-width: 0 3px 3px 0;
  padding: 5px;
}

.carousel-control-prev-icon::after {
  transform: rotate(135deg);
}

.carousel-control-next-icon::after {
  transform: rotate(-45deg);
}

/* ----------------------------------------
  Tarjetas de servicio
---------------------------------------- */
.card-service {
  border: 1px solid #ddd;
  border-left: 5px solid var(--lagoma-red);
  background-color: #fff;
  padding: 1rem;
  transition: all 0.3s ease;
}

.card-service:hover {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* ----------------------------------------
  Iconos de atributos
---------------------------------------- */
.icon-box {
  text-align: center;
  padding: 1rem;
  border-radius: 0.5rem;
}

.icon-box i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--lagoma-red);
}

/* ----------------------------------------
  Preguntas Frecuentes
---------------------------------------- */
.faq-question {
  font-weight: 600;
  cursor: pointer;
}

.faq-answer {
  display: none;
  padding: 0.5rem 1rem;
  border-left: 3px solid var(--lagoma-red);
}

/* ----------------------------------------
  Footer
---------------------------------------- */
.footer {
  background-color: var(--lagoma-gray);
  padding: 2rem 1rem;
  font-size: 0.95rem;
  color: #555;
}

.footer a {
  color: #555;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* ----------------------------------------
  WhatsApp flotante
---------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--whatsapp-green);
  color: #fff;
  border-radius: 50%;
  padding: 0.8rem;
  font-size: 1.5rem;
  z-index: 999;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* ----------------------------------------
  Mini Banner Call Me
---------------------------------------- */
.call-banner {
  background-color: #353535 !important;
  padding: 1.5rem 0;
}

.call-banner img {
  max-height: 50px;
  transition: all 0.3s ease;
}

.call-banner p {
  margin: 0;
  font-weight: bold;
  font-size: 1.1rem;
}

.phone-text {
  font-size: 1.75rem !important; /* fs-2 equivalente */
  white-space: nowrap; /* Evita salto de línea en escritorio */
}

.call-banner .btn-yellow {
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 2rem;
  padding: 0.4rem 1.2rem;
  white-space: normal;
  line-height: 1.2;
}

.border-orange {
  border: 2px solid #960a06;
  border-radius: 2rem;
}

/* ----------------------------------------
  Características Servicio
---------------------------------------- */

.caracteristicas-servicio {
  background-image: url("img/banner/venta_neumaticos_corven_chaoyang_10.webp");
  background-size: cover;
  background-position: center;
  position: relative;
}

.caracteristicas-servicio .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7); /* Fondo más oscuro */
  z-index: 1;
}

.caracteristicas-servicio .container {
  position: relative;
  z-index: 2;
}

.feature-box {
  background-color: rgba(214, 60, 43, 0.22); /* Dorado suave */
  border-radius: 1rem;
  transition: transform 0.3s ease, background-color 0.3s ease;
}
.feature-box:hover {
  transform: scale(1.05);
  background-color: rgba(214, 60, 43, 0.30);
}

.feature-box i {
  color: #d63c2b; /* Color amarillo como el botón principal */
}

.caracteristicas-servicio .row .feature-box h5 {
  word-break: break-word;
  hyphens: auto;
}

/* ----------
  Servicios
------------ */

.servicios-lgm .card {
  border-color: #d63c2b;
  border-radius: 1rem;
  color: #fff;
  /* Eliminamos h-100, dejamos que la altura sea natural */
}

.servicios-lgm .btn-link {
  color: #d63c2b;
  text-decoration: underline;
}

.servicios-lgm .btn-outline-warning {
  border-radius: 2rem;
  padding: 0.5rem 1.5rem;
}

.servicios-lgm .card-title {
color: #d63c2b
}

/* ✅ Bootstrap base */
.collapse {
  transition: height 0.35s ease;
}

/* ✅ Transición personalizada solo si usamos .info-extra */
.info-extra {
  overflow: hidden;
  transition: max-height 0.5s ease-in-out;
  max-height: 0;
}

.info-extra.show {
  max-height: 500px; /* Ajustá esto según el contenido */
}

/* ✅ Card activa con efecto */
.card.active-card {
  z-index: 2;
  position: relative;
  box-shadow: 0 0 20px rgba(255, 193, 7, 0.5);
  border-color: #d63c2b;
}

/* Botón para toggle de información */
.btn-info-toggle {
  font-size: 0.9rem;
  font-weight: 500;
  color: #999;
  text-decoration: none;
  transition: color 0.3s ease;
  background: none;
  border: none;
}

.btn-info-toggle:hover {
  color: #d63c2b;
}

/* ----------------------------------------
  Carrusel Productos
---------------------------------------- */



/* ----------------------------------------
  Formulario de Contacto
---------------------------------------- */

.bg-form {
  background-color: #353535 !important;
}

.form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 15px;
}

#contactForm input,
#contactForm textarea,
#contactForm select {
  background-color: #f8f9fa;
  border: 1px solid #ced4da;
  color: #212529;
}

#contactForm input::placeholder,
#contactForm textarea::placeholder {
  color: #6c757d;
}

/* Botón con estilo Whirlpool */
#contactForm .btn-outline-warning {
  border-radius: 2rem;
  padding: 0.5rem 1.5rem;
  border: 2px solid #d63c2b;
  color: #d63c2b;
  background-color: transparent;
  transition: all 0.3s ease;
}

#contactForm .btn-outline-warning:hover {
  background-color: #d63c2b;
  color: #000;
}

.btn-service {
  display: inline-block;
  background-color: transparent;
  color: #d63c2b;
  border: 2px solid #d63c2b;
  font-weight: bold;
  padding: 0.5rem 1.5rem;
  border-radius: 999px;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-service:hover {
  background-color: #d63c2b;
  color: #000;
}

/* Campo de texto con borde dorado al hacer foco */
.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
  border-color: #d63c2b;
  box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
}

/* Asegura que no haya interferencias con validación */
.form-control:focus:valid,
.form-select:focus:valid,
textarea.form-control:focus:valid {
  border-color: #d63c2b;
  box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
}

/* ----------------------------------------
  Footer
---------------------------------------- */

footer {
  background-color: #212529;
  color: #ddd;
}

/* Enlaces generales */
footer a {
  color: #ddd;
  text-decoration: none;
  position: relative;
  display: inline-block;
  transition: color 0.3s ease;
}

/* Subrayado animado en hover */
footer a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background-color: #d63c2b;
  transition: width 0.3s ease;
}

footer a:hover {
  color: #d63c2b;
}

footer a:hover::after {
  width: 100%;
}

/* Íconos de contacto y redes sociales */
footer .contact-info i,
footer .social-icons i {
  color: #d63c2b;
  margin-right: 5px;
  transition: transform 0.3s ease, color 0.3s ease;
}

footer .social-icons i:hover,
footer .contact-info i:hover {
  color: #fff;
  transform: scale(1.2);
}

/* Listas sin estilos */
footer ul {
  padding-left: 0;
  list-style: none;
  margin-bottom: 0;
}

footer ul li {
  margin-bottom: 0.5rem;
}

/* Títulos de sección */
footer h5 {
  color: #fff;
  font-weight: bold;
}

/* Separador dorado arriba del footer */
footer.footer-dark {
  border-top: 3px solid #d63c2b;
}

/* Aire sobre secciones */
/* Formulario */
#contacto {
  padding-top: 80px !important;
  padding-bottom: 80px !important;
}

/* Footer */
footer.footer-dark {
  padding-top: 80px !important;
  padding-bottom: 60px !important;
}

/* ----------------------------------------
  Estilo del botón flotante de WhatsApp
---------------------------------------- */
.whatsapp-float {
  position: fixed;
  width: 70px;
  height: 70px;
  bottom: 25px; /* MÁS ARRIBA */
  right: 25px; /* MÁS ALEJADO DEL BORDE */
  background-color: #d63c2b; /* Color principal del fondo */
  color: #1c1e21; /* Ícono color amarillo */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px; /* Ícono más grande */
  box-shadow: 0 0 8px 4px rgba(255, 73, 7, 0.7);
  z-index: 9999;
  text-decoration: none !important; /* 👈 ELIMINA subrayado */
  transition: all 0.3s ease;
}

.whatsapp-float i {
  display: block;
  line-height: 1;
  pointer-events: none; /* Asegura que el clic se lo lleve el <a> */
}

/* Hover */
.whatsapp-float:hover {
  background-color: #1c1e21;
  color: #d63c2b;
  box-shadow: 0 0 10px 5px rgba(255, 73, 7, 0.7);
  cursor: pointer;
}

/* ----------------------------------------
  Media Queries (ordenado de menor a mayor)
---------------------------------------- */

/* Móviles pequeños */
@media (max-width: 575.98px) {
  .btn-yellow {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .carousel-caption {
    padding: 0.5rem;
  }

  .faq-question {
    font-size: 1rem;
  }

  .slide-bg {
    padding: 1rem;
  }

  .carousel-caption h2 {
    font-size: 1.6rem;
  }

  .carousel-caption p {
    font-size: 0.95rem;
  }

  .phone-text {
    font-size: 1.2rem !important; /* fs-5 aproximado */
    white-space: normal; /* Permite salto de línea si hace falta */
  }

  .call-banner img {
    max-height: 45px;
  }
}

/* Móviles medianos / tablets pequeñas */
@media (max-width: 767.98px) {
  .slide-bg {
    padding: 2rem 1rem;
  }

  .carousel-caption h2 {
    font-size: 1.6rem;
  }

  .carousel-caption p {
    font-size: 1rem;
  }

  .call-banner img {
    max-height: 45px;
  }

  .phone-text {
    font-size: 1.2rem !important; /* fs-5 aproximado */
    white-space: normal;
  }

}

/* Tablets y laptops pequeñas */
@media (max-width: 991.98px) {
  .topbar {
    text-align: center;
  }

  .navbar-collapse {
    background-color: #fff;
    padding: 1rem;
  }

  .carousel-caption {
    font-size: 0.9rem;
  }

  .icon-box {
    padding: 0.5rem;
  }

  .slide-bg {
    padding: 1rem;
  }

  .carousel-caption h2 {
    font-size: 2rem;
  }

  .carousel-caption p {
    font-size: 1rem;
  }

  .phone-text {
    font-size: 1.2rem !important; /* Entre fs-3 y fs-4 */
  }

  .call-banner img {
    max-height: 60px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .call-banner .brand-logos { flex-wrap: wrap; }
  .call-banner .brand-logos .brand-logo { flex: 0 0 100%; }

    /* Logos centrados */
  .call-banner .brand-logo {
    display: block;
    margin-inline: auto !important;
  }

  /* Las columnas con text-md-end pasan a centrado */
  .call-banner .text-md-end {
    text-align: center !important;
  }

  /* Botones centrados y con ancho cómodo */
  .call-banner .btn-yellow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 360px;
    margin-inline: auto;
  }

}

/* PC grandes */
@media (min-width: 1200px) {
  .call-banner img {
    max-height: 65px;
  }

  .call-banner p {
    font-size: 1.4rem;
  }

  .call-banner .btn-yellow {
    font-size: 1.1rem;
    padding: 0.75rem 2rem;
  }
}

/* ====== CAROUSELES (MOBILE/TABLET 1× y DESKTOP 3×) ====== */

/* Base común a ambos */
#carruselProductos,
#carruselProductosDesktop { --arrow-color: var(--lagoma-red); }

#carruselProductos .product-card,
#carruselProductosDesktop .product-card{
  border:2px solid var(--lagoma-red);
  border-radius:16px;
  background:#fff;
  text-align:center;
  padding:14px;
  height:100%;
  max-width:360px;          /* 1× (mobile/tablet) */
  margin:0 auto;
}

#carruselProductos .tire-img,
#carruselProductosDesktop .tire-img{
  width:100%;
  height:220px;
  object-fit:contain;
  margin-bottom:10px;
}

#carruselProductos .title,
#carruselProductosDesktop .title{
  font-weight:800;
  margin:8px 0 14px;
}

/* Flechas rojas dentro del viewport */
#carruselProductos .carousel .carousel-control-prev,
#carruselProductos .carousel .carousel-control-next,
#carruselProductosDesktop .carousel .carousel-control-prev,
#carruselProductosDesktop .carousel .carousel-control-next{
  width:auto; opacity:1; top:50%; transform:translateY(-50%);
}

#carruselProductos .carousel .carousel-control-prev,
#carruselProductosDesktop .carousel .carousel-control-prev{ left:8px; }
#carruselProductos .carousel .carousel-control-next,
#carruselProductosDesktop .carousel .carousel-control-next{ right:8px; }

#carruselProductos .carousel .carousel-control-prev-icon,
#carruselProductos .carousel .carousel-control-next-icon,
#carruselProductosDesktop .carousel .carousel-control-prev-icon,
#carruselProductosDesktop .carousel .carousel-control-next-icon{
  background-image:none; width:38px; height:38px; border-radius:50%;
  background:#fff; position:relative; box-shadow:0 2px 6px rgba(0,0,0,.15);
}

#carruselProductos .carousel .carousel-control-prev-icon::after,
#carruselProductos .carousel .carousel-control-next-icon::after,
#carruselProductosDesktop .carousel .carousel-control-prev-icon::after,
#carruselProductosDesktop .carousel .carousel-control-next-icon::after{
  content:""; position:absolute; inset:0; margin:auto; width:14px; height:14px;
  border:3px solid var(--arrow-color); border-top:0; border-left:0;
}
#carruselProductos .carousel .carousel-control-prev-icon::after,
#carruselProductosDesktop .carousel .carousel-control-prev-icon::after{ transform:rotate(135deg); }
#carruselProductos .carousel .carousel-control-next-icon::after,
#carruselProductosDesktop .carousel .carousel-control-next-icon::after{ transform:rotate(-45deg); }

/* Transición del slide (1× más rápida, 3× más lenta) */
#carruselProductos .carousel-item{        transition: transform .9s  ease; }
#carruselProductosDesktop .carousel-item{  transition: transform 1.1s ease; }

/* ===== Desktop: 3× más compacto ===== */
@media (min-width: 992px){
  #carruselProductosDesktop .col-lg-4{
    display:flex; justify-content:center;
  }
  #carruselProductosDesktop .product-card{
    max-width:320px;        /* más angosta */
    width:100%;
    padding:12px 16px;
    border-radius:14px;
  }
  #carruselProductosDesktop .tire-img{ height:180px; }
  #carruselProductosDesktop .title{ font-size:1rem; line-height:1.25; }
}


/* ===== Catálogo (autos / motos) ===== */
.catalog-hero h1 { font-weight: 800; }
.catalog-hero p { color:#666; }

.catalog-card{
  border:2px solid var(--lagoma-red);
  border-radius:16px;
  background:#fff;
  text-align:center;
  padding:14px;
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.catalog-card .tire-img{
  width:100%;
  height:275px; /* 180–220 según foto */
  object-fit:contain;
  margin-bottom:10px;
}
.catalog-card .title{
  font-weight:800;
  font-size:1rem;
  line-height:1.25;
  margin:6px 0 12px;
}
.catalog-card .btn-wa{
  display:inline-flex; align-items:center; gap:.5rem;
  border:2px solid var(--lagoma-red);
  color:var(--lagoma-red);
  background:transparent;
  font-weight:700;
  border-radius:999px;
  padding:.5rem 1.25rem;
  text-decoration:none;
  transition:.2s ease;
}
.catalog-card .btn-wa:hover{
  background:var(--lagoma-red);
  color:#000;
}