/* ============================================
   VDO FieldOps — styles.css
   Migrado desde React + Tailwind a CSS puro
   ============================================ */

:root {
  /* Paleta oficial — Manual de Marca VDO FieldOps */
  --navy: #093149;
  --orange: #D1782E;
  --gray: #727176;
  --offwhite: #F1F1EF;
  /* Tipografías oficiales — Manual de Marca:
     títulos y cifras: Monument Extended Ultrabold
     texto: Barlow (grotesca neutra, ya usada en el sitio) */
  --font-heading: 'Monument Extended', 'Unbounded', sans-serif;
  --font-body: 'Barlow', sans-serif;
}

@font-face {
  font-family: 'Monument Extended';
  src: url('../fonts/monument-extended-regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--offwhite);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

button { border: none; background: none; cursor: pointer; font: inherit; }
a { text-decoration: none; }

/* ---------- Animación de aparición (Reveal) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background-color: rgba(9, 49, 73, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
}
.navbar.scrolled {
  background-color: rgba(9, 49, 73, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.navbar-inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  transition: height 0.3s;
}
.navbar.scrolled .navbar-inner { height: 60px; }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo img { height: 46px; width: auto; display: block; }

.nav-desktop {
  display: none;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 8px 16px;
  font-size: 14px;
  font-family: var(--font-body);
  font-weight: 500;
  color: #E5E7E9;
  position: relative;
  transition: color 0.2s;
}
.nav-link.active { color: var(--orange); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: -2px;
  height: 2px;
  background-color: var(--orange);
}
.nav-cta {
  margin-left: 12px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  background-color: var(--orange);
  color: #fff;
  transition: transform 0.2s;
}
.nav-cta:hover { transform: scale(1.05); }

/* Hamburguesa */
.nav-burger {
  padding: 8px;
  margin-right: -8px;
  display: block;
}
.nav-burger-lines {
  width: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav-burger-lines span {
  display: block;
  height: 2px;
  background: #fff;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Menú móvil */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0 20px 20px;
  background-color: rgba(9, 49, 73, 0.98);
}
.nav-mobile.open { display: flex; }
.nav-mobile .nav-link-mobile {
  text-align: left;
  padding: 12px 0;
  font-size: 16px;
  font-family: var(--font-body);
  font-weight: 500;
  color: #E5E7E9;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-mobile .nav-link-mobile.active { color: var(--orange); }
.nav-mobile .nav-cta-mobile {
  margin-top: 12px;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 600;
  width: 100%;
  background-color: var(--orange);
  color: #fff;
  font-family: var(--font-body);
}

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .nav-burger, .nav-mobile { display: none !important; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 96px 0 64px;
  background-color: var(--navy);
}
.hero-silhouette {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 55%;
}
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 30% 20%, rgba(209, 120, 46, 0.08), transparent 55%);
}
.hero-content {
  position: relative;
  max-width: 896px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Logo principal */
.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
  margin-bottom: 32px;
}
.logo img {
  width: auto;
  max-width: 220px;
  max-height: 220px;
  height: auto;
  display: block;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1.25rem, 2.9vw, 2.1rem);
  color: var(--offwhite);
  letter-spacing: 0;
  line-height: 1.2;
  margin-bottom: 24px;
  text-wrap: balance;
}
.hero-title .accent { color: var(--orange); }

.hero-subtitle {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: #D7DADC;
  letter-spacing: 0.01em;
  margin-bottom: 28px;
}
.hero-lead {
  max-width: 576px;
  margin-bottom: 40px;
  font-size: 16px;
  line-height: 1.625;
  color: #AEB4B8;
  font-weight: 400;
}
.hero-cta {
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-body);
  background-color: var(--orange);
  color: #fff;
  min-height: 48px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2), 0 4px 6px -4px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}
.hero-cta:hover { transform: scale(1.03); }
.hero-cta:active { transform: scale(0.98); }

.hero-contact {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.hero-contact-name { font-size: 14px; color: #9CA3A7; }
.hero-contact-mail {
  font-size: 14px;
  color: #C9CDD0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hero-contact-note {
  font-size: 12px;
  margin-top: 12px;
  letter-spacing: 0.025em;
  color: #6E767B;
}

.hero-scroll-down {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.6;
  transition: opacity 0.2s;
  animation: bounce 2s infinite;
}
.hero-scroll-down:hover { opacity: 1; }
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

@media (min-width: 640px) {
  .hero-lead { font-size: 17px; }
  .hero-cta { font-size: 18px; }
}

/* ============================================
   SECCIONES GENERALES
   ============================================ */
.section { padding: 80px 24px; }
@media (min-width: 640px) { .section { padding: 112px 24px; } }

.section-light { background-color: var(--offwhite); }
.section-dark { background-color: var(--navy); }

.container-md { max-width: 896px; margin: 0 auto; }
.container-lg { max-width: 1024px; margin: 0 auto; }
.container-sm { max-width: 672px; margin: 0 auto; }

.section-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  line-height: 1.35;
  margin-bottom: 12px;
}
.section-title.on-light { color: var(--navy); }
.section-title.on-dark { color: var(--offwhite); }

/* ============================================
   B2: PROBLEMA
   ============================================ */
.problema-lead {
  font-family: var(--font-body);
  color: var(--gray);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 32px;
}
.problema-body {
  color: #4A4D50;
  font-size: 16px;
  line-height: 1.625;
  max-width: 672px;
  margin-bottom: 56px;
}
@media (min-width: 640px) {
  .problema-lead { font-size: 20px; }
  .problema-body { font-size: 17px; }
}

.impact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 56px;
}
@media (min-width: 640px) {
  .impact-grid { grid-template-columns: repeat(3, 1fr); }
}
.impact-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px;
  border-top: 2px solid var(--orange);
}
.impact-value {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--orange);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
}
.impact-value-text {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--navy);
  font-size: clamp(1.05rem, 1.9vw, 1.3rem);
  line-height: 1.3;
}
.impact-label {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.375;
  max-width: 220px;
  color: var(--gray);
}

.problema-quote {
  border-left: 4px solid var(--navy);
  padding: 8px 0 8px 24px;
}
.problema-quote p {
  font-family: var(--font-body);
  color: var(--navy);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.375;
}
@media (min-width: 640px) {
  .problema-quote p { font-size: 20px; }
}

/* ============================================
   B3: MÉTODO
   ============================================ */
.metodo-sub {
  color: #AEB4B8;
  font-size: 16px;
  margin-bottom: 24px;
  max-width: 672px;
}
@media (min-width: 640px) { .metodo-sub { font-size: 18px; } }

.metodo-badge {
  display: inline-block;
  padding: 8px 16px;
  margin-bottom: 48px;
  background-color: rgba(209, 120, 46, 0.12);
  border: 1px solid var(--orange);
}
.metodo-badge span {
  color: var(--orange);
  font-weight: 700;
  font-size: 14px;
}
@media (min-width: 640px) { .metodo-badge span { font-size: 16px; } }

.protocolo-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.protocolo-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  align-items: flex-start;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.protocolo-item.highlight {
  background-color: rgba(209, 120, 46, 0.1);
  border: 1.5px solid var(--orange);
}
@media (min-width: 640px) {
  .protocolo-item { gap: 20px; padding: 24px; }
}
.protocolo-num {
  font-family: var(--font-heading);
  font-weight: 400;
  color: #5C7E93;
  font-size: 1.15rem;
  line-height: 1;
  min-width: 2.2rem;
}
.protocolo-item.highlight .protocolo-num { color: var(--orange); }
.protocolo-content { flex: 1; }
.protocolo-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.protocolo-title {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--offwhite);
  font-size: 16px;
}
@media (min-width: 640px) { .protocolo-title { font-size: 18px; } }
.protocolo-tag {
  font-size: 10px;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  background-color: var(--orange);
  color: #fff;
  font-weight: 700;
}
.protocolo-desc {
  color: #9CA3A7;
  font-size: 14px;
  line-height: 1.625;
}
@media (min-width: 640px) { .protocolo-desc { font-size: 15px; } }

.metodo-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 56px;
}
@media (min-width: 640px) {
  .metodo-stats { grid-template-columns: repeat(3, 1fr); }
}
.metodo-stat {
  text-align: center;
  padding: 24px;
  background-color: rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 140px;
}
.metodo-stat-num {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--offwhite);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
}
.metodo-stat-label {
  color: #9CA3A7;
  font-size: 14px;
  margin-top: 4px;
}

/* ============================================
   COBERTURA
   ============================================ */
.cobertura.section { padding: 80px 24px; }
@media (min-width: 640px) { .cobertura.section { padding: 96px 24px; } }

.cobertura-title {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--navy);
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  line-height: 1.35;
  margin-bottom: 12px;
}
.cobertura-sub {
  color: var(--gray);
  font-weight: 500;
  font-size: 16px;
  margin-bottom: 40px;
  max-width: 672px;
}
@media (min-width: 640px) { .cobertura-sub { font-size: 18px; } }

.cobertura-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .cobertura-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (min-width: 1024px) {
  .cobertura-grid { grid-template-columns: repeat(4, 1fr); }
}
.cobertura-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  align-items: flex-start;
  height: 100%;
  background-color: #fff;
  border: 1px solid #DDDCD9;
}
.cobertura-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  background-color: var(--orange);
}
.cobertura-card h3 {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--navy);
  font-size: 15px;
  margin-bottom: 6px;
  line-height: 1.375;
}
.cobertura-card p {
  color: var(--gray);
  font-size: 13px;
  line-height: 1.625;
}
@media (min-width: 640px) {
  .cobertura-card h3 { font-size: 16px; }
  .cobertura-card p { font-size: 14px; }
}

/* ============================================
   CONFIDENCIALIDAD
   ============================================ */
.confidencialidad {
  padding: 64px 24px;
  background-color: var(--offwhite);
}
@media (min-width: 640px) { .confidencialidad { padding: 80px 24px; } }
.confidencialidad-inner { max-width: 768px; margin: 0 auto; }
.confidencialidad-box {
  padding: 28px;
  text-align: left;
  background-color: var(--navy);
  border: 3px solid var(--navy);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
@media (min-width: 640px) {
  .confidencialidad-box { padding: 40px; flex-direction: row; align-items: flex-start; gap: 28px; }
}
.confidencialidad-icon {
  display: flex;
  justify-content: flex-start;
  flex-shrink: 0;
  margin-bottom: 0;
}
.confidencialidad-text { flex: 1; }
.confidencialidad-main {
  font-weight: 700;
  color: var(--offwhite);
  font-size: 18px;
  line-height: 1.375;
  margin-bottom: 16px;
}
.confidencialidad-sub {
  color: #AEB4B8;
  font-weight: 500;
  font-size: 16px;
}
@media (min-width: 640px) {
  .confidencialidad-main { font-size: 24px; }
  .confidencialidad-sub { font-size: 18px; }
}

/* ============================================
   B5: CASOS
   ============================================ */
.casos-sub {
  color: var(--gray);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 48px;
  max-width: 672px;
}
@media (min-width: 640px) { .casos-sub { font-size: 18px; } }

.casos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) {
  .casos-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
.caso-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border: 1px solid #DDDCD9;
}
.caso-header {
  padding: 16px 24px;
  background-color: var(--navy);
}
.caso-header h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--offwhite);
  font-size: 13px;
}
@media (min-width: 640px) { .caso-header h3 { font-size: 14.5px; } }
.caso-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}
.caso-label {
  font-weight: 700;
  color: var(--gray);
  font-size: 12px;
  letter-spacing: 0.05em;
}
.caso-label.navy { color: var(--navy); }
.caso-text {
  color: #3A3D40;
  font-size: 14px;
  line-height: 1.625;
  margin-top: 6px;
}
@media (min-width: 640px) { .caso-text { font-size: 15px; } }
.caso-impacto {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--orange);
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  line-height: 1.25;
  margin-top: 4px;
}
.caso-diagnostico {
  padding-top: 4px;
  border-top: 1px solid #EAE9E6;
}
.casos-disclaimer {
  color: #9CA3A7;
  font-size: 12px;
  margin-top: 32px;
  max-width: 672px;
}

/* ============================================
   B6: CONTACTO
   ============================================ */
.contacto {
  position: relative;
  overflow: hidden;
}
.contacto-silhouette {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 40%;
}
.contacto-inner {
  position: relative;
  max-width: 672px;
  margin: 0 auto;
}
.contacto .section-title { text-align: center; }
.contacto-sub {
  color: #AEB4B8;
  font-size: 16px;
  margin-bottom: 40px;
  text-align: center;
}
@media (min-width: 640px) { .contacto-sub { font-size: 18px; } }

.contacto-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}
@media (min-width: 640px) {
  .contacto-buttons { flex-direction: row; }
}
.btn-primary,
.btn-outline {
  flex: 1;
  text-align: center;
  padding: 16px 24px;
  font-weight: 600;
  font-size: 16px;
  min-height: 48px;
  font-family: var(--font-body);
  transition: transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-primary { background-color: var(--orange); color: #fff; }
.btn-outline { border: 2px solid var(--offwhite); color: var(--offwhite); }
.btn-primary:hover, .btn-outline:hover { transform: scale(1.02); }
.btn-primary:active, .btn-outline:active { transform: scale(0.98); }

.contacto-info {
  text-align: center;
  margin-bottom: 48px;
}
.contacto-info .name { font-size: 14px; color: #C9CDD0; }
.contacto-info .mail { font-size: 14px; color: #9CA3A7; margin-bottom: 12px; }
.contacto-info .note { font-size: 12px; letter-spacing: 0.025em; color: #6E767B; }

.contacto-form-panel {
  padding: 24px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
@media (min-width: 640px) { .contacto-form-panel { padding: 32px; } }

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-field label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.025em;
  color: #C9CDD0;
  margin-bottom: 6px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  outline: none;
  border: none;
  background-color: var(--offwhite);
  color: var(--navy);
  font-family: var(--font-body);
}
.form-field input { min-height: 48px; }
.form-field textarea { resize: none; }

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  display: none;
  color: #E8A87C;
  font-size: 13px;
}
.form-error.show { display: block; }

.form-submit {
  margin-top: 8px;
  padding: 16px 24px;
  font-weight: 600;
  font-size: 16px;
  min-height: 48px;
  background-color: var(--orange);
  color: #fff;
  font-family: var(--font-body);
  transition: transform 0.2s;
}
.form-submit:hover { transform: scale(1.01); }
.form-submit:active { transform: scale(0.98); }
.form-submit:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.form-sent {
  display: none;
  text-align: center;
  padding: 24px 0;
}
.form-sent.show { display: block; }
.form-fields.hide { display: none; }
.form-sent-title {
  font-weight: 700;
  color: var(--orange);
  font-size: 18px;
  margin-bottom: 8px;
}
.form-sent-sub { color: #C9CDD0; font-size: 14px; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 40px 24px;
  background-color: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-credit {
  flex-shrink: 0;
  font-size: 10px;
  color: #F1F1EF;
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.footer-credit:hover { text-decoration: underline; }
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: center;
}
@media (min-width: 640px) {
  .footer-inner { flex-direction: row; align-items: flex-start; text-align: left; }
}
.footer-brand {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--offwhite);
  font-size: 12px;
}
.footer-contact {
  color: #8A9094;
  font-size: 12px;
  margin-top: 4px;
}
.footer-legal {
  color: #6E767B;
  font-size: 11px;
  max-width: 448px;
  line-height: 1.625;
}
