/* =========================================================
   MATÍAS AGUILANTE — DESARROLLO WEB
   ========================================================= */

:root {
  --bg: #07100C;
  --bg-grad-1: #08120D;
  --bg-grad-2: #050A08;
  --green: #25D366;
  --green-hover: #1EA855;
  --white: #FFFFFF;
  --text-60: rgba(255, 255, 255, .6);
  --text-80: rgba(255, 255, 255, .8);
  --alt-bg: #E9E7E2;
  --border: rgba(255, 255, 255, .1);
  --border-soft: rgba(255, 255, 255, .06);

  --font-head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;

  --container: 1180px;
  --radius: 18px;
  --radius-lg: 26px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; line-height: .92; margin: 0; }
p { margin: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green);
  color: var(--bg);
  padding: 12px 18px;
  z-index: 1000;
  font-weight: 700;
}
.skip-link:focus { left: 16px; top: 16px; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

/* ---------- Decorative layers ---------- */
.bg-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 40%, transparent 90%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 40%, transparent 90%);
}

.halo {
  position: absolute;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.halo-top { top: -220px; right: -180px; background: radial-gradient(circle, rgba(37,211,102,.30) 0%, transparent 70%); }
.halo-bottom { bottom: -220px; left: -220px; background: radial-gradient(circle, rgba(37,211,102,.16) 0%, transparent 70%); }

.rings {
  position: absolute;
  top: 40px;
  right: 40px;
  width: 220px;
  height: 220px;
  pointer-events: none;
  z-index: 0;
}
.rings span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(37, 211, 102, .35);
}
.rings span:nth-child(2) { inset: 30px; border-color: rgba(37, 211, 102, .22); }
.rings span:nth-child(3) { inset: 60px; border-color: rgba(37, 211, 102, .14); }

.separator {
  width: 132px;
  height: 5px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--green), transparent);
  margin: 18px 0 0;
}

.kicker {
  font-family: var(--font-body);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .8rem;
  color: var(--green);
  margin: 0 0 10px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .95rem;
  padding: 14px 26px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--green);
  color: #07100C;
}
.btn-primary:hover { background: var(--green-hover); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(37,211,102,.25); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }
.btn-lg { padding: 16px 30px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-header { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(7, 16, 12, .55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(7, 16, 12, .88);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}
.logo {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.25rem;
  letter-spacing: .02em;
  line-height: 1;
  white-space: nowrap;
}
.logo span { color: var(--green); margin-left: .35em; }

.main-nav { display: none; }
.main-nav ul { display: flex; gap: 28px; }
.nav-link {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-80);
  position: relative;
  padding: 6px 0;
  transition: color .2s var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--green);
  transition: width .25s var(--ease);
}
.nav-link:hover { color: var(--white); }
.nav-link.active { color: var(--green); }
.nav-link.active::after { width: 100%; }

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0;
  align-items: center;
}
.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--white);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 68px;
  left: 0; right: 0;
  bottom: 0;
  background: var(--bg-grad-2);
  border-top: 1px solid var(--border-soft);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  z-index: 190;
  overflow-y: auto;
}
.mobile-menu.open { opacity: 1; transform: translateY(0); visibility: visible; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu .nav-link { display: block; font-size: 1.1rem; padding: 12px 4px; border-bottom: 1px solid var(--border-soft); }

/* ---------- Layout helpers ---------- */
.section { position: relative; padding: 110px 0; }
.section-alt { background: linear-gradient(180deg, var(--bg-grad-1), var(--bg-grad-2)); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 5vw, 3.1rem); }
.section-head .separator { margin-left: auto; margin-right: auto; }
.section-lead { color: var(--text-80); margin-top: 18px; font-size: 1.05rem; }

.grid { display: grid; gap: 22px; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 150px 0 100px;
  overflow: hidden;
  background: radial-gradient(ellipse 120% 80% at 50% -10%, var(--bg-grad-1), var(--bg));
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 60px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  margin: 6px 0 24px;
}
.hero-text {
  color: var(--text-80);
  font-size: 1.1rem;
  max-width: 46ch;
  margin-bottom: 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 48px; }

.hero-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border-soft);
}
.fact { display: flex; flex-direction: column; gap: 4px; }
.fact-value { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; text-transform: uppercase; color: var(--green); line-height: 1; }
.fact-label { font-size: .78rem; color: var(--text-60); text-transform: uppercase; letter-spacing: .1em; }

/* Hero visual mockups */
.hero-visual { position: relative; min-height: 380px; }
.mock-browser {
  position: relative;
  background: linear-gradient(160deg, #0b1710, #060d09);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px rgba(0,0,0,.5);
  overflow: hidden;
  z-index: 2;
}
.mock-browser-bar { display: flex; gap: 6px; padding: 14px 16px; border-bottom: 1px solid var(--border-soft); }
.mock-browser-bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.15); }
.mock-browser-body { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.mock-line { height: 10px; border-radius: 6px; background: rgba(255,255,255,.08); }
.mock-line.w-40 { width: 40%; }
.mock-line.w-50 { width: 50%; }
.mock-line.w-60 { width: 60%; }
.mock-line.w-70 { width: 70%; }
.mock-line.w-80 { width: 80%; }
.mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0; }
.mock-grid span, .mock-block { display: block; height: 54px; border-radius: 8px; background: rgba(37,211,102,.12); border: 1px solid rgba(37,211,102,.25); }

.mock-panel {
  position: absolute;
  background: linear-gradient(160deg, #0b1710, #060d09);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 50px rgba(0,0,0,.5);
  padding: 18px;
  z-index: 3;
}
.mock-panel-chart { width: 190px; right: -10px; top: -30px; }
.mock-panel-phone { width: 150px; left: -10px; bottom: -20px; display: flex; flex-direction: column; gap: 10px; }
.mock-phone-notch { width: 40px; height: 6px; border-radius: 4px; background: rgba(255,255,255,.15); margin: 0 auto 4px; }
.mock-chip { width: 46%; height: 22px; border-radius: 20px; background: rgba(37,211,102,.18); border: 1px solid rgba(37,211,102,.35); }

.mock-bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; }
.mock-bars span { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: linear-gradient(to top, var(--green), rgba(37,211,102,.25)); }
.mock-bars-sm { height: 64px; }

.sep-floating { position: absolute; bottom: -46px; left: 20px; z-index: 1; }

/* ---------- Services ---------- */
.card {
  background: linear-gradient(160deg, #0b1710, #060d09);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: rgba(37,211,102,.3); box-shadow: 0 20px 40px rgba(0,0,0,.35); }

.service-card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(37,211,102,.1);
  border: 1px solid rgba(37,211,102,.25);
  color: var(--green);
  margin-bottom: 18px;
}
.service-card .icon svg { width: 22px; height: 22px; }
.service-card h3 { font-size: 1.25rem; margin-bottom: 8px; text-transform: none; }
.service-card p { color: var(--text-60); font-size: .92rem; }

/* ---------- Pricing ---------- */
.pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.pricing-card { display: flex; flex-direction: column; position: relative; }
.pricing-featured { border-color: rgba(37,211,102,.5); background: linear-gradient(160deg, #0e1f14, #07120c); box-shadow: 0 24px 50px rgba(37,211,102,.1); }
.badge {
  position: absolute;
  top: -14px; left: 26px;
  background: var(--green);
  color: var(--bg);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 6px 14px;
  border-radius: 20px;
}
.plan-name { font-size: 1.7rem; margin-bottom: 10px; }
.plan-desc { color: var(--text-60); font-size: .92rem; margin-bottom: 20px; min-height: 66px; }
.plan-price { font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; color: var(--green); line-height: 1; margin-bottom: 6px; }
.plan-price span { font-family: var(--font-body); font-size: .9rem; color: var(--text-60); text-transform: none; font-weight: 400; }
.plan-includes { font-size: .85rem; color: var(--text-80); font-weight: 500; margin: 14px 0 4px; }
.plan-features { display: flex; flex-direction: column; gap: 11px; margin: 20px 0; flex: 1; }
.plan-features li {
  position: relative;
  padding-left: 24px;
  font-size: .9rem;
  color: var(--text-80);
}
.plan-features li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
}
.plan-note { font-size: .8rem; color: var(--text-60); font-style: italic; margin-bottom: 18px; }

.pricing-disclaimer {
  max-width: 820px;
  margin: 40px auto 0;
  text-align: center;
  font-size: .85rem;
  color: var(--text-60);
  border-top: 1px solid var(--border-soft);
  padding-top: 28px;
}

/* ---------- Proceso ---------- */
.process-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.process-step {
  display: flex;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border-soft);
  align-items: flex-start;
}
.process-step:last-child { border-bottom: none; }
.process-num {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  min-width: 64px;
}
.process-step h3 { font-size: 1.3rem; margin-bottom: 6px; text-transform: none; }
.process-step p { color: var(--text-60); }
.process-note {
  max-width: 700px;
  margin: 40px auto 0;
  text-align: center;
  color: var(--text-80);
  font-size: .95rem;
  padding: 20px 24px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}

/* ---------- Por qué tener una web ---------- */
.why-highlight {
  max-width: 760px;
  margin: 48px auto 36px;
  padding: 28px 34px;
  text-align: center;
  border: 1px solid rgba(37, 211, 102, .3);
  background: rgba(37, 211, 102, .05);
  border-radius: var(--radius);
}
.why-highlight p {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--white);
}
.why-cta { text-align: center; }

/* ---------- Sobre mí ---------- */
.about-inner { max-width: 820px; }
.about-copy h2 { font-size: clamp(2rem, 5vw, 3rem); margin-top: 6px; }
.about-text { color: var(--text-80); font-size: 1.05rem; margin: 26px 0 30px; max-width: 68ch; }
.about-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
  margin-bottom: 36px;
}
.about-highlights li {
  position: relative;
  padding-left: 22px;
  font-size: .95rem;
  color: var(--text-80);
}
.about-highlights li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: linear-gradient(160deg, #0b1710, #060d09);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 6px 24px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 28px 18px 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0; top: 14px;
  font-size: 1.4rem;
  color: var(--green);
  transition: transform .25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--text-60); padding-bottom: 20px; font-size: .93rem; }

/* ---------- Contacto ---------- */
.contact-section { position: relative; overflow: hidden; padding-top: 110px; padding-bottom: 130px; }
.contact-grid {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.whatsapp-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(160deg, #0e1f14, #07120c);
  border: 1px solid rgba(37,211,102,.35);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 24px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.whatsapp-cta:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(37,211,102,.15); }
.whatsapp-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  min-width: 52px;
  border-radius: 50%;
  background: var(--green);
  color: var(--bg);
}
.whatsapp-icon svg { width: 26px; height: 26px; }
.whatsapp-cta-text { display: flex; flex-direction: column; gap: 4px; }
.whatsapp-cta-text strong { font-size: 1.1rem; }
.whatsapp-cta-text span { font-size: .85rem; color: var(--text-60); }

.contact-form {
  background: linear-gradient(160deg, #0b1710, #060d09);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label { font-size: .82rem; color: var(--text-80); text-transform: uppercase; letter-spacing: .06em; }
.form-row input,
.form-row select,
.form-row textarea {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: .95rem;
  resize: vertical;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus { border-color: var(--green); }
.form-row select option { background: #0b1710; }
.form-row.has-error input,
.form-row.has-error select { border-color: #e05c5c; }
.form-note { font-size: .78rem; color: var(--text-60); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border-soft); padding: 60px 0 30px; background: var(--bg-grad-2); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 34px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-soft);
}
.footer-brand p { color: var(--text-60); font-size: .9rem; margin: 6px 0; }
.footer-brand .logo { margin-bottom: 10px; }
.footer-brand a { color: var(--green); font-size: .9rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 24px; align-content: flex-start; }
.footer-nav a { font-size: .88rem; color: var(--text-80); }
.footer-nav a:hover { color: var(--green); }
.footer-copy { font-size: .8rem; color: var(--text-60); text-align: center; }

/* ---------- Floating WhatsApp button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--green);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(37,211,102,.4);
  z-index: 150;
  animation: pulse-float 2.6s ease-in-out infinite;
}
.whatsapp-float svg { width: 28px; height: 28px; }
.whatsapp-float:hover { background: var(--green-hover); }

@keyframes pulse-float {
  0%, 100% { box-shadow: 0 12px 30px rgba(37,211,102,.4); }
  50% { box-shadow: 0 12px 30px rgba(37,211,102,.7), 0 0 0 10px rgba(37,211,102,.08); }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (min-width: 640px) {
  .hero-facts { grid-template-columns: repeat(4, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-highlights { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .main-nav { display: block; }
  .btn-header { display: inline-flex; }
  .hamburger { display: none; }
  .hero-inner { grid-template-columns: 1.1fr .9fr; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1100px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 899px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}

@media (max-width: 639px) {
  .hero-facts { grid-template-columns: repeat(2, 1fr); }
  .about-highlights { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .footer-inner { flex-direction: column; }
}
