/* =========================================
   1. VARIABLES Y RESET GENERAL
   ========================================= */
:root {
  --brand-blue: #2563eb;
  --brand-dark: #0f172a;
  --brand-orange: #f97316;
  --bg-light: #f8f9fa;
  --text-grey: #64748b;
  --white: #ffffff;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  margin: 0;
  color: var(--brand-dark);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.bg-light {
  background-color: var(--bg-light);
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--brand-dark);
}

/* =========================================
   2. HEADER Y MENÚ
   ========================================= */
header,
.navbar-pro {
  background-color: #ffffff !important;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.nav-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo-brand {
  font-size: 1.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 5px;
}

.desktop-menu {
  display: flex;
  gap: 30px;
  height: 100%;
  align-items: center;
}

.nav-item {
  color: var(--text-grey);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 24px 0;
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
}

.nav-item:hover {
  color: var(--brand-orange);
  border-bottom-color: var(--brand-orange);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.btn-pill {
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s;
}

.btn-pill:hover {
  transform: translateY(-2px);
}

.btn-outline {
  background: #ffffff;
  color: var(--brand-dark);
  border: 1px solid #cbd5e1;
}

.btn-blue {
  background: var(--brand-blue);
  color: #ffffff !important;
  border: 1px solid var(--brand-blue);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

/* =========================================
   3. HERO SLIDER PRO (DISEÑO FINAL)
   ========================================= */

/* Altura Fija del Bloque */
.carousel-inner {
  height: 450px;
  background-color: #0f172a;
  /* Fondo oscuro base */
}

/* Imagen de Fondo (Se ajusta sin deformarse) */
.slider-bg-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  /* CLAVE: Llena el espacio recortando lo que sobra */
  object-position: center;
}

/* DEGRADADO NEGRO (Sombra a la izquierda para leer texto) */
.slider-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Gradiente de negro (izq) a transparente (der) */
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 40%, rgba(0, 0, 0, 0) 100%);
  z-index: 1;
}

/* Título Grande */
.slider-title {
  font-size: 2.5rem;
  line-height: 1.1;
  max-width: 600px;
  /* Limita el ancho para que no choque con el form */
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
  /* Encima del overlay */
}

/* Línea naranja decorativa */
.slider-deco-line {
  width: 60px;
  height: 6px;
  background-color: #ea580c;
  margin-top: 20px;
  border-radius: 3px;
  position: relative;
  z-index: 2;
}

/* =========================================
   4. FORMULARIO DERECHA (INPUTS BOOTSTRAP)
   ========================================= */

/* Ajuste de colores de los bordes */
.input-group-text {
  border-color: #e2e8f0;
  background-color: #f8fafc;
}

.form-select,
.form-control {
  border-color: #e2e8f0;
  background-color: #f8fafc;
}

/* Efecto al hacer clic (Foco naranja) */
.form-select:focus,
.form-control:focus {
  box-shadow: none;
  border-color: #ea580c;
  background-color: #fff;
}

.input-group:focus-within .input-group-text {
  border-color: #ea580c;
  background-color: #fff;
}

/* Botón Pedir */
.btn-warning {
  background-color: #ea580c;
  border: none;
  transition: background 0.3s;
}

.btn-warning:hover {
  background-color: #c2410c;
}


/* =========================================
   5. RESPONSIVE (CELULAR)
   ========================================= */
@media (max-width: 991px) {

  /* Slider más bajo en móvil */
  .carousel-inner {
    height: 280px;
  }

  /* Texto centrado y más chico */
  .slider-title {
    font-size: 1.6rem;
    text-align: center;
    margin: 0 auto;
  }

  .slider-deco-line {
    margin: 15px auto;
  }

  /* Overlay completo para leer bien en móvil */
  .slider-overlay {
    background: rgba(0, 0, 0, 0.5);
  }

  /* Ajuste de Bootstrap Caption en móvil */
  .carousel-caption {
    padding-left: 1rem !important;
    text-align: center !important;
    align-items: center !important;
    left: 0 !important;
  }
}

@media (max-width: 968px) {
  .desktop-menu {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .btn-outline {
    display: none;
  }
}


/* =========================================
   6. PRODUCTOS Y EXTRAS
   ========================================= */
.products-section {
  background-color: #ffffff;
  padding-top: 60px;
  padding-bottom: 80px;
}

.pro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.pro-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.pro-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
  border-color: var(--brand-blue);
}

.pro-card img {
  height: 220px;
  width: auto;
  margin: 0 auto 20px;
  object-fit: contain;
}

.pro-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--brand-dark);
  margin: 0 0 10px;
}

.price-blue {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--brand-blue);
  margin-bottom: 15px;
  display: block;
}

/* Testimonios y FAQ */
.reviews-section,
.faq-section {
  padding: 60px 0;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.review-card {
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border: 1px solid #f3f4f6;
}

.stars {
  color: #fbbf24;
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.faq-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
}

.faq-card summary {
  padding: 20px 25px;
  cursor: pointer;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-card[open] summary {
  color: #2563eb;
  border-bottom: 1px solid #eee;
}

.answer-text {
  padding: 20px 25px;
  color: #4b5563;
}

/* Footer */
.main-footer {
  background-color: #ea580c;
  color: #ffffff;
  padding-top: 60px;
  padding-bottom: 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer-links a {
  color: white;
  opacity: 0.85;
  transition: 0.2s;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Menú Móvil */
.mobile-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--brand-dark);
}

.mobile-menu-hidden {
  display: none;
  background: white;
  border-top: 1px solid #eee;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu-hidden.active {
  display: block;
}

.mobile-menu-hidden a {
  display: block;
  padding: 15px 20px;
  color: var(--brand-dark);
  border-bottom: 1px solid #f1f5f9;
  font-weight: 600;
}

/* =========================================
   SECCIÓN DE BENEFICIOS (FEATURES)
   ========================================= */

/* La Tarjeta Blanca */
.feature-card {
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  /* Bordes redondeados */
  border: 1px solid #f1f5f9;
  /* Borde gris muy sutil */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  /* Sombra suave */
  display: flex;
  /* Pone el icono al lado del texto */
  align-items: center;
  gap: 15px;
  /* Espacio entre icono y texto */
  transition: transform 0.2s ease;
}

/* Efecto al pasar el mouse (opcional, se ve pro) */
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-color: #bfdbfe;
  /* Se pone un poco azul el borde */
}

/* El Círculo Azul del Icono */
.icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  /* Lo hace redondo */
  background-color: #e0f2fe;
  /* Fondo azul muy clarito (Cielo) */
  color: #0284c7;
  /* Color del icono azul fuerte */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  /* Tamaño del icono */
  flex-shrink: 0;
  /* Evita que se aplaste */
}

/* Tipografía */
.feature-text h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-dark);
  /* Color oscuro (#0f172a) */
}

.feature-text p {
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
  /* Gris texto */
}

/* =========================================
   SECCIÓN DE PRODUCTOS (CATÁLOGO)
   ========================================= */

/* Estilo de la Tarjeta */
.product-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  /* Borde gris muy suave */
  border-radius: 16px;
  /* Bordes redondeados */
  padding: 25px;
  transition: all 0.3s ease;
  /* Animación suave */
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Efecto al pasar el mouse */
.product-card:hover {
  transform: translateY(-5px);
  /* Se levanta un poco */
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  /* Sombra elegante */
  border-color: #bfdbfe;
  /* El borde se pone azulito */
}

/* Contenedor de la Imagen */
.product-img-wrapper {
  height: 220px;
  /* Altura fija para alinearlas todas */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

/* Imagen del Cilindro */
.product-img-wrapper img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  /* ¡IMPORTANTE! Evita que se recorte el balón de gas */
  filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.1));
  /* Sombra realista al cilindro */
}

/* Título del Producto */
.product-card h3 {
  font-size: 1.2rem;
  color: var(--brand-dark);
}

/* Precio */
.price-tag {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--brand-blue);
  /* Usa tu azul corporativo */
  letter-spacing: -0.5px;
}

/* Botón Naranja Específico */
.btn-orange {
  background-color: #ea580c;
  color: white;
  border: none;
  padding: 10px 20px;
  transition: background 0.3s;
}

.btn-orange:hover {
  background-color: #c2410c;
  /* Naranja más oscuro al pasar mouse */
  color: white;
}

/* =========================================
   SECCIÓN HISTORIA (TIMELINE & BADGE)
   ========================================= */

/* 1. CONTENEDOR DE LA IMAGEN */
.history-img-wrapper {
  position: relative;
  /* Necesario para que el badge flote */
  padding: 20px 0 20px 20px;
  /* Espacio para el efecto visual */
}

/* 2. EL BADGE FLOTANTE AZUL (+18 AÑOS) */
.experience-badge {
  position: absolute;
  bottom: 40px;
  /* Distancia desde abajo */
  right: -20px;
  /* Se sale un poco a la derecha para efecto 3D */
  background: var(--brand-blue);
  /* Tu azul corporativo */
  color: white;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  /* Círculo perfecto */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 5px solid white;
  /* Borde blanco grueso para separar de la foto */
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
  /* Sombra azul brillante */
  z-index: 2;
}

.experience-badge .years {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.experience-badge .label {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
}

/* 3. LÍNEA DE TIEMPO (TIMELINE) */
.timeline-wrapper {
  position: relative;
  padding-left: 10px;
}

/* Línea vertical gris que conecta todo */
.timeline-wrapper::before {
  content: '';
  position: absolute;
  left: 24px;
  /* Centrado con los círculos */
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e2e8f0;
  z-index: 0;
}

.timeline-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

/* Los círculos de los años */
.year-circle {
  width: 50px;
  height: 50px;
  background: #ffffff;
  border: 2px solid var(--brand-blue);
  /* Borde Azul */
  color: var(--brand-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
  /* Evita que se aplaste */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Estilo especial para el último año (Naranja) */
.year-circle.highlight {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: white;
}

/* Ajustes Responsive */
@media (max-width: 991px) {
  .experience-badge {
    width: 100px;
    height: 100px;
    right: 0;
    bottom: 0;
  }

  .experience-badge .years {
    font-size: 1.8rem;
  }

  .timeline-wrapper::before {
    left: 24px;
  }
}

/* =========================================
   SECCIÓN TESTIMONIOS (GOOGLE STYLE)
   ========================================= */

/* Efecto Hover en la Tarjeta */
.review-card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #ffffff;
}

.review-card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

/* El Círculo del Avatar (Como en Gmail) */
.avatar-circle {
  width: 45px;
  height: 45px;
  background-color: #dbeafe;
  /* Azul muy claro */
  color: var(--brand-blue);
  /* Azul fuerte */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  flex-shrink: 0;
}


/* =========================================
   ESPACIADO GENERAL DE SECCIONES (IMPORTANTE)
   ========================================= */

.section-padding {
  padding-top: 80px;
  padding-bottom: 80px;
}

/* Ajuste para celulares (un poco menos de espacio) */
@media (max-width: 768px) {
  .section-padding {
    padding-top: 50px;
    padding-bottom: 50px;
  }
}


/* =========================================
   SECCIÓN FAQ (PREGUNTAS FRECUENTES)
   ========================================= */

/* Estilo Base de la Tarjeta */
.faq-card {
  background-color: #f8fafc;
  /* Gris muy claro (Cerrado) */
  border: 1px solid #e2e8f0;
  /* Borde sutil */
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Estilo cuando la tarjeta está ABIERTA [open] */
.faq-card[open] {
  background-color: #ffffff;
  /* Blanco (Abierto) */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  /* Sombra elegante */
  border-color: var(--brand-blue);
  /* Borde azul */
}

/* Eliminar el triángulo por defecto del navegador */
.faq-card summary {
  list-style: none;
  /* Estándar */
}

.faq-card summary::-webkit-details-marker {
  display: none;
  /* Chrome/Safari */
}

/* Animación de la flechita (Chevron) */
.transition-icon {
  transition: transform 0.3s ease;
  /* Suavidad al girar */
}

/* Cuando está abierto, girar la flecha 180 grados */
.faq-card[open] .transition-icon {
  transform: rotate(180deg);
}

/* =========================================
   FOOTER (CENTRADO Y NARANJA)
   ========================================= */
.main-footer {
  background-color: #ea580c;
  /* Naranja Corporativo */
  color: #ffffff;
  padding-top: 60px;
  padding-bottom: 30px;
  text-align: center;
  /* <--- ESTO CENTRA TODO EL TEXTO */
}

.footer-grid {
  display: grid;
  /* Usamos minmax para que las columnas no se aplasten */
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
  align-items: start;
}

/* Títulos y Textos */
.footer-logo {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 0 20px 0;
  letter-spacing: -1px;
}

.footer-desc {
  line-height: 1.6;
  margin-bottom: 25px;
  opacity: 0.9;
  max-width: 300px;
  /* Evita que el texto se estire demasiado */
  margin-left: auto;
  margin-right: auto;
}

.footer-col h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 25px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Enlaces (Links) */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: white;
  text-decoration: none;
  opacity: 0.8;
  transition: all 0.2s;
  font-size: 1rem;
}

.footer-links a:hover {
  opacity: 1;
  font-weight: bold;
}

/* Redes Sociales (Centradas) */
.social-icons {
  display: flex;
  justify-content: center;
  /* <--- CENTRA LOS ICONOS */
  gap: 15px;
  margin-top: 20px;
}

.social-btn {
  width: 45px;
  height: 45px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.social-btn:hover {
  transform: translateY(-3px);
}

/* Contacto (Centrado) */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  /* <--- CENTRA EL TEXTO E ICONO */
  gap: 10px;
  margin-bottom: 15px;
  opacity: 0.9;
  font-size: 1rem;
}

/* Iconos de contacto un poco más grandes */
.contact-list i {
  font-size: 1.2rem;
}

/* Línea divisoria y Copyright */
.footer-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.2);
  margin-bottom: 30px;
  width: 100%;
}

.footer-bottom {
  text-align: center;
  /* <--- CENTRA EL COPYRIGHT */
  font-size: 0.9rem;
  opacity: 0.7;
}

/* =========================================
   AJUSTE LOGO NAVEGACIÓN (HEADER)
   ========================================= */

.nav-logo-img {
  height: 50px;
  /* Altura fija para que encaje en la barra */
  width: auto;
  /* El ancho se ajusta solo */
  object-fit: contain;
  /* Asegura que se vea completo sin cortes */
  display: block;
}

/* Ajuste opcional para celular si quieres que sea un poco más chico */
@media (max-width: 768px) {
  .nav-logo-img {
    height: 40px;
  }
}

/* =========================================
   BANNER DE COOKIES (FIXED BOTTOM)
   ========================================= */

.cookie-banner {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background-color: #0f172a;
  /* Color oscuro */
  color: white;
  padding: 15px 0;
  z-index: 99999 !important;
  /* <--- Agrega !important y muchos 9 */
  display: block !important;
  /* <--- Asegura que no esté oculto */
  transition: bottom 0.5s ease;
}

.cookie-banner.show {
  bottom: 0 !important;
  /* <--- Fuerza a subir */
}


/* =========================================
   PÁGINA DE CONTACTO (Estilos Pro)
   ========================================= */

/* Fondo Azul de la columna izquierda */
.bg-primary {
  background-color: #2563eb !important;
  /* Azul corporativo brillante */
}

/* Iconos circulares transparentes */
.icon-box {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.2);
  /* Blanco semitransparente */
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: background 0.3s;
}

.contact-info-list>div:hover .icon-box {
  background: rgba(255, 255, 255, 0.4);
}

/* Decoración de fondo (Círculos sutiles) */
.deco-circle-1,
.deco-circle-2 {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  z-index: 0;
}

.deco-circle-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -100px;
}

.deco-circle-2 {
  width: 200px;
  height: 200px;
  bottom: 50px;
  left: -50px;
}

/* Inputs del Formulario */
.form-control.bg-light {
  background-color: #f8fafc !important;
  /* Gris muy clarito */
  font-size: 0.95rem;
}

.form-control:focus {
  background-color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  /* Sombra azul suave al escribir */
  border: 1px solid #2563eb !important;
}

/* Botón Naranja */
.btn-orange {
  background-color: #ea580c;
  transition: all 0.3s;
}

.btn-orange:hover {
  background-color: #c2410c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}