/*
Theme Name: Chimeneas Candela
Theme URI: https://chimeneascandela.es
Author: Tu Nombre
Description: Theme moderno para Chimeneas Candela. One-page, contenido desde páginas de WordPress.
Version: 3.0
License: GNU General Public License v2 or later
Text Domain: chimeneas-candela
*/

/* =========================================================
   1. VARIABLES
   ========================================================= */
:root {
  --white:   #ffffff;
  --black:   #000000;
  --blue:    #01278D;
  --blue-dk: #011f70;
  --blue-lt: #0133b8;
  --yellow:  #FDCC0C;
  --yellow-dk:#e0b400;
  --gray-1:  #f5f5f5;
  --gray-2:  #e8e8e8;
  --gray-3:  #b0b0b0;
  --gray-4:  #555555;
  --text:    #000000;
  --text-2:  #333333;
  --text-3:  #666666;
  --border:  #e0e0e0;

  --font-display: 'Urbanist', system-ui, sans-serif;
  --font-body:    'Plus Jakarta Sans', system-ui, sans-serif;

  --r-sm:  4px;
  --r:     8px;
  --r-lg:  16px;
  --r-xl:  28px;
  --r-full:9999px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow:    0 6px 24px rgba(0,0,0,.1);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.14);
  --shadow-blue: 0 8px 32px rgba(1,39,141,.25);

  --t:      0.3s cubic-bezier(.4,0,.2,1);
  --t-slow: 0.6s cubic-bezier(.4,0,.2,1);
}

/* =========================================================
   2. BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--yellow); color: var(--black); }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--gray-1); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }
a { color: var(--blue); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--blue-lt); }
img { max-width: 100%; height: auto; display: block; }

/* =========================================================
   3. TYPOGRAPHY
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  color: var(--black);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(3.2rem, 7vw, 6.5rem); font-weight: 300; }
h2 { font-size: clamp(2.2rem, 4vw, 4rem);   font-weight: 300; }
h3 { font-size: clamp(1.5rem, 2.5vw, 2.2rem); }
h4 { font-size: 1.3rem; }
p  { color: var(--text-3); line-height: 1.85; }

.display-blue   { color: var(--blue); }
.display-yellow { color: var(--yellow-dk); }
.display-italic { font-style: italic; }

.label-sm {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}

.divider-blue {
  width: 48px; height: 3px;
  background: var(--blue);
  margin: 1.25rem 0;
}
.divider-yellow {
  width: 48px; height: 3px;
  background: var(--yellow);
  margin: 1.25rem 0;
}
.divider-blue.centered,
.divider-yellow.centered { margin: 1.25rem auto; }

/* =========================================================
   4. LAYOUT UTILITIES
   ========================================================= */
.section-pad    { padding: 120px 0; }
.section-pad-sm { padding: 72px 0; }
.section-pad-lg { padding: 160px 0; }

.bg-white  { background: var(--white); }
.bg-gray   { background: var(--gray-1); }
.bg-blue   { background: var(--blue); }
.bg-yellow { background: var(--yellow); }
.bg-black  { background: var(--black); }

/* Placeholder for missing images */
.img-ph {
  background: var(--gray-1);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-3); font-size: 2.5rem;
  border-radius: var(--r-lg);
}

/* =========================================================
   5. BUTTONS
   ========================================================= */
.btn-blue {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 36px;
  background: var(--blue); color: var(--white);
  font-family: var(--font-body); font-size: .82rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  border: 2px solid var(--blue); border-radius: var(--r-sm);
  cursor: pointer; transition: all var(--t); position: relative; overflow: hidden;
}
.btn-blue:hover {
  background: var(--blue-dk); color: var(--white);
  border-color: var(--blue-dk); transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}

.btn-yellow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 36px;
  background: var(--yellow); color: var(--black);
  font-family: var(--font-body); font-size: .82rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  border: 2px solid var(--yellow); border-radius: var(--r-sm);
  cursor: pointer; transition: all var(--t);
}
.btn-yellow:hover {
  background: var(--yellow-dk); color: var(--black);
  border-color: var(--yellow-dk); transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(253,204,12,.35);
}

.btn-outline-blue {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 34px;
  background: transparent; color: var(--blue);
  font-family: var(--font-body); font-size: .82rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  border: 2px solid var(--blue); border-radius: var(--r-sm);
  cursor: pointer; transition: all var(--t);
}
.btn-outline-blue:hover {
  background: var(--blue); color: var(--white); transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}

.btn-outline-white {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 34px;
  background: transparent; color: var(--white);
  font-family: var(--font-body); font-size: .82rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  border: 2px solid rgba(255,255,255,.5); border-radius: var(--r-sm);
  cursor: pointer; transition: all var(--t);
}
.btn-outline-white:hover {
  background: var(--white); color: var(--blue);
  border-color: var(--white); transform: translateY(-2px);
}

/* =========================================================
   6. NAVBAR — hamburguesa + panel lateral
   ========================================================= */

/* ── Barra de navegación ── */
#main-nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 18px 0;
  /* Siempre transparente — sin fondo al hacer scroll */
  transition: padding var(--t-slow);
}
#main-nav.scrolled { padding: 10px 0; }

/* Logo: tamaño fijo siempre, no se reduce al hacer scroll */
#main-nav.scrolled .custom-logo { height: 50px; }
#main-nav.scrolled .nav-brand   { font-size: 1.5rem; }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.navbar-brand {
  display: flex; align-items: center;
  text-decoration: none; line-height: 1;
}
.navbar-brand .custom-logo-link { display: flex; align-items: center; }
.navbar-brand .custom-logo {
  height: 50px; width: auto; display: block;
  transition: height var(--t);
}
/* logo size fixed on scroll — see scrolled block above */

.nav-brand {
  font-family: var(--font-display); font-size: 1.5rem;
  font-weight: 600; color: var(--white); letter-spacing: .02em; line-height: 1;
}
.nav-brand-dot { color: var(--yellow); }

/* ── Botón hamburguesa ── */
.nav-hamburger {
  width: 48px; height: 48px;
  background: var(--blue);
  border: none; border-radius: 0;   /* cuadrado */
  cursor: pointer;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 7px; padding: 0;
  flex-shrink: 0;
  transition: background var(--t);
  z-index: 1001;
  position: relative;
}
.nav-hamburger:hover { background: var(--blue-dk); }

.hamburger-line {
  display: block;
  width: 22px; height: 2px;
  background: var(--yellow);
  transition: transform var(--t), opacity var(--t), width var(--t);
  transform-origin: center;
}

/* Animación a X cuando el panel está abierto */
.nav-hamburger.is-open .hamburger-line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.nav-hamburger.is-open .hamburger-line:nth-child(2) {
  opacity: 0; width: 0;
}
.nav-hamburger.is-open .hamburger-line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ── Panel lateral ── */
.nav-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: var(--blue);
  z-index: 1100;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
.nav-panel.is-open {
  transform: translateX(0);
}

.nav-panel-inner {
  padding: 32px 40px 48px;
  min-height: 100%;
  display: flex; flex-direction: column;
}

/* Botón cerrar (X) */
.nav-panel-close {
  align-self: flex-end;
  width: 40px; height: 40px;
  background: transparent; border: none;
  cursor: pointer; padding: 0;
  position: relative; margin-bottom: 48px;
}
.nav-panel-close span {
  position: absolute; top: 50%; left: 50%;
  display: block; width: 22px; height: 2px;
  background: var(--yellow);
}
.nav-panel-close span:first-child {
  transform: translate(-50%,-50%) rotate(45deg);
}
.nav-panel-close span:last-child {
  transform: translate(-50%,-50%) rotate(-45deg);
}
.nav-panel-close:hover span { background: var(--white); }

/* Enlaces del panel */
.nav-panel-links {
  list-style: none; padding: 0; margin: 0;
  flex: 1;
}
.nav-panel-links li {
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-panel-links a {
  display: block;
  padding: 16px 0;
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 400;
  color: var(--yellow);
  text-decoration: none; letter-spacing: -.01em;
  transition: color var(--t), padding-left var(--t);
}
.nav-panel-links a:hover {
  color: var(--white);
  padding-left: 8px;
}

/* Enlace CTA especial */
.nav-panel-cta {
  color: var(--white) !important;
  font-weight: 600 !important;
  margin-top: 8px;
}
.nav-panel-cta:hover { color: var(--yellow) !important; }

/* Contacto en el panel */
.nav-panel-contact {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.nav-panel-contact a {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,.6); font-size: .85rem;
  text-decoration: none; transition: color var(--t);
}
.nav-panel-contact a:hover { color: var(--white); }
.nav-panel-contact i { color: var(--yellow); }

/* ── Overlay oscuro ── */
.nav-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 1050;
  opacity: 0; pointer-events: none;
  transition: opacity .4s ease;
}
.nav-overlay.is-visible {
  opacity: 1; pointer-events: all;
}

/* =========================================================
   7. HERO SECTION
   ========================================================= */
#inicio {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: var(--blue);
}

.hero-bg-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-attachment: fixed;
  transition: transform 8s ease;
}
.hero-bg-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(1,39,141,.55) 0%,
    rgba(1,39,141,.3)  40%,
    rgba(0,0,0,.65)    100%
  );
}
.hero-bg-img.is-ph {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dk) 100%);
}
.hero-bg-img.is-ph::after { display: none; }

.hero-deco-line {
  position: absolute; top: 0; left: 10%;
  width: 1px; height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(253,204,12,.25), transparent);
  pointer-events: none;
}
.hero-deco-line:nth-child(2) { left: 30%; opacity: .5; }
.hero-deco-line:nth-child(3) { left: 70%; opacity: .3; }
.hero-deco-line:nth-child(4) { left: 90%; opacity: .4; }

/* Contenedor centrado del título */
.hero-center {
  position: relative;
  z-index: 4;
  width: 100%;
  padding: 0 40px;
  text-align: center;
}

/* Título hero: una sola línea a máximo tamaño */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 9.5vw, 12rem);
  font-weight: 700;
  color: var(--white);
  line-height: .95;
  letter-spacing: -.04em;
  margin: 0;
  white-space: nowrap;   /* ← una sola línea */
}
.hero-title em { font-style: italic; color: var(--yellow); }

.scroll-cue {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-cue span {
  font-size: .6rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.5);
}
.scroll-cue-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, rgba(253,204,12,.6), transparent);
  animation: line-drop 1.8s ease-in-out infinite;
}
@keyframes line-drop {
  0%, 100% { transform: scaleY(0); transform-origin: top; }
  50%       { transform: scaleY(1); transform-origin: top; }
  51%       { transform-origin: bottom; }
}

/* =========================================================
   8. HISTORIA SECTION
   ========================================================= */
#historia { background: var(--white); overflow: hidden; }

.historia-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 85vh;
  align-items: stretch;
}
.historia-visual {
  position: relative; overflow: hidden; min-height: 500px;
}
.historia-visual img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 8s ease;
}
.historia-visual:hover img { transform: scale(1.05); }
.historia-visual-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(1,39,141,.18) 0%, transparent 60%);
}
.historia-year-stamp {
  position: absolute; bottom: 32px; right: 32px;
  font-family: var(--font-display); font-size: 8rem; font-weight: 300;
  color: var(--yellow); opacity: .85; line-height: 1;
  pointer-events: none; user-select: none;
  text-shadow: 2px 4px 20px rgba(0,0,0,.3);
}
.historia-text-side {
  padding: 80px 64px;
  display: flex; flex-direction: column; justify-content: center;
  background: var(--white);
}
.historia-quote {
  border-left: 4px solid var(--yellow);
  padding: 1.25rem 1.5rem; margin: 2rem 0;
  background: rgba(253,204,12,.06);
}
.historia-quote p {
  font-family: var(--font-display); font-size: 1.3rem; font-style: italic;
  color: var(--blue); line-height: 1.5; margin: 0;
}
.historia-quote cite {
  display: block; font-family: var(--font-body); font-size: .68rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); margin-top: .65rem;
}
.historia-valores {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem;
}
.historia-valor {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  background: var(--gray-1); border-radius: var(--r-full);
  font-size: .82rem; color: var(--text-2); font-weight: 400;
}
.historia-valor i { color: var(--blue); }

/* =========================================================
   9. CATEGORY SECTIONS — base
   ========================================================= */
.cat-section { position: relative; overflow: hidden; }

/* Section label */
.sec-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .67rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  color: var(--blue); margin-bottom: .85rem;
}
.sec-label::before { content: ''; display: block; width: 24px; height: 2px; background: var(--blue); }

/* On dark bg */
.sec-label.on-dark { color: var(--yellow); }
.sec-label.on-dark::before { background: var(--yellow); }

.sec-num {
  position: absolute; top: -20px; right: 0;
  font-family: var(--font-display); font-size: 20vw; font-weight: 300;
  color: rgba(1,39,141,.04); line-height: 1;
  pointer-events: none; user-select: none; z-index: 0;
}
.sec-num.on-dark { color: rgba(255,255,255,.04); }
.sec-num.on-yellow { color: rgba(1,39,141,.06); }

/* ─── CHIMENEAS — Layout: imagen grande + texto ─── */
#chimeneas {
  background: var(--white);
}
.chimeneas-hero-img {
  position: relative; overflow: hidden;
  height: 70vh; min-height: 480px;
}
.chimeneas-hero-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s ease;
}
.chimeneas-hero-img:hover img { transform: scale(1.03); }
.chimeneas-hero-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.5) 100%);
}

.img-gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-top: 12px;
}
.img-gallery-item {
  position: relative; overflow: hidden;
  aspect-ratio: 4/3; border-radius: var(--r);
  cursor: pointer;
}
.img-gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.img-gallery-item:hover img { transform: scale(1.08); }
.img-gallery-item::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(1,39,141,.0);
  transition: background var(--t);
}
.img-gallery-item:hover::after { background: rgba(1,39,141,.15); }

/* ─── ESTUFAS — Layout: fondo azul, imagen derecha ─── */
#estufas { background: var(--blue); color: var(--white); }
#estufas h2, #estufas h3 { color: var(--white); }
#estufas p { color: rgba(255,255,255,.72); }

.estufas-split {
  display: grid; grid-template-columns: 1fr 1fr; min-height: 80vh; align-items: stretch;
}
.estufas-text-col {
  padding: 100px 64px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; z-index: 1;
}
.estufas-img-col {
  position: relative; overflow: hidden;
}
.estufas-img-col img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.85);
  transition: transform .8s ease;
}
.estufas-img-col:hover img { transform: scale(1.04); }
.estufas-img-col::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to right, var(--blue) 0%, transparent 40%);
}
.estufas-feature {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.1);
}
.estufas-feature:last-child { border-bottom: none; }
.estufas-feature-icon {
  width: 40px; height: 40px; min-width: 40px;
  background: rgba(253,204,12,.15); border: 1px solid rgba(253,204,12,.3);
  border-radius: var(--r); display: flex; align-items: center;
  justify-content: center; color: var(--yellow); font-size: 1rem;
}
.estufas-feature-text strong {
  display: block; font-size: .82rem; font-weight: 500; color: var(--white); margin-bottom: 2px;
  font-family: var(--font-body);
}
.estufas-feature-text span { font-size: .82rem; color: rgba(255,255,255,.6); }

/* ─── PELLETS — Layout: amarillo, minimalista ─── */
#pellets { background: var(--yellow); }
#pellets h2, #pellets h3 { color: var(--black); }
#pellets p { color: rgba(0,0,0,.65); }
#pellets .sec-label { color: var(--blue); }
#pellets .sec-label::before { background: var(--blue); }
#pellets .divider-blue { background: var(--blue); }

.pellets-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px;
}
.pellets-grid-item {
  position: relative; overflow: hidden; aspect-ratio: 3/2;
  cursor: pointer;
}
.pellets-grid-item:first-child { grid-column: span 2; aspect-ratio: 16/7; }
.pellets-grid-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s ease, filter .3s ease;
  filter: brightness(.9);
}
.pellets-grid-item:hover img { transform: scale(1.06); filter: brightness(.75); }
.pellets-grid-overlay {
  position: absolute; inset: 0;
  background: rgba(1,39,141,.0);
  display: flex; align-items: flex-end;
  padding: 24px; transition: background var(--t);
}
.pellets-grid-item:hover .pellets-grid-overlay { background: rgba(1,39,141,.35); }
.pellets-grid-overlay span {
  font-size: .72rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: transparent;
  transition: color var(--t);
}
.pellets-grid-item:hover .pellets-grid-overlay span { color: var(--white); }

.pellets-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: rgba(0,0,0,.1);
  margin-top: 48px;
}
.pellets-stat {
  background: var(--yellow); padding: 32px 24px; text-align: center;
}
.pellets-stat .num {
  font-family: var(--font-display); font-size: 3.5rem; font-weight: 300;
  color: var(--blue); line-height: 1;
}
.pellets-stat .lbl {
  font-size: .7rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(0,0,0,.55); margin-top: 6px;
}

/* ─── BARBACOAS — Layout: blanco + imagen full width ─── */
#barbacoas { background: var(--white); }

.barbacoas-full {
  position: relative; height: 65vh; min-height: 440px; overflow: hidden;
}
.barbacoas-full img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 6s ease;
}
.barbacoas-full.animate img { transform: scale(1.08); }
.barbacoas-full-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 60%);
}
.barbacoas-full-caption {
  position: absolute; bottom: 40px; left: 0; right: 0;
  z-index: 2; color: var(--white); text-align: center;
}
.barbacoas-full-caption h3 {
  color: var(--white); font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 300; margin: 0;
}
.barbacoas-full-caption em { color: var(--yellow); font-style: italic; }

.barbacoas-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto;
  gap: 10px; padding: 10px 0;
}
.mosaic-item {
  position: relative; overflow: hidden;
  aspect-ratio: 1/1; border-radius: var(--r);
  cursor: pointer;
}
.mosaic-item:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.mosaic-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.mosaic-item:hover img { transform: scale(1.07); }
.mosaic-item::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(1,39,141,.0); transition: background var(--t);
}
.mosaic-item:hover::after { background: rgba(1,39,141,.12); }

/* =========================================================
   10. INSTAGRAM
   ========================================================= */
#instagram { background: var(--black); }
#instagram h3 { color: var(--white); }
#instagram p { color: rgba(255,255,255,.55); }

.insta-header { text-align: center; margin-bottom: 48px; }
.insta-handle-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--yellow); margin-bottom: .6rem; transition: color var(--t);
}
.insta-handle-link:hover { color: var(--yellow-dk); }

.insta-track-wrap { position: relative; overflow: hidden; }
.insta-track-wrap::before,
.insta-track-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2; pointer-events: none;
}
.insta-track-wrap::before { left: 0; background: linear-gradient(to right, var(--black), transparent); }
.insta-track-wrap::after  { right: 0; background: linear-gradient(to left, var(--black), transparent); }
.insta-track {
  display: flex; gap: 12px;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.insta-card {
  flex: 0 0 220px; overflow: hidden;
  border-radius: var(--r); cursor: pointer; position: relative;
}
.insta-card-img {
  aspect-ratio: 1/1; overflow: hidden;
  background: #111;
}
.insta-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.insta-card:hover .insta-card-img img { transform: scale(1.08); }
.insta-card-img .img-ph {
  width: 100%; height: 100%; border-radius: 0; border: none;
  background: #1a1a1a; aspect-ratio: unset;
}
.insta-overlay {
  position: absolute; inset: 0;
  background: rgba(1,39,141,.65);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--t);
}
.insta-card:hover .insta-overlay { opacity: 1; }
.insta-overlay i { font-size: 1.75rem; color: var(--white); }
.insta-controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 28px; }
.insta-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: #1a1a1a; border: 1px solid #333;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-3); cursor: pointer; transition: all var(--t);
}
.insta-btn:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.insta-dots { display: flex; gap: 6px; }
.insta-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #333; transition: all var(--t); cursor: pointer;
}
.insta-dot.active { background: var(--yellow); width: 20px; border-radius: 3px; }

/* =========================================================
   11. CONTACTO
   ========================================================= */
#contacto { background: var(--gray-1); }

.contact-card {
  background: var(--white); border-radius: var(--r-lg);
  box-shadow: var(--shadow); padding: 40px;
}
.contact-row {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.contact-row:last-child { border-bottom: none; }
.contact-icon {
  width: 42px; height: 42px; min-width: 42px;
  background: rgba(1,39,141,.07); border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); font-size: 1rem;
}
.contact-row-text strong {
  display: block; font-size: .65rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gray-3); margin-bottom: 3px;
  font-weight: 600; font-family: var(--font-body);
}
.contact-row-text span, .contact-row-text a { font-size: .92rem; color: var(--text-2); }
.contact-row-text a:hover { color: var(--blue); }

.form-label {
  display: block; font-size: .66rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gray-3); margin-bottom: 6px;
}
.form-group { margin-bottom: 16px; }
.cf-input {
  width: 100%; padding: 12px 16px;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--r); color: var(--text);
  font-family: var(--font-body); font-size: .9rem;
  transition: border-color var(--t), box-shadow var(--t); outline: none;
}
.cf-input::placeholder { color: var(--gray-3); opacity: .7; }
.cf-input:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(1,39,141,.08);
}
textarea.cf-input { resize: vertical; min-height: 110px; }
.cf-select {
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2301278D' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}

.map-wrap {
  border-radius: var(--r-lg); overflow: hidden; height: 220px;
  background: var(--gray-2); margin-top: 20px; position: relative;
}
.map-wrap iframe { width: 100%; height: 100%; border: none; }
.map-ph {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; color: var(--gray-3);
}

/* =========================================================
   12. FOOTER
   ========================================================= */
#footer { background: var(--blue); color: var(--white); padding: 72px 0 28px; }
.footer-brand { font-family: var(--font-display); font-size: 1.9rem; color: var(--white); margin-bottom: .75rem; }
.footer-brand span { color: var(--yellow); font-style: italic; }
.footer-desc { font-size: .85rem; color: rgba(255,255,255,.6); line-height: 1.75; max-width: 270px; margin-bottom: 1.5rem; }
.footer-heading { font-size: .65rem; font-weight: 700; letter-spacing: .25em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: .84rem; color: rgba(255,255,255,.65); transition: color var(--t); }
.footer-links a:hover { color: var(--yellow); }
.social-links { display: flex; gap: 8px; }
.social-link {
  width: 38px; height: 38px; border-radius: var(--r);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.65); font-size: .9rem; text-decoration: none; transition: all var(--t);
}
.social-link:hover { background: var(--yellow); border-color: var(--yellow); color: var(--black); transform: translateY(-2px); }
.footer-bottom {
  margin-top: 52px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
}
.footer-bottom p { font-size: .76rem; color: rgba(255,255,255,.4); margin: 0; }

/* =========================================================
   13. SCROLL REVEAL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left  { opacity: 0; transform: translateX(-32px); transition: opacity .7s ease, transform .7s ease; }
.reveal-right { opacity: 0; transform: translateX(32px);  transition: opacity .7s ease, transform .7s ease; }
.reveal-left.visible, .reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }

/* =========================================================
   14. RESPONSIVE
   ========================================================= */
@media (max-width: 991px) {
  .section-pad { padding: 80px 0; }
  .section-pad-lg { padding: 100px 0; }
  .historia-layout { grid-template-columns: 1fr; }
  .historia-visual { min-height: 380px; }
  .historia-text-side { padding: 56px 24px; }
  .estufas-split { grid-template-columns: 1fr; }
  .estufas-img-col { min-height: 380px; }
  .estufas-img-col::before { background: linear-gradient(to bottom, var(--blue) 0%, transparent 40%); }
  .estufas-text-col { padding: 60px 24px; }
  .pellets-grid { grid-template-columns: 1fr; }
  .pellets-grid-item:first-child { grid-column: span 1; }
  .pellets-stats { grid-template-columns: repeat(3,1fr); }
  .barbacoas-mosaic { grid-template-columns: repeat(2,1fr); }
  .mosaic-item:nth-child(1) { grid-column: span 2; }
  #main-nav { padding: 12px 0; }
  #main-nav .nav-brand { color: var(--blue) !important; }
  #main-nav .navbar-nav .nav-link { color: var(--text-3) !important; }

  .hero-title { font-size: clamp(1.5rem, 7vw, 12rem); padding: 0 20px; white-space: nowrap; }
}
@media (max-width: 767px) {
  h1 { font-size: clamp(2.5rem, 10vw, 3.5rem); }
  .img-gallery { grid-template-columns: repeat(2,1fr); }
  .pellets-stats { grid-template-columns: 1fr; }
  .barbacoas-mosaic { grid-template-columns: 1fr; }
  .mosaic-item:nth-child(1) { grid-column: span 1; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .contact-card { padding: 24px; }
}

/* =========================================================
   HERO SLIDER — Videoclip style
   ========================================================= */

/* Contenedor del slider (ocupa todo el section) */
.hero-slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Cada slide: imagen de fondo con Ken Burns */
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  /* Ken Burns: cada slide hace un zoom diferente */
  transform: scale(1.08);
  transition: opacity 0s; /* el JS controla el timing */
  will-change: transform, opacity;
}

/* Slide activo */
.hero-slide.is-active {
  opacity: 1;
  animation: hero-kenburns 3.5s ease-out forwards;
}

/* Slide saliente (fade out rápido) */
.hero-slide.is-leaving {
  opacity: 0;
  transition: opacity 0.25s ease-in;
}

/* Variantes de Ken Burns — alternan entre slides */
.hero-slide:nth-child(odd).is-active  { animation-name: hero-kenburns-a; }
.hero-slide:nth-child(even).is-active { animation-name: hero-kenburns-b; }

@keyframes hero-kenburns-a {
  0%   { transform: scale(1.12) translate(1%, 1%); }
  100% { transform: scale(1.0)  translate(0%,  0%); }
}
@keyframes hero-kenburns-b {
  0%   { transform: scale(1.08) translate(-1.5%, 0.5%); }
  100% { transform: scale(1.02) translate(0%,    0%); }
}

/* Placeholder gradient cuando no hay imágenes */
.hero-slide.is-gradient {
  opacity: 1;
  transform: none;
  background: linear-gradient(135deg, var(--blue-dk) 0%, var(--blue) 50%, #0a3fa8 100%);
  animation: hero-gradient-shift 6s ease-in-out infinite alternate;
}
@keyframes hero-gradient-shift {
  0%   { filter: brightness(1) hue-rotate(0deg); }
  100% { filter: brightness(1.1) hue-rotate(8deg); }
}

/* Flash de corte — destello blanco rapidísimo entre slides */
.hero-cut-flash {
  position: absolute;
  inset: 0;
  background: var(--white);
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  transition: opacity 0s;
}
.hero-cut-flash.flash {
  animation: cut-flash 0.18s ease-out forwards;
}
@keyframes cut-flash {
  0%   { opacity: 0.55; }
  100% { opacity: 0; }
}

/* Overlay oscuro sobre el slider */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(1,39,141, 0.50) 0%,
    rgba(0, 0,  0, 0.30) 45%,
    rgba(0, 0,  0, 0.65) 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* Líneas decorativas por encima del overlay */
.hero-deco-line {
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(253,204,12,.2), transparent);
  pointer-events: none;
  z-index: 3;
}
.hero-deco-line:nth-child(2) { left: 25%; }
.hero-deco-line:nth-child(3) { left: 50%; opacity: .4; }
.hero-deco-line:nth-child(4) { left: 75%; opacity: .3; }

/* El contenido del hero debe estar sobre el slider */
.hero-center { position: relative; z-index: 4; }
.scroll-cue   { z-index: 4; }

/* Etiqueta de categoría — aparece/desaparece con el slide */
.hero-slide-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: .75rem;
  transition: opacity .25s ease, transform .25s ease;
}
.hero-slide-label:not(:empty)::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--yellow);
  flex-shrink: 0;
}
.hero-slide-label.is-changing {
  opacity: 0;
  transform: translateY(6px);
}

/* Dots del slider */
.hero-dots {
  position: absolute;
  bottom: 36px;
  right: 40px;
  z-index: 4;
  display: flex;
  gap: 8px;
  flex-direction: column;
}
.hero-dot {
  width: 4px;
  height: 24px;
  border-radius: 2px;
  background: rgba(255,255,255,.3);
  border: none;
  cursor: pointer;
  transition: all .3s ease;
  padding: 0;
}
.hero-dot.is-active {
  background: var(--yellow);
  height: 36px;
}
.hero-dot:hover { background: rgba(253,204,12,.6); }

/* Barra de progreso del slide activo */
.hero-dot.is-active::after {
  content: none; /* progreso gestionado por animación CSS en el dot */
}

/* Progress line inside active dot */
.hero-dot.is-active {
  position: relative;
  overflow: hidden;
}
.hero-dot.is-active .dot-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0%;
  background: rgba(255,255,255,.5);
  animation: dot-fill var(--slide-speed, 2.2s) linear forwards;
}
@keyframes dot-fill {
  from { height: 0%; }
  to   { height: 100%; }
}


/* =========================================================

/* Contenedor del feed */
.candela-ig-feed {
  margin: 0 auto;
}

/* Ocultar elementos del plugin que no queremos */
.candela-ig-feed .sb_instagram_header,
.candela-ig-feed #sbi_load,
.candela-ig-feed .sbi_follow_btn { display: none !important; }

/* Grid de fotos */
.candela-ig-feed #sbi_images {
  gap: 6px !important;
}

/* Cada foto: bordes redondeados y efecto hover */
.candela-ig-feed .sbi_item {
  border-radius: var(--r) !important;
  overflow: hidden !important;
  transition: transform var(--t), box-shadow var(--t) !important;
}
.candela-ig-feed .sbi_item:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--shadow-lg) !important;
}

/* Overlay azul en hover */
.candela-ig-feed .sbi_photo_wrap::after {
  background: rgba(1,39,141,.55) !important;
}

/* Icono de Instagram en hover */
.candela-ig-feed .sbi_hover_icon { color: var(--yellow) !important; }

.candela-ig-overlay i { font-size: 1.75rem; color: var(--white); }

@media (max-width: 767px) {
  .candela-ig-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .candela-ig-grid { grid-template-columns: repeat(2, 1fr); gap: 4px; }
}


/* =========================================================
   HISTORIA — Fotografía analógica v2
   Fondo blanco, imagen completa visible en todos los tamaños
   ========================================================= */

/* Fondo blanco, sin overflow oculto para que la foto rotada respire */
#historia { background: var(--white); overflow: hidden; }

.historia-visual {
  overflow: visible !important;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 600px;
}

/* Quitar el overlay de degradado azul */
.historia-visual-overlay { display: none; }

/* Fondo de la columna: retícula de puntos muy sutil sobre blanco */
.historia-visual::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(1,39,141,.05) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none; z-index: 0;
}

/* Escenario centrado — padding generoso para que la foto rotada no se recorte */
.historia-photo-stage {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  /* Espacio extra para absorber la rotación sin recortar:
     con rotate(-35deg) en un elemento 70% ancho,
     el bounding box crece aprox un 40% → necesitamos padding suficiente */
  padding: 15% 20%;
}

/* La foto analógica */
.historia-photo {
  width: 100%;            /* ocupa todo el espacio del stage */
  aspect-ratio: 4/5;
  position: relative;
  flex-shrink: 0;

  /* Marco papel fotográfico */
  background: #fff;
  padding: 14px 14px 42px 14px;

  /* Rotación */
  transform: rotate(-35deg);

  /* Sombra 3D */
  box-shadow:
    2px   2px   0px rgba(0,0,0,.07),
    6px   6px   0px rgba(0,0,0,.05),
    14px  14px  0px rgba(0,0,0,.04),
    22px  26px  40px rgba(0,0,0,.22),
    28px  32px  70px rgba(0,0,0,.14);

  transition: transform .5s ease, box-shadow .5s ease;
}

.historia-visual:hover .historia-photo {
  transform: rotate(-30deg) translateY(-10px);
  box-shadow:
    2px   2px   0px rgba(0,0,0,.07),
    6px   6px   0px rgba(0,0,0,.05),
    16px  16px  0px rgba(0,0,0,.04),
    30px  36px  55px rgba(0,0,0,.26),
    36px  42px  90px rgba(0,0,0,.17);
}

/* Imagen dentro del marco */
.historia-photo img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  filter: saturate(.85) contrast(1.05) sepia(.08);
  transition: filter .5s ease;
}
.historia-visual:hover .historia-photo img {
  filter: saturate(.95) contrast(1.05) sepia(.03);
}

/* Grain analógico */
.historia-photo::after {
  content: '';
  position: absolute;
  inset: 14px 14px 42px 14px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 1;
  mix-blend-mode: overlay;
}

/* Placeholder */
.historia-photo-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-2); color: var(--gray-3); font-size: 3rem;
}

/* ── Responsive: el padding del stage escala con el viewport
   para que la foto nunca quede recortada ── */
@media (max-width: 1199px) {
  .historia-photo-stage { padding: 18% 22%; }
}
@media (max-width: 991px) {
  /* En tablet la columna ocupa ancho completo */
  .historia-visual { min-height: 480px; }
  .historia-photo-stage { padding: 16% 20%; }
  .historia-photo { transform: rotate(-25deg); }
  .historia-visual:hover .historia-photo { transform: rotate(-20deg) translateY(-8px); }
}
@media (max-width: 767px) {
  .historia-visual { min-height: 380px; }
  .historia-photo-stage { padding: 14% 18%; }
  .historia-photo {
    transform: rotate(-15deg);
    padding: 10px 10px 30px 10px;
  }
  .historia-photo::after { inset: 10px 10px 30px 10px; }
  .historia-visual:hover .historia-photo { transform: rotate(-10deg) translateY(-6px); }
}
@media (max-width: 480px) {
  .historia-visual { min-height: 320px; }
  .historia-photo-stage { padding: 12% 14%; }
  .historia-photo { transform: rotate(-10deg); }
  .historia-visual:hover .historia-photo { transform: rotate(-6deg) translateY(-4px); }
}

/* =========================================================
   LOGO PERSONALIZADO
   ========================================================= */

/* Logo imagen */
.navbar-brand .custom-logo-link {
  display: flex;
  align-items: center;
  line-height: 1;
}
.navbar-brand .custom-logo {
  height: 50px;
  width: auto;
  display: block;
  transition: height var(--t);
}

/* Al hacer scroll se reduce ligeramente */
#main-nav.scrolled .custom-logo {
  height: 40px;
}

/* Fallback texto */
.nav-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: .02em;
  line-height: 1;
}
.nav-brand-dot { color: var(--yellow-dk); }

@media (max-width: 767px) {
  .navbar-brand .custom-logo { height: 38px; }
  #main-nav.scrolled .custom-logo { height: 32px; }
}

/* ── Enlaces legales en el footer ── */
.footer-legal-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-legal-links a {
  font-size: .76rem;
  color: rgba(255,255,255,.4);
  text-decoration: none;
  transition: color var(--t);
}
.footer-legal-links a:hover { color: var(--yellow); }

@media (max-width: 767px) {
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal-links { justify-content: center; }
}

/* =========================================================
   PAGE.PHP — Páginas legales y genéricas
   ========================================================= */
.page-main {
  background: var(--white);
  padding-top: 120px;   /* espacio para la navbar fija */
  padding-bottom: 80px;
  min-height: 100vh;
}

.page-content {
  max-width: 760px;
  margin: 0 auto;
}

.page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 1rem;
}

.page-divider {
  width: 48px; height: 3px;
  background: var(--yellow);
  margin-bottom: 2.5rem;
}

/* Contenido de la página */
.page-body { color: var(--text-2); line-height: 1.85; }

.page-body h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--blue);
  margin: 2.5rem 0 .75rem;
  font-family: var(--font-body);
}
.page-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-2);
  margin: 1.5rem 0 .5rem;
  font-family: var(--font-body);
}
.page-body p  { margin-bottom: 1rem; }
.page-body ul, .page-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.page-body li { margin-bottom: .4rem; }
.page-body a  { color: var(--blue); text-decoration: underline; }
.page-body a:hover { color: var(--blue-lt); }
.page-body strong { color: var(--text); font-weight: 600; }

.page-body table {
  width: 100%; border-collapse: collapse;
  margin: 1.5rem 0; font-size: .88rem;
}
.page-body th {
  background: var(--blue); color: var(--white);
  padding: 10px 14px; text-align: left;
  font-weight: 500; font-family: var(--font-body);
}
.page-body td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.page-body tr:nth-child(even) td { background: var(--gray-1); }

/* Enlace volver */
.page-back {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.page-back a {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; color: var(--blue);
  text-decoration: none; transition: gap var(--t);
}
.page-back a:hover { gap: 14px; }

@media (max-width: 767px) {
  .page-main { padding-top: 90px; }
}

/* =========================================================
   CONTACT FORM 7 — estilos coherentes con .contact-card
   ========================================================= */

/* Contenedor del formulario */
.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Todos los inputs, select y textarea */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="number"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 300;
  line-height: 1.5;
  transition: border-color var(--t), box-shadow var(--t);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  margin-bottom: 14px;
}

.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
  color: var(--gray-3);
  opacity: .7;
}

.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(1,39,141,.07);
  background: var(--white);
}

/* Select — flecha personalizada */
.wpcf7-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2301278D' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

/* Textarea */
.wpcf7-form textarea {
  resize: vertical;
  min-height: 110px;
}

/* Labels */
.wpcf7-form label {
  display: block;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gray-3);
  margin-bottom: 6px;
  font-family: var(--font-body);
}

/* Botón de envío */
.wpcf7-form input[type="submit"],
.wpcf7-submit {
  width: 100%;
  padding: 14px 32px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 2px solid var(--blue);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all var(--t);
  margin-top: 6px;
}
.wpcf7-form input[type="submit"]:hover,
.wpcf7-submit:hover {
  background: var(--blue-dk);
  border-color: var(--blue-dk);
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}

/* Checkbox de aceptación política de privacidad */
.wpcf7-form .wpcf7-acceptance {
  margin: 8px 0 16px;
}
.wpcf7-form .wpcf7-acceptance input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin: 0 8px 0 0;
  accent-color: var(--blue);
  cursor: pointer;
  border: 1.5px solid var(--border);
  border-radius: 3px;
  vertical-align: middle;
  padding: 0;
  margin-bottom: 0;
}
.wpcf7-form .wpcf7-acceptance .wpcf7-list-item-label {
  font-size: .82rem;
  color: var(--gray-4);
  vertical-align: middle;
}
.wpcf7-form .wpcf7-acceptance a {
  color: var(--blue);
  text-decoration: underline;
}

/* Mensajes de validación */
.wpcf7-not-valid-tip {
  font-size: .75rem;
  color: #c0392b;
  margin-top: -10px;
  margin-bottom: 10px;
  display: block;
}
.wpcf7-form input.wpcf7-not-valid,
.wpcf7-form textarea.wpcf7-not-valid,
.wpcf7-form select.wpcf7-not-valid {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192,57,43,.07);
}

/* Mensaje de éxito */
.wpcf7-response-output {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--r);
  font-size: .85rem;
  font-family: var(--font-body);
  border: none !important;
}
.wpcf7-form.sent .wpcf7-response-output {
  background: rgba(39,174,96,.1);
  color: #1a7a3a;
  border-left: 3px solid #27ae60 !important;
}
.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.invalid .wpcf7-response-output {
  background: rgba(192,57,43,.08);
  color: #c0392b;
  border-left: 3px solid #c0392b !important;
}

/* Spinner de envío */
.wpcf7-spinner {
  display: none !important;
}

/* =========================================================
   ESTUFAS — Layout centrado split v1
   ========================================================= */
#estufas { background: var(--blue); }

.est-section {
  position: relative;
  overflow: hidden;
  padding: 0;
}

/* Contenedor con 12% de margen en todas direcciones */
.est-wrap {
  padding: 12% 12%;
}

/* Split: dos cuadrados de 40vw cada uno
   Tamaño fijo en vw — proporcional en escritorio y tablet */
.est-inner {
  display: flex;
  align-items: flex-start;
  gap: 0;
  width: 100%;
}

/* Ambas columnas: cuadrado fijo 40vw */
.est-col {
  width: 40vw;
  height: 40vw;
  flex-shrink: 0;
  box-sizing: border-box;
  overflow: hidden;
}

/* Columna texto */
.est-col-text {
  padding: 5%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.est-col-text h2 { color: var(--white); margin-bottom: 1rem; }
.est-text p  { color: rgba(255,255,255,.72); line-height: 1.85; }
.est-text h3 { color: var(--white); }
.est-text a  { color: var(--yellow); }

/* Columna imagen */
.est-col-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Placeholder sin imagen */
.est-no-img {
  width: 100%; height: 100%;
  min-height: 300px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px; color: rgba(255,255,255,.3);
  font-size: .8rem; text-align: center;
  background: rgba(255,255,255,.04);
  border-radius: var(--r-lg);
}
.est-no-img i { font-size: 2.5rem; }
.est-no-img a { color: var(--yellow); }

/* Features */
.est-features { margin-top: 2rem; }

/* Responsive */
@media (max-width: 991px) {
  /* Tablet: cuadrados más pequeños para que quepan */
  .est-col {
    width: 44vw;
    height: 44vw;
  }
  .est-wrap { padding: 6% 6%; }
}

@media (max-width: 767px) {
  /* Móvil: columnas apiladas, ancho completo, sin cuadrado forzado */
  .est-inner { flex-direction: column; }
  .est-col {
    width: 100%;
    height: auto;
  }
  .est-col-img {
    aspect-ratio: 4/3;
    height: auto;
  }
  .est-col-text {
    padding: 8% 4%;
    height: auto;
  }
  .est-wrap { padding: 8% 4%; }
}
