/* =============================================================
   NOMADA PROTECT — style.css
   Mobile-first | BEM | CSS Custom Properties | WCAG 2.1
   ============================================================= */

/* ---------------------------------------------------------------
   0. RESET & BASE
--------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--clr-text);
  background-color: var(--clr-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ---------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES
--------------------------------------------------------------- */
:root {
  /* Brand colors (extraídos del logo) */
  --clr-blue:        #2196d3;
  --clr-blue-dark:   #1576aa;
  --clr-blue-light:  #e8f4fc;
  --clr-green:       #6abf45;
  --clr-green-dark:  #4e9b2e;
  --clr-dark:        #3d4f5c;
  --clr-dark-deep:   #243038;

  /* UI colors */
  --clr-bg:          #ffffff;
  --clr-bg-soft:     #f7fafd;
  --clr-bg-alt:      #eef5fb;
  --clr-text:        #2c3e50;
  --clr-text-muted:  #6b7d8e;
  --clr-border:      #d4e4f0;
  --clr-white:       #ffffff;

  /* Typography */
  --font-display:    'Playfair Display', Georgia, serif;
  --font-body:       'Plus Jakarta Sans', system-ui, sans-serif;

  /* Spacing scale */
  --sp-xs:   0.5rem;
  --sp-sm:   0.75rem;
  --sp-md:   1rem;
  --sp-lg:   1.5rem;
  --sp-xl:   2rem;
  --sp-2xl:  3rem;
  --sp-3xl:  4rem;
  --sp-4xl:  6rem;

  /* Border radius */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(33, 150, 211, 0.08);
  --shadow-md:  0 6px 24px rgba(33, 150, 211, 0.14);
  --shadow-lg:  0 16px 48px rgba(33, 150, 211, 0.18);
  --shadow-card: 0 4px 20px rgba(61, 79, 92, 0.10);

  /* Transitions */
  --transition: 0.3s ease;
  --transition-fast: 0.15s ease;

  /* Nav height */
  --nav-h: 72px;
}

/* ---------------------------------------------------------------
   2. FOCUS VISIBLE (accesibilidad de teclado)
--------------------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--clr-blue);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---------------------------------------------------------------
   3. TYPOGRAPHY HELPERS
--------------------------------------------------------------- */
.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-blue);
  background: var(--clr-blue-light);
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-md);
}

.section-tag--light {
  color: var(--clr-white);
  background: rgba(255,255,255,0.2);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--clr-dark);
  line-height: 1.2;
  margin-bottom: var(--sp-lg);
}

.section-title em {
  font-style: italic;
  color: var(--clr-blue);
}

.section-title--light {
  color: var(--clr-white);
}

.section-title--light em {
  color: var(--clr-green);
}

/* ---------------------------------------------------------------
   4. BUTTONS
--------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
}

.btn--primary {
  background: linear-gradient(135deg, var(--clr-blue), var(--clr-blue-dark));
  color: var(--clr-white);
  box-shadow: 0 4px 16px rgba(33, 150, 211, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(33, 150, 211, 0.45);
}

.btn--outline {
  border: 2px solid rgba(255,255,255,0.7);
  color: var(--clr-white);
  background: transparent;
}

.btn--outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--clr-white);
}

.btn--white {
  background: var(--clr-white);
  color: var(--clr-blue);
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--card {
  background: transparent;
  border: 2px solid var(--clr-blue);
  color: var(--clr-blue);
  width: 100%;
  margin-top: var(--sp-md);
}

.btn--card:hover {
  background: var(--clr-blue);
  color: var(--clr-white);
  transform: translateY(-1px);
}

.btn--card-featured {
  background: var(--clr-blue);
  color: var(--clr-white);
  border-color: var(--clr-blue);
}

.btn--card-featured:hover {
  background: var(--clr-blue-dark);
}

.btn--submit {
  position: relative;
  min-width: 200px;
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn__loader {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn--loading .btn__text { display: none; }
.btn--loading .btn__loader { display: block; }

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

/* ---------------------------------------------------------------
   5. HEADER & NAV
--------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--clr-border);
  transition: box-shadow var(--transition);
}

.header--scrolled {
  box-shadow: var(--shadow-md);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-lg);
  height: 100%;
}

.nav__logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

/* Hamburger */
.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.nav__toggle:hover {
  background: var(--clr-bg-soft);
}

.nav__toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--clr-dark);
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}

/* Hamburger open state */
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.nav__menu {
  display: none;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--clr-white);
  border-top: 1px solid var(--clr-border);
  padding: var(--sp-md) 0;
  box-shadow: var(--shadow-md);
  flex-direction: column;
}

.nav__menu.nav__menu--open {
  display: flex;
}

.nav__link {
  display: block;
  padding: 0.75rem var(--sp-xl);
  font-weight: 500;
  color: var(--clr-text);
  transition: color var(--transition-fast);
}

.nav__link:hover {
  color: var(--clr-blue);
}

.nav__link--cta {
  display: inline-flex;
  margin: var(--sp-md) var(--sp-xl);
  padding: 0.6rem 1.4rem;
  background: var(--clr-blue);
  color: var(--clr-white);
  border-radius: var(--radius-full);
  font-weight: 600;
}

.nav__link--cta:hover {
  background: var(--clr-blue-dark);
  color: var(--clr-white);
}

/* ---------------------------------------------------------------
   6. HERO
--------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(36, 48, 56, 0.55) 0%,
    rgba(36, 48, 56, 0.75) 60%,
    rgba(36, 48, 56, 0.92) 100%
  );
}

.hero__container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--sp-3xl) var(--sp-lg) var(--sp-2xl);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-green);
  margin-bottom: var(--sp-md);
}

.hero__eyebrow-dot {
  width: 8px;
  height: 8px;
  background: var(--clr-green);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900;
  color: var(--clr-white);
  line-height: 1.1;
  margin-bottom: var(--sp-lg);
}

.hero__title em {
  font-style: italic;
  color: var(--clr-green);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.85);
  font-weight: 300;
  margin-bottom: var(--sp-xl);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-md);
  margin-bottom: var(--sp-2xl);
}

/* Stats bar */
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-lg);
  padding: var(--sp-lg) var(--sp-xl);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
}

.hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  flex: 1;
  min-width: 80px;
}

.hero__stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--clr-white);
}

.hero__stat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.75);
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  right: var(--sp-xl);
  bottom: var(--sp-2xl);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}

.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.6));
  animation: scroll-line 2s ease infinite;
}

.hero__scroll-text {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  writing-mode: vertical-rl;
}

@keyframes scroll-line {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------------------------------------------------------------
   7. ABOUT
--------------------------------------------------------------- */
.about {
  padding: var(--sp-3xl) 0;
  background: var(--clr-bg);
}

.about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-lg);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2xl);
}

.about__visual {
  position: relative;
  align-self: center;
}

.about__img {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  object-fit: cover;
  height: 380px;
  box-shadow: var(--shadow-lg);
}

.about__img-badge {
  position: absolute;
  bottom: -1rem;
  right: 1rem;
  background: linear-gradient(135deg, var(--clr-blue), var(--clr-blue-dark));
  color: var(--clr-white);
  padding: var(--sp-md) var(--sp-lg);
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.about__img-badge-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
}

.about__img-badge-text {
  font-size: 0.72rem;
  opacity: 0.9;
  font-weight: 500;
}

.about__lead {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--clr-dark);
  margin-bottom: var(--sp-md);
}

.about__text {
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-lg);
  line-height: 1.7;
}

.about__pillars {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  margin-top: var(--sp-xl);
}

.about__pillar {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-lg);
  background: var(--clr-bg-soft);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--clr-blue);
  transition: box-shadow var(--transition);
}

.about__pillar:hover {
  box-shadow: var(--shadow-sm);
}

.about__pillar-icon {
  align-items: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.about__pillar-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--clr-dark);
  margin-bottom: 0.25rem;
}

.about__pillar-text {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  line-height: 1.5;
}

/* ---------------------------------------------------------------
   8. PRODUCTS
--------------------------------------------------------------- */
.products {
  padding: var(--sp-3xl) 0;
  background: linear-gradient(160deg, var(--clr-dark-deep) 0%, var(--clr-dark) 100%);
  position: relative;
  overflow: hidden;
}

.products::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(33,150,211,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.products::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(106,191,69,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.products__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-lg);
  position: relative;
  z-index: 1;
}

.products__header {
  text-align: center;
  margin-bottom: var(--sp-2xl);
}

.products__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-lg);
}

/* Plan Cards */
.plan-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  border-color: rgba(33, 150, 211, 0.4);
}

.plan-card--featured {
  border-color: var(--clr-blue);
  background: rgba(33, 150, 211, 0.08);
}

.plan-card__badge {
  position: absolute;
  top: var(--sp-md);
  right: var(--sp-md);
  background: var(--clr-green);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  z-index: 2;
}

.plan-card__img-wrap {
  overflow: hidden;
  height: 250px;
}

.plan-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.plan-card:hover .plan-card__img {
  transform: scale(1.05);
}

.plan-card__body {
  padding: var(--sp-lg);
}

.plan-card__icon {
  font-size: 1.8rem;
  margin-bottom: var(--sp-sm);
}

.plan-card__title {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: var(--sp-sm);
}

.plan-card__desc {
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

/* ---------------------------------------------------------------
   9. BANNER
--------------------------------------------------------------- */
.banner {
  position: relative;
  padding: var(--sp-4xl) var(--sp-lg);
  text-align: center;
  overflow: hidden;
}

.banner__bg {
  position: absolute;
  inset: 0;
}

.banner__img {
  width: 100%;
  height: 125%;
  object-fit: cover;
  object-position: auto;
}

.banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(33, 150, 211, 0.82) 0%,
    rgba(36, 48, 56, 0.88) 100%
  );
}

.banner__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.banner__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: rgba(255,255,255,0.75);
  margin-bottom: var(--sp-md);
  letter-spacing: 0.02em;
}

.banner__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--clr-white);
  line-height: 1.1;
  margin-bottom: var(--sp-md);
}

.banner__subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--sp-xl);
}

/* ---------------------------------------------------------------
   10. FAQ
--------------------------------------------------------------- */
.faq {
  padding: var(--sp-3xl) 0;
  background: var(--clr-bg-soft);
}

.faq__container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

.faq__header {
  text-align: center;
  margin-bottom: var(--sp-2xl);
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.faq__item {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.faq__item[open] {
  box-shadow: var(--shadow-sm);
  border-color: var(--clr-blue);
}

.faq__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-lg);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--clr-dark);
  cursor: pointer;
  list-style: none;
  transition: color var(--transition-fast);
}

.faq__question::-webkit-details-marker { display: none; }

.faq__item[open] .faq__question {
  color: var(--clr-blue);
}

.faq__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  border: 2px solid var(--clr-border);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--clr-text-muted);
  transition: all var(--transition);
}

.faq__icon::after {
  content: '+';
}

.faq__item[open] .faq__icon {
  border-color: var(--clr-blue);
  background: var(--clr-blue);
  color: white;
  transform: rotate(45deg);
}

.faq__answer {
  padding: 0 var(--sp-lg) var(--sp-lg);
  color: var(--clr-text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.faq__link {
  color: var(--clr-blue);
  font-weight: 500;
  text-decoration: underline;
}

/* ---------------------------------------------------------------
   11. COTIZADOR
--------------------------------------------------------------- */
.quote {
  padding: var(--sp-3xl) 0 var(--sp-4xl);
  background: var(--clr-bg);
  position: relative;
  overflow: hidden;
}

.quote__deco {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--clr-blue), var(--clr-green), var(--clr-blue));
}

.quote__container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

.quote__header {
  text-align: center;
  margin-bottom: var(--sp-2xl);
}

.quote__subtitle {
  color: var(--clr-text-muted);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* Form */
.quote__form {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-xl);
  box-shadow: var(--shadow-card);
}

.form__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-lg);
  margin-bottom: var(--sp-xl);
}

.form__group--full {
  grid-column: 1 / -1;
}

.form__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--clr-dark);
  margin-bottom: 0.4rem;
}

.form__required {
  color: var(--clr-blue);
}

.form__input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--clr-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--clr-text);
  background: var(--clr-bg-soft);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form__input::placeholder {
  color: #b0bec5;
}

.form__input:focus {
  border-color: var(--clr-blue);
  background: var(--clr-white);
  box-shadow: 0 0 0 4px rgba(33, 150, 211, 0.1);
}

.form__input.form__input--error {
  border-color: #e53935;
  background: #fff5f5;
}

.form__textarea {
  resize: vertical;
  min-height: 90px;
}

.form__error {
  display: block;
  font-size: 0.78rem;
  color: #e53935;
  margin-top: 0.3rem;
  min-height: 1.1em;
}

.form__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-md);
  text-align: center;
}

.form__privacy {
  font-size: 0.78rem;
  color: var(--clr-text-muted);
}

.form__link {
  color: var(--clr-blue);
  text-decoration: underline;
}

.form__success {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-lg);
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: var(--radius-md);
  margin-top: var(--sp-lg);
  color: #2e7d32;
  font-weight: 500;
}

.form__success[hidden] {
  display: none;
}

.form__success-icon {
  font-size: 1.5rem;
}

/* ---------------------------------------------------------------
   12. FOOTER
--------------------------------------------------------------- */
.footer {
  background: var(--clr-dark-deep);
  color: rgba(255,255,255,0.8);
}

.footer__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--sp-xl) var(--sp-lg) var(--sp-md);
  display: flex;
  flex-direction: column;
  gap: var(--sp-xl);
}

/* --- Fila 1: contacto + redes --- */
.footer__info-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-lg);
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.footer__contact-item:hover {
  color: var(--clr-blue);
}

.footer__wsp-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer__social {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}

.footer__social-link {
  display: inline-flex;
  opacity: 0.85;
  transition: transform var(--transition), opacity var(--transition);
}

.footer__social-link:hover {
  opacity: 1;
  transform: translateY(-3px) scale(1.1);
}

.footer__social-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

/* --- Fila 2: logos --- */
.footer__brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  width: 100%;
}

.footer__group {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  flex: 1;
}

.footer__group--left {
  justify-content: flex-start;
}

.footer__group--right {
  justify-content: flex-end;
}

.footer__logo {
  height: 46px;
  width: auto;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}

.footer__ca-logo {
  height: 46px;
  width: auto;
  flex-shrink: 0;
}

.footer__tagline {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  max-width: 200px;
  line-height: 1.4;
}

.footer__continental {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  max-width: 160px;
  line-height: 1.4;
  text-align: right;
}

/* --- Footer bottom --- */
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: var(--sp-lg);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  align-items: center;
  text-align: center;
}

.footer__copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.footer__legal {
  display: flex;
  gap: var(--sp-lg);
}

.footer__legal-link {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  transition: color var(--transition-fast);
}

.footer__legal-link:hover {
  color: var(--clr-blue);
  text-decoration: underline;
}

/* --- Mobile: footer --- */
@media (max-width: 600px) {
  .footer__container {
    padding: var(--sp-lg) var(--sp-md) var(--sp-sm);
    gap: var(--sp-lg);
  }

  .footer__brand {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-sm);
  }

  .footer__group {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    flex: 1;
  }

  .footer__group--right {
    align-items: flex-end;
  }

  .footer__logo {
    height: 36px;
  }

  .footer__ca-logo {
    height: 32px;
  }

  .footer__tagline {
    font-size: 0.7rem;
    max-width: 140px;
    display: block;
  }

  .footer__continental {
    font-size: 0.7rem;
    max-width: 120px;
    display: block;
    text-align: right;
  }

  .footer__contact-item {
    font-size: 0.8rem;
  }
}

/* ---------------------------------------------------------------
   13. ANIMATIONS — reveal on scroll
--------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.reveal--visible {
  opacity: 1;
  transform: none;
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

/* ---------------------------------------------------------------
   14. TABLET — min-width: 768px
--------------------------------------------------------------- */
@media (min-width: 768px) {

  .nav__toggle { display: none; }

  .nav__menu {
    display: flex !important;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
  }

  .nav__link {
    padding: 0.5rem 0.85rem;
    font-size: 0.9rem;
  }

  .nav__link--cta {
    margin: 0;
    padding: 0.5rem 1.25rem;
  }

  .hero__scroll-hint { display: flex; }

  .hero__stats {
    gap: var(--sp-xl);
    flex-wrap: nowrap;
  }

  .about__container {
    flex-direction: row;
    align-items: center;
    gap: var(--sp-3xl);
  }

  .about__visual { flex: 0 0 45%; }
  .about__img { height: 480px; max-width: 100%; }
  .about__content { flex: 1; }

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

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

  .quote__form {
    padding: var(--sp-2xl);
  }

  .form__footer {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .footer__info-row {
    justify-content: center;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ---------------------------------------------------------------
   15. DESKTOP — min-width: 1024px
--------------------------------------------------------------- */
@media (min-width: 1024px) {

  .hero__container {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: flex-end;
    gap: var(--sp-2xl);
    padding-bottom: var(--sp-3xl);
  }

  .hero__content { max-width: 640px; }

  .hero__stats {
    flex-direction: column;
    align-self: center;
    gap: var(--sp-lg);
    padding: var(--sp-xl);
    flex-wrap: nowrap;
    min-width: 180px;
  }

  .hero__stat { flex-direction: row; gap: var(--sp-md); align-items: center; }

  .products__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about__pillars { flex-direction: row; gap: var(--sp-md); }
  .about__pillar { flex-direction: column; text-align: center; }
}

/* ---------------------------------------------------------------
   16. WIDE — min-width: 1280px
--------------------------------------------------------------- */
@media (min-width: 1280px) {
  .products__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------------------------------------------------------------
   17. REDUCED MOTION
--------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
