/* ============================================
   FIBONACCI TBS v2 - CON ANIMACIONES AVANZADAS
   ============================================ */

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #0a0a0a;
  background: #FAFAF7;
  width: 100%;
  overflow-x: hidden;
  font-weight: 400;
  line-height: 1.5;
}

.italic {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
}

.mono.red { color: #CC1F1A; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #CC1F1A, #0a0a0a);
  z-index: 1000;
  width: 0%;
  transition: width 0.1s ease-out;
}

/* ============================================
   REVEAL ANIMATIONS (al hacer scroll)
   ============================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger {
  transition-delay: calc(var(--stagger, 0) * 0.1s);
}

/* ============================================
   NAVEGACIÓN
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  background: rgba(250,250,247,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 0.5px solid rgba(0,0,0,0.08);
  z-index: 100;
  transition: padding 0.3s, background 0.3s;
}

.nav.scrolled {
  padding: 0.5rem 2rem;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 56px;
  width: auto;
  transition: height 0.3s;
}

.nav.scrolled .logo-img { height: 46px; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: #666;
  font-size: 13px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #CC1F1A;
  transition: width 0.3s;
}

.nav-links a:hover { color: #0a0a0a; }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: #0a0a0a;
  color: #FAFAF7;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 100px;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  background: #CC1F1A;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 4rem 2rem 5rem;
  position: relative;
  overflow: hidden;
  background: #FAFAF7;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: rgba(204,31,26,0.08);
  border-radius: 100px;
  margin-bottom: 2rem;
}

.hero-tag .mono {
  color: #CC1F1A;
  font-size: 10px;
}

.hero-tag-dot {
  width: 6px;
  height: 6px;
  background: #CC1F1A;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero h1 {
  font-size: clamp(2.5rem, 6.5vw, 5rem);
  line-height: 0.98;
  color: #0a0a0a;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.hero h1 .italic {
  color: #CC1F1A;
  letter-spacing: -0.02em;
  font-size: 1.05em;
  line-height: 0.95;
  display: inline-block;
  animation: wobble 6s ease-in-out infinite;
}

@keyframes wobble {
  0%, 100% { transform: rotate(-1deg); }
  50% { transform: rotate(1deg); }
}

.hero-sub {
  font-size: 17px;
  line-height: 1.5;
  color: #555;
  max-width: 480px;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  background: #0a0a0a;
  color: #FAFAF7;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 100px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
  font-family: inherit;
}

.btn:hover {
  background: #CC1F1A;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(204,31,26,0.3);
}

.btn-text {
  color: #0a0a0a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  transition: gap 0.2s;
}

.btn-text:hover { gap: 12px; }

.btn-text::after {
  content: '→';
  transition: transform 0.2s;
}

/* Hero visual - bloques flotantes */
.hero-visual {
  position: relative;
  height: 480px;
}

.hero-block {
  position: absolute;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-block:hover {
  transform: translateY(-8px) scale(1.04) !important;
  z-index: 5;
}

.block-1 {
  top: 0;
  left: 0;
  width: 65%;
  height: 55%;
  background: #0a0a0a;
  color: #FAFAF7;
  animation: floatUp 6s ease-in-out infinite;
}

.block-2 {
  top: 8%;
  right: 0;
  width: 42%;
  height: 38%;
  background: #CC1F1A;
  color: #FAFAF7;
  animation: floatUp 7s ease-in-out infinite reverse;
}

.block-3 {
  bottom: 0;
  left: 5%;
  width: 45%;
  height: 42%;
  background: #FAFAF7;
  border: 1.5px solid #0a0a0a;
  color: #0a0a0a;
  animation: floatUp 8s ease-in-out infinite;
}

.block-4 {
  bottom: 12%;
  right: 5%;
  width: 42%;
  height: 38%;
  background: #0a0a0a;
  color: #FAFAF7;
  animation: floatUp 7.5s ease-in-out infinite reverse;
}

@keyframes floatUp {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.block-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.7;
}

.block-num {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.block-num .italic {
  font-size: 0.65em;
  color: #CC1F1A;
}

.block-2 .block-num .italic {
  color: #FAFAF7;
  opacity: 0.6;
}

.block-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

/* Indicador de scroll */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #999;
  animation: fadeInUp 1s ease-out 1.5s both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, transparent, #CC1F1A);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -32px;
  left: 0;
  width: 100%;
  height: 32px;
  background: linear-gradient(to bottom, #CC1F1A, transparent);
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { transform: translateY(0); }
  100% { transform: translateY(64px); }
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee-band {
  background: #0a0a0a;
  color: #FAFAF7;
  padding: 1.25rem 0;
  overflow: hidden;
  border-top: 0.5px solid rgba(255,255,255,0.1);
}

.marquee {
  display: flex;
  gap: 3rem;
  align-items: center;
  white-space: nowrap;
  animation: scroll 35s linear infinite;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #FAFAF7;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.marquee-dot {
  width: 5px;
  height: 5px;
  background: #CC1F1A;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================
   SECCIÓN HEADERS
   ============================================ */
.section-header {
  margin-bottom: 3rem;
  max-width: 700px;
}

.section-header .mono { margin-bottom: 1rem; }

.section-header h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-header h2 .italic {
  color: #CC1F1A;
  font-size: 1.1em;
}

.section-sub {
  font-size: 16px;
  color: #666;
  line-height: 1.5;
  margin-top: 1.25rem;
  max-width: 580px;
}

.sintomas .section-sub, .diff .section-sub { color: #aaa; }

/* ============================================
   SÍNTOMAS
   ============================================ */
.sintomas {
  background: #0a0a0a;
  color: #FAFAF7;
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
}

.sintomas .section-header h2 { color: #FAFAF7; }

.sintomas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.1);
  border: 0.5px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  overflow: hidden;
}

.sintoma {
  background: #0a0a0a;
  padding: 1.75rem 1.5rem;
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.sintoma::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: #CC1F1A;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s;
}

.sintoma:hover { background: #1a1a1a; }
.sintoma:hover::before { transform: scaleY(1); }

.sintoma-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #666;
  font-weight: 500;
  transition: color 0.3s;
}

.sintoma:hover .sintoma-num { color: #CC1F1A; }

.sintoma p {
  font-size: 15px;
  line-height: 1.4;
  color: #FAFAF7;
  font-weight: 500;
}

.sintoma-arrow {
  font-size: 18px;
  color: #CC1F1A;
  align-self: flex-end;
  transform: translateX(-8px);
  opacity: 0;
  transition: all 0.3s;
}

.sintoma:hover .sintoma-arrow {
  opacity: 1;
  transform: translateX(0);
}

.sintomas-bottom {
  margin-top: 3rem;
  text-align: center;
}

.sintomas-bottom p {
  color: #999;
  font-size: 14px;
  margin-bottom: 1.25rem;
}

.btn-light {
  background: #FAFAF7;
  color: #0a0a0a;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 100px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
  font-family: inherit;
}

.btn-light:hover {
  background: #CC1F1A;
  color: #FAFAF7;
  transform: translateY(-2px);
}

/* ============================================
   SERVICIOS - BENTO GRID
   ============================================ */
.servicios {
  padding: 6rem 2rem;
  background: #FAFAF7;
}

.servicios .section-header h2 { color: #0a0a0a; }

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 220px;
  gap: 1rem;
}

.card {
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.card.dark {
  background: #0a0a0a;
  color: #FAFAF7;
}

.card.red {
  background: #CC1F1A;
  color: #FAFAF7;
}

.card.light {
  background: #fff;
  color: #0a0a0a;
  border: 0.5px solid rgba(0,0,0,0.1);
}

.card.dashed {
  background: #FAFAF7;
  color: #0a0a0a;
  border: 1.5px dashed rgba(204,31,26,0.3);
}

.card.with-image {
  background-size: cover;
  background-position: center;
  color: #FAFAF7;
  padding: 0;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.85) 100%);
  transition: background 0.4s;
}

.card.with-image:hover .card-overlay {
  background: linear-gradient(180deg, rgba(204,31,26,0.3) 0%, rgba(10,10,10,0.9) 100%);
}

.card-content {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-tag {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-tag-dot {
  width: 6px;
  height: 6px;
  background: #CC1F1A;
  border-radius: 50%;
}

.card-tag-dot.red { background: #CC1F1A; }

.card.red .card-tag-dot,
.card.dark .card-tag-dot,
.card.with-image .card-tag-dot {
  background: #FAFAF7;
}

.card-title {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.card-title .italic { color: #CC1F1A; }

.card.red .card-title .italic,
.card.dark .card-title .italic,
.card.with-image .card-title .italic {
  color: #FAFAF7;
  opacity: 0.8;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.8;
  margin-top: 1rem;
}

.card-meta.red-text { color: #CC1F1A; opacity: 1; }

.card-arrow {
  font-size: 20px;
  transition: transform 0.3s;
}

.card:hover .card-arrow {
  transform: translate(4px, -4px);
}

/* Posiciones bento */
.b1 { grid-column: span 4; grid-row: span 2; }
.b1 .card-title { font-size: 36px; }
.b2 { grid-column: span 2; grid-row: span 1; }
.b3 { grid-column: span 2; grid-row: span 1; }
.b4 { grid-column: span 3; grid-row: span 1; }
.b5 { grid-column: span 3; grid-row: span 1; }

/* ============================================
   DIFERENCIADOR (sección roja)
   ============================================ */
.diff {
  background: #CC1F1A;
  color: #FAFAF7;
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
}

.diff::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  top: -300px;
  right: -200px;
  animation: floatUp 12s ease-in-out infinite;
}

.diff::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: rgba(0,0,0,0.1);
  border-radius: 50%;
  bottom: -200px;
  left: -100px;
  animation: floatUp 10s ease-in-out infinite reverse;
}

.diff .container { position: relative; z-index: 2; }

.diff-quote {
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1.1;
  color: #FAFAF7;
  font-weight: 700;
  letter-spacing: -0.03em;
  max-width: 900px;
}

.diff-quote .italic { font-size: 1.05em; }

.diff-sub {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
  margin-top: 2rem;
  max-width: 700px;
  font-weight: 300;
}

.diff-sub strong {
  display: block;
  margin-top: 1rem;
  color: #FAFAF7;
  font-weight: 600;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 0.5px solid rgba(255,255,255,0.25);
}

.pillar {
  padding: 0 1rem 0 0;
  border-right: 0.5px solid rgba(255,255,255,0.25);
  transition: transform 0.3s;
  cursor: default;
}

.pillar:last-child { border-right: none; }
.pillar:hover { transform: translateY(-6px); }

.pillar-num {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: #FAFAF7;
}

.pillar-num .italic {
  font-size: 0.4em;
  color: rgba(255,255,255,0.6);
  vertical-align: super;
  margin-left: 4px;
}

.pillar-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}

.sectores {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 0.5px solid rgba(255,255,255,0.25);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sectores-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sector {
  font-size: 12px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.08);
  border: 0.5px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  color: #FAFAF7;
  transition: all 0.3s;
  cursor: default;
}

.sector:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

/* ============================================
   PROCESO
   ============================================ */
.proceso {
  padding: 6rem 2rem;
  background: #FAFAF7;
}

.proceso .section-header h2 { color: #0a0a0a; }

.pasos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.paso {
  background: #fff;
  border: 0.5px solid rgba(0,0,0,0.1);
  border-radius: 14px;
  padding: 1.5rem;
  transition: all 0.3s;
  cursor: default;
}

.paso:hover {
  transform: translateY(-4px);
  border-color: #CC1F1A;
  box-shadow: 0 15px 40px rgba(204,31,26,0.1);
}

.paso-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.paso-circle {
  width: 36px;
  height: 36px;
  background: #0a0a0a;
  color: #FAFAF7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.3s;
}

.paso:hover .paso-circle { background: #CC1F1A; }

.paso-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #999;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.paso h4 {
  font-size: 18px;
  font-weight: 600;
  color: #0a0a0a;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.paso p {
  font-size: 13px;
  line-height: 1.5;
  color: #666;
}

/* ============================================
   FORMULARIOS (CV / Contacto)
   ============================================ */
.forms {
  padding: 6rem 2rem;
  background: #FAFAF7;
  position: relative;
}

.forms .section-header h2 { color: #0a0a0a; }
.forms .section-sub { color: #666; }

/* Switch entre formularios */
.form-switch {
  display: inline-flex;
  background: #fff;
  border: 0.5px solid rgba(0,0,0,0.15);
  border-radius: 100px;
  padding: 4px;
  margin-bottom: 2.5rem;
  position: relative;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.form-switch-btn {
  background: transparent;
  border: none;
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  color: #666;
  cursor: pointer;
  border-radius: 100px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.form-switch-btn:hover { color: #0a0a0a; }

.form-switch-btn.active {
  background: #0a0a0a;
  color: #FAFAF7;
}

.switch-dot {
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  opacity: 0.4;
  transition: opacity 0.3s;
}

.form-switch-btn.active .switch-dot {
  background: #CC1F1A;
  opacity: 1;
}

/* Tarjeta del formulario */
.form-card {
  background: #fff;
  border: 0.5px solid rgba(0,0,0,0.1);
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 720px;
  display: none;
  animation: formFadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.form-card.active { display: block; }

@keyframes formFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-intro {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 0.5px solid rgba(0,0,0,0.08);
}

.form-intro .mono { margin-bottom: 0.75rem; }

.form-intro h3 {
  font-size: 24px;
  font-weight: 700;
  color: #0a0a0a;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.form-desc {
  font-size: 14px;
  color: #666;
  margin-top: 0.75rem;
  line-height: 1.5;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field.full { grid-column: span 2; }

.form-field label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #666;
  font-weight: 500;
}

.form-field input,
.form-field select,
.form-field textarea {
  border: 0.5px solid rgba(0,0,0,0.15);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  color: #0a0a0a;
  background: #FAFAF7;
  transition: all 0.2s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #CC1F1A;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(204,31,26,0.08);
}

.form-field textarea {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

.form-field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* Campo de archivo (CV upload) */
.file-label {
  border: 1.5px dashed rgba(204,31,26,0.3);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: rgba(204,31,26,0.02);
}

.file-label:hover {
  border-color: #CC1F1A;
  background: rgba(204,31,26,0.05);
}

.file-label > span:first-of-type {
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #0a0a0a !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.file-info {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #999;
  letter-spacing: 1px;
}

.file-label input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.file-name {
  font-size: 12px;
  color: #CC1F1A;
  font-weight: 500;
  margin-top: 4px;
  font-family: 'Inter', sans-serif !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.form-submit {
  width: 100%;
  justify-content: center;
  font-size: 15px;
  padding: 16px;
}

.form-note {
  text-align: center;
  font-size: 12px;
  color: #999;
  margin-top: 1rem;
  font-style: italic;
}

/* Mensaje de éxito */
.form-success {
  display: none;
  background: #fff;
  border: 0.5px solid rgba(45,147,108,0.3);
  border-radius: 16px;
  padding: 3rem;
  max-width: 720px;
  text-align: center;
  animation: formFadeIn 0.5s;
}

.form-success.active { display: block; }

.success-icon {
  width: 64px;
  height: 64px;
  background: #2D936C;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 1.5rem;
  animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleIn {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

.form-success h3 {
  font-size: 24px;
  font-weight: 700;
  color: #0a0a0a;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.form-success p {
  font-size: 14px;
  color: #666;
}

/* Responsive de formularios */
@media (max-width: 600px) {
  .form-card { padding: 1.5rem; }
  .form-grid { grid-template-columns: 1fr; gap: 1rem; }
  .form-field.full { grid-column: span 1; }
  .form-switch { flex-direction: column; width: 100%; max-width: 320px; }
  .form-switch-btn { width: 100%; justify-content: center; }
}

/* ============================================
   CTA FINAL
   ============================================ */
.cta-final {
  padding: 6rem 2rem 7rem;
  background: #FAFAF7;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(204,31,26,0.08) 0%, transparent 70%);
  top: -300px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.cta-bg-text {
  position: absolute;
  bottom: -3rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(8rem, 18vw, 16rem);
  color: rgba(204,31,26,0.05);
  font-weight: 400;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

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

.cta-final h2 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.02;
  color: #0a0a0a;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.cta-final h2 .italic {
  color: #CC1F1A;
  font-size: 1.1em;
}

.cta-desc {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto 2rem;
}

.cta-availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #666;
  margin-top: 1.5rem;
  padding: 8px 16px;
  background: rgba(45,147,108,0.08);
  border-radius: 100px;
}

.cta-availability .dot {
  width: 8px;
  height: 8px;
  background: #2D936C;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #0a0a0a;
  padding: 3rem 2rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  height: 60px;
  width: auto;
}

.footer h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #FAFAF7;
  margin-bottom: 1rem;
  font-weight: 500;
}

.footer a {
  display: block;
  color: #888;
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.footer a:hover { color: #CC1F1A; }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 0.5px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 11px;
  color: #555;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 380px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .b1, .b2, .b3, .b4, .b5 {
    grid-column: span 2;
    grid-row: span 1;
  }
  .b1 .card-title { font-size: 28px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .scroll-indicator { display: none; }
}

@media (max-width: 600px) {
  .nav { padding: 0.75rem 1rem; }
  .nav-links { display: none; }
  .logo-img { height: 40px; }
  .hero { padding: 3rem 1.25rem 4rem; min-height: auto; }
  .hero-visual { height: 320px; }
  .sintomas, .servicios, .diff, .proceso, .cta-final {
    padding: 4rem 1.25rem;
  }
  .bento { grid-template-columns: 1fr; }
  .b1, .b2, .b3, .b4, .b5 { grid-column: span 1; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* Respeta preferencia de reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
