/* ========== RESET & BASE GLOBAL ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
html, body {
  overflow-x: hidden;
  font-family: 'Montserrat', sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
}

/* ========== VARIABLES GLOBALES ========== */
:root {
  --yellow: #f5a700;
  --red: #e35656;
  --white: #ffffff;
  --black: #111111;
  --dark-overlay: rgba(0, 0, 0, 0.6);
  --overlay-light: rgba(255, 255, 255, 0.7);
  --transition: 0.3s ease;
  --secondary: #f3f4f6;
  --text-dark: #111111;
  --text-muted: #6b7280;
}
/* === Dark mode === */
html[data-theme="dark"] {
  --white: #111111;
  --text-dark: #ffffff;
  --text-muted: #aaaaaa;
  --secondary: #222222;
  --black:#ffffff;
  
}
/* ========== GLOBAL COMPONENTES ========== */
a {
  color: inherit;
  text-decoration: none;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition);
}
.btn:hover {
  transform: scale(1.05);
}
.btn-yellow {
  background: var(--yellow);
  color: var(--black);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--yellow);
  color: var(--yellow);
}
.btn-outline:hover {
  background: var(--yellow);
  color: var(--black);
}


html[data-theme="dark"] .sobre-nosotros h2{
--black: #ffffff;

} 
html[data-theme="dark"] .contact-card h2 .text-red,
html[data-theme="dark"] .contact-card .info-list a,
html[data-theme="dark"] .field-group input:focus,
html[data-theme="dark"] .field-group textarea:focus,
html[data-theme="dark"] .field-group input:focus + label,
html[data-theme="dark"] .field-group input:not(:placeholder-shown) + label,
html[data-theme="dark"] .field-group textarea:focus + label,
html[data-theme="dark"] .field-group textarea:not(:placeholder-shown) + label,
html[data-theme="dark"] .btn-red {
  --red: var(--yellow);
}
html[data-theme="dark"] .info-list a:hover {
  color: var(--red);
}

html[data-theme="dark"] .btn-red:hover {
  background: var(--red);
}


/* ================= HERO ================= */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero .slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero .slide {
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero .slide.active {
  opacity: 1;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 1;
}
html[data-theme="dark"] .hero .overlay {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.25),
    rgba(255, 255, 255, 0.35),
    rgba(255, 255, 255, 0.4)
  );
}

.hero .hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 1.5rem;
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.hero-content h1 .highlight {
  color: var(--yellow);
  transition: color var(--transition);
}

.hero-content h1 .highlight:hover {
  color: var(--red);
}

.hero-content .subtext {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
}

.hero-content .chimenea {
  color: var(--red);
}

.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.cta-group .btn-yellow,
.cta-group .btn-outline {
  border-radius: 999px;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 600;
  transition: transform var(--transition), background var(--transition), color var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cta-group .btn-yellow {
  background: var(--yellow);
  color: var(--black);
}
.cta-group .btn-yellow:hover {
  transform: scale(1.05);
}

.cta-group .btn-outline {
  background: var(--white);
  border: 2px solid var(--red);
  color: var(--red);
}
.cta-group .btn-outline:hover {
  background: var(--red);
  color: var(--white);
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .cta-group {
    flex-direction: column;
  }
}
/* ================= SOBRE NOSOTROS ================= */
.sobre-nosotros {
  position: relative;
  background: var(--white);
  color: var(--text-dark);
  padding: 6rem 1.5rem;
  overflow: hidden;
}

.sobre-nosotros .container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 768px) {
  .sobre-nosotros .container {
    grid-template-columns: 1fr;
  }
}

.sobre-nosotros .subtitle {
  display: block;
  text-transform: uppercase;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--yellow);
  margin-bottom: 0.75rem;
}

.sobre-nosotros h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.sobre-nosotros h2 .text-red-500 {
  color: var(--red);
}

.sobre-nosotros p {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.sobre-nosotros .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--yellow);
  color: var(--black);
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background var(--transition), transform var(--transition);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.sobre-nosotros .btn svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition);
}
.sobre-nosotros .btn:hover {
  background: #e89c00;
  transform: translateY(-2px);
}
.sobre-nosotros .btn:hover svg {
  transform: translateX(4px);
}

.sobre-nosotros .image-wrapper {
  position: relative;
}
.sobre-nosotros .image-wrapper img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  transition: transform var(--transition);
  position: relative;
  z-index: 1;
}
.sobre-nosotros .image-wrapper img:hover {
  transform: scale(1.05) translateY(-5px);
}

.sobre-nosotros .decor-red,
.sobre-nosotros .decor-yellow {
  position: absolute;
  border-radius: 1rem;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0; 
}
.sobre-nosotros .decor-red {
  width: 6rem;
  height: 6rem;
  background: var(--red);
  top: -1rem;
  left: -1rem;
}
.sobre-nosotros .decor-yellow {
  width: 14rem;
  height: 12rem;
  background: var(--yellow);
  bottom: -2rem;
  right: -2rem;
}

.parallax-layer {
  position: absolute;
  will-change: transform;
  pointer-events: none;
}

/* ================= SECCIÓN CARACTERÍSTICAS ================= */
.features {
  background-color: var(--secondary);
  color: var(--text-dark);
  padding: 6rem 1.5rem;
}

.features .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.features .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.features .subtitle {
  display: block;
  text-transform: uppercase;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--yellow);
  margin-bottom: 0.5rem;
}

.features h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.features h2 .text-red {
  color: var(--red);
}

.features .lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  background-color: var(--white);
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: border-color var(--transition);
}

.feature-card.primary-hover:hover {
  border-color: var(--yellow);
}

.feature-card.red-hover:hover {
  border-color: var(--red);
}

.icon-wrapper {
  width: 4rem;
  height: 4rem;
  margin-bottom: 1.5rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-wrapper.primary {
  background-color: rgba(245,167,0,0.1);
}

.icon-wrapper.red {
  background-color: rgba(227,86,86,0.1);
}

.icon-wrapper.primary svg {
  width: 2rem;
  height: 2rem;
  color: var(--yellow);
}

.icon-wrapper.red svg {
  width: 2rem;
  height: 2rem;
  color: var(--red);
}

.feature-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-align: center;
  color: var(--text-dark);
}

.feature-card p {
  font-size: 1rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}
/* ================= PRODUCTOS DESTACADOS (Innovador) ================= */
.productos-innovador {
  background: var(--white);
  color: var(--text-dark);
  padding: 6rem 1.5rem;
}
.productos-innovador .container {
  max-width: 1200px;
  margin: 0 auto;
}
.productos-innovador .section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.productos-innovador .subtitle {
  color: var(--yellow);
  text-transform: uppercase;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.productos-innovador h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.productos-innovador h2 .text-red {
  color: var(--red);
}
.productos-innovador .lead {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.innovative-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .innovative-grid {
    grid-template-columns: repeat(2,1fr);
  }
}
@media (min-width: 1024px) {
  .innovative-grid {
    grid-template-columns: repeat(4,1fr);
  }
}

.innovative-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transform-style: preserve-3d;
  transition: transform var(--transition), box-shadow var(--transition);
}
.innovative-card:hover {
  transform: translateY(-8px) rotateY(5deg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.card-image {
  width: 100%;
  padding-top: 75%; /* relación 4:3 */
  background-size: cover;
  background-position: center;
}

.card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(17,17,17,0.85), transparent);
  color: var(--white);
  transform: translateY(100%);
  transition: transform var(--transition) ease-in-out;
}
.innovative-card:hover .card-info {
  transform: translateY(0);
}

.card-info h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}
.card-info p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.card-info .btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  padding: 6px 14px;
  font-size: 0.85rem;
  border-radius: 999px;
  transition: background var(--transition), color var(--transition);
}
.card-info .btn-outline:hover {
  background: var(--white);
  color: var(--black);
}

.products-action {
  text-align: center;
  margin-top: 3rem;
}
.products-action .btn-yellow {
  padding: 12px 36px;
}
.card-info .btn-outline {
  transition: 
    transform var(--transition) ease,
    background var(--transition) ease,
    color var(--transition) ease,
    box-shadow var(--transition) ease;
}

.card-info .btn-outline:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.products-action .btn-yellow {
  transition: 
    transform var(--transition) ease,
    box-shadow var(--transition) ease;
}

.products-action .btn-yellow:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
/* ================= CÓMO LO HACEMOS (Proceso Vertical) ================= */
.proceso-vertical {
  position: relative;
  background: var(--white);
  color: var(--text-dark);
  padding: 6rem 1.5rem;
  overflow: hidden;
}

.proceso-vertical .container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.proceso-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
}

.vertical-timeline {
  position: relative;
  padding-left: 2.5rem;
}

.vertical-timeline .timeline-line {
  position: absolute;
  left: 1.25rem;
  top: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(to bottom, var(--red), var(--yellow));
  transform-origin: top;
  transition: height 0.4s ease-out;
  z-index: 0;
}

.timeline-entry {
  display: flex;
  align-items: flex-start;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease var(--delay), transform 0.6s ease var(--delay);
  position: relative;
  z-index: 1;
}

.timeline-entry.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-entry:nth-child(odd) .entry-icon {
  background: var(--red);
  color: var(--white);
}
.timeline-entry:nth-child(even) .entry-icon {
  background: var(--yellow);
  color: var(--black);
}

.entry-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-right: 1rem;
  font-size: 1rem;
}

.entry-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.375rem;
  margin-bottom: 0.5rem;
}

.entry-body p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.proceso-vertical .btn-yellow {
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .vertical-timeline {
    padding-left: 1rem;
  }
  .entry-body h3 {
    font-size: 1.25rem;
  }
}
/* ────────────────────────────────────────────────────────
   SECCIÓN “Cómo lo hacemos” – Timeline innovador
─────────────────────────────────────────────────────────── */
#como-lo-hacemos {
  background: var(--white);
  color: var(--text-dark);
  padding: 8rem 1rem;
  position: relative;
  overflow: hidden;
}

/* 1) Encabezado centrado igual que en otras secciones */
#como-lo-hacemos .section-header {
  text-align: center;
  margin-bottom: 3rem;
}
#como-lo-hacemos .section-header .subtitle {
  display: block;
  text-transform: uppercase;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--yellow);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}
#como-lo-hacemos .section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
#como-lo-hacemos .section-header h2 .text-red {
  color: var(--red);
}
#como-lo-hacemos .section-header .lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* 2) Contenedor del timeline */
#como-lo-hacemos .timeline-innovative {
  position: relative;
  padding: 0 1rem;
}
#como-lo-hacemos .timeline-innovative::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    var(--yellow) 0%,
    var(--red) 50%,
    var(--yellow) 100%
  );
  z-index: 0;
}

/* 3) Cada paso */
#como-lo-hacemos .timeline-item {
  position: relative;
  width: 45%;
  margin: 2rem 0 4rem;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out var(--delay),
              transform 0.6s ease-out var(--delay);
  z-index: 2;
}
#como-lo-hacemos .timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 4) Alternancia izquierda */
#como-lo-hacemos .timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}
#como-lo-hacemos .timeline-item:nth-child(even) {
  left: 55%;
  text-align: left;
}

/* 5) Círculo numerado con llama por detrás */
#como-lo-hacemos .timeline-item::before,
#como-lo-hacemos .timeline-item::after {
  position: absolute;
  top: 0;
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}
#como-lo-hacemos .timeline-item::before {
  content: attr(data-step);
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
}
#como-lo-hacemos .timeline-item:nth-child(odd)::before {
  right: -1.25rem;
}
#como-lo-hacemos .timeline-item:nth-child(even)::before {
  left: -1.25rem;
  background: var(--yellow);
  color: var(--black);
}

/* Icono de llama */
#como-lo-hacemos .timeline-item::after {
  content: '';
  width: 32px; height: 32px;
  background: url('/img/flame-icon.svg') no-repeat center/contain;
  opacity: 0.05;
  transform: translateY(-4px) translateX(-4px);
  z-index: 1;
}
#como-lo-hacemos .timeline-item:nth-child(odd)::after {
  right: -1.35rem;
}
#como-lo-hacemos .timeline-item:nth-child(even)::after {
  left: -1.35rem;
}

/* 6) Card interior */
#como-lo-hacemos .timeline-content {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin: 0 1.5rem;
  transition: transform var(--transition);
}
#como-lo-hacemos .timeline-content:hover {
  transform: translateY(-5px);
}
#como-lo-hacemos .timeline-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.375rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}
#como-lo-hacemos .timeline-content p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 7) Responsive móvil */
@media (max-width: 768px) {
  #como-lo-hacemos .timeline-item {
    width: 100%;
    left: 0 !important;
    text-align: left;
    margin: 1.5rem 0;
  }
  #como-lo-hacemos .timeline-item::before,
  #como-lo-hacemos .timeline-item::after {
    left: calc(50% - 1.25rem) !important;
    right: auto !important;
  }
  #como-lo-hacemos .timeline-content {
    margin: 0 0.5rem;
  }
}
.blog-section {
  background-color: var(--white);
  padding: 6rem 1.5rem;
  color: var(--text-dark);
}
.blog-section .section-header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 3rem;
}
.blog-section .section-header .subtitle {
  display: block;
  text-transform: uppercase;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--yellow);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.blog-section .section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
}
.blog-section .section-header h2 .text-red {
  color: var(--red);
}
.blog-section .section-header .lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  line-height: 1.6;
}

/* Masonry con columnas */
.blog-grid {
  column-count: 3;
  column-gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.blog-card {
  display: inline-block;
  width: 100%;
  margin-bottom: 1.5rem;
  break-inside: avoid-column;
  border-radius: 0.75rem;
  overflow: hidden;
background-color: var(--white);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* Imagen y overlay */
.blog-card-image {
  position: relative;
}
.blog-card-image img {
  width: 100%;
  height: auto;
  display: block;
}
.blog-card-image .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.blog-card:hover .overlay {
  opacity: 1;
}

/* Contenido encima de la imagen */
.card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 1.5rem;
  color: #fff;
  width: 100%;
  box-sizing: border-box;
}
.category-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}
/* Variantes de color */
.category-label.recetas,
.category-label.mantenimiento,
.category-label.ejemplo,
.category-label.novedades {
  background: var(--yellow);
  color: var(--black);
}
.category-label.guias,
.category-label.inspiracion {
  background: var(--red);
  color: var(--white);
}

.card-content h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  line-height: 1.3;
}
.card-content p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
}

/* Botón “Ver Blog Completo” */
.blog-action {
  text-align: center;
  margin-top: 2.5rem;
}
.blog-action .btn {
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
}

/* Mantener al menos 2 columnas hasta pantallas muy estrechas */
@media (max-width: 768px) {
  .blog-section .blog-grid {
    column-count: 2;
  }
}
@media (max-width: 480px) {
  .blog-section .blog-grid {
    column-count: 2;
  }
}

/* ───────────────── TESTIMONIOS “LLAMA & CENIZA” ───────────────── */
.testimonials-section {
  position: relative;
 background: var(--white);
  padding: 6rem 1.5rem 10rem;
  overflow: hidden;
  color: var(--black);
}

/* LLAMA central (SVG inline en una sola línea) */
.testimonials-section::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60%;
  height: 100%;
  transform: translate(-50%, -50%);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 300'><defs><linearGradient id='g' x1='0' y1='0' x2='0' y2='1'><stop offset='0%' stop-color='%23E35656' stop-opacity='0.6'/><stop offset='60%' stop-color='%23FF8A00' stop-opacity='0.4'/><stop offset='100%' stop-color='transparent'/></linearGradient></defs><path fill='url(%23g)' d='M100 300 C60 240,40 180,60 120 C80 80,100 60,100 20 C100 60,120 80,140 120 C160 180,140 240,100 300 Z'/></svg>");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: contain;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

/* CENIZA: puntitos muy sutiles */
.testimonials-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(0,0,0,0.03) 1px, transparent 1px),
    radial-gradient(circle at 80% 40%, rgba(0,0,0,0.02) 1px, transparent 1px),
    radial-gradient(circle at 50% 80%, rgba(0,0,0,0.025) 1px, transparent 1px);
  background-size: 150px 150px, 200px 200px, 180px 180px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

/* CONTENIDO ENCIMA */
.testimonials-section .container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

/* HEADER */
.testimonials-section .section-header {
  text-align: center;
  margin-bottom: 4rem;
}

/* GRID estilo Pinterest */
.testimonials-content {
  column-count: 1;
  column-gap: 2rem;
}
@media (min-width: 640px) {
  .testimonials-content { column-count: 2; }
}
@media (min-width: 1024px) {
  .testimonials-content { column-count: 3; }
}

/* TARJETAS */
.testimonial-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 2rem;
  background: var(--secondary);
  border-radius: 1rem;
  padding: 2rem 1.5rem 1.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  break-inside: avoid;
  position: relative;
  overflow: hidden;
}
.testimonial-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.12);
}

/* COMILLA de fondo */
.testimonial-item::before {
  content: "“";
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 4rem;
  color: var(--red);
  opacity: 0.1;
  z-index: 0;
}
/* Encabezado */
.testimonials-section .section-header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 4rem;
}
.testimonials-section .section-header .subtitle {
  display: block;
  text-transform: uppercase;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--yellow);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}
.testimonials-section .section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.testimonials-section .section-header h2 .text-red {
  color: var(--red);
}
.testimonials-section .section-header .lead {
  font-size: 1.125rem;
  color: var(--text-muted);
}

/* Grid responsive 1–3 columnas */
.testimonials-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .testimonials-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tarjeta con tilt y hover */
.testimonial-item {
  background: var(--secondary);
  border-radius: 1.25rem;
  padding: 3rem 1.5rem 1.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: rotateZ(-0.5deg);
  transition: transform var(--transition), box-shadow var(--transition);
}
.testimonial-item:nth-child(even) {
  transform: rotateZ(0.5deg);
}
.testimonial-item:hover {
  transform: rotateZ(0) translateY(-8px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

/* Degradado interno sutil */
.testimonial-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(0,0,0,0.05));
  pointer-events: none;
  z-index: 0;
}

/* Comilla grande */
.quote-mark {
  font-size: 3rem;
  line-height: 1;
  color: var(--yellow);
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  margin-bottom: 1rem;
}

/* Texto */
.testimonial-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

/* Autor */
.author-info {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}
.author-info .author-name {
  color: var(--text-dark);
}

/* Fade-in (usa tu JS de IntersectionObserver) */
.fade-element {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease var(--delay), transform 0.4s ease var(--delay);
}
.fade-element.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────────────────────────────────────────
   CONTACTO – GLASSMORPHISM + PARTICULAS
──────────────────────────────────────────────────────────────── */
.contact-section {
  position: relative;
  width: 100%;
  padding: 6rem 1rem;
  background: var(--white);
  overflow: hidden;
}

/* Tarjeta central */
.contact-card {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

/* Cabecera de la tarjeta */
.contact-card .card-header {
  text-align: center;
  margin-bottom: 2rem;
}
.contact-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  color: var(--black);
  margin-bottom: 0.5rem;
}
.contact-card h2 .text-red {
  color: var(--red);
}
.contact-card p {
  font-size: 1rem;
  color: var(--text-muted);
}

/* Lista de datos */
.info-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}
.info-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}
.info-list li i {
  color: var(--yellow);
}
.info-list a {
  color: var(--red);
  text-decoration: none;
  transition: color var(--transition);
}
.info-list a:hover {
  color: var(--yellow);
}

/* Campos con label flotante */
.field-group {
  position: relative;
  margin-bottom: 1.5rem;
}
.field-group input,
.field-group textarea {
  width: 100%;
  padding: 1rem 1rem 0.5rem;
  border: none;
  border-bottom: 2px solid rgba(0,0,0,0.2);
  background: transparent;
  font-size: 1rem;
  color: var(--text-dark);
  transition: border-color var(--transition);
}
.field-group input:focus,
.field-group textarea:focus {
  border-bottom-color: var(--red);
  outline: none;
}
.field-group label {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  font-size: 1rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: top 0.2s ease, font-size 0.2s ease, color 0.2s ease;
}
.field-group input:focus + label,
.field-group input:not(:placeholder-shown) + label,
.field-group textarea:focus + label,
.field-group textarea:not(:placeholder-shown) + label {
  top: 0.2rem;
  font-size: 0.75rem;
  color: var(--red);
}

/* Botón */
.btn-red {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--red);
  color: var(--white);
  padding: 1rem;
  border: none;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition);
  margin-top: 1rem;
}
.btn-red:hover {
  background: var(--yellow);
}


/* Feedback */
.contact-feedback {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--red);
}

/* Fade-in UP */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* ===================== CTA FINAL (Revisión) ===================== */
#cta-final {
  position: relative;
  overflow: hidden;
  padding: 6rem 1.5rem;
  background: linear-gradient(135deg, var(--yellow) 0%, var(--red) 100%);
}

#cta-final .cta-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
}

/* Texto */
#cta-final .cta-content {
  flex: 1;
  color: var(--white);
}
#cta-final .cta-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
#cta-final .cta-content p {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Botones blancos idénticos */
#cta-final .cta-buttons {
  display: flex;
  gap: 1rem;
}
#cta-final .cta-buttons .btn {
  flex: 1;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  background: var(--white);
  transition: transform var(--transition);
}
#cta-final .cta-buttons .btn:hover {
  transform: scale(1.05);
}

/* Texto de los botones */
#cta-final .btn-presupuesto {
  color: var(--black);
}
#cta-final .btn-catalogo {
  color: var(--red);
}

/* Imagen y decorativos */
#cta-final .cta-visual {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Rectángulo grande */
#cta-final .cta-visual::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.2);
  border-radius: 1rem;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-2deg);
  z-index: 1;
}

/* Rectángulo pequeño izquierda */
#cta-final .rect-small-left {
  position: absolute;
  width: 50%;
  height: 80%;
  background: rgba(255,255,255,0.15);
  border-radius: 1rem;
  top: 70%;
  left: 25%;
  transform: translate(-50%, -50%) rotate(1deg);
  z-index: 0;
}

/* Imagen */
#cta-final .cta-visual img {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 1rem;
  transition: transform var(--transition);
}
#cta-final .cta-visual img:hover {
  transform: rotate(4deg) scale(1.03);
}

/* Responsive */
@media (max-width: 1024px) {
  #cta-final .cta-wrapper {
    flex-direction: column-reverse;
    text-align: center;
  }
  #cta-final .cta-buttons {
    width: 100%;
  }
  #cta-final .cta-visual {
    margin-bottom: 2rem;
  }
}

/* ──────────────── CTA FLOTANTE “LLÁMANOS” ──────────────── */
.floating-call {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background-color: var(--yellow);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity var(--transition), transform var(--transition);
  z-index: 9999;
}

/* Cuando se añade la clase .visible, aparece y crece */
.floating-call.visible {
  opacity: 1;
  transform: scale(1);
}

/* Hover: ligero “rebote” */
.floating-call:hover {
  transform: scale(1.1);
}

/* Icono SVG dentro */
.floating-call svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

/* Ajuste responsive para pantallas grandes */
@media (min-width: 1024px) {
  .floating-call {
    bottom: 30px;
    right: 30px;
    width: 64px;
    height: 64px;
  }
  .floating-call svg {
    width: 28px;
    height: 28px;
  }
}

/* ================= FOOTER (Fondo blanco) ================= */
.footer-section {
  background: var(--white);
  color: var(--text-dark);
  padding: 4rem 1.5rem 2rem;
  font-size: 0.95rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-container {
    grid-template-columns: 2fr 3fr;
  }
}

.footer-brand h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.logo-accent {
  color: var(--yellow);
}

.footer-brand p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Links y contactos */
.footer-links {
  display: grid;
  grid-template-columns: repeat(1,1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-links {
    grid-template-columns: repeat(3,1fr);
  }
}

.footer-links h4 {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.footer-links a {
  color: var(--text-dark);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--yellow);
}

.social-icons {
  display: flex;
  gap: 1rem;
}
.social-icons li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--text-muted);
  border-radius: 50%;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  color: var(--text-muted);
}
.social-icons li a:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--black);
}

/* Pie de página inferior */
.footer-bottom {
  border-top: 1px solid rgba(0,0,0,0.1);
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: var(--text-muted);
}

/* ========== HEADER ========== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease, color 0.3s ease;
}

#header.scrolled {
  background: var(--white);
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

#header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: 1400px;
  margin: auto;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  transition: color 0.3s ease;
}

#header.scrolled .logo {
  color: var(--text-dark);
}

.logo svg {
  width: 32px;
  height: 32px;
  stroke: var(--yellow);
}

.logo span {
  color: var(--yellow);
}

.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.hamburger-btn svg {
  width: 28px;
  height: 28px;
  stroke: var(--white);
  transition: stroke 0.3s ease;
}

#header.scrolled .hamburger-btn svg {
  stroke: var(--text-dark);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-links a {
  position: relative;
  font-weight: 500;
  font-size: 1rem;
  color: var(--white);
  transition: color var(--transition);
}

#header.scrolled .nav-links a {
  color: var(--text-dark);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

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

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icon-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
  position: relative;
  color: var(--white);
  transition: transform 0.2s ease, color 0.3s ease;
}

#header.scrolled .icon-button {
  color: var(--text-dark);
}

.icon-button:hover {
  transform: scale(1.1);
  color: var(--yellow);
}

.icon-button svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.cart span {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--red);
  color: white;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 50%;
}

/* === RESPONSIVE === */
@media (max-width: 1100px) {
  .nav-links a {
    font-size: 0.85rem;
  }
  .btn.btn-outline {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}

@media (max-width: 980px) {
  .hamburger-btn {
    display: block;
  }
  .main-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background: var(--white);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    gap: 2rem;
  }
  .main-nav.open {
    display: flex;
  }
  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }
  .nav-icons {
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
    gap: 1rem;
  }
  .btn.btn-outline {
    width: 100%;
    text-align: center;
  }
}
/* ================= BÚSQUEDA DEBAJO DEL ICONO CON BORDE AMARILLO ================= */
.search-wrapper {
  position: relative;
  display: inline-block;
}

.search-container {
  position: absolute;
  top: 100%;                 
  left: 50%;                  
  transform: translateX(-50%);
  width: 200px;              
  margin-top: 0.5rem;        
  overflow: hidden;
  border: 2px solid var(--yellow);
  border-radius: 999px;
  background: var(--white);
  transition: height 0.3s ease, opacity 0.3s ease;
  height: 0;
  opacity: 0;
}

.search-wrapper.active .search-container {
  height: 2.5rem;           
  opacity: 1;
}

.search-bar {
  width: 100%;
  height: 100%;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 999px;
  font-size: 0.9rem;
  outline: none;
  background: transparent;
  color: var(--text-dark);
}
@media (max-width: 768px) {
  .search-wrapper .search-toggle {
    display: none;
  }

  /* Hacemos que el contenedor de búsqueda esté siempre desplegado */
  .search-container {
    position: relative !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    opacity: 1 !important;
    margin: 0.5rem 0;
    border: 2px solid var(--yellow);
  }

  /* El input ocupa todo el ancho y tiene fondo blanco */
  .search-container .search-bar {
    width: 100%;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background-color: var(--white);
    color: var(--text-dark);
    box-sizing: border-box;
  }
}
.cart-panel {
  position: fixed;
  right: -100%;
  top: 0;
  width: 300px;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  box-shadow: -2px 0 10px rgba(0,0,0,0.2);
  color: var(--text-dark);
  transition: right 0.3s ease;
  z-index: 9999;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}
.cart-panel.open {
  right: 0;
}
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.cart-items {
  flex-grow: 1;
  overflow-y: auto;
  margin-bottom: 1rem;
}
.cart-item {
  border-bottom: 1px solid #ddd;
  padding: 0.5rem 0;
}
 .cart-footer a.btn-primary {
  background-color: var(--yellow);
  color: var(--black);
}
.cart-footer {
  text-align: center;
}
.cart-panel h2,
.cart-panel p {
  color: black !important;
}
html[data-theme="dark"] .cart-panel {
  background: rgba(17, 17, 17, 0.85);
  color: white;
}

html[data-theme="dark"] .cart-panel h2,
html[data-theme="dark"] .cart-panel p,
html[data-theme="dark"] .cart-footer a {
  color: white !important;
}
#header.transparent ~ .cart-panel.open {
  background: var(--white); 
  color: var(--black);
}
.cart-items .cart-item button {
  background: var(--red);
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background var(--transition);
}

.cart-items .cart-item button:hover {
  background: var(--yellow);
  color: var(--black);
}

#close-cart {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: color var(--transition), transform var(--transition);
}

#close-cart:hover {
  color: var(--red);
  transform: scale(1.2);
}


/* Estilo base: modo transparente con texto blanco */
#header.transparent {
  background: transparent;
  color: white;
}

#header.transparent a,
#header.transparent .logo,
#header.transparent svg {
  color: white;
  stroke: white;
  fill: white;
}

/* Override cuando el menú hamburguesa está abierto */
#header.transparent.force-black,
#header.transparent.force-black a,
#header.transparent.force-black .logo,
#header.transparent.force-black svg {
  color: black !important;
  stroke: black !important;
  fill: black !important;
}
.icon-button.user-initials {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}
/* Modal logout */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--white);
  padding: 2rem;
  border-radius: 0.75rem;
  text-align: center;
  max-width: 90%;
  width: 300px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}
