/* =========================================
   VARIABLES & RESET
   ========================================= */
:root {
  /* FONDO BASE: "Azul Hielo" (Ice Blue). 
     Quita la sensación de vacío sin oscurecer la página. */
  --bg: #e8f6fa;
  --muted: #E2E8F0;

  /* Azul Profundo (Slate 900): Para textos y títulos */
  --primary-deep: #0F172A;

  /* PRIMARIO: Azul Eléctrico Vibrante */
  --primary: #0056D2;

  /* ACENTO: Naranja Internacional (Seguridad Industrial) */
  --accent: #FF4500;

  /* Texto general */
  --text: #334155;

  --radius: 8px;
  --container: 1200px;
  --footer-bg: #0B1120;
  --footer-text: #94A3B8;

  /* Sombras azuladas para dar profundidad moderna */
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;

  /* FONDO CON TEXTURA TÉCNICA (Ghost Stripes sobre Azul Hielo) */
  background-color: var(--bg);
  background-image: repeating-linear-gradient(45deg,
      transparent,
      transparent 20px,
      rgba(255, 255, 255, 0.4) 20px,
      rgba(255, 255, 255, 0.4) 21px);
  background-attachment: fixed;
}

h1,
h2,
h3,
h4 {
  letter-spacing: -0.025em;
  color: var(--primary-deep);
  margin-top: 0;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================
   HEADER & NAV
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  background: var(--bg);
  /* Blanco semi-transparente */
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand img {
  height: 80px;
  width: auto;
  display: block;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--primary-deep);
  align-items: center;
  justify-content: center;
  height: 44px;
  width: 44px;
  z-index: 100;
}

.hamburger {
  width: 24px;
  height: 2px;
  background: currentColor;
  display: block;
  position: relative;
  transition: all .3s;
}

.hamburger:before,
.hamburger:after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: all .3s;
}

.hamburger:before {
  top: -7px;
}

.hamburger:after {
  top: 7px;
}

.nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--primary);
}

.actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  cursor: pointer;
  border-radius: var(--radius);
  padding: 12px 24px;
  border: 0;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-ghost {
  background: transparent;
  border: 1px solid #e5e7eb;
  color: var(--text);
}

.btn-ghost:hover {
  background: #ffffff;
}

.btn-accent {
  background: linear-gradient(135deg, var(--primary) 0%, #0041a8 100%);
  color: white;
  border: 1px solid transparent;
  box-shadow: 0 4px 14px -2px rgba(0, 86, 210, 0.4);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-accent:hover {
  background: linear-gradient(135deg, #0041a8 0%, var(--primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px -2px rgba(0, 86, 210, 0.6);
}

.btn-outline {
  background: white;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 700;
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 86, 210, 0.2);
}

/* =========================================
   BANNER SLIDER PRINCIPAL
   ========================================= */
.banner-slider {
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #f3f4f6;
  line-height: 0;
}

.banner-slider .slides {
  width: 100%;
  position: relative;
}

.banner-slider .slide {
  display: none;
  width: 100%;
  transition: opacity 0.5s ease-in-out;
}

.banner-slider .slide.active {
  display: block;
  animation: fadeInSlide 0.8s;
}

.banner-slider img {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes fadeInSlide {
  from {
    opacity: 0.5;
  }

  to {
    opacity: 1;
  }
}

.scroll-down {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  cursor: pointer;
  opacity: 0.8;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 50%;
}

.scroll-down .arrow {
  width: 12px;
  height: 12px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  animation: bounceArrow 2s infinite;
  margin-top: -4px;
}

@keyframes bounceArrow {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) rotate(45deg);
  }

  40% {
    transform: translateY(-5px) rotate(45deg);
  }

  60% {
    transform: translateY(-3px) rotate(45deg);
  }
}

/* =========================================
   SECCIONES GENERALES & HERO
   ========================================= */
.section {
  padding: 80px 0;
}

.section-blog {
  padding: 0px 0;
}

.hero {
  padding: 80px 0;
  /* DEGRADADO PREMIUM: De blanco a Azul Hielo */
  background: var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 500px;
  gap: 48px;
  align-items: center;
}

h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  font-weight: 800;
}

.lead {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: #4b5563;
  max-width: 600px;
  margin-bottom: 2rem;
}

.accent-text {
  color: var(--primary);
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  overflow: hidden;
  position: relative;
}

.hero-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* Clases extra para alternar fondos */
.section-white {
  background-color: #FFFFFF;
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
}

.section-dark {
  background: linear-gradient(135deg, var(--primary-deep) 0%, #1e293b 100%);
  color: white;
  padding: 80px 0;
}

.section-dark h2,
.section-dark h3,
.section-dark p {
  color: white !important;
}

/* =========================================
   QUIENES SOMOS
   ========================================= */
.quienes-inner {
  display: flex;
  gap: 48px;
  align-items: center;
  justify-content: space-between;
}

.quienes-figure {
  flex: 1;
  position: relative;
  margin: 0;
}

.quienes-badge {
  position: absolute;
  bottom: 16px;
  right: 20px;
  background: var(--primary);
  color: white;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.quienes-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: block;
}

.quienes-text {
  flex: 1;
}

.quienes-text p {
  font-size: 1.05rem;
  color: #4b5563;
  margin-bottom: 1.5rem;
}

/* =========================================
   SECCIÓN POLÍTICA Y CALIDAD (Misión/Visión)
   ========================================= */

/* Grilla de 2 columnas */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* Tarjeta Individual */
.mv-card {
  background: white;
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  /* Icono arriba, texto abajo */
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Efecto Hover: Borde azul y sube un poco */
.mv-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

/* Decoración superior (Barra de color) */
.mv-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.3s;
}

.mv-card:hover::before {
  opacity: 1;
}

/* Icono Circular */
.mv-icon {
  width: 70px;
  height: 70px;
  background: #f0f9ff;
  /* Azul muy clarito */
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 24px;
  transition: transform 0.3s;
}

.mv-card:hover .mv-icon {
  transform: scale(1.1) rotate(10deg);
  background: var(--primary);
  color: white;
}

/* Tipografía */
.mv-content h4 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--primary-deep);
}

.mv-content p {
  font-size: 1.05rem;
  color: #4b5563;
  line-height: 1.7;
}

/* =========================================
   FLIP CARDS (Estilo Poster / Imagen Completa)
   ========================================= */
.flip-card {
  perspective: 1000px;
  height: 320px;
  width: 100%;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  background: white;
  /* Base blanca */
}

.flip-card.is-flipped .flip-card-inner,
.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--primary);
  /* Borde azul al activar */
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius);
  overflow: hidden;
}

.flip-card-front {
  z-index: 2;
  background-color: white;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: none;
}

.flip-card.is-flipped .flip-card-front,
.flip-card:hover .flip-card-front {
  pointer-events: none;
}

.flip-card-front1 {
  background-image: url('assets/img/ICON1.png');
}

.flip-card-front2 {
  background-image: url('assets/img/ICON2.png');
}

.flip-card-front3 {
  background-image: url('assets/img/ICON3.png');
}

.flip-card-front4 {
  background-image: url('assets/img/ICON4.png');
}

.flip-card-front5 {
  background-image: url('assets/img/ICON5.png');
}

.flip-card-back {
  transform: rotateY(180deg) translateZ(1px);
  background: linear-gradient(to bottom right, #ffffff, #f0f9ff);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 24px;
  z-index: 1;
}

.flip-card.is-flipped .flip-card-back,
.flip-card:hover .flip-card-back {
  z-index: 3;
  pointer-events: auto;
}

.flip-card-back h4 {
  color: var(--primary);
  margin-bottom: 12px;
  margin-top: 0;
}

.flip-card-back p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #4b5563;
}

/* =========================================
   CATÁLOGO (Productos)
   ========================================= */
.product-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s;
}

.product-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.product-media {
  height: 300px;
  background: #f9fafb;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-title {
  margin: 0;
  font-size: 1.1rem;
}

.product-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  font-weight: 700;
  color: var(--primary-deep);
  font-size: 1.1rem;
}

/* =========================================
   CART DRAWER & FLOATING BUTTON
   ========================================= */
.floating-cart {
  position: fixed;
  right: 15px;
  bottom: 30px;
  z-index: 1000;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 122, 204, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.floating-cart:hover {
  transform: scale(1.1);
}

.cart-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #ef4444;
  color: white;
  font-size: 11px;
  font-weight: bold;
  height: 20px;
  min-width: 20px;
  padding: 0 6px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  display: flex;
  z-index: 2000;
  justify-content: flex-end;
  visibility: visible;
  opacity: 1;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-drawer.hidden {
  display: none !important;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.cart-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
}

.cart-panel {
  position: relative;
  width: 100%;
  max-width: 450px;
  background: white;
  padding: 30px;
  box-shadow: -10px 0 25px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
  transform: translateX(0);
  transition: transform 0.3s ease;
}

.cart-drawer.hidden .cart-panel {
  transform: translateX(100%);
}

.cart-header {
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
}

.cart-footer {
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

/* =========================================
   CART ITEMS REFINADO
   ========================================= */
#cartItems {
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #f3f4f6;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  align-items: flex-start;
  transition: all 0.2s ease;
}

.cart-item:hover {
  border-color: #e5e7eb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.cart-item__thumb {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: #f9fafb;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #f3f4f6;
}

.cart-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 80px;
}

.cart-item__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.cart-item__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-deep);
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item__remove-btn {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.cart-item__remove-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
  border-radius: 4px;
}

.cart-item__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.cart-item__price {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
}

.cart-item__subtotal-label {
  font-size: 0.75rem;
  color: #6b7280;
  display: block;
}

.cart-item__qty-control {
  display: flex;
  align-items: center;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  height: 32px;
}

.qty-btn {
  width: 28px;
  height: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.qty-btn:hover {
  background: #e5e7eb;
  color: var(--primary-deep);
}

.qty-val {
  width: 32px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-deep);
  user-select: none;
}

/* =========================================
   TESTIMONIOS
   ========================================= */
.testimonial-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  padding: 20px 0;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-slide {
  flex: 0 0 100%;
  padding: 0 10px;
}

.testimonial {
  background: white;
  padding: 40px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.testimonial blockquote {
  font-size: 1.25rem;
  color: var(--primary-deep);
  font-style: italic;
  margin-bottom: 20px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: white;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.carousel-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.carousel-btn--prev {
  left: 0;
}

.carousel-btn--next {
  right: 0;
}

/* =========================================
   CONTACTO FORMULARIO
   ========================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 40px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  resize: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.contacto-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.form-notification {
  padding: 12px 18px;
  border-radius: 8px;
  margin-top: 14px;
  font-weight: 600;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

.form-notification--success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.form-notification--error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* =========================================
   FOOTER & IG GRID
   ========================================= */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding-top: 40px;
}

.footer-top {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 20px;
}

.footer-col {
  flex: 1;
  min-width: 200px;
}

.footer-col h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.footer-bottom {
  background: #000;
  padding: 20px;
  text-align: center;
  font-size: 0.9rem;
}

.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
  max-width: 300px;
}

.ig-item {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  background: #1e293b;
}

.ig-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ig-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ig-overlay i {
  color: white;
  font-size: 1.5rem;
}

.ig-item:hover .ig-overlay {
  opacity: 1;
}

.ig-item:hover img {
  transform: scale(1.1);
}

.btn-ig-follow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 8px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.btn-ig-follow:hover {
  opacity: 1;
  color: var(--primary);
}

/* =========================================
   WHATSAPP & SCROLLTOP
   ========================================= */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 15px;
  z-index: 990;
  width: 50px;
  height: 50px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-icon {
  width: 28px;
  height: 28px;
}

.scroll-top-btn {
  position: fixed;
  bottom: 100px;
  right: 15px;
  z-index: 990;
  width: 50px;
  height: 50px;
  background: var(--primary-deep);
  color: white;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
}

.scroll-top-btn:hover {
  transform: scale(1.1);
}

.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

/* =========================================
   ESTILOS PÁGINA DE COTIZACIÓN
   ========================================= */
.quote-page {
  background: var(--bg);
  /* Usa el mismo azul de fondo */
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 20px;
  overflow-y: auto;
}

.quote-container {
  background: white;
  width: 100%;
  max-width: 1000px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.quote-header {
  background: white;
  padding: 24px 40px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.quote-logo {
  height: 40px;
}

.back-link {
  text-decoration: none;
  color: #6b7280;
  font-weight: 500;
  font-size: 0.9rem;
}

.back-link:hover {
  color: var(--primary);
}

.quote-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

.quote-summary {
  padding: 40px;
  background: #f9fafb;
  border-right: 1px solid #e5e7eb;
}

.quote-summary h3 {
  margin-top: 0;
  font-size: 1.25rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.quote-items-header {
  display: grid;
  grid-template-columns: 60px 2fr 0.5fr 1fr;
  font-size: 0.85rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  padding-bottom: 12px;
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 16px;
  gap: 16px;
}

.quote-items-header span:nth-child(1) {
  grid-column: 2;
}

.quote-items-header span:nth-child(2) {
  text-align: center;
}

.quote-items-header span:nth-child(3) {
  text-align: right;
}

.quote-items-list {
  max-height: 400px;
  overflow-y: auto;
}

.quote-item {
  display: grid;
  grid-template-columns: 60px 2fr 0.5fr 1fr;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #e5e7eb;
  gap: 16px;
}

.quote-item-title {
  display: block;
  font-weight: 600;
  color: var(--primary-deep);
}

.quote-item-desc {
  font-size: 0.8rem;
  color: #6b7280;
}

.quote-item-qty {
  font-weight: 600;
  color: #374151;
}

.quote-item-price {
  font-weight: 700;
  color: var(--primary);
  text-align: right;
}

.quote-item-thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quote-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 2px solid #e5e7eb;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-deep);
}

.quote-note {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: 20px;
  font-style: italic;
}

.quote-form-section {
  padding: 40px;
}

.quote-form-section h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.quote-form-section p {
  color: #6b7280;
  margin-bottom: 30px;
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: #374151;
}

.quote-form input,
.quote-form textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  padding: 12px;
  border-radius: 8px;
  transition: all 0.3s;
}

.error-msg {
  display: none;
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 4px;
}

.form-group.has-error input {
  border-color: #ef4444;
  background: #fef2f2;
}

.form-group.has-error .error-msg {
  display: block;
}

.form-group.has-success input {
  border-color: #10b981;
}

.btn-block {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  margin-top: 10px;
}

.msg {
  padding: 12px;
  border-radius: 8px;
  margin-top: 16px;
  text-align: center;
  font-weight: 600;
}

.msg.success {
  background: #dcfce7;
  color: #166534;
}

.msg.error {
  background: #fee2e2;
  color: #991b1b;
}

/* =========================================
   ESTILOS BLOG
   ========================================= */
.blog-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.blog-media {
  height: 200px;
  overflow: hidden;
  background: #f3f4f6;
}

.blog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-date {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-bottom: 8px;
  display: block;
}

.blog-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.3;
}

.blog-card p {
  font-size: 0.95rem;
  color: #6b7280;
  margin-bottom: 20px;
  flex: 1;
}

.btn-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-link:hover {
  text-decoration: underline;
}

/* Estilos dentro del cuerpo del artículo (Rich Text) */
#postBody h2 {
  margin-top: 40px;
  color: var(--primary-deep);
}

#postBody ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

#postBody li {
  margin-bottom: 8px;
}

#postBody strong {
  color: var(--primary-deep);
}

/* 1. El contenedor del banner */
.article-banner {
  width: 100%;
  /* Altura fija para el banner en escritorio. Ajusta si lo quieres más alto */
  height: 450px;
  background: #e2e8f0;
  /* Color de fondo mientras carga la imagen */
  position: relative;
  overflow: hidden;
  z-index: 0;
  /* Se queda al fondo */
}

/* 2. La imagen dentro del banner */
.article-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* CLAVE: Recorta la imagen para llenar el espacio sin estirarse */
  object-position: center center;
  /* Centra la parte importante de la foto */
  display: block;
  transition: opacity 0.5s ease;
}

/* Clase utilitaria para ocultar imagen vacía */
.article-banner img.hidden {
  opacity: 0;
}


/* 3. El contenedor de texto (La "hoja" blanca sobre el banner) */
.article-content {
  max-width: 800px;
  /* Ancho de lectura cómodo */
  background: white;
  padding: 60px;
  /* TRUCO DE DISEÑO PROFESIONAL: */
  margin-top: -100px;
  /* Sube la caja 100px sobre el banner */
  border-radius: 16px 16px 0 0;
  /* Bordes redondeados arriba */
  position: relative;
  z-index: 10;
  /* Asegura que esté por encima del banner */
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.08);
  /* Sombra suave hacia arriba */
}

/* Estilos extra para el cuerpo del texto para que se vea mejor */
.article-body-text p {
  margin-bottom: 1.5em;
}

.article-body-text h2 {
  font-size: 1.8rem;
  color: var(--primary-deep);
  margin-top: 2em;
  margin-bottom: 1em;
}

.article-body-text img {
  max-width: 100%;
  border-radius: 8px;
  margin: 2em 0;
}


/* 4. Ajustes Responsivos (Móvil) */
@media (max-width: 768px) {
  .article-banner {
    height: 250px;
    /* Banner más bajo en celular */
  }

  .article-content {
    margin-top: 0;
    /* Quitamos el efecto de superposición en móvil */
    border-radius: 0;
    /* Quitamos bordes redondeados */
    padding: 30px 20px;
    box-shadow: none;
  }

  #postTitle {
    font-size: 2rem !important;
  }

  .mv-grid {
    grid-template-columns: 1fr;
    /* Una columna en celular */
    gap: 24px;
  }

  .mv-card {
    padding: 30px 20px;
  }
}

/* =========================================
   RESPONSIVE QUERIES
   ========================================= */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-media {
    display: none;
  }

  .hero-ctas {
    justify-content: center;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }

  .nav.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .contacto-img {
    display: none;
  }

  .quote-grid {
    grid-template-columns: 1fr;
  }

  .quote-summary {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
  }

  .quote-page {
    padding: 10px;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  h2 {
    font-size: 2.2rem;
  }

  .container {
    padding: 0 20px;
  }

  .grid-4,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .quienes-inner {
    flex-direction: column;
  }

  .flip-card {
    height: 280px;
  }

  .cart-panel {
    width: 100%;
    max-width: none;
  }

  .banner-slider img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}