/* =============================
   Portafolio (Blue / Dynamic)
   ============================= */

:root{
  --bg: #F6F8FF;
  --surface: rgba(255,255,255,.72);
  --card: rgba(255,255,255,.9);
  --line: rgba(15, 23, 42, .10);
  --text: #0B1220;
  --muted: rgba(11, 18, 32, .70);

  /* Azul intermedio (ni muy claro ni muy oscuro) */
  --primary: #2F6FED;
  --primary2:#4B8CFF;
  --ink: #0A2A66;

  --shadow: 0 14px 40px rgba(15, 23, 42, .12);
  --radius: 18px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 10% 8%, rgba(47,111,237,.18), transparent 60%),
    radial-gradient(900px 500px at 90% 12%, rgba(99,102,241,.14), transparent 60%),
    radial-gradient(700px 420px at 50% 100%, rgba(59,130,246,.10), transparent 60%),
    var(--bg);
}

a{ color: inherit; text-decoration: none; }
a:hover{ opacity: .96; }
.container{ width: min(1120px, 92%); margin-inline: auto; }

.skip{
  position: absolute; left: -9999px; top: 10px;
  background: var(--primary);
  color: #fff;
  padding: 10px 12px;
  border-radius: 12px;
}
.skip:focus{ left: 12px; z-index: 99; }

.topbar{
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,248,255,.65);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner{
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 14px 0;
}

.brand{ display:flex; gap: 10px; align-items:center; }
.brand__mark{
  width: 40px; height: 40px;
  border-radius: 14px;
  display:grid; place-items:center;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(180deg, var(--primary2), var(--primary));
  box-shadow: 0 10px 22px rgba(47,111,237,.18);
}
.brand__text{ display:flex; flex-direction:column; line-height:1.1; }
.brand__text span{ font-size: 12px; color: var(--muted); margin-top: 2px; }

.nav{ display:flex; gap: 12px; align-items:center; flex-wrap: wrap; }
.nav a{
  color: var(--muted);
  padding: 10px 10px;
  border-radius: 12px;
}
.nav a:hover{
  color: var(--text);
  background: rgba(47,111,237,.08);
}

.topbar__actions{ display:flex; gap: 10px; align-items:center; }
.iconbtn{
  width: 40px; height: 40px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.75);
  cursor: pointer;
  display:grid; place-items:center;
}
.iconbtn:hover{ background: rgba(47,111,237,.08); }

.btn{
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.80);
  font-weight: 800;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:active{ transform: translateY(1px); }

.btn--primary{
  color: #fff;
  border-color: rgba(47,111,237,.30);
  background: linear-gradient(180deg, var(--primary2), var(--primary));
  box-shadow: 0 14px 28px rgba(47,111,237,.22);
}
.btn--primary:hover{ box-shadow: 0 18px 36px rgba(47,111,237,.26); }

.btn--ghost{
  background: rgba(255,255,255,.55);
}
.btn--ghost:hover{ background: rgba(47,111,237,.10); }

.btn--disabled{
  background: rgba(11,18,32,.08);
  color: rgba(11,18,32,.55);
  border-color: rgba(11,18,32,.10);
  cursor: not-allowed;
}
.btn--full{ width:100%; }

.pill{
  display:inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(47,111,237,.10);
  border: 1px solid rgba(47,111,237,.22);
  color: var(--ink);
  font-weight: 800;
  font-size: 13px;
}

/* HERO */
.hero{ padding: 56px 0 18px; }
.hero__grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
  align-items: start;
}
h1{
  margin: 12px 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
}
.lead{ margin: 0; max-width: 62ch; color: var(--muted); font-size: 16px; }
.hero__cta{ display:flex; gap: 12px; flex-wrap: wrap; margin: 18px 0 12px; }

.stats{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.stat{
  background: rgba(255,255,255,.70);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: 0 10px 26px rgba(15,23,42,.06);
}
.stat span{ display:block; color: var(--muted); font-size: 12.5px; }

/* Sections */
.section{ padding: 52px 0; }
.section__head h2{ margin:0 0 6px; font-size: 28px; }
.section__head p{ margin:0; color: var(--muted); }

.section--soft{
  background: linear-gradient(180deg, rgba(47,111,237,.06), rgba(255,255,255,0));
  border-top: 1px solid rgba(47,111,237,.10);
  border-bottom: 1px solid rgba(47,111,237,.10);
}

/* Cards */
.card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: 18px;
  box-shadow: var(--shadow);
}

.hero__card{
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(47,111,237,.14);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.hero__card h2{ margin: 0 0 10px; font-size: 18px; }
.list{ margin: 0; padding-left: 18px; color: var(--muted); }
.mini{ margin-top: 14px; display:grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.note{ margin-top: 10px; color: var(--muted); font-size: 12.5px; }

.grid3{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
  margin-top: 18px;
}

/* Project cards */
.cardp{
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: translateY(0);
  transition: transform .18s ease, box-shadow .18s ease;
}
.cardp:hover{
  transform: translateY(-4px);
  box-shadow: 0 20px 52px rgba(15,23,42,.18);
}
.cardp__body{ padding: 16px 16px 18px; }
.cardp h3{ margin: 0 0 8px; }
.muted{ color: var(--muted); margin: 10px 0 0; }

.thumb{
  height: 170px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(15,23,42,.08);
}
.thumb--barber{
  background-image:
    linear-gradient(180deg, rgba(11,18,32,.08), rgba(11,18,32,.28)),
    radial-gradient(600px 200px at 30% 30%, rgba(47,111,237,.28), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='600'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop stop-color='%23e5e7eb'/%3E%3Cstop offset='1' stop-color='%23c7d2fe'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='1200' height='600' fill='url(%23g)'/%3E%3Ctext x='60' y='340' font-family='Arial' font-size='72' fill='%23111827'%3EBarber%C3%ADa%3C/text%3E%3C/svg%3E");
}
.thumb--lights{
  background-image:
    linear-gradient(180deg, rgba(11,18,32,.08), rgba(11,18,32,.28)),
    radial-gradient(700px 240px at 70% 20%, rgba(75,140,255,.30), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='600'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop stop-color='%23dbeafe'/%3E%3Cstop offset='1' stop-color='%23bfdbfe'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='1200' height='600' fill='url(%23g)'/%3E%3Ctext x='60' y='340' font-family='Arial' font-size='72' fill='%230B1220'%3ELuces%3C/text%3E%3C/svg%3E");
}
.thumb--soon{
  background-image:
    linear-gradient(180deg, rgba(11,18,32,.08), rgba(11,18,32,.28)),
    radial-gradient(700px 240px at 30% 30%, rgba(47,111,237,.30), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='600'%3E%3Crect width='1200' height='600' fill='%23e5e7eb'/%3E%3Ctext x='60' y='340' font-family='Arial' font-size='72' fill='%23111827'%3EComing%20Soon%3C/text%3E%3C/svg%3E");
}

.tags{ display:flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.tag{
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(47,111,237,.10);
  border: 1px solid rgba(47,111,237,.18);
  color: var(--ink);
}
.tag--soft{
  background: rgba(11,18,32,.06);
  border-color: rgba(11,18,32,.10);
  color: rgba(11,18,32,.75);
}

.actions{ display:flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

/* Contact */
.contact{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 14px;
  align-items: start;
}
.form{
  margin-top: 14px;
  display:grid;
  gap: 10px;
  max-width: 560px;
}
label{ display:grid; gap: 6px; font-weight: 800; }
input, textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.85);
  font: inherit;
}
input:focus, textarea:focus{
  outline: 3px solid rgba(47,111,237,.18);
  border-color: rgba(47,111,237,.30);
}

.panel{
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.panel h3{ margin: 0 0 10px; }
.link{
  display:block;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.85);
  margin-top: 8px;
}
.link:hover{ background: rgba(47,111,237,.08); }
.divider{ height: 1px; background: rgba(15,23,42,.10); margin: 14px 0; }
.small{ font-size: 12.5px; }

/* Footer */
.footer{
  padding: 22px 0 34px;
  border-top: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.35);
}
.footer__inner{
  display:flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* Reveal animations */
.reveal{ opacity: 0; transform: translateY(10px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

/* Dark theme (optional toggle) */
body.dark{
  --bg: #0B1220;
  --surface: rgba(17, 24, 39, .70);
  --card: rgba(17, 24, 39, .85);
  --line: rgba(255,255,255,.10);
  --text: #E5E7EB;
  --muted: rgba(229,231,235,.70);
  background:
    radial-gradient(900px 500px at 12% 10%, rgba(47,111,237,.22), transparent 60%),
    radial-gradient(900px 500px at 88% 14%, rgba(99,102,241,.18), transparent 60%),
    #0B1220;
}
body.dark .topbar{ background: rgba(11,18,32,.55); border-bottom-color: rgba(255,255,255,.08); }
body.dark .iconbtn{ background: rgba(17,24,39,.65); border-color: rgba(255,255,255,.10); }
body.dark .btn--ghost{ background: rgba(255,255,255,.08); }
body.dark input, body.dark textarea{ background: rgba(17,24,39,.65); border-color: rgba(255,255,255,.12); color: var(--text); }
body.dark .link{ background: rgba(17,24,39,.65); border-color: rgba(255,255,255,.12); }

/* Responsive */
@media (max-width: 980px){
  .hero__grid{ grid-template-columns: 1fr; }
  .grid3{ grid-template-columns: 1fr; }
  .contact{ grid-template-columns: 1fr; }
  .stats{ grid-template-columns: 1fr; }
  .mini{ grid-template-columns: 1fr; }
}
