/* ============================================
   PupuyaHub — Template Nivel 2
   Estilos compartidos entre todas las páginas
   ============================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --azul:     {{colores.azul}};
  --azul-mid: {{colores.azul_mid}};
  --celeste:  {{colores.celeste}};
  --gota:     {{colores.gota}};
  --blanco:   {{colores.blanco}};
  --dark:     {{colores.dark}};
  --gris:     rgba(255,255,255,0.55);
  --gris-2:   rgba(255,255,255,0.08);
  --border:   rgba(255,255,255,0.07);
}

html { scroll-behavior: smooth; }

body {
  font-family: '{{fuentes.cuerpo}}', sans-serif;
  background: var(--dark);
  color: white;
  overflow-x: hidden;
}

/* ── TIPOGRAFÍA ── */
h1, h2, h3, h4 {
  font-family: '{{fuentes.titulo}}', sans-serif;
  letter-spacing: 0.04em;
  line-height: 1.05;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(7,19,30,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo-drop {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--celeste), var(--gota));
  border-radius: 50% 50% 50% 10%;
  transform: rotate(-30deg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.logo-text {
  font-family: '{{fuentes.titulo}}', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  color: white;
  line-height: 1;
}

.logo-text span {
  display: block;
  font-family: '{{fuentes.cuerpo}}', sans-serif;
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gota);
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: white;
  background: rgba(255,255,255,0.06);
}

.nav-links a.active {
  color: var(--gota);
}

.nav-cta {
  background: var(--celeste);
  color: white !important;
  padding: 0.45rem 1.1rem !important;
  border-radius: 2rem !important;
  font-weight: 600 !important;
  font-size: 0.8rem !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--gota) !important; }

.nav-ig {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.nav-ig:hover { transform: scale(1.1); }

/* Hamburger mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.25rem;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── PAGE HEADER (todas las páginas internas) ── */
.page-header {
  padding: 7rem 1.5rem 3rem;
  background: linear-gradient(160deg, rgba(7,19,30,1) 0%, rgba(13,45,78,0.9) 100%);
  border-bottom: 1px solid rgba(77,184,232,0.1);
  text-align: center;
}

.page-header .s-tag { margin-bottom: 0.75rem; }

.page-header h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  color: white;
  margin-bottom: 1rem;
}

.page-header .sub {
  font-size: 1rem;
  color: var(--gris);
  font-weight: 300;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── UTILIDADES ── */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.s-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gota);
  font-weight: 500;
  margin-bottom: 0.6rem;
}

.s-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: white;
  margin-bottom: 0.75rem;
}

.s-sub {
  color: var(--gris);
  font-size: 0.95rem;
  line-height: 1.7;
  font-weight: 300;
  max-width: 520px;
  margin-bottom: 2.5rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── BOTONES ── */
.btn-main {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--celeste), var(--gota));
  color: white;
  padding: 0.9rem 1.75rem;
  border-radius: 0.75rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 20px rgba(33,150,200,0.3);
  transition: all 0.2s;
}
.btn-main:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(33,150,200,0.45); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: white;
  padding: 0.9rem 1.5rem;
  border-radius: 0.75rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.88rem;
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.05); }

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #25D366;
  color: white;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
  transition: all 0.2s;
}
.btn-wa:hover { background: #20bd5a; transform: translateY(-2px); }

/* ── CARDS SERVICIOS ── */
.serv-card {
  background: var(--gris-2);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.serv-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--celeste), var(--gota));
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: left;
}
.serv-card:hover { border-color: rgba(77,184,232,0.3); background: rgba(77,184,232,0.06); transform: translateY(-3px); }
.serv-card:hover::after { transform: scaleX(1); }
.serv-icon { font-size: 2rem; margin-bottom: 0.75rem; display: block; }
.serv-card h3 { font-size: 1.1rem; color: white; margin-bottom: 0.4rem; }
.serv-card p { font-size: 0.82rem; color: var(--gris); line-height: 1.6; font-weight: 300; }

/* ── CTA SECTION ── */
.cta-section {
  padding: 5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(33,150,200,0.15) 0%, transparent 70%);
}
.cta-section > * { position: relative; }

/* ── FOOTER ── */
footer {
  background: #030a10;
  padding: 3rem 1.5rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .f-name {
  font-family: '{{fuentes.titulo}}', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  color: white;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gota);
  margin-bottom: 0.75rem;
}

.footer-col ul { list-style: none; }

.footer-col ul li {
  margin-bottom: 0.4rem;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: white; }

.footer-bottom {
  max-width: 960px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.18);
}

.footer-bottom a { color: var(--gota); text-decoration: none; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(7,19,30,0.98);
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 0.25rem;
  }

  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
