/* ==========================================================
   BLUENETS — Stylesheet
   Fuentes: Unica One (h1), Syne (h2/h3/subtítulos), Montserrat (body)
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Unica+One&family=Syne:wght@400;600;700;800&family=Montserrat:wght@400;500;600;700&display=swap');

/* ── Variables ─────────────────────────────────────────── */
:root {
  --white: #ffffff;
  --black: #111111;
  --blue-light: #569cbe;
  --blue: #005595;
  --blue-dark: #003d6e;
  --beige: #a98281;
  --circle-blue: #c5d6e9;
  --circle-gray: #acc4db;
  --bg: #f4f8fb;
  --text: #1a1f2b;
  --muted: #5b6678;
  --border: rgba(0, 85, 149, 0.13);
  --border-light: rgba(0, 85, 149, 0.07);
  --shadow: 0 12px 40px rgba(0, 48, 90, 0.09);
  --shadow-md: 0 20px 60px rgba(0, 48, 90, 0.13);
  --radius: 20px;
  --radius-sm: 12px;
  --container: 1180px;
  --transition: 0.18s ease;
}

/* ── Reset & base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  background: var(--white);
  color: var(--text);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { line-height: 1.75; color: var(--muted); }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; }

/* ── Typography ────────────────────────────────────────── */
h1 {
  font-family: 'Unica One', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 1rem;
}
h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 1rem;
}
h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 0.6rem;
}
h4 {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--blue);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--blue-light);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── Container ─────────────────────────────────────────── */
.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

/* ── Header ────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: box-shadow var(--transition);
}
.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0, 48, 90, 0.08);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.875rem 0;
}

.brand img { height: 44px; width: auto; display: block; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  border: 0;
  background: var(--blue);
  color: white;
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}
.nav-toggle:hover { background: var(--blue-dark); transform: translateY(-1px); }
.nav-toggle[aria-expanded="true"] { background: var(--blue-dark); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: nowrap;
}
.nav-menu a {
  font-family: 'Montserrat', sans-serif;
  color: #2a3f58;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  transition: color var(--transition), background var(--transition);
}
.nav-menu a:hover { color: var(--blue); background: rgba(0, 85, 149, 0.06); }
.nav-menu a.active { color: var(--blue); background: rgba(0, 85, 149, 0.08); }
.nav-menu a.cta-link {
  background: var(--blue);
  color: white;
  padding: 0.65rem 1.25rem;
  box-shadow: 0 4px 16px rgba(0, 85, 149, 0.3);
}
.nav-menu a.cta-link:hover { background: var(--blue-dark); color: white; }
.nav-menu a.cta-link.active { background: var(--blue-dark); }

/* ── Section / Layout ──────────────────────────────────── */
.section {
  padding: 5rem 0;
}
.section.alt {
  background: linear-gradient(180deg, rgba(197, 214, 233, 0.15) 0%, rgba(255, 255, 255, 0) 100%);
}
.section.dark {
  background: var(--blue);
}
.section-copy,
.split-copy {
  padding-right: 1.5rem;
}
.section-copy p,
.hero-copy p {
  max-width: 60ch;
  margin-top: 0.75rem;
}

/* ── Grids ─────────────────────────────────────────────── */
.hero-grid,
.split-grid,
.contact-grid,
.detail-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: center;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
}
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  border-radius: 999px;
  padding: 0.875rem 1.5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform var(--transition), opacity var(--transition), background var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  border: 0;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 4px 20px rgba(0, 85, 149, 0.28);
}
.btn-primary:hover { background: var(--blue-dark); box-shadow: 0 8px 28px rgba(0, 85, 149, 0.38); }
.btn-secondary {
  background: white;
  color: var(--blue);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.btn-white {
  background: white;
  color: var(--blue);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}
.btn-white:hover { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18); }
.btn-wa {
  background: #25d366;
  color: white;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}
.btn-wa:hover { background: #1dba58; box-shadow: 0 8px 28px rgba(37, 211, 102, 0.4); }

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 1.75rem;
}

/* ── Hero (homepage) ───────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
  background: linear-gradient(140deg, #f8fbff 0%, #eef4fa 100%);
}
.hero::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(197, 214, 233, 0.55) 0%, transparent 70%);
  top: -120px;
  right: -100px;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(172, 196, 219, 0.4) 0%, transparent 70%);
  bottom: -60px;
  left: -80px;
  pointer-events: none;
}
.hero-grid { align-items: center; gap: 3rem; }
.hero-copy h1 { margin-bottom: 0.75rem; }

.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 500px;
  position: relative;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, transparent 50%, rgba(0, 48, 90, 0.14) 100%);
}

/* ── Page Banner (inner pages) ─────────────────────────── */
.page-banner {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 0 0 32px 32px;
}
.page-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 22, 50, 0.2) 0%, rgba(3, 22, 50, 0.78) 100%);
}
.banner-copy {
  position: relative;
  z-index: 1;
  padding: 3rem 0 3.5rem;
  max-width: 700px;
}
.banner-copy h1,
.banner-copy p,
.banner-copy .eyebrow { color: white; }
.banner-copy .eyebrow::before { background: rgba(255, 255, 255, 0.6); }
.banner-copy p { color: rgba(255, 255, 255, 0.88); margin-top: 0.75rem; font-size: 1.05rem; }

/* ── Page Submenu ──────────────────────────────────────── */
.page-subnav {
  position: sticky;
  top: 68px;
  z-index: 90;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.page-subnav-inner {
  display: flex;
  gap: 0.25rem;
  padding: 0.6rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.page-subnav-inner::-webkit-scrollbar { display: none; }
.page-subnav-inner a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
  border: 1.5px solid transparent;
}
.page-subnav-inner a:hover { color: var(--blue); background: rgba(0, 85, 149, 0.06); }
.page-subnav-inner a.active {
  color: var(--blue);
  background: rgba(0, 85, 149, 0.08);
  border-color: var(--border);
}

/* ── Cards ─────────────────────────────────────────────── */
.card,
.info-card,
.panel,
.contact-card,
.quote-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card,
.info-card,
.panel,
.contact-card,
.quote-card { padding: 1.75rem; }

.card .icon,
.info-card .icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 1.1rem;
  background: linear-gradient(135deg, var(--circle-blue), rgba(86, 156, 190, 0.25));
  color: var(--blue);
  font-size: 1.4rem;
}
.card .icon svg,
.info-card .icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--blue);
}
.card p { margin-top: 0.5rem; }
.card .button-row,
.info-card .button-row { margin-top: 1.25rem; }

/* ── Image card / gallery ──────────────────────────────── */
.image-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  box-shadow: var(--shadow);
}
.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-stack {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
}
.image-stack .image-card:first-child {
  grid-row: 1 / 3;
  min-height: 420px;
}
.image-stack .image-card:not(:first-child) { min-height: 195px; }

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  box-shadow: var(--shadow);
  min-height: 270px;
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.35s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(3, 22, 50, 0.7) 0%, transparent 100%);
  padding: 1.5rem 1.25rem 1.1rem;
  z-index: 1;
}
.gallery-caption strong {
  display: block;
  color: white;
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
}
.gallery-caption p { color: rgba(255, 255, 255, 0.8); font-size: 0.875rem; margin: 0; }

/* ── Stats ─────────────────────────────────────────────── */
.stat {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.stat:hover { box-shadow: var(--shadow); border-color: rgba(0, 85, 149, 0.2); }
.stat strong {
  display: block;
  font-family: 'Syne', sans-serif;
  color: var(--blue);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.stat span { color: var(--muted); font-size: 0.9rem; }

/* ── Benefit grid items ────────────────────────────────── */
.benefit-item {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.benefit-item:hover { box-shadow: var(--shadow); border-color: rgba(0, 85, 149, 0.22); }
.benefit-item .bi-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--circle-blue), rgba(86, 156, 190, 0.22));
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}
.benefit-item span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

/* ── Testimonials ──────────────────────────────────────── */
.testimonial-section {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.testimonial-section > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.testimonial-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.75) 60%,
    rgba(255, 255, 255, 0.4) 100%);
}
.testimonial-inner {
  position: relative;
  z-index: 1;
  padding: 3rem 2rem;
}

.quote-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 85, 149, 0.08);
  backdrop-filter: blur(4px);
}
.quote-card p {
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
}
.quote-card strong {
  display: block;
  margin-top: 1rem;
  font-family: 'Syne', sans-serif;
  color: var(--blue);
  font-weight: 700;
  font-style: normal;
}
.quote-card .quote-company {
  color: var(--muted);
  font-size: 0.875rem;
  font-style: normal;
  display: block;
  margin-top: 0.2rem;
}

/* ── Pricing panel ─────────────────────────────────────── */
.pricing-panel {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  color: white;
  position: relative;
  overflow: hidden;
}
.pricing-panel::before {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  top: -80px;
  right: -60px;
}
.pricing-panel .eyebrow { color: rgba(255, 255, 255, 0.8); }
.pricing-panel .eyebrow::before { background: rgba(255, 255, 255, 0.5); }
.pricing-panel h2 { color: white; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.pricing-panel p { color: rgba(255, 255, 255, 0.85); }
.pricing-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 1rem;
  font-style: italic;
}
.pricing-panel .button-row { margin-top: 1.75rem; }

/* ── Slogan section ────────────────────────────────────── */
.slogan-section {
  background: linear-gradient(135deg, var(--blue) 0%, #003d6e 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.slogan-section::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  top: -200px;
  left: -150px;
  pointer-events: none;
}
.slogan-section .container {
  position: relative;
  z-index: 1;
}
.slogan-section .eyebrow { color: rgba(255, 255, 255, 0.75); justify-content: center; }
.slogan-section .eyebrow::before { background: rgba(255, 255, 255, 0.45); }
.slogan-section h2 {
  color: white;
  font-size: clamp(2rem, 4vw, 3.2rem);
  max-width: 700px;
  margin: 0 auto 1rem;
}
.slogan-section p { color: rgba(255, 255, 255, 0.8); max-width: 56ch; margin: 0 auto; }
.slogan-section .button-row { justify-content: center; }

/* ── Final CTA / Mensaje final ─────────────────────────── */
.final-cta {
  background: linear-gradient(135deg, #eef4fa 0%, #dce9f3 100%);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 85, 149, 0.08) 0%, transparent 70%);
  top: -80px;
  right: -60px;
}
.final-cta .eyebrow { justify-content: center; }
.final-cta h2 { max-width: 600px; margin: 0 auto 0.75rem; }
.final-cta p { max-width: 52ch; margin: 0 auto; }
.final-cta .button-row { justify-content: center; }

/* ── Conocenos CTA block ───────────────────────────────── */
.conocenos-block {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.conocenos-block h2 { margin-bottom: 0.5rem; }
.conocenos-block p { max-width: 52ch; margin: 0; }
.conocenos-cta { flex-shrink: 0; }

/* ── Detail grid (alternating) ─────────────────────────── */
.detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}
.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ── Contact section ───────────────────────────────────── */
.contact-card { padding: 2rem; }
.contact-info-list {
  display: grid;
  gap: 0.875rem;
  margin: 1.25rem 0;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}
.contact-info-item .ci-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: rgba(0, 85, 149, 0.08);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}
.contact-info-item .ci-text {
  display: flex;
  flex-direction: column;
}
.contact-info-item .ci-label {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.contact-info-item .ci-value {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}
.contact-info-item a.ci-value { color: var(--text); transition: color var(--transition); }
.contact-info-item a.ci-value:hover { color: var(--blue); }

/* ── List ──────────────────────────────────────────────── */
.list {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
}
.list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.95rem;
}
.list li::before {
  content: '●';
  color: var(--blue);
  font-size: 0.55rem;
  margin-top: 0.55rem;
  flex-shrink: 0;
}

.legal-copy > * + * {
  margin-top: 1rem;
}

.legal-copy h3 {
  margin-top: 2rem;
}

.legal-copy p,
.legal-copy li {
  max-width: 90ch;
}

.legal-copy a {
  color: var(--blue);
  text-decoration: underline;
}

.legal-list {
  margin-top: 1rem;
}

/* ── FAQ ───────────────────────────────────────────────── */
.faq { display: grid; gap: 0.75rem; }
.faq details {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq details[open] {
  border-color: rgba(0, 85, 149, 0.25);
  box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-family: 'Syne', sans-serif;
  color: var(--text);
  padding: 1.1rem 1.25rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
  font-size: 0.975rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--blue);
  font-weight: 300;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq details[open] summary::after {
  content: '−';
}
.faq details p,
.faq details ul {
  padding: 0 1.25rem 1.25rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ── Form ──────────────────────────────────────────────── */
.form {
  display: grid;
  gap: 1.1rem;
}
.field {
  display: grid;
  gap: 0.4rem;
}
.field label {
  font-size: 0.875rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  padding: 0.875rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  background: #fafcff;
  color: var(--text);
  resize: vertical;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 85, 149, 0.1);
}
.field--error input,
.field--error textarea {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}
.field__error-msg {
  font-size: 0.8rem;
  color: #e53e3e;
  font-weight: 600;
  display: none;
}
.field--error .field__error-msg { display: block; }

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}
.checkbox-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 0.15rem;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  cursor: pointer;
  accent-color: var(--blue);
}
.checkbox-field label {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
  cursor: pointer;
}
.checkbox-field label a { color: var(--blue); text-decoration: underline; }
.checkbox-field--error label { color: #e53e3e; }

.captcha-placeholder {
  background: var(--bg);
  border: 1.5px dashed var(--border);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.form-success {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  text-align: center;
  color: #166534;
  font-weight: 600;
  display: none;
}
.form-error-msg {
  background: #fef2f2;
  border: 1.5px solid #fca5a5;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  text-align: center;
  color: #991b1b;
  font-size: 0.9rem;
  display: none;
}

/* ── Footer ────────────────────────────────────────────── */
.site-footer {
  margin-top: 4rem;
  padding: 4rem 0 2rem;
  background: #051e38;
  color: rgba(255, 255, 255, 0.78);
}
.site-footer h3 {
  font-family: 'Syne', sans-serif;
  color: white;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.site-footer p,
.site-footer a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}
.site-footer a { transition: color var(--transition); }
.site-footer a:hover { color: white; }
.site-footer .brand img { filter: brightness(1.15); }
.footer-tagline { margin: 0.875rem 0; }
.footer-contact { margin-top: 1rem; display: grid; gap: 0.4rem; }
.footer-nav { display: grid; gap: 0.5rem; }
.footer-nav a {
  display: block;
  padding: 0.2rem 0;
  font-weight: 500;
}
.legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ── WhatsApp floating button ──────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #25d366;
  color: white;
  border-radius: 999px;
  padding: 0.875rem 1.25rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  animation: wa-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1.2s both;
}
.wa-float:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.5);
}
.wa-float svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
@keyframes wa-pop {
  from { transform: scale(0.4) translateY(20px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}

/* ── Notice ────────────────────────────────────────────── */
.notice {
  border-left: 4px solid var(--blue-light);
  background: rgba(197, 214, 233, 0.18);
  padding: 1rem 1.25rem;
  border-radius: 0 14px 14px 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ── Accessibility ─────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ──────────────────────────────────────────────────────────
   RESPONSIVE
────────────────────────────────────────────────────────── */

/* — Tablet (≤ 960px) ──────────────────────────────────── */
@media (max-width: 960px) {
  .hero-grid,
  .split-grid,
  .contact-grid,
  .detail-grid,
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .image-stack { grid-template-columns: 1fr 1fr; }
  .image-stack .image-card:first-child { grid-row: 1; grid-column: 1 / 3; min-height: 280px; }
  .image-stack .image-card:not(:first-child) { min-height: 180px; }

  /* Nav → hamburger */
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 1rem;
    left: 1rem;
    flex-direction: column;
    align-items: stretch;
    padding: 0.875rem;
    border-radius: 20px;
    background: white;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.06);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 0.875rem 1rem; border-radius: 12px; }
  .nav-menu a.cta-link { text-align: center; }

  .section-copy,
  .split-copy { padding-right: 0; }
  .hero-media { min-height: 360px; }
  .page-banner { min-height: 340px; }
  .page-subnav { top: 60px; }

  .conocenos-block { flex-direction: column; text-align: center; }
  .conocenos-block p { max-width: 100%; }
  .conocenos-cta .btn { width: 100%; justify-content: center; }

  .wa-float span { display: none; }
  .wa-float { padding: 0.875rem; border-radius: 999px; }
}

/* — Mid tablet (≤ 768px) ──────────────────────────────── */
@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .hero { padding: 3.5rem 0 3rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .pricing-panel { padding: 2rem 1.5rem; }
  .final-cta { padding: 2.5rem 1.75rem; }
  .slogan-section { padding: 3.5rem 0; }
  .testimonial-section::after {
    background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.94) 0%,
      rgba(255, 255, 255, 0.88) 100%);
  }
}

/* — Mobile (≤ 520px) ──────────────────────────────────── */
@media (max-width: 520px) {
  h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
  h2 { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .section { padding: 3rem 0; }
  .hero { padding: 2.5rem 0 2.5rem; }
  .hero-media { min-height: 280px; }
  .page-banner { min-height: 280px; }
  .cards-grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .hero-actions,
  .button-row { gap: 0.75rem; }
  .btn { width: 100%; justify-content: center; }
  .hero-actions .btn,
  .button-row .btn { width: auto; min-width: auto; }
  .slogan-section .button-row .btn { width: auto; }
  .final-cta .button-row .btn { width: auto; }
  .contact-card { padding: 1.5rem 1.25rem; }
}
