:root{
  --bg: #071427;          /* azul muy oscuro */
  --bg-2: #0b1f3b;        /* azul oscuro */
  --card: #0f2b53;        /* azul tarjeta */
  --text: #eaf1ff;
  --muted: #b8c6e6;
  --primary: #4aa3ff;     /* azul acento */
  --primary-2: #2f7fe6;
  --border: rgba(255,255,255,.12);
  --shadow: 0 14px 36px rgba(0,0,0,.25);

  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: radial-gradient(1200px 600px at 20% 10%, rgba(74,163,255,.18), transparent 60%),
              radial-gradient(900px 500px at 80% 30%, rgba(74,163,255,.10), transparent 55%),
              linear-gradient(180deg, var(--bg), var(--bg-2));
  line-height: 1.6;
}

a{ color: inherit; }
img{ max-width: 100%; display: block; }

/* Header */
.header{
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(7,20,39,.72);
  border-bottom: 1px solid var(--border);
}

.nav{
  max-width: 1180px;
  margin: 0 auto;
  padding: .9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo{
  display: inline-flex;
  align-items: baseline;
  gap: .55rem;
  text-decoration: none;
}
.logo-mark{
  font-family: var(--font-heading);
  font-size: 1.2rem;
  letter-spacing: .5px;
  color: var(--primary);
}
.logo-text{
  font-weight: 600;
  letter-spacing: .2px;
}

.nav-toggle{
  display: none;
  background: transparent;
  border: 0;
  padding: .45rem;
  border-radius: .75rem;
  cursor: pointer;
}
.nav-toggle .bar{
  display: block;
  width: 24px;
  height: 3px;
  background: var(--text);
  margin: 4px 0;
  border-radius: 2px;
  opacity: .9;
}

.nav-menu{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.nav-menu a{
  text-decoration: none;
  color: var(--text);
  opacity: .92;
  font-weight: 500;
}
.nav-menu a:hover{ opacity: 1; }

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: .85rem 1.1rem;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn:active{ transform: translateY(1px); }
.btn-sm{ padding: .55rem .85rem; font-size: .92rem; }

.btn-primary{
  background: linear-gradient(180deg, var(--primary), var(--primary-2));
  border-color: rgba(74,163,255,.55);
  color: #05101f;
}
.btn-primary:hover{ filter: brightness(1.04); }

.btn-ghost{
  background: rgba(255,255,255,.06);
}
.btn-ghost:hover{ background: rgba(255,255,255,.10); }

.btn-link{
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
  opacity: .95;
}

/* Hero */
.hero{
  position: relative;
  min-height: calc(100vh - 70px);
  display: grid;
  place-items: center;
  padding: 5.5rem 1.25rem 4.5rem;
  overflow: hidden;
}
.hero-bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}
.hero-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,20,39,.80), rgba(7,20,39,.60) 45%, rgba(11,31,59,.92));
}
.hero-inner{
  position: relative;
  max-width: 920px;
  text-align: center;
  padding: 1.25rem;
}
.hero-kicker{
  display: inline-block;
  margin: 0 0 1rem;
  padding: .35rem .8rem;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: var(--muted);
  font-weight: 600;
}
.hero h1{
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 4.2vw, 3.6rem);
  line-height: 1.08;
  margin: 0 0 .9rem;
}
.hero-subtitle{
  margin: 0 auto 1.5rem;
  max-width: 52ch;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: rgba(234,241,255,.92);
}
.hero-cta{
  display: flex;
  gap: .8rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-note{
  margin: 1.25rem auto 0;
  max-width: 68ch;
  color: rgba(184,198,230,.95);
}

/* Sections */
.section{
  max-width: 1180px;
  margin: 0 auto;
  padding: 4.2rem 1.25rem;
}
.section-alt{
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head{
  text-align: center;
  margin-bottom: 2.1rem;
}
.section h2{
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  margin: 0 0 .6rem;
}
.section-lead{
  margin: 0 auto;
  max-width: 72ch;
  color: var(--muted);
}
.subsection{
  margin: 2.2rem 0 1rem;
  font-size: 1.25rem;
}

/* Layout grids */
.grid{ display: grid; gap: 1rem; }
.grid.two{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four{ grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card{
  background: rgba(15,43,83,.72);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.card h3{ margin: 0 0 .5rem; }

.muted{ color: var(--muted); }
.tiny{ font-size: .9rem; }

.checklist,
.service ul,
.gridlist,
.footer-menu{
  margin: .85rem 0 0;
  padding-left: 1.1rem;
}
.checklist li,
.service ul li,
.gridlist li{ margin: .25rem 0; }

/* Services cards */
.service{
  background: rgba(15,43,83,.62);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.service h3{ margin: 0 0 .45rem; }
.service p{ margin: 0 0 .75rem; color: var(--muted); }

/* Accordions */
.stack{ display: grid; gap: 1rem; }
.accordion{
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: rgba(15,43,83,.55);
  overflow: hidden;
}
.accordion summary{
  cursor: pointer;
  padding: 1rem 1.15rem;
  font-weight: 700;
  list-style: none;
}
.accordion summary::-webkit-details-marker{ display: none; }
.accordion summary::after{
  content: "▾";
  float: right;
  opacity: .9;
}
.accordion[open] summary::after{ content: "▴"; }
.accordion-body{ padding: 0 1.15rem 1.15rem; }
.cols{ display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.accordion h4{ margin: 1rem 0 .25rem; }

/* Callout */
.callout{
  margin-top: 1.25rem;
  background: linear-gradient(180deg, rgba(74,163,255,.16), rgba(15,43,83,.55));
  border: 1px solid rgba(74,163,255,.30);
  border-radius: 1.5rem;
  padding: 1.35rem;
}

/* Resources */
.resource{
  display: block;
  text-decoration: none;
  background: rgba(15,43,83,.55);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.resource:hover{ border-color: rgba(74,163,255,.35); }
.resource h3{ margin: 0 0 .35rem; }
.resource p{ margin: 0; color: var(--muted); }

/* Contact */
.contact-list{ list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.contact-list li span{ color: var(--muted); width: 92px; display: inline-block; }

.form label{ display: grid; gap: .45rem; margin-top: .85rem; }
input, textarea{
  width: 100%;
  border-radius: 1rem;
  border: 1px solid var(--border);
  padding: .85rem 1rem;
  background: rgba(7,20,39,.45);
  color: var(--text);
  outline: none;
}
input:focus, textarea:focus{ border-color: rgba(74,163,255,.55); }

/* Footer */
.footer{
  border-top: 1px solid var(--border);
  background: rgba(7,20,39,.92);
}
.footer-inner{
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.3rem 1.25rem;
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.footer-brand{ margin: 0; font-weight: 800; }
.footer-title{ margin: 0 0 .6rem; font-weight: 700; color: var(--muted); }
.footer-menu{ list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer-menu a{ text-decoration: none; opacity: .9; }
.footer-menu a:hover{ opacity: 1; }

.credits{
  margin: 0;
  text-align: center;
  padding: 1rem 1.25rem;
  color: rgba(184,198,230,.9);
  border-top: 1px solid var(--border);
}

/* Floating WhatsApp */
.wa-float{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--primary), var(--primary-2));
  color: #05101f;
  text-decoration: none;
  font-weight: 900;
  border: 1px solid rgba(74,163,255,.55);
  box-shadow: 0 14px 30px rgba(0,0,0,.35);
}

/* Anchors for smooth scroll offset */
.anchor{ position: relative; top: -86px; height: 1px; }

/* Responsive */
@media (max-width: 980px){
  .grid.four{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner{ grid-template-columns: 1fr; }
}
@media (max-width: 768px){
  .nav-toggle{ display: inline-flex; }
  .nav-menu{
    position: absolute;
    right: 1rem;
    top: calc(100% + .6rem);
    flex-direction: column;
    align-items: stretch;
    background: rgba(7,20,39,.96);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    padding: 1rem;
    width: min(320px, calc(100vw - 2rem));
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
  }
  .nav-menu.active{
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .grid.two{ grid-template-columns: 1fr; }
  .grid.three{ grid-template-columns: 1fr; }
  .cols{ grid-template-columns: 1fr; }
}
