/* Reset y Variables */
:root {
  --primary: #2563eb;
  --secondary: #7c3aed;
  --foreground: #1e293b;
  --background: #ffffff;
  --page-background: hsl(40 35% 97%);
  --muted: hsl(120 12% 94%);
  --border: #e2e8f0;
  --text-muted: #64748b;
  --text-foreground: #0f172a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-foreground);
  background-color: var(--page-background);
  line-height: 1.6;
}

/* Header y Navegación */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid rgba(32, 78, 56, 0.16);
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.88);
  border-bottom-color: rgba(32, 78, 56, 0.2);
  box-shadow: 0 8px 24px rgba(11, 32, 22, 0.08);
  backdrop-filter: blur(10px);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

.logo {
  font-weight: 700;
  font-size: 1.65rem;
  color: #1f5d43;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  min-width: 0;
}

.logo-box {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background-color: #1f5d43;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
}

.logo-img {
  height: 96px;
  width: auto;
  max-height: 100px;
  object-fit: contain;
  display: block;
}

.logo img {
  height: 96px;
  width: auto;
  max-height: 100px;
}

.logo-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
}

.logo-group-name {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  line-height: 1;
  white-space: nowrap;
}

/* Nav desktop solo desde 1200px: en tablet (iPad/Surface ~768–1199px) el menú hamburguesa evita solapes y saltos de línea */
nav.desktop-nav {
  display: none;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: nowrap;
  flex-shrink: 1;
  min-width: 0;
}

@media (min-width: 1200px) {
  nav.desktop-nav {
    display: flex;
    gap: 1.5rem;
  }
}

nav.desktop-nav a {
  font-size: 0.98rem;
  font-weight: 500;
  color: #335d4a;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
  padding-bottom: 0.25rem;
  white-space: nowrap;
}

nav.desktop-nav a:hover,
nav.desktop-nav a.active {
  color: #1f5d43;
  border-bottom: 2px solid #1f5d43;
}

.mobile-menu-toggle {
  display: block;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-foreground);
  flex-shrink: 0;
}

@media (min-width: 1200px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(32, 78, 56, 0.16);
  box-shadow: 0 8px 18px rgba(11, 32, 22, 0.1);
}

.mobile-menu.open {
  display: block;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  gap: 1rem;
}

.mobile-menu a {
  font-size: 1.05rem;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  color: #335d4a;
  text-decoration: none;
}

.mobile-menu a.active {
  color: #1f5d43;
}

/* Layout Principal */
main {
  min-height: calc(100vh - 80px);
  flex: 1;
}

.container {
  max-width: 1280px; /* max-w-7xl */
  margin: 0 auto;
  padding: 0 1rem; /* px-4 = 16px */
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem; /* md:px-8 = 32px */
  }
}

/* Hero Sections */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--foreground);
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.8), transparent);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .hero-content {
    padding: 0 2rem;
  }
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3.75rem;
  }
}

.hero p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

/* Hero home (replica visual de referencia) */
.hero-home {
  min-height: clamp(500px, calc(86vh - 80px), 720px);
  padding: 0;
  background-color: #0d1f16;
}

.hero-home .hero-bg {
  background-image: url("../assets/images/hero-bg.jpg");
  background-size: cover;
  background-position: center center;
  transform: scale(1.02);
  filter: saturate(0.8) brightness(0.82);
  opacity: 0.92;
}

.hero-home .hero-overlay {
  background: linear-gradient(90deg, rgba(7, 18, 13, 0.78) 0%, rgba(7, 18, 13, 0.62) 34%, rgba(7, 18, 13, 0.24) 62%, rgba(7, 18, 13, 0.08) 100%);
}

.hero-home .hero-content {
  width: 100%;
}

.hero-home .hero-inner {
  max-width: 38rem;
}

.hero-home h1 {
  font-size: clamp(2.4rem, 5.3vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero-home p {
  max-width: 36rem;
  font-size: 1.2rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.6rem;
}

.hero-home .btn-group {
  flex-direction: row;
  gap: 0.75rem;
}

.hero-home .btn {
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
}

.hero-home .btn-lg {
  height: 2.5rem;
  padding: 0 1.25rem;
}

.hero-home .btn-primary {
  background-color: #1f5d43;
  border: 1px solid rgba(153, 201, 176, 0.35);
}

.hero-home .btn-primary:hover {
  background-color: #184a35;
}

.hero-home .btn-primary::after {
  content: "→";
  margin-left: 0.55rem;
  line-height: 1;
}

.hero-home .btn-outline {
  background-color: rgba(16, 24, 20, 0.48);
  border-color: rgba(255, 255, 255, 0.32);
  color: rgba(255, 255, 255, 0.95);
}

.hero-home .btn-outline:hover {
  background-color: rgba(16, 24, 20, 0.68);
}

/* Hero secundario para páginas internas (misma altura/estructura que contacto.html) */
.hero-secondary {
  min-height: 200px;
  padding: 3rem 0;
  background-color: hsl(150, 10%, 15%);
}

.hero-secondary .hero-bg {
  display: none;
}

.hero-secondary .hero-content > div {
  max-width: 56rem;
  text-align: center;
  margin: 0 auto;
}

.hero-secondary h1 {
  color: hsl(40, 33%, 98%);
  margin-bottom: 0.75rem;
}

.hero-secondary p {
  color: hsl(40, 33%, 98%, 0.8);
  font-size: 1rem;
}

/* Hero Sostenibilidad: imagen de fondo + filtro verde ligero */
.hero-sostenibilidad {
  min-height: clamp(280px, 42vh, 380px);
  padding: 3rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-sostenibilidad-bg {
  background-image: url("../assets/images/sostenibilidad.jpg");
  background-size: cover;
  background-position: center center;
  opacity: 1;
}

.hero-sostenibilidad-overlay {
  background-color: rgba(15, 55, 38, 0.48);
}

.hero-sostenibilidad .hero-content {
  width: 100%;
}

.hero-sostenibilidad-inner {
  max-width: 34rem;
  margin: 0 auto;
  text-align: center;
}

.hero-sostenibilidad-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.hero-sostenibilidad h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.hero-sostenibilidad p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  line-height: 1.5;
}

/* Sostenibilidad: pilares (Huella de Carbono, Gestión Hídrica, Packaging Eco) */
#sost-pilares .container {
  max-width: 90%;
}

@media (min-width: 1280px) {
  #sost-pilares .container {
    max-width: 1440px;
  }
}

#sost-pilares .sost-pilares-grid {
  gap: 2.5rem 3rem;
}

@media (min-width: 1024px) {
  #sost-pilares .sost-pilares-grid {
    grid-template-columns: repeat(3, minmax(320px, 1fr));
    gap: 3rem 4rem;
  }
}

#sost-pilares .sost-pilar {
  text-align: center;
}

#sost-pilares .sost-pilar-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: rgba(31, 93, 67, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

#sost-pilares .sost-pilar-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

#sost-pilares .sost-pilar-title {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1f5d43;
}

#sost-pilares .sost-pilar-desc {
  font-size: 1.125rem;
  color: #4f635a;
  margin: 0;
  line-height: 1.55;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}

/* Sostenibilidad: Agricultura Consciente (fondo verde y borde como Certificaciones) */
#agricultura-consciente.section-sost-agricultura {
  background-color: rgba(31, 93, 67, 0.08);
  border-top: 1px solid rgba(190, 203, 196, 0.72);
  border-bottom: 1px solid rgba(190, 203, 196, 0.72);
  padding-top: 3rem;
  padding-bottom: 3rem;
}

@media (min-width: 768px) {
  #agricultura-consciente.section-sost-agricultura {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}

#agricultura-consciente .container {
  max-width: 90%;
}

@media (min-width: 1280px) {
  #agricultura-consciente .container {
    max-width: 1440px;
  }
}

#agricultura-consciente .agricultura-grid {
  align-items: center;
  gap: 3rem;
}

@media (min-width: 1024px) {
  #agricultura-consciente .agricultura-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem 4rem;
  }
}

#agricultura-consciente .agricultura-visual-wrap {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

#agricultura-consciente .agricultura-visual {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  background-color: var(--muted);
}

#agricultura-consciente .agricultura-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-foreground);
}

#agricultura-consciente .agricultura-desc {
  color: #4f635a;
  font-size: 1.1875rem;
  margin-bottom: 1.5rem;
  line-height: 1.65;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}

#agricultura-consciente .agricultura-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#agricultura-consciente .agricultura-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-weight: 500;
  color: #4f635a;
}

#agricultura-consciente .agricultura-list-text {
  flex: 1;
  min-width: 0;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
  padding-top: 0.1rem;
}

#agricultura-consciente .agricultura-list-icon {
  flex-shrink: 0;
  color: #1f5d43;
}

/* Hero específico: Quiénes somos (misma altura/estructura que contacto.html) */
.hero.hero-quienes {
  min-height: 200px !important;
  padding: 3rem 0 !important;
  background-color: hsl(150, 10%, 15%);
}

.hero-quienes .hero-content {
  width: 100%;
  max-width: 100%;
}

.hero-quienes .hero-bg {
  display: none;
}

.hero-quienes .hero-quienes-inner {
  max-width: 88rem;
  margin: 0 auto;
}

.hero-quienes .hero-quienes-intro {
  max-width: 56rem;
  text-align: center;
  margin: 0 auto;
}

.hero-quienes h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.5rem);
  line-height: 1.08;
  color: hsl(40, 33%, 98%);
  margin-bottom: 0.75rem;
}

.hero-quienes p {
  color: hsl(40, 33%, 98%, 0.8);
  font-size: 1rem;
  margin-bottom: 0;
}

/* Qué ofrecemos (cards): iconos y CTAs en verde corporativo */
#areas-hub .card li svg {
  color: var(--text-muted) !important;
}

#areas-hub .container {
  max-width: 1520px;
}

#areas-hub .grid {
  gap: 1.25rem;
}

#areas-hub .card {
  border: 1px solid rgba(31, 93, 67, 0.28);
  display: flex;
  flex-direction: column;
  height: 100%;
}

#areas-hub .card .btn-primary {
  background-color: #1f5d43 !important;
  border: 1px solid #1f5d43 !important;
  color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#areas-hub .card .btn-primary:hover {
  background-color: #184a35 !important;
  border-color: #184a35 !important;
}

#areas-hub .card .btn-outline {
  background-color: transparent !important;
  border-color: #1f5d43 !important;
  color: #1f5d43 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#areas-hub .card .btn-outline:hover {
  background-color: rgba(31, 93, 67, 0.08) !important;
}

.offer-help-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  min-height: 2.75rem;
  padding: 0 1.5rem;
  border-radius: 0.5rem;
  background-color: #1f5d43;
  border: 1px solid #1f5d43;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.offer-help-cta:hover {
  background-color: #184a35;
  border-color: #184a35;
}

#offer-form .offer-form-submit,
#form-area .offer-form-submit {
  min-height: 2.9rem;
  background-color: #1f5d43 !important;
  border: 1px solid #1f5d43 !important;
  color: #ffffff !important;
}

#offer-form .offer-form-submit:hover,
#form-area .offer-form-submit:hover {
  background-color: #184a35 !important;
  border-color: #184a35 !important;
}

/* Quiénes somos: cards misión/visión/valores */
.about-pillars-container {
  max-width: 1640px;
}

.about-pillars-grid {
  gap: 1.25rem;
}

.about-card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  object-fit: contain;
}

#pilares.section {
  background-color: rgba(31, 93, 67, 0.08) !important;
  border-top: 1px solid rgba(190, 203, 196, 0.72);
  border-bottom: 1px solid rgba(190, 203, 196, 0.72);
}

/* Quiénes somos: flujo continuo zigzag (intro + suministro + infraestructura + cita) */
.about-flow {
  padding-top: 4rem;
  padding-bottom: 4rem;
  background-color: var(--page-background);
  border-bottom: 1px solid rgba(190, 203, 196, 0.5);
}

.about-flow__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(190, 203, 196, 0.5);
}

.about-flow__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.about-flow__row:first-child {
  padding-top: 0;
}

.about-flow__title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #1f5d43;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

.about-flow__subtitle {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1f5d43;
}

.about-flow__text {
  color: var(--text-muted);
  font-size: 1.125rem;
  line-height: 1.75;
  margin-bottom: 1rem;
  text-align: justify;
}

.about-flow__text:last-child {
  margin-bottom: 0;
}

.about-flow__visual--img {
  border-radius: 1rem;
  overflow: hidden;
  background-color: var(--muted);
  padding: 0.25rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.about-flow__img-inner {
  width: 100%;
  min-height: 280px;
  border-radius: 0.75rem;
  background-image: url('../assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  filter: grayscale(100%);
}

/* Infraestructura (card zigzag) */
/* Fila 3: dos columnas con línea vertical (Suministro | Infraestructura) */
.about-flow__row--twocol {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
}

.about-flow__col-divider {
  width: 100%;
  height: 1px;
  background-color: rgba(31, 93, 67, 0.22);
  margin: 1.5rem 0;
  flex-shrink: 0;
}

.about-flow__col {
  min-width: 0;
}

.about-flow__col--right .about-infra__lead {
  margin-bottom: 1rem;
}

.about-infra__lead {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-align: justify;
}

.about-infra__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.about-infra__list li {
  font-size: 0.9375rem;
  color: var(--text-muted);
  padding: 0.35rem 0.75rem;
  background-color: rgba(31, 93, 67, 0.08);
  border-radius: 0.375rem;
  font-weight: 500;
}

@media (min-width: 768px) {
  .about-flow__row--twocol {
    grid-template-columns: 1fr 1px 1fr;
    gap: 0 2.5rem;
  }

  .about-flow__col-divider {
    width: 1px;
    height: auto;
    min-height: 4rem;
    margin: 0;
    align-self: stretch;
    justify-self: center;
  }
}

/* Fila 3: cita como cierre de sección (ancha, poca altura) */
.about-flow__row--closure {
  display: block;
  padding-bottom: 0;
}

.about-flow__row--closure .supply-quote {
  width: 100%;
}

.supply-quote--closure {
  margin: 0;
  width: 100%;
  padding: 1rem 1.5rem 1rem 2rem;
  border-left: 4px solid #1f5d43;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 0 0.5rem 0.5rem 0;
  box-shadow: 0 1px 3px rgba(31, 93, 67, 0.08);
  position: relative;
}

.supply-quote--closure .supply-quote-text {
  padding-left: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  text-align: justify;
}

.supply-quote--closure .supply-quote-mark {
  font-size: 2rem;
  top: 0.65rem;
}

@media (min-width: 768px) {
  .supply-quote--closure {
    padding: 1.25rem 2rem 1.25rem 2.5rem;
  }

  .supply-quote--closure .supply-quote-text {
    font-size: 1.0625rem;
    padding-left: 2rem;
  }
}

.supply-quote {
  margin: 0;
  width: 100%;
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  border-left: 4px solid #1f5d43;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 0 0.5rem 0.5rem 0;
  box-shadow: 0 1px 3px rgba(31, 93, 67, 0.08);
  position: relative;
}

.supply-quote-mark {
  position: absolute;
  left: 0.75rem;
  top: 0.5rem;
  font-size: 2.5rem;
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
  color: rgba(31, 93, 67, 0.35);
}

.supply-quote-text {
  margin: 0;
  padding-left: 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-muted);
  font-style: italic;
}

@media (min-width: 768px) {
  .about-flow__row {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 3.5rem 0;
  }

  .about-flow__row--twocol.about-flow__row {
    grid-template-columns: 1fr 1px 1fr;
    gap: 0 2.5rem;
  }

  .about-flow__img-inner {
    min-height: 320px;
  }

  .supply-quote {
    padding: 2rem 2rem 2rem 2.5rem;
  }

  .supply-quote-mark {
    left: 1rem;
    top: 0.75rem;
    font-size: 3rem;
  }

  .supply-quote-text {
    padding-left: 2rem;
    font-size: 1.125rem;
  }
}

@media (min-width: 1024px) {
  .about-flow {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .about-flow__row {
    gap: 4rem;
  }

  .about-flow__img-inner {
    min-height: 360px;
  }
}

@media (min-width: 1024px) {
  .hero-quienes h1 {
    white-space: nowrap;
  }

  .hero-quienes p {
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .hero-home .hero-inner {
    max-width: 100%;
  }

  .hero-home p {
    font-size: 1rem;
    margin-bottom: 1.2rem;
  }

  .hero-home .btn-group {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Botones */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.375rem; /* rounded-md = 6px */
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-lg {
  height: 2.75rem; /* h-11 = 44px */
  padding: 0 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.btn-primary:hover {
  background-color: #1d4ed8;
}

.btn-outline {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .btn-group {
    flex-direction: row;
  }
}

/* Cards y Grids */
.card {
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: box-shadow 0.2s;
}

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

.grid {
  display: grid;
  gap: 2rem;
}

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

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

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

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

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

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

.grid-4 {
  grid-template-columns: repeat(2, 1fr);
}

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

/* Secciones */
section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  section {
    padding: 6rem 0;
  }
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}

/* Formatos y Capacidades + Ventajas Competitivas: menos espacio arriba del título, más abajo */
.offer-section-soft.section,
.offer-section-soft + .section {
  padding-top: 2.5rem;
}

.offer-section-soft .section-title,
.offer-section-soft + .section .section-title {
  margin-bottom: 2.25rem;
}

@media (min-width: 768px) {
  .offer-section-soft.section,
  .offer-section-soft + .section {
    padding-top: 3.5rem;
  }

  .offer-section-soft .section-title,
  .offer-section-soft + .section .section-title {
    margin-bottom: 2.75rem;
  }
}

.section-subtitle {
  color: var(--text-muted);
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 4rem;
}

/* Calidad: Nuestro Protocolo de Control */
#protocolo .protocol-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  #protocolo .protocol-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

#protocolo .protocol-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text-foreground);
  margin-bottom: 1.75rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  #protocolo .protocol-title {
    font-size: 2.25rem;
  }
}

#protocolo .protocol-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

#protocolo .protocol-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

#protocolo .protocol-item-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  object-fit: contain;
}

#protocolo .protocol-item-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f5d43;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

#protocolo .protocol-item-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

#protocolo .protocol-visual {
  background-color: var(--muted);
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  position: relative;
}

#protocolo .protocol-visual-inner {
  width: 100%;
  height: 100%;
  background-color: var(--muted);
  background-image: url("../assets/images/calidad.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Calidad: sección Certificaciones */
#certificaciones.section-certificaciones {
  padding-top: 2.5rem;
  padding-bottom: 4rem;
  background-color: rgba(31, 93, 67, 0.08);
  border-top: 1px solid rgba(190, 203, 196, 0.72);
  border-bottom: 1px solid rgba(190, 203, 196, 0.72);
}

#certificaciones .section-certificaciones-title {
  margin-top: 0;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  #certificaciones.section-certificaciones {
    padding-top: 3rem;
  }

  #certificaciones .section-certificaciones-title {
    margin-bottom: 3rem;
  }
}

#certificaciones .cert-cards {
  gap: 1.5rem;
}

#certificaciones .cert-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.25rem;
}

#certificaciones .cert-card-icon {
  width: 88px;
  height: 88px;
  margin-bottom: 1rem;
  object-fit: contain;
}

#certificaciones .cert-card-name {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-foreground);
}

#certificaciones .cert-card-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Calidad: sección Documentación Técnica */
#documentacion-tecnica.section-documentacion {
  padding-top: 2.5rem;
  padding-bottom: 5rem;
}

#documentacion-tecnica .section-documentacion-title {
  margin-top: 0;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  #documentacion-tecnica.section-documentacion {
    padding-top: 3rem;
    padding-bottom: 6rem;
  }

  #documentacion-tecnica .section-documentacion-title {
    margin-bottom: 2.5rem;
  }
}

#documentacion-tecnica .section-documentacion-desc {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1.125rem;
}

#documentacion-tecnica .section-documentacion-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

#documentacion-tecnica .section-documentacion-btns .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Botón verde (Ver Ficha Técnica) como en el resto del sitio */
#documentacion-tecnica .btn-verde,
.btn-verde.btn-primary {
  background-color: #1f5d43;
  border: 1px solid rgba(153, 201, 176, 0.35);
  color: #ffffff;
}

#documentacion-tecnica .btn-verde:hover,
.btn-verde.btn-primary:hover {
  background-color: #184a35;
}

#documentacion-tecnica .section-documentacion-btn-outline {
  border-color: var(--border);
  color: var(--text-foreground);
}

/* Ajuste fino del bloque "Nuestras Áreas" en home */
#areas.section {
  padding-top: 2.5rem;
}

#areas .section-subtitle {
  font-size: 1.08rem;
  color: #4f635a;
  font-weight: 500;
  line-height: 1.55;
  max-width: 38rem;
  margin: 0.15rem auto 2.5rem;
}

@media (min-width: 768px) {
  #areas.section {
    padding-top: 3rem;
  }

  #areas .section-subtitle {
    margin-bottom: 2.75rem;
  }
}

/* Bloque Marcas en verde suave y subtitulo alineado */
#marcas.section {
  background-color: rgba(31, 93, 67, 0.05);
}

#marcas .section-subtitle-brand {
  color: #4f635a;
  text-align: left;
  max-width: 42rem;
  margin: 0;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.55;
}

/* Selector Rápido */
.quick-selector {
  position: relative;
  margin-top: -40px;
  z-index: 20;
}

.quick-selector-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

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

.quick-selector-item {
  padding: 2rem;
  text-align: center;
  text-decoration: none;
  color: var(--text-foreground);
  background-color: var(--background);
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 16px;
  box-shadow: 0 20px 35px rgba(15, 23, 42, 0.14);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-selector-item:hover {
  background-color: rgba(241, 245, 249, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 24px 42px rgba(15, 23, 42, 0.18);
}

.quick-selector-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  color: #1f5d43;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.quick-selector-item:hover .quick-selector-icon {
  transform: scale(1.1);
}

.quick-selector-item h3 {
  font-family: Montserrat, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.quick-selector-item p {
  font-family: Inter, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Áreas Grid */
.area-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  border-radius: 16px;
  padding: 2rem;
}

.area-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: rgba(31, 93, 67, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.area-icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.area-icon-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.area-icon-mask {
  display: block;
  width: 28px;
  height: 28px;
  background-color: #1f5d43;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.area-icon-mask-gluten {
  width: 34px;
  height: 34px;
  -webkit-mask-image: url("../assets/icons/singluten.svg");
  mask-image: url("../assets/icons/singluten.svg");
}

/* Ajuste visual para eco.png/eco1.png: compensa márgenes internos del archivo */
.area-icon-img-eco {
  width: 38px;
  height: 38px;
}

.area-card h3 {
  font-family: Montserrat, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  color: #1f3f32;
  margin-bottom: 0.75rem;
}

.area-card p {
  color: #4f635a;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.area-card-link {
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.area-card-link:hover {
  transform: translateY(-3px);
  border-color: rgba(31, 93, 67, 0.35);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.13);
}

.area-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #1f5d43;
  font-weight: 600;
  font-size: 0.95rem;
}

.area-link-arrow {
  width: 14px;
  height: 14px;
  opacity: 0.6;
  transform: translateX(-2px);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.area-card-link:hover .area-link {
  text-decoration: underline;
}

.area-card-link:hover .area-link-arrow {
  transform: translateX(2px);
  opacity: 1;
}

@media (max-width: 640px) {
  .area-card {
    padding: 1.5rem;
  }
}

/* Marcas */
.brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  border-radius: 2rem;
  border: 1px solid rgba(31, 93, 67, 0.2);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  overflow: visible;
}

@media (min-width: 1024px) {
  .brand-card {
    flex-direction: row;
    text-align: left;
    padding: 2.5rem;
  }
}

.brand-logo {
  width: 128px;
  height: 128px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: rgba(124, 58, 237, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.5rem;
  color: #1f5d43;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.brand-logo-image {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

/* Logo Productos Don José */
.brand-logo-image-donjose {
  width: 128px;
  height: 128px;
  min-width: 128px;
  min-height: 128px;
  flex-shrink: 0;
  object-fit: contain;
}

/* Logo DMondo: tamaño mayor para igualar presencia visual (el PNG tiene más margen que Don José) */
/* Logo DMondo: misma caja que Don José + scale para que el logo se vea más grande */
.brand-logo-image-dmondo {
  width: 128px;
  height: 128px;
  min-width: 128px;
  min-height: 128px;
  flex-shrink: 0;
  object-fit: contain;
  transform: scale(1.8);
}

.brand-logo-donjose {
  background-color: rgba(181, 126, 51, 0.16);
  color: #b57e33;
}

.brand-logo-dmondo {
  background-color: rgba(31, 93, 67, 0.1);
  color: #1f5d43;
}

.brand-content {
  flex-grow: 1;
  text-align: center;
}

@media (min-width: 1024px) {
  .brand-content {
    text-align: left;
  }
}

.brand-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.brand-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.brand-cta {
  background-color: #1f5d43;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.45rem;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.72rem 1.15rem;
}

.brand-cta:hover {
  background-color: #184a35;
}

.brand-cta-dark {
  background-color: var(--foreground);
}

.brand-cta-dark:hover {
  background-color: #0f172a;
}

.brand-cta-icon {
  width: 16px;
  height: 16px;
}

/* KPIs */
.kpi-section {
  background: linear-gradient(90deg, #1b2b25 0%, #182722 52%, #16231f 100%);
  color: #f3f6f4;
  padding: 4rem 0;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
  margin-bottom: 4rem;
}

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

.kpi-value {
  font-size: 3rem;
  font-weight: 900;
  color: #0e6d50;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .kpi-value {
    font-size: 3.75rem;
  }
}

.kpi-label {
  font-size: 0.875rem;
  color: rgba(232, 238, 234, 0.86);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.certifications {
  border-top: 1px solid rgba(190, 203, 196, 0.28);
  padding-top: 3rem;
}

.cert-title {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(210, 219, 214, 0.72);
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.cert-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  opacity: 0.7;
}

@media (min-width: 768px) {
  .cert-list {
    gap: 4rem;
  }
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: rgba(227, 234, 230, 0.86);
}

.cert-item svg {
  color: rgba(198, 209, 203, 0.9);
}

/* Presencia global (Home) */
.presencia-global-section {
  background-color: #f7f9f8;
  border-top: 1px solid rgba(31, 93, 67, 0.08);
}

.presencia-global-intro {
  text-align: center;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .presencia-global-intro {
    margin-bottom: 3rem;
  }
}

.presencia-global-subtitle {
  margin-bottom: 1.25rem !important;
  max-width: 40rem;
}

.presencia-global-seo {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
}

.presencia-global-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 3rem;
}

@media (min-width: 1024px) {
  .presencia-global-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 2.5rem 3rem;
    margin-bottom: 3.5rem;
  }
}

.presencia-global-figure {
  margin: 0;
}

.presencia-global-map-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  border: 1px solid rgba(31, 93, 67, 0.12);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(31, 93, 67, 0.06);
}

.presencia-global-caption {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
  text-align: center;
}

@media (min-width: 1024px) {
  .presencia-global-caption {
    text-align: left;
  }
}

.presencia-global-aside {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 0.5rem 0;
}

.presencia-global-aside-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1f5d43;
  margin: 0;
}

.presencia-global-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.6rem;
}

.presencia-global-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1a4a36;
  background: rgba(68, 120, 84, 0.1);
  border: 1px solid rgba(68, 120, 84, 0.22);
  border-radius: 999px;
  line-height: 1.3;
}

.presencia-global-cta {
  align-self: flex-start;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  padding: 0.55rem 1.1rem;
}

.presencia-global-more {
  padding-top: 0.5rem;
  border-top: 1px solid rgba(31, 93, 67, 0.1);
}

.presencia-global-more-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-foreground);
  text-align: center;
  margin: 0 0 1.75rem;
}

.presencia-global-regions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem 1.75rem;
}

@media (min-width: 640px) {
  .presencia-global-regions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .presencia-global-regions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.presencia-global-region-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1f5d43;
  margin: 0 0 0.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(31, 93, 67, 0.15);
}

.presencia-global-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-foreground);
}

.presencia-global-list li {
  position: relative;
  padding-left: 0.9rem;
  margin-bottom: 0.25rem;
}

.presencia-global-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(68, 120, 84, 0.65);
}

/* Split Section */
.split-section {
  display: flex;
  flex-direction: column;
  min-height: 600px;
  padding-top: 0;
}

@media (min-width: 768px) {
  .split-section {
    flex-direction: row;
  }
}

.split-half {
  width: 100%;
  padding: 3rem;
  padding-bottom: 1.25rem;
  display: flex;
  align-items: center;
  position: relative;
}

@media (min-width: 768px) {
  .split-half {
    width: 50%;
    padding: 6rem;
    padding-bottom: 2rem;
  }
}

.split-half.bg-card {
  background-color: var(--background);
}

.split-half.bg-primary {
  background-color: var(--primary);
  color: white;
}

.split-bg-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.split-bg-quality {
  background-image:
    linear-gradient(rgba(246, 249, 247, 0.86), rgba(246, 249, 247, 0.86)),
    url("../assets/images/calidad.jpg");
}

.split-bg-sustainability {
  background-image:
    linear-gradient(rgba(15, 74, 52, 0.74), rgba(15, 74, 52, 0.74)),
    url("../assets/images/sostenibilidad.jpg");
}

.split-content {
  position: relative;
  z-index: 10;
  max-width: 32rem;
}

.split-half.bg-card .split-content {
  margin-left: auto;
}

.split-half.bg-primary .split-content {
  margin-right: auto;
}

.split-icon {
  width: 48px;
  height: 48px;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.split-half.bg-primary .split-icon {
  color: white;
  opacity: 0.8;
}

.split-icon-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 1.5rem;
}

.split-icon-img-light {
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.split-content h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.split-content p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.split-half.bg-card .split-content p {
  color: var(--text-muted);
}

.split-half.bg-primary .split-content p {
  color: rgba(255, 255, 255, 0.8);
}

.split-btn {
  border-radius: 0.5rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.split-btn-quality {
  border: 1px solid #1f5d43;
  background-color: transparent;
  color: #1f5d43;
}

.split-btn-quality:hover {
  background-color: #1f5d43;
  color: #ffffff;
}

.split-btn-sustainability {
  background-color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.96);
  color: #1f5d43;
}

.split-btn-sustainability:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

/* FAQ */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  background-color: var(--background);
  margin-bottom: 1rem;
}

.faq-question {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.65rem;
  cursor: default;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #1f3f32;
}

.faq-answer {
  color: #4f635a;
  display: block;
  padding-top: 0;
  font-size: 1.06rem;
  line-height: 1.5;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-toggle {
  display: none;
}

.faq-item.active .faq-toggle {
  transform: rotate(180deg);
}

/* Formularios */
.form-container {
  background-color: var(--background);
  padding: 2rem; /* p-8 = 32px */
  border-radius: 1rem; /* rounded-2xl = 16px */
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); /* shadow-sm */
}

@media (min-width: 768px) {
  .form-container {
    padding: 2.5rem; /* md:p-10 = 40px */
  }
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

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

.form-group {
  margin-bottom: 1.5rem; /* space-y-6 = 24px */
}

/* Espaciado específico para formulario de contacto */
#contact-form .form-group {
  margin-bottom: 1.5rem; /* space-y-6 = 24px */
}

.form-label {
  display: block;
  font-family: Montserrat, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #2a4136;
}

.form-input,
.form-select {
  width: 100%;
  height: 2.5rem; /* h-10 = 40px */
  padding: 0.75rem; /* p-3 = 12px */
  border-radius: 6px;
  border: 1px solid var(--border);
  background-color: var(--background);
  font-size: 1rem;
  font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #447854;
  box-shadow: 0 0 0 3px rgba(68, 120, 84, 0.1);
}

.form-textarea {
  width: 100%;
  min-height: 8rem; /* h-32 = 128px */
  padding: 0.75rem; /* p-3 = 12px */
  border-radius: 6px;
  border: 1px solid var(--border);
  background-color: var(--background);
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
}

.form-checkbox {
  display: flex;
  align-items: start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.form-checkbox input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 1rem;
  height: 1rem;
  accent-color: #447854;
  cursor: pointer;
}

.form-checkbox input[type="checkbox"]:focus {
  outline: 2px solid #447854;
  outline-offset: 2px;
}

.form-checkbox label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.form-submit {
  width: 100%;
}

.recaptcha-placeholder {
  background-color: var(--muted);
  padding: 1rem;
  border-radius: 6px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

/* Contacto final: estilo de captación B2B */
#contacto.section,
#offer-form.section,
#form-area.section {
  background-color: rgba(226, 235, 229, 0.62);
}

#contacto.section {
  border-top: 1px solid rgba(190, 203, 196, 0.72);
  background-color: #FDFBF8;
  padding-bottom: 2rem;
}

/* Inicio: formulario inferior con el mismo filtro verde que Contacto */
#contacto.section.section-contacto-inicio {
  background-color: rgba(226, 235, 229, 0.62);
  border-top: 1px solid rgba(190, 203, 196, 0.72);
}

@media (min-width: 768px) {
  #contacto.section {
    padding-bottom: 2.5rem;
  }
}

#contacto .container-contacto {
  max-width: 90%;
}

@media (min-width: 1280px) {
  #contacto .container-contacto {
    max-width: 1440px;
  }
}

#contacto .contact-page-grid {
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  #contacto .contact-page-grid {
    gap: 3rem;
  }
}

#contacto .form-container,
#offer-form .form-container,
#form-area .form-container {
  border-radius: 0.75rem; /* 12px */
  border: 1px solid rgba(31, 93, 67, 0.24);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  margin-top: 0.5rem;
  padding: 1.25rem 1.5rem 0.75rem;
}

@media (min-width: 768px) {
  #contacto .form-container,
  #offer-form .form-container,
  #form-area .form-container {
    padding: 1.5rem 2rem 1rem;
  }
}

#contacto .contact-form-title {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-foreground);
}

#contacto .form-grid {
  gap: 1rem;
  margin-bottom: 0.25rem;
}

/* Subpáginas de Qué ofrecemos: espacio entre fila Nombre/Empresa y Volumen estimado */
#form-area .form-grid {
  margin-bottom: 1.75rem !important;
}

#form-area .form-grid .form-group {
  margin-bottom: 0 !important;
}

#form-area .form-grid + .form-group {
  margin-top: 0 !important;
  margin-bottom: 1rem;
}

/* Qué ofrecemos index2: mismo espaciado compacto entre campos */
#offer-form .form-group {
  margin-bottom: 1rem;
}

#contacto .form-group {
  margin-bottom: 0.75rem;
}

#contacto .form-label {
  font-family: Montserrat, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 0.875rem; /* 14px */
  font-weight: 500;
  color: #1f3f32;
  text-align: left;
  margin-bottom: 0.5rem;
}

#contacto .form-input,
#contacto .form-select,
#contacto .form-textarea {
  border-color: #d9e2dd;
}

#contacto .form-input:focus,
#contacto .form-select:focus,
#contacto .form-textarea:focus {
  border-color: #1f5d43;
  box-shadow: 0 0 0 3px rgba(31, 93, 67, 0.14);
}

#contacto .recaptcha-placeholder {
  background-color: #f1f4f2;
  border: 1px dashed #c8d4cd;
  color: #5e7469;
}

#contacto .form-checkbox label {
  font-size: 0.75rem; /* 12px */
  line-height: 1.45;
  color: #5b6f65;
  text-align: left;
  display: block;
  width: 100%;
}

#contacto .form-checkbox {
  margin-bottom: 0.75rem;
}

#contacto #contact-form {
  margin-bottom: 0;
  padding-bottom: 0;
}

#contacto .form-submit {
  min-height: 2.75rem;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0;
  margin-top: 0.25rem;
  background-color: #1f5d43;
  border: 1px solid #1f5d43;
  color: #ffffff;
}

#contacto .form-submit:hover {
  background-color: #184a35;
  border-color: #184a35;
}

#contacto .form-textarea {
  min-height: 5.5rem;
}

/* Mapa de contacto: sección Cómo llegar con fondo verde (como resto de contacto) */
.contact-map-section {
  width: 100%;
  padding: 2rem 0 3rem;
  background-color: rgba(226, 235, 229, 0.62);
  border-top: 1px solid rgba(190, 203, 196, 0.72);
}

.contact-map-container {
  width: 90%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1rem;
}

.contact-map-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.contact-map-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-foreground);
  margin: 0;
}

.contact-map-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1f5d43;
  text-decoration: none;
}

.contact-map-link:hover {
  text-decoration: underline;
}

.contact-map-wrap {
  position: relative;
  height: 400px;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(190, 203, 196, 0.72);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.contact-map-iframe {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@media (min-width: 768px) {
  .contact-map-section {
    padding: 2.5rem 0 3.5rem;
  }
  .contact-map-container {
    padding: 0 1.5rem;
  }
  .contact-map-header {
    margin-bottom: 1.25rem;
  }
  .contact-map-title {
    font-size: 1.375rem;
  }
}

#faq.section {
  padding-top: 0.25rem;
}

@media (min-width: 768px) {
  #faq.section {
    padding-top: 0.75rem;
  }
}

/* Footer */
footer {
  background-color: #13241d;
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    column-gap: 0.75rem;
    row-gap: 2rem;
  }
  .footer-grid > div:first-child {
    padding-right: 2rem;
  }
  .footer-grid > div:nth-child(2) {
    padding-left: 1.25rem;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
  }
}

.footer-logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-description {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 1rem;
  line-height: 1.55;
}

.footer-logo-box {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.92);
  color: #13241d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.footer-logo-img {
  height: 72px;
  width: auto;
  max-height: 80px;
  object-fit: contain;
  display: block;
}

.footer-logo .logo-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo .logo-group-name {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1;
  white-space: nowrap;
}

.footer-section h4 {
  font-weight: 600;
  color: white;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

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

.footer-section a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.58);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
  }
}

.footer-tagline {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-tagline {
    text-align: left;
  }
}

.footer-bottom p:last-child {
  margin: 0;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom p:last-child {
    text-align: right;
    flex-shrink: 0;
  }
}

/* Bloques legales (Aviso Legal, Privacidad, etc.) */
.legal-body {
  color: var(--text-muted);
  line-height: 1.75;
}

.legal-body h2 {
  font-size: 1.375rem;
  color: var(--text-foreground);
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.legal-body h2:first-of-type {
  margin-top: 0;
}

/* Enlaces de correo: evitar azul por defecto del navegador */
main a[href^="mailto:"] {
  color: #447854;
  text-decoration-color: rgba(68, 120, 84, 0.45);
  text-underline-offset: 0.12em;
}

main a[href^="mailto:"]:hover {
  color: #1f5d43;
  text-decoration-color: rgba(31, 93, 67, 0.65);
}

/* Breadcrumb */
.breadcrumb {
  background-color: var(--foreground);
  color: rgba(255, 255, 255, 0.6);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: white;
}

.breadcrumb-soft-green {
  background-color: rgba(31, 93, 67, 0.1);
  color: #4f635a;
  border-bottom: 1px solid rgba(31, 93, 67, 0.22);
}

.breadcrumb-soft-green a {
  color: #4f635a;
}

.breadcrumb-soft-green a:hover {
  color: #1f5d43;
}

/* Tabs/Anclas */
.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.tab-link {
  padding: 0.5rem 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: white;
  text-decoration: none;
  transition: background-color 0.2s;
}

.tab-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Área Tag */
.area-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  background-color: var(--muted);
  color: var(--text-muted);
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Scroll suave */
html {
  scroll-behavior: smooth;
}

/* Utilidades */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted);
}

.faq-subtitle {
  color: #4f635a;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.55;
  margin: 0 auto;
  max-width: 42rem;
}

.contact-subtitle {
  color: #4f635a;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.55;
  margin: 0 auto;
  max-width: 42rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-10 {
  margin-bottom: 2.5rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mb-16 {
  margin-bottom: 4rem;
}

.mt-12 {
  margin-top: 3rem;
}

.max-w-2xl {
  max-width: 42rem;
}

.max-w-3xl {
  max-width: 48rem;
}

.max-w-4xl {
  max-width: 56rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.bg-muted {
  background-color: var(--muted);
}

.bg-muted-30 {
  background-color: rgba(241, 245, 249, 0.3);
}

/* Secciones informativas de detalle (qué-ofrecemos hijas) */
.offer-section-soft {
  background-color: rgba(31, 93, 67, 0.08);
  border-top: 1px solid rgba(190, 203, 196, 0.72);
  border-bottom: 1px solid rgba(190, 203, 196, 0.72);
}

.border-y {
  border-top: 1px solid rgba(190, 203, 196, 0.72);
  border-bottom: 1px solid rgba(190, 203, 196, 0.72);
}

.border-t {
  border-top: 1px solid rgba(190, 203, 196, 0.72);
}

.scroll-mt-24 {
  scroll-margin-top: 6rem;
}

/* Enlaces externos */
.external-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.external-link::after {
  content: " (sitio externo)";
  font-size: 0.875em;
  opacity: 0.7;
}

/* CTA catálogo Don José (Contacto) */
.catalog-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.9rem;
  border-radius: 0.625rem;
  background: linear-gradient(135deg, #1f5d43 0%, #2f7658 100%);
  border: 1px solid #1f5d43;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(31, 93, 67, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}

.catalog-cta::after {
  content: "↗";
  font-size: 0.95rem;
  line-height: 1;
  opacity: 0.95;
}

.catalog-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(31, 93, 67, 0.26);
  background: linear-gradient(135deg, #184a35 0%, #28684d 100%);
  border-color: #184a35;
}

/* Accesibilidad */
:focus-visible {
  outline: 2px solid #447854;
  outline-offset: 2px;
}

/* Estilos específicos para selects - evitar azul del navegador */
.form-select {
  appearance: none;
  min-height: 2.75rem;
  height: auto;
  line-height: 1.3;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 4L6 8L10 4' stroke='%23447854' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

.form-select option {
  color: var(--text-foreground);
  background-color: var(--background);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 24rem;
}

.toast {
  background-color: white;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  border-left: 4px solid var(--primary);
  display: flex;
  align-items: start;
  gap: 0.75rem;
  animation: slideIn 0.3s ease-out;
  min-width: 20rem;
}

.toast.success {
  border-left-color: #447854;
}

.toast.error {
  border-left-color: #dc2626;
}

.toast-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 0.125rem;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
  color: var(--text-foreground);
}

.toast-description {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.toast-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--text-muted);
  opacity: 0.5;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.toast-close:hover {
  opacity: 1;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Botón con estado de carga */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-loading {
  position: relative;
  color: transparent !important;
}

.btn-loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Validación de formularios */
.form-input:invalid:not(:placeholder-shown),
.form-textarea:invalid:not(:placeholder-shown) {
  border-color: #dc2626;
}

.form-input:valid:not(:placeholder-shown),
.form-select:valid:not(:placeholder-shown),
.form-textarea:valid:not(:placeholder-shown) {
  border-color: #447854;
}

/* Imágenes lazy loading */
img {
  max-width: 100%;
  height: auto;
}

img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
  opacity: 1;
}
