:root {
  --green: #08c84a;
  --green-dark: #069c3a;
  --green-soft: #eafaf0;

  --blue: #179dc4;
  --blue-dark: #197ea8;
  --blue-soft: #eaf6fb;

  --text: #223038;
  --text-soft: #5f6f75;
  --white: #ffffff;

  --border: #d9ece0;
  --shadow: 0 12px 30px rgba(14, 73, 44, 0.08);
  --radius: 20px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  color: var(--text);
  background: #f7fbf8;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(92%, var(--container));
  margin: 0 auto;
}

/* HEADER */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(90deg, #197ea8 0%, #179dc4 48%, #08c84a 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 22px rgba(25, 126, 168, 0.16);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 34px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  min-width: 380px;
}

.brand img {
  height: 68px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
}

.brand-name {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #197ea8;
  text-transform: uppercase;
}

.brand-subtitle {
  margin-top: 8px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #0c5a2a;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  transition: 0.2s ease;
  padding: 8px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
  border-bottom: 2px solid #ffffff;
}

/* HERO */

.hero {
  padding: 54px 0 34px;
  background:
    radial-gradient(circle at right top, rgba(23, 157, 196, 0.09), transparent 26%),
    linear-gradient(180deg, #fbfefd 0%, #f3faf6 100%);
}

.hero .container {
  width: min(92%, var(--container));
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
}

.hero-text {
  width: 100%;
  max-width: 1250px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: #179dc4;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
}

.eyebrow.light {
  color: rgba(255, 255, 255, 0.82);
}

.hero h1 {
  font-size: clamp(2.8rem, 5vw, 5.4rem);
  line-height: 1.04;
  color: #18313a;
  margin-bottom: 20px;
  max-width: none;
  width: 100%;
}

.hero-description {
  color: #5f6f75;
  font-size: 1.25rem;
  line-height: 1.7;
  max-width: 1100px;
  margin-bottom: 28px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-highlights {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.highlight {
  background: #ffffff;
  border: 1px solid #d9ece0;
  color: #0c5a2a;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(14, 73, 44, 0.05);
}

.hero-card {
  background: linear-gradient(180deg, #ffffff 0%, #f1fbf4 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.hero-card h2 {
  color: var(--blue-dark);
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.hero-card ul {
  list-style: none;
  margin-bottom: 22px;
}

.hero-card li {
  padding: 11px 0;
  border-bottom: 1px solid #e6f1e9;
  color: #355159;
}

.hero-card li::before {
  content: "•";
  color: var(--green);
  font-weight: 900;
  margin-right: 10px;
}

.hero-contact-box {
  margin-top: 8px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(17, 153, 199, 0.07);
  border: 1px solid #d3edf6;
}

.nestluc-hero {
  padding: 74px 0;
  color: #ffffff;
  background: radial-gradient(circle at 82% 16%, rgba(24, 211, 208, 0.2), transparent 28%), linear-gradient(135deg, #061827 0%, #0d3b52 56%, #0c835c 130%);
}

.nestluc-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.nestluc-hero .eyebrow,
.nestluc-note { color: #8effe4; }

.nestluc-hero h1 { max-width: 760px; color: #ffffff; }
.nestluc-hero .hero-description { color: #d1e0e6; }
.nestluc-note { margin-top: 22px; font-size: 0.92rem; }

.nestluc-panel {
  padding: 26px;
  border: 1px solid rgba(180, 255, 250, 0.38);
  background: rgba(7, 24, 39, 0.56);
  box-shadow: 18px 18px 0 rgba(0, 0, 0, 0.12);
}

.nestluc-panel > span { color: #8effe4; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.14em; }
.nestluc-panel > strong { display: block; margin: 8px 0 22px; font-size: 1.25rem; }
.nestluc-panel > p { margin-top: 18px; color: #b7ced8; font-size: 0.92rem; }
.nestluc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.nestluc-grid b { min-height: 70px; display: grid; place-items: center; background: #23549a; border: 1px solid rgba(255, 255, 255, 0.2); }
.nestluc-grid b:nth-child(3), .nestluc-grid b:nth-child(8) { background: #18b987; }
.nestluc-grid b:nth-child(5) { background: #f58423; }

/* BOTONES */

.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 12px;
  padding: 14px 22px;
  font-weight: 700;
  transition: 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #197ea8 0%, #179dc4 55%, #08c84a 100%);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(23, 157, 196, 0.22);
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(0.98);
}

.btn-secondary {
  background: #ffffff;
  color: #197ea8;
  border: 2px solid #bfe6f1;
}

.btn-secondary:hover {
  border-color: #179dc4;
  color: #179dc4;
}

.btn-white {
  background: #ffffff;
  color: #197ea8;
}

.btn-outline-white {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.72);
}

/* SECCIONES GENERALES */

.section {
  padding: 72px 0;
}

.section-soft {
  background: linear-gradient(180deg, #eef9f2 0%, #f8fcf9 100%);
}

.section-title {
  text-align: center;
  margin-bottom: 34px;
}

.section-title h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: #18313a;
  margin-bottom: 10px;
}

.section-title p {
  color: var(--text-soft);
  max-width: 760px;
  margin: 0 auto;
}

.page-header {
  padding: 70px 0 40px;
  text-align: center;
  background: linear-gradient(180deg, #f8fcf9 0%, #eef8fb 100%);
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: #18313a;
  margin-bottom: 12px;
}

.page-header p {
  color: #5f6f75;
  max-width: 760px;
  margin: 0 auto;
}

/* GRID / CARDS */

.trust-strip {
  padding: 18px 0 10px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.trust-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.trust-item h3 {
  margin-bottom: 8px;
  color: var(--green-dark);
  font-size: 1.1rem;
}

.trust-item p {
  color: var(--text-soft);
}

.card-grid,
.sector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card,
.sector-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.card h3,
.sector-box h3 {
  margin-bottom: 10px;
  color: var(--blue-dark);
  font-size: 1.2rem;
}

.card p,
.sector-box p {
  color: var(--text-soft);
}

.price {
  font-weight: 700;
  color: #18313a;
  margin-top: 10px;
}

/* PROCESS */

.process-section {
  background: #ffffff;
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: start;
}

.process-grid h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.15;
  color: #18313a;
  margin-bottom: 16px;
}

.process-text {
  color: var(--text-soft);
  max-width: 650px;
}

.process-steps {
  display: grid;
  gap: 16px;
}

.step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.step span {
  min-width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
}

.step p {
  font-weight: 700;
  color: #23404a;
}

/* CTA */

.cta-section {
  padding: 0 0 80px;
}

.cta-box {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue), var(--green));
  color: var(--white);
  border-radius: 28px;
  padding: 34px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  box-shadow: 0 18px 36px rgba(13, 111, 147, 0.2);
}

.cta-box h2 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: 10px;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* FOOTER */

.footer {
  background: linear-gradient(90deg, #143847 0%, #197ea8 100%);
  color: rgba(255, 255, 255, 0.9);
  padding: 46px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 0.9fr;
  gap: 24px;
  align-items: start;
}

.footer h3,
.footer h4 {
  color: #ffffff;
  margin-bottom: 10px;
}

.footer-logo-side {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.footer-logo-box {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  width: auto;
  max-width: 260px;
  min-height: auto;
}

.footer-logo-box img {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  object-fit: contain;
  padding: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f3f3 100%);
  border: 3px solid #16da0f;
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}

/* WHATSAPP */

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 2000;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #25d366 0%, #18b955 100%);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(37, 211, 102, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(37, 211, 102, 0.35);
}

.whatsapp-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 1rem;
  font-weight: 700;
}

.whatsapp-text {
  font-size: 0.98rem;
}

/* CALCULADORA */

.foam-calculator {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
}

.foam-form-card,
.foam-result-card {
  background: #ffffff;
  border: 1px solid #d9ece0;
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 12px 30px rgba(14, 73, 44, 0.08);
}

.foam-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
}

.field label {
  font-weight: 700;
  margin-bottom: 8px;
  color: #23404a;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #cfe4d7;
  border-radius: 12px;
  font-size: 1rem;
  background: #fcfffd;
  color: #263238;
  font-family: Arial, sans-serif;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: #179dc4;
  box-shadow: 0 0 0 3px rgba(23, 157, 196, 0.12);
}

.field-full {
  grid-column: 1 / -1;
}

.foam-actions {
  margin-top: 20px;
}

.foam-result-card h3 {
  color: #197ea8;
  margin-bottom: 14px;
}

.foam-result-card p {
  color: #5f6f75;
  margin-bottom: 10px;
}

.foam-result-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.foam-result-item {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f5fbf7;
  border: 1px solid #d9ece0;
}

.foam-note {
  margin-top: 16px;
  font-size: 0.95rem;
  color: #5f6f75;
}

.foam-whatsapp-link {
  display: inline-block;
  margin-top: 18px;
  text-decoration: none;
  font-weight: 700;
  color: #0c5a2a;
}

.foam-whatsapp-link:hover {
  color: #179dc4;
}

/* INFO ESPUMAS */

.foam-info-list {
  display: grid;
  gap: 22px;
}

.foam-info-card {
  background: #ffffff;
  border: 1px solid #d9ece0;
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 12px 30px rgba(14, 73, 44, 0.08);
}

.foam-info-top {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.foam-info-top h3 {
  color: #197ea8;
  font-size: 1.3rem;
}

.foam-level {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
}

.foam-level-high {
  background: linear-gradient(135deg, #0f5f81 0%, #197ea8 100%);
}

.foam-level-medium-high {
  background: linear-gradient(135deg, #197ea8 0%, #179dc4 100%);
}

.foam-level-medium {
  background: linear-gradient(135deg, #179dc4 0%, #36b7a1 100%);
}

.foam-level-soft {
  background: linear-gradient(135deg, #36b7a1 0%, #08c84a 100%);
}

.foam-level-very-soft {
  background: linear-gradient(135deg, #56d36b 0%, #8be08a 100%);
  color: #ffffff;
}

.foam-feature-list {
  margin-top: 14px;
  padding-left: 20px;
  color: #5f6f75;
}

.foam-feature-list li {
  margin-bottom: 8px;
}

.foam-use {
  margin-top: 14px;
  color: #223038;
}

/* GALERÍA / MAPA */

.gallery-card {
  padding: 14px;
}

.gallery-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.map-box {
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(14, 73, 44, 0.08);
  border: 1px solid #d9ece0;
  background: #ffffff;
}

.map-box iframe {
  display: block;
}

/* FORMULARIOS CONTACTO */

.contact-page-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  gap: 24px;
  align-items: start;
}

.contact-stack {
  display: grid;
  gap: 20px;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.contact-item {
  padding: 14px 16px;
  border: 1px solid #d9ece0;
  border-radius: 14px;
  background: #f9fdf9;
}

.contact-item strong {
  display: block;
  margin-bottom: 4px;
  color: #0d6f93;
}

.contact-item a {
  color: #0c5a2a;
  text-decoration: none;
  font-weight: 700;
}

.contact-item a:hover {
  color: #1199c7;
}

.contact-note {
  color: #5f6f75;
  margin-top: 14px;
}

.contact-form-card {
  background: #ffffff;
  border: 1px solid #d9ece0;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 12px 30px rgba(14, 73, 44, 0.08);
}

.contact-form-card h2 {
  color: #0d6f93;
  margin-bottom: 10px;
  font-size: 1.7rem;
}

.contact-form-card > p {
  color: #5f6f75;
  margin-bottom: 22px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-submit {
  border: none;
  cursor: pointer;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.mini-card {
  background: #ffffff;
  border: 1px solid #d9ece0;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(14, 73, 44, 0.08);
}

.mini-card h3 {
  color: #0d6f93;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.mini-card p {
  color: #5f6f75;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
  .trust-grid,
  .card-grid,
  .sector-grid,
  .process-grid,
  .footer-grid,
  .mini-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-logo-side {
    justify-content: flex-start;
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 900px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand {
    min-width: 0;
    width: 100%;
    max-width: 520px;
  }

  .nav-links {
    gap: 18px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 8vw, 3.8rem);
  }

  .hero-description {
    font-size: 1.08rem;
  }

  .foam-calculator,
  .contact-page-grid,
  .nestluc-hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .trust-grid,
  .card-grid,
  .sector-grid,
  .process-grid,
  .footer-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .footer-logo-side {
    justify-content: flex-start;
  }

  .field-row,
  .foam-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .brand {
    padding: 12px 14px;
    gap: 12px;
  }

  .brand img {
    height: 54px;
  }

  .brand-name {
    font-size: 1.35rem;
  }

  .brand-subtitle {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
  }

  .hero {
    padding: 34px 0 22px;
  }

  .highlight {
    font-size: 0.92rem;
    padding: 10px 14px;
  }

  .whatsapp-text {
    display: none;
  }

  .whatsapp-float {
    padding: 14px;
  }
}

.footer-legal {
  grid-column: 1 / -1;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.9rem;
}

.footer-legal a {
  color: #ffffff;
  text-underline-offset: 3px;
}

.map-consent {
  min-height: 280px;
  padding: 34px;
  display: grid;
  place-items: center;
  text-align: center;
  background: #f8fcf9;
}

.map-consent p {
  max-width: 540px;
  color: var(--text-soft);
  margin-bottom: 18px;
}

.form-help {
  margin-top: 14px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.privacy-check {
  display: block;
  margin: 4px 0 18px;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

.privacy-check input {
  width: auto;
  margin: 0 8px 0 0;
  vertical-align: middle;
}

.privacy-check a {
  color: var(--blue-dark);
  font-weight: 700;
}
