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

/* ===== VARIABLES ===== */
:root {
  --bg-primary: #0B0B0C;
  --bg-secondary: #101114;
  --bg-card: #111214;
  --green: #00E08A;
  --green-dim: rgba(0, 224, 138, 0.08);
  --green-border: rgba(0, 224, 138, 0.25);
  --white: #ffffff;
  --zinc-300: #d4d4d8;
  --zinc-400: #a1a1aa;
  --border: rgba(255,255,255,0.06);
  --border-subtle: rgba(255,255,255,0.05);
}

/* ===== BASE ===== */
html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  color: var(--white);
  background-color: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Fira Sans', sans-serif;
  line-height: 1.2;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ===== GRAIN TEXTURE ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.container--narrow { max-width: 960px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.container--wide { max-width: 1400px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background-color 0.3s ease, border-bottom 0.3s ease;
  background-color: transparent;
}

.header.scrolled {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo img { height: 44px; width: auto; }

.header__nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.header__nav a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.8);
  transition: color 0.2s;
  text-transform: uppercase;
}

.header__nav a:hover { color: var(--green); }

.header__cta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--green) !important;
  border: 1px solid var(--green-border);
  padding: 9px 20px;
  transition: background-color 0.2s, color 0.2s !important;
}

.header__cta:hover {
  background-color: var(--green) !important;
  color: #000 !important;
}

.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.header__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  transition: all 0.3s;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
  gap: 4px;
}

.mobile-nav a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  padding: 10px 0;
  transition: color 0.2s;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-nav a:hover { color: var(--green); }

.mobile-nav .header__cta {
  margin-top: 8px;
  text-align: center;
  padding: 12px;
  border-radius: 0;
}

.mobile-nav.open { display: flex; }

/* ===== HERO ===== */
.hero {
  padding: 160px 0 100px;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

/* Radial gradient verde sutil detrás del hero */
.hero::after {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(0, 224, 138, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero__label {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 28px;
  max-width: 700px;
  position: relative;
  z-index: 1;
}

.hero__desc {
  font-size: 18px;
  color: var(--zinc-400);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.hero__sub {
  font-size: 13px;
  color: #71717a;
  margin-bottom: 44px;
  position: relative;
  z-index: 1;
}

/* ===== BUTTON CTA ===== */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  background-color: var(--green);
  color: #000;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: opacity 0.2s;
  z-index: 1;
}

.btn-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.btn-cta:hover::after { left: 150%; }
.btn-cta:hover { opacity: 0.92; }

.btn-cta--outline {
  background-color: transparent;
  color: var(--green);
  border: 1px solid var(--green-border);
  transition: background-color 0.2s, color 0.2s;
}

.btn-cta--outline:hover {
  background-color: var(--green);
  color: #000;
}

.btn-cta--outline::after { display: none; }

/* ===== SECTIONS ===== */
.section { padding: 96px 0; }
.section--alt { background-color: var(--bg-secondary); }
.section--border { border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }

.section__label {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 20px;
}

.section__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 20px;
  max-width: 680px;
}

.section__desc {
  font-size: 17px;
  color: var(--zinc-400);
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 56px;
}

/* ===== DIVISOR ===== */
.divisor {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  padding: 36px 0;
  text-align: center;
}

.divisor p {
  font-size: 15px;
  color: var(--zinc-300);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== CARDS GRID ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  padding: 28px;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background-color: var(--green);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s ease;
}

.card:hover { border-color: var(--green-border); transform: translateY(-2px); }
.card:hover::before { transform: scaleY(1); }

.card__icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background-color: #000;
  border: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 20px;
}

.card__icon svg { width: 20px; height: 20px; stroke: var(--green); fill: none; }

.card__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.3;
}

.card__desc {
  font-size: 14px;
  color: var(--zinc-400);
  line-height: 1.6;
}

/* Cards 2 columnas */
.cards-grid--2 { grid-template-columns: repeat(2, 1fr); }

/* ===== METODOLOGÍA ===== */
.metodologia-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.metodo__number {
  font-size: 52px;
  font-weight: 800;
  font-family: 'Fira Sans', sans-serif;
  background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.04) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  line-height: 1;
}

.metodo__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.3;
}

.metodo__desc { font-size: 14px; color: var(--zinc-400); line-height: 1.6; }

/* ===== EXPERIENCIA BOX ===== */
.experiencia-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.experiencia-box {
  border: 1px solid var(--border);
  background-color: var(--bg-primary);
  padding: 40px;
}

.experiencia-item {
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border-subtle);
}

.experiencia-item:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: none; }

.experiencia-item__label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--zinc-400);
  margin-bottom: 8px;
}

.experiencia-item__value { font-size: 22px; font-weight: 600; }

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 96px 0;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.cta-section__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 24px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section__desc {
  font-size: 17px;
  color: var(--zinc-400);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 48px;
}

.cta-section__note { font-size: 13px; color: #71717a; margin-bottom: 40px; }

/* ===== NOTA INFO ===== */
.info-note {
  border: 1px solid var(--border);
  background-color: var(--bg-secondary);
  padding: 28px 32px;
  margin-top: 32px;
}

.info-note p { color: var(--zinc-300); line-height: 1.7; font-size: 15px; }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  border: 1px solid var(--border);
  background-color: var(--bg-card);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 24px 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  color: white;
}

.faq-question h2 {
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.faq-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background-color: var(--green-dim);
  display: flex; align-items: center; justify-content: center;
  color: var(--green);
  margin-top: 2px;
  transition: background-color 0.2s;
}

.faq-item.open .faq-icon { background-color: rgba(0,224,138,0.15); }

.faq-icon svg {
  width: 14px; height: 14px;
  stroke: var(--green);
  fill: none;
  transition: transform 0.3s ease;
}

.faq-item.open .faq-icon svg { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer__inner {
  padding: 0 28px 24px;
  border-left: 2px solid var(--green);
  margin-left: 28px;
  margin-right: 28px;
}

.faq-answer p { font-size: 15px; color: var(--zinc-400); line-height: 1.7; }

/* ===== FORMULARIOS ===== */
.form-wrapper {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  padding: 48px;
}

.form-group { margin-bottom: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--zinc-300);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.input-wrap { position: relative; }

.input-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  stroke: #52525b;
  fill: none;
  pointer-events: none;
  transition: stroke 0.2s;
}

.input-wrap.textarea-wrap svg { top: 16px; transform: none; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
select,
textarea {
  width: 100%;
  background-color: #000;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 13px 16px 13px 42px;
  color: white;
  font-size: 14px;
  font-family: 'Barlow', sans-serif;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}

select { padding-right: 40px; cursor: pointer; }
textarea { padding: 13px 16px 13px 42px; resize: none; }

input:focus, select:focus, textarea:focus {
  border-color: var(--green);
}

input:focus + svg,
select:focus + svg,
textarea:focus + svg,
.input-wrap:focus-within svg {
  stroke: var(--green);
}

input::placeholder, textarea::placeholder { color: #3f3f46; }

.radio-group, .checkbox-group { display: flex; flex-direction: column; gap: 12px; }

.radio-label, .checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  color: var(--zinc-300);
  margin-bottom: 0;
}

input[type="radio"], input[type="checkbox"] {
  width: 16px; height: 16px;
  padding: 0;
  accent-color: var(--green);
  cursor: pointer;
  flex-shrink: 0;
}

.form-note { font-size: 12px; color: #52525b; text-align: center; margin-top: 16px; }

.alert {
  padding: 14px 18px;
  font-size: 13px;
  margin-bottom: 24px;
  display: none;
}

.alert--success {
  border: 1px solid rgba(0,224,138,0.3);
  background-color: rgba(0,224,138,0.05);
  color: var(--green);
}

.alert--error {
  border: 1px solid rgba(239,68,68,0.3);
  background-color: rgba(239,68,68,0.05);
  color: #f87171;
}

.alert.show { display: block; }

/* ===== FOOTER ===== */
.footer {
  background-color: var(--bg-primary);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 64px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__logo { margin-bottom: 28px; }
.footer__logo img { height: 36px; width: auto; }

.footer__offices { display: flex; flex-direction: column; gap: 20px; }

.footer__office { display: flex; gap: 12px; }

.footer__office svg {
  width: 16px; height: 16px;
  stroke: var(--green);
  fill: none;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer__office p { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.footer__office span { font-size: 12px; color: rgba(255,255,255,0.45); display: block; }

.footer__nav-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--zinc-400);
  margin-bottom: 20px;
}

.footer__nav { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }

.footer__nav a {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.footer__nav a:hover { color: var(--green); }

.footer__email {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer__email svg { width: 16px; height: 16px; stroke: var(--green); fill: none; }

.footer__email a {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.footer__email a:hover { color: var(--green); }

.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

.footer__bottom p { font-size: 12px; color: rgba(255,255,255,0.3); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .metodologia-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .experiencia-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .header__nav { display: none; }
  .header__burger { display: flex; }
  .cards-grid { grid-template-columns: 1fr; }
  .cards-grid--2 { grid-template-columns: 1fr; }
  .metodologia-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 40px; }
  .form-wrapper { padding: 28px 20px; }
  .hero { padding: 120px 0 80px; }
  .section { padding: 64px 0; }
}

@media (max-width: 480px) {
  .metodologia-grid { grid-template-columns: 1fr; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}

.fade-up:nth-child(1) { animation-delay: 0.1s; }
.fade-up:nth-child(2) { animation-delay: 0.2s; }
.fade-up:nth-child(3) { animation-delay: 0.3s; }
.fade-up:nth-child(4) { animation-delay: 0.4s; }
.fade-up:nth-child(5) { animation-delay: 0.5s; }
.fade-up:nth-child(6) { animation-delay: 0.6s; }

/* ===== CHAT WIDGET ===== */
.chat-widget { position:fixed; bottom:28px; right:28px; z-index:999; }

.chat-btn { width:56px; height:56px; border-radius:50%; background:var(--green); border:none; cursor:pointer; display:flex; align-items:center; justify-content:center; box-shadow:0 4px 24px rgba(0,224,138,0.35); transition:transform 0.2s, box-shadow 0.2s; }
.chat-btn:hover { transform:scale(1.08); box-shadow:0 6px 32px rgba(0,224,138,0.5); }
.chat-btn svg { width:24px; height:24px; stroke:#000; fill:none; }
.chat-btn .chat-btn__close { display:none; }
.chat-widget.open .chat-btn__open { display:none; }
.chat-widget.open .chat-btn__close { display:block; }

.chat-bubble { position:absolute; bottom:68px; right:0; width:340px; background:#111214; border:1px solid var(--border); box-shadow:0 8px 40px rgba(0,0,0,0.6); display:none; flex-direction:column; overflow:hidden; }
.chat-widget.open .chat-bubble { display:flex; }

.chat-bubble__header { background:#0B0B0C; border-bottom:1px solid var(--border); padding:14px 16px; display:flex; align-items:center; gap:10px; }
.chat-bubble__avatar { width:32px; height:32px; border-radius:50%; background:var(--green-dim); border:1px solid var(--green-border); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.chat-bubble__avatar svg { width:16px; height:16px; stroke:var(--green); fill:none; }
.chat-bubble__info p { font-size:13px; font-weight:600; }
.chat-bubble__info span { font-size:11px; color:var(--green); }

.chat-bubble__messages { flex:1; padding:16px; overflow-y:auto; display:flex; flex-direction:column; gap:12px; max-height:320px; min-height:200px; }

.chat-msg { max-width:85%; padding:10px 14px; font-size:13px; line-height:1.5; }
.chat-msg--bot { background:#1a1c1f; border:1px solid var(--border); color:var(--zinc-300); align-self:flex-start; }
.chat-msg--user { background:var(--green); color:#000; font-weight:500; align-self:flex-end; }
.chat-msg--typing { display:flex; gap:4px; align-items:center; }
.chat-msg--typing span { width:6px; height:6px; background:var(--zinc-400); border-radius:50%; animation:typing 1.2s infinite; }
.chat-msg--typing span:nth-child(2) { animation-delay:0.2s; }
.chat-msg--typing span:nth-child(3) { animation-delay:0.4s; }
@keyframes typing { 0%,60%,100% { opacity:0.3; transform:translateY(0); } 30% { opacity:1; transform:translateY(-3px); } }

.chat-bubble__input { border-top:1px solid var(--border); display:flex; align-items:center; gap:8px; padding:10px 12px; }
.chat-bubble__input input { flex:1; background:#000; border:1px solid rgba(255,255,255,0.08); padding:10px 14px; color:white; font-size:13px; font-family:'Barlow',sans-serif; outline:none; transition:border-color 0.2s; }
.chat-bubble__input input:focus { border-color:var(--green); }
.chat-bubble__input input::placeholder { color:#3f3f46; }
.chat-send { width:36px; height:36px; background:var(--green); border:none; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:opacity 0.2s; }
.chat-send:hover { opacity:0.85; }
.chat-send svg { width:16px; height:16px; stroke:#000; fill:none; }

@media (max-width:480px) {
  .chat-bubble { width:calc(100vw - 32px); right:-12px; }
  .chat-widget { bottom:20px; right:16px; }
}
