/* ==========================================================================
   app.css — Acuario S.A.C.
   Base: tokens + layout + helpers + secciones
   ========================================================================== */

/* -----------------------------
   Design Tokens
   ----------------------------- */
:root{
  /* Brand (Acuario) */
  --brand: #0a2cff;
  --brand-2: #14b8ff;
  --accent: #14b8ff;

  /* Neutrals */
  --bg: #ffffff;
  --panel: #f7f9ff;
  --card: #ffffff;
  --text: #0b1220;
  --muted: #51607a;
  --border: rgba(10, 44, 255, 0.12);

  /* Effects */
  --shadow-sm: 0 6px 20px rgba(11, 18, 32, 0.08);
  --shadow-md: 0 18px 60px rgba(11, 18, 32, 0.12);
  --ring: 0 0 0 4px rgba(20, 184, 255, 0.20);

  /* Radius */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;

  /* Spacing */
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 14px;
  --space-4: 18px;
  --space-5: 26px;
  --space-6: 34px;
  --space-7: 48px;
  --space-8: 72px;

  /* Type scale */
  --fs-xs: 0.86rem;
  --fs-sm: 0.95rem;
  --fs-md: 1.05rem;
  --fs-lg: 1.2rem;
  --fs-xl: 1.6rem;
  --fs-2xl: 2.1rem;
  --fs-3xl: 2.7rem;

  /* Container */
  --container: 1160px;
}

/* -----------------------------
   Reset / Base
   ----------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; }

:focus-visible{
  outline: none;
  box-shadow: var(--ring);
  border-radius: 10px;
}

::selection{
  background: rgba(20, 184, 255, 0.28);
}

/* Accessibility helpers */
.sr-only{
  position:absolute;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}

.skip-link{
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 9999;
  background: var(--text);
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  transform: translateY(-200%);
  transition: transform .18s ease;
}
.skip-link:focus{ transform: translateY(0); }

/* -----------------------------
   Layout
   ----------------------------- */
.container{
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.site-header{ position: sticky; top: 0; z-index: 80; }

/* Sections */
.section{
  padding: var(--space-8) 0;
}

.section--alt{
  background: linear-gradient(180deg, rgba(10,44,255,0.03), rgba(20,184,255,0.02));
  border-top: 1px solid rgba(10,44,255,0.06);
  border-bottom: 1px solid rgba(10,44,255,0.06);
}

.section--contact{
  padding: var(--space-7) 0;
  background: radial-gradient(900px 280px at 30% 10%, rgba(10,44,255,0.12), transparent 55%),
              radial-gradient(900px 280px at 70% 10%, rgba(20,184,255,0.10), transparent 55%),
              linear-gradient(180deg, rgba(11,18,32,0.02), rgba(11,18,32,0.00));
}

.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}

.section-title{
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, var(--fs-2xl));
  letter-spacing: -0.02em;
}

.section-subtitle{
  margin: 0;
  color: var(--muted);
  max-width: 64ch;
}

.section-text{
  color: var(--muted);
  margin: 12px 0 0;
  font-size: var(--fs-md);
  max-width: 72ch;
}

.section-actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.muted{ color: var(--muted); }
.accent{ color: var(--brand); }

/* -----------------------------
   Grid utilities
   ----------------------------- */
.grid{
  display:grid;
  gap: 18px;
}
.grid--2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 980px){
  .grid--3{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px){
  .grid--2, .grid--3{ grid-template-columns: 1fr; }
}

/* -----------------------------
   Buttons
   ----------------------------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  text-decoration:none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.btn--small{
  padding: 10px 14px;
  border-radius: 12px;
  font-size: var(--fs-sm);
}

.btn--primary{
  background: linear-gradient(90deg, var(--brand), var(--accent));
  color: #fff;
  box-shadow: 0 14px 40px rgba(10,44,255,0.20);
}

.btn--primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 60px rgba(10,44,255,0.26);
}

.btn--ghost{
  background: rgba(10,44,255,0.06);
  border-color: rgba(10,44,255,0.16);
  color: var(--text);
}

.btn--ghost:hover{
  transform: translateY(-1px);
  background: rgba(10,44,255,0.10);
}

.iconbtn{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border: 1px solid rgba(10,44,255,0.16);
  background: rgba(10,44,255,0.06);
  cursor: pointer;
  transition: transform .12s ease, background .18s ease, border-color .18s ease;
}
.iconbtn:hover{
  transform: translateY(-1px);
  background: rgba(10,44,255,0.10);
}

/* -----------------------------
   Cards
   ----------------------------- */
.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 18px;
}

.card--panel{
  background: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(10,44,255,0.02));
}

.card--cta{
  padding: 22px;
  border-radius: 22px;
  border-color: rgba(20,184,255,0.22);
  background: radial-gradient(900px 280px at 10% 10%, rgba(20,184,255,0.16), transparent 55%),
              linear-gradient(180deg, rgba(255,255,255,0.9), rgba(10,44,255,0.02));
}

.card--mini{
  padding: 16px;
  border-radius: 18px;
}

.card__kicker{
  margin: 0 0 6px;
  color: var(--muted);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.card__title{
  margin: 0 0 10px;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.card__text{
  margin: 0 0 14px;
  color: var(--muted);
}

.card__cta{
  display:inline-flex;
  gap: 8px;
  align-items:center;
  font-weight: 800;
  text-decoration: none;
  color: var(--brand);
}

.divider{
  border: none;
  border-top: 1px solid rgba(10,44,255,0.10);
  margin: 16px 0;
}

/* -----------------------------
   Badges / Chips / Pills
   ----------------------------- */
.badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(10,44,255,0.18);
  background: rgba(10,44,255,0.06);
  font-size: var(--fs-xs);
  font-weight: 700;
}

.badge--muted{
  background: rgba(11,18,32,0.04);
  border-color: rgba(11,18,32,0.10);
  color: var(--muted);
}

.chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(10,44,255,0.18);
  background: rgba(10,44,255,0.06);
  cursor: pointer;
  font-weight: 700;
  font-size: var(--fs-sm);
  transition: background .18s ease, transform .12s ease;
}
.chip:hover{ background: rgba(10,44,255,0.12); transform: translateY(-1px); }
.chip--static{ cursor: default; }
.chip--static:hover{ transform: none; }

.pill{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(11,18,32,0.04);
  border: 1px solid rgba(11,18,32,0.08);
  color: var(--muted);
  font-weight: 700;
  font-size: var(--fs-sm);
}

.dot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  box-shadow: 0 0 0 5px rgba(20,184,255,0.16);
}

/* -----------------------------
   Lists / checklist
   ----------------------------- */
.list{ margin: 0; padding-left: 16px; color: var(--muted); }
.checklist{
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
}
.checklist li{
  padding-left: 2px;
}

/* -----------------------------
   FAQ
   ----------------------------- */
.faq{
  display: grid;
  gap: 12px;
}
.faq__item{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
}
.faq__q{
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}
.faq__q::-webkit-details-marker{ display:none; }
.faq__a{
  margin-top: 10px;
  color: var(--muted);
}

/* -----------------------------
   Timeline
   ----------------------------- */
.timeline{
  display: grid;
  gap: 14px;
}
.timeline__item{
  display:flex;
  gap: 12px;
  align-items:flex-start;
}
.timeline__dot{
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-top: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  box-shadow: 0 0 0 6px rgba(20,184,255,0.14);
  flex: 0 0 auto;
}
.timeline__title{
  margin: 0;
  font-weight: 900;
}
.timeline__text{
  margin: 2px 0 0;
  color: var(--muted);
}
.timeline--mini .timeline__text{ font-size: var(--fs-sm); }

/* -----------------------------
   Strip stats
   ----------------------------- */
.strip{
  border-top: 1px solid rgba(10,44,255,0.08);
  border-bottom: 1px solid rgba(10,44,255,0.08);
  background: linear-gradient(90deg, rgba(10,44,255,0.03), rgba(20,184,255,0.02));
}
.strip__inner{
  padding: 18px 0;
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.stat{
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(10,44,255,0.10);
  background: rgba(255,255,255,0.60);
  box-shadow: 0 8px 24px rgba(11,18,32,0.06);
}
.stat__value{
  margin: 0;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.stat__label{
  margin: 2px 0 0;
  color: var(--muted);
  font-size: var(--fs-sm);
}

@media (max-width: 980px){
  .strip__inner{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* -----------------------------
   Contact strip
   ----------------------------- */
.contact-strip{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.contact-strip__actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* -----------------------------
   Small helpers
   ----------------------------- */
.component-fallback{
  background: rgba(255, 60, 111, 0.07);
  border: 1px solid rgba(255, 60, 111, 0.25);
  color: #7a1d34;
  padding: 14px;
  border-radius: 16px;
}

/* -----------------------------
   Home hero base (visual part)
   Real layout in pages/home.css
   ----------------------------- */
.hero{
  position: relative;
  overflow: hidden;
}
.hero__bg{
  position:absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 20% 10%, rgba(10,44,255,0.18), transparent 60%),
    radial-gradient(900px 420px at 80% 10%, rgba(20,184,255,0.12), transparent 60%),
    linear-gradient(180deg, rgba(11,18,32,0.02), rgba(11,18,32,0.00));
  pointer-events: none;
}
