/* =========================================================
   JCMWEB — Johan Castillo | Design tokens
   Paleta: petróleo caribe + dorado, tipografía técnica
   ========================================================= */
:root{
  --ink-900:#0E2A32;      /* petróleo profundo - fondo oscuro */
  --ink-800:#123138;
  --ink-700:#1B4048;
  --sand-100:#F5F1E8;     /* arena cálida - fondo claro */
  --sand-050:#FBF9F4;
  --paper:#FFFFFF;
  --gold-500:#D4A017;     /* acento dorado - CTA / marca */
  --gold-400:#E6BB3D;
  --teal-400:#3EC6B3;     /* acento cian - detalles técnicos */
  --text-dark:#16262B;
  --text-muted:#5C6E73;
  --text-onDark:#F5F1E8;
  --text-onDark-muted:#9FB4B8;
  --line-onDark:rgba(245,241,232,0.14);
  --line-onLight:rgba(14,42,50,0.12);

  --font-display:'Space Grotesk', sans-serif;
  --font-body:'Inter', sans-serif;
  --font-mono:'JetBrains Mono', monospace;

  --radius-s:8px;
  --radius-m:14px;
  --radius-l:22px;
  --container:1140px;
  --shadow-1: 0 20px 60px -25px rgba(14,42,50,0.35);
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *{animation-duration:0.001ms !important; transition-duration:0.001ms !important;}
}

body{
  margin:0;
  font-family:var(--font-body);
  color:var(--text-dark);
  background:var(--sand-050);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

h1,h2,h3{
  font-family:var(--font-display);
  line-height:1.12;
  margin:0 0 0.5em;
  letter-spacing:-0.01em;
}

p{margin:0 0 1em;}
a{color:inherit;}
img{max-width:100%; display:block;}

.skip-link{
  position:absolute; left:-9999px; top:0; background:var(--gold-500); color:var(--ink-900);
  padding:10px 16px; z-index:1000; font-family:var(--font-mono); font-size:14px;
}
.skip-link:focus{left:12px; top:12px;}

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

.eyebrow{
  font-family:var(--font-mono);
  color:var(--gold-400);
  font-size:13px;
  letter-spacing:0.04em;
  text-transform:none;
  margin-bottom:14px;
}
.eyebrow-dark{color:#9A7A0C;}

.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--font-body); font-weight:600; font-size:15px;
  padding:14px 24px; border-radius:100px; text-decoration:none;
  border:1.5px solid transparent; cursor:pointer; transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary{ background:var(--gold-500); color:var(--ink-900); }
.btn-primary:hover{ background:var(--gold-400); transform:translateY(-2px); box-shadow:var(--shadow-1); }
.btn-ghost{ border-color:var(--line-onDark); color:var(--text-onDark); }
.hero .btn-ghost{border-color:rgba(245,241,232,0.35);}
.btn-ghost:hover{ background:rgba(245,241,232,0.08); transform:translateY(-2px); }
.btn-block{ width:100%; justify-content:center; }

/* =============== NAV =============== */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:500;
  background:rgba(14,42,50,0.0);
  transition:background .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}
.nav.is-scrolled{
  background:rgba(14,42,50,0.92);
  backdrop-filter:blur(8px);
  box-shadow:0 8px 24px -12px rgba(0,0,0,0.4);
}
.nav-inner{
  max-width:var(--container); margin:0 auto; padding:16px 24px;
  display:flex; align-items:center; justify-content:space-between;
}
.brand{ display:flex; align-items:center; gap:12px; text-decoration:none; color:var(--text-onDark); }
.brand-mark{
  width:42px; height:42px; border-radius:50%; background:var(--gold-500); color:var(--ink-900);
  display:flex; align-items:center; justify-content:center; font-family:var(--font-display); font-weight:700; font-size:15px;
  flex:none;
}
.brand-text{ display:flex; flex-direction:column; font-family:var(--font-display); font-weight:600; font-size:16px; line-height:1.25; }
.brand-sub{ font-family:var(--font-mono); font-weight:400; font-size:11px; color:var(--text-onDark-muted); }

.nav-links{ display:flex; align-items:center; gap:28px; font-size:15px; }
.nav-links a{ text-decoration:none; color:white; font-size:15px; transition:color .2s ease, font-size .2s ease; }
.nav-links a:hover{ color:#FFBD2E; font-size:16px; }
.nav-cta{
  background:var(--gold-500); color:var(--ink-900) !important; opacity:1 !important;
  padding:9px 18px; border-radius:100px; font-weight:600;
}
.nav-toggle{
  display:none; flex-direction:column; gap:5px; background:none; border:0; cursor:pointer; padding:8px;
}
.nav-toggle span{ width:24px; height:2px; background:var(--text-onDark); border-radius:2px; }

/* =============== HERO =============== */
.hero{
  background:linear-gradient(180deg, var(--ink-900) 0%, var(--ink-800) 100%);
  padding:110px 24px 40px;
  position:relative;
  overflow:hidden;
}
.hero::after{
  content:""; position:absolute; inset:auto -10% -30% auto; width:60%; padding-top:60%;
  background:radial-gradient(closest-side, rgba(62,198,179,0.16), transparent 70%);
  pointer-events:none;
}
.hero-inner{
  max-width:var(--container); margin:0 auto;
  display:grid; grid-template-columns:1.1fr 0.9fr; gap:56px; align-items:center;
  position:relative; z-index:1;
}
.hero-copy h1{
  color:var(--text-onDark); font-size:clamp(32px, 4.2vw, 52px); font-weight:700;
}
.hero-copy h1 span{ color:var(--gold-400); }
.hero-lead{ color:var(--text-onDark-muted); font-size:17px; max-width:46ch; }
.hero-note{ color:var(--text-onDark-muted); font-size:13px; font-family:var(--font-mono); margin-top:22px; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:14px; margin-top:8px; }

.terminal{
  background:#0A2026; border-radius:var(--radius-m); overflow:hidden;
  box-shadow:var(--shadow-1); border:1px solid rgba(245,241,232,0.08);
}
.terminal-bar{
  display:flex; align-items:center; gap:8px; padding:12px 16px; background:#0F2A32;
  border-bottom:1px solid rgba(245,241,232,0.08);
}
.dot{ width:10px; height:10px; border-radius:50%; }
.dot-r{background:#FF5F56;} .dot-y{background:#FFBD2E;} .dot-g{background:#27C93F;}
.terminal-title{ margin-left:8px; font-family:var(--font-mono); font-size:12px; color:var(--text-onDark-muted); }
.terminal-body{
  padding:22px 20px 28px; font-family:var(--font-mono); font-size:14px; color:#CFEFE9; min-height:220px;
}
.terminal-body .prompt{ color:var(--gold-400); margin-right:6px; }
.type-line{ color:var(--text-onDark); min-height:1.4em; white-space:pre-wrap; }
.cursor{ animation:blink 1s step-end infinite; }
@keyframes blink{ 50%{opacity:0;} }

/* =============== STATS STRIP =============== */
.stats-strip{
  background:var(--ink-800); border-top:1px solid var(--line-onDark); border-bottom:1px solid var(--line-onDark);
  padding:36px 24px;
}
.stats-grid{ display:flex; justify-content:space-around; flex-wrap:wrap; gap:24px; text-align:center; }
.stat{ display:flex; flex-direction:column; gap:4px; }
.stat-number{ font-family:var(--font-display); font-weight:700; font-size:clamp(28px,4vw,40px); color:var(--gold-400); }
.stat-label{ font-family:var(--font-mono); font-size:12.5px; color:var(--text-onDark-muted); }

/* =============== SECTIONS =============== */
.section{ padding:56px 24px; }
.section-inner{ max-width:var(--container); margin:0 auto; }
.section-light{ background:var(--sand-100); color:var(--text-dark); }
.section-dark{ background:var(--ink-900); color:var(--text-onDark); }
.section h2{ font-size:clamp(26px,3.2vw,38px); }
.section-dark h2, .section-dark h3{ color:var(--text-onDark); }
.section-lead{ max-width:62ch; color:var(--text-muted); font-size:16px; }
.section-lead-light{ color:var(--text-onDark-muted); }

/* =============== SERVICE CARDS =============== */
.cards-grid{
  display:grid; grid-template-columns:repeat(4, 1fr); gap:20px; margin-top:44px;
}
.card{
  background:var(--paper); border-radius:var(--radius-m); padding:28px 24px;
  border:1px solid var(--line-onLight); transition:transform .18s ease, box-shadow .18s ease;
}
.card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-1); }
.card-icon{
  width:44px; height:44px; border-radius:var(--radius-s); background:var(--ink-900); color:var(--gold-400);
  display:flex; align-items:center; justify-content:center; margin-bottom:16px;
}
.card-icon svg{ width:22px; height:22px; }
.card h3{ font-size:19px; }
.card p{ color:var(--text-muted); font-size:14.5px; margin-bottom:0; }
.card p a{ color:var(--ink-900); font-weight:600; text-decoration:underline; }

/* =============== HOSTING =============== */
.hosting-grid{
  display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-top:44px;
}
.hosting-option{
  background:var(--ink-700); border-radius:var(--radius-m); padding:30px; border:1px solid var(--line-onDark);
}
.hosting-tag{
  display:inline-block; font-family:var(--font-mono); font-size:12px; color:var(--ink-900);
  background:var(--teal-400); padding:4px 10px; border-radius:100px; margin-bottom:14px;
}
.hosting-list{ margin:14px 0 0; padding-left:20px; color:var(--text-onDark-muted); font-size:14.5px; }
.hosting-list li{ margin-bottom:6px; }

.plan-card{
  margin-top:32px; background:var(--sand-100); color:var(--text-dark);
  border-radius:var(--radius-m); padding:32px; display:grid; gap:24px;
}
.plan-card-head h3{ font-size:20px; margin-bottom:6px; }
.plan-card-head p{ color:var(--text-muted); margin-bottom:0; }
.plan-table{ display:grid; grid-template-columns:repeat(2, 1fr); gap:10px 32px; }
.plan-row{
  display:flex; justify-content:space-between; gap:16px; padding:10px 0; border-bottom:1px dashed var(--line-onLight);
  font-size:14.5px;
}
.plan-row strong{ font-family:var(--font-mono); color:var(--ink-900); }
.plan-note{ font-size:13.5px; color:var(--text-muted); margin:0; }

/* =============== PROJECTS =============== */
.projects-grid{
  display:grid; grid-template-columns:repeat(3, 1fr); gap:24px; margin-top:44px;
}
.project-card{
  background:var(--paper); border-radius:var(--radius-m); overflow:hidden; border:1px solid var(--line-onLight);
  transition:transform .18s ease, box-shadow .18s ease;
}
.project-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-1); }
.project-thumb{ display:block; aspect-ratio:4/3; overflow:hidden; background:var(--ink-900); }
.project-thumb img{ width:100%; height:100%; object-fit:cover; }
.project-info{ padding:18px 20px 22px; }
.project-info h3{ font-size:17px; margin-bottom:6px; }
.project-info p{ font-size:14px; color:var(--text-muted); margin-bottom:10px; }
.project-link{ font-family:var(--font-mono); font-size:13px; color:var(--ink-900); font-weight:600; text-decoration:none; border-bottom:1px solid var(--gold-500); }

.legacy-projects{
  margin-top:40px; background:var(--paper); border:1px solid var(--line-onLight); border-radius:var(--radius-m); padding:22px 26px;
}
.legacy-projects summary{ cursor:pointer; font-weight:600; font-family:var(--font-display); }
.legacy-projects p{ color:var(--text-muted); font-size:14.5px; margin:14px 0 8px; }
.legacy-list{ margin:0; padding-left:20px; color:var(--text-muted); font-size:14px; }
.legacy-list li{ margin-bottom:6px; }

/* =============== ABOUT =============== */
.about-grid{ display:grid; grid-template-columns:0.8fr 1.2fr; gap:56px; align-items:start; }
.about-photo img{ border-radius:var(--radius-m); border:1px solid var(--line-onDark); }
.about-role{ color:var(--gold-400); font-weight:600; font-size:15.5px; }
.about-copy p{ color:var(--text-onDark-muted); }
.about-copy p:first-of-type + p{ color:var(--text-onDark-muted); }
.about-subtitle{ margin-top:36px; font-size:19px; }

.timeline{ list-style:none; margin:0; padding:0; display:grid; gap:20px; }
.timeline li{ display:grid; grid-template-columns:90px 1fr; gap:18px; padding-bottom:20px; border-bottom:1px solid var(--line-onDark); }
.timeline li:last-child{ border-bottom:0; }
.timeline-year{ font-family:var(--font-mono); color:var(--teal-400); font-size:13px; }
.timeline div strong{ color:var(--text-onDark); }
.timeline div{ color:var(--text-onDark-muted); font-size:14.5px; }

/* =============== CONTACT =============== */
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:start; }
.contact-info{ list-style:none; margin:24px 0 0; padding:0; display:grid; gap:14px; font-size:15px; }
.contact-info a{ color:var(--ink-900); font-weight:600; text-decoration:underline; }

.contact-form{
  background:var(--paper); border-radius:var(--radius-m); padding:28px; border:1px solid var(--line-onLight);
  display:grid; gap:16px;
}
.contact-form label{ display:grid; gap:6px; font-size:14px; font-weight:600; color:var(--text-dark); }
.contact-form input, .contact-form textarea{
  font-family:var(--font-body); font-size:15px; padding:12px 14px; border-radius:var(--radius-s);
  border:1.5px solid var(--line-onLight); background:var(--sand-050); resize:vertical;
}
.contact-form input:focus, .contact-form textarea:focus{ border-color:var(--gold-500); }
.form-note{ font-size:12.5px; color:var(--text-muted); margin:0; }

/* =============== FOOTER =============== */
.footer{ background:var(--ink-900); color:var(--text-onDark-muted); padding:40px 24px; }
.footer-inner{
  max-width:var(--container); margin:0 auto; display:flex; flex-wrap:wrap; align-items:center;
  justify-content:space-between; gap:20px; border-top:1px solid var(--line-onDark); padding-top:28px;
}
.footer-brand{ display:flex; align-items:center; gap:12px; color:var(--text-onDark); font-weight:600; }
.footer-links{ display:flex; gap:20px; flex-wrap:wrap; font-size:14px; }
.footer-links a{ text-decoration:none; color:var(--text-onDark-muted); }
.footer-links a:hover{ color:var(--text-onDark); }
.footer-copy{ width:100%; font-size:12.5px; margin:0; }

.whatsapp-float{
  position:fixed; bottom:24px; right:24px; z-index:400;
  width:56px; height:56px; border-radius:50%; background:#25D366; color:#fff;
  display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow-1);
  text-decoration:none;
}

/* =============== RESPONSIVE =============== */
@media (max-width: 960px){
  .hero-inner{ grid-template-columns:1fr; }
  .cards-grid{ grid-template-columns:repeat(2,1fr); }
  .hosting-grid{ grid-template-columns:1fr; }
  .projects-grid{ grid-template-columns:repeat(2,1fr); }
  .about-grid, .contact-grid{ grid-template-columns:1fr; }
  .about-photo{ max-width:280px; }
}

@media (max-width: 680px){
  .nav-toggle{ display:flex; }
  .nav-links{
    position:absolute; top:100%; left:0; right:0; background:var(--ink-900);
    flex-direction:column; align-items:flex-start; padding:18px 24px 26px; gap:16px;
    display:none;
  }
  .nav-links.is-open{ display:flex; }
  .cards-grid{ grid-template-columns:1fr; }
  .projects-grid{ grid-template-columns:1fr; }
  .plan-table{ grid-template-columns:1fr; }
  .hero{ padding-top:120px; }
  .section{ padding:64px 20px; }
}

/* =============== PRICING =============== */
.pricing-grid{
  display:grid; grid-template-columns:repeat(3, 1fr); gap:24px; margin-top:44px;
}
.price-card{
  position:relative; background:var(--paper); border-radius:var(--radius-m); padding:32px 26px;
  border:1px solid var(--line-onLight); display:flex; flex-direction:column; gap:10px;
  transition:transform .18s ease, box-shadow .18s ease;
}
.price-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-1); }
.price-card-featured{ border:2px solid var(--gold-500); }
.price-badge{
  position:absolute; top:-13px; left:26px; background:var(--gold-500); color:var(--ink-900);
  font-family:var(--font-mono); font-size:11.5px; font-weight:600; padding:4px 12px; border-radius:100px;
}
.price-card h3{ font-size:19px; margin-top:6px; }
.price-tag{ font-family:var(--font-display); font-size:28px; font-weight:700; color:var(--ink-900); margin:0; }
.price-tag small{ font-size:13px; font-weight:500; color:var(--text-muted); }
.price-desc{ color:var(--text-muted); font-size:14.5px; }
.price-list{ margin:0 0 8px; padding-left:20px; color:var(--text-muted); font-size:14px; }
.price-list li{ margin-bottom:6px; }
.price-note{ margin-top:28px; font-size:13.5px; color:var(--text-muted); }