/* ==========================================================
   /includes/css/styles.css

   OBJETIVO:
   - CSS limpio, reutilizable, sin clases inventadas de más.
   - Todo comentado por secciones reales del HTML.
   - Fácil de encontrar dónde tocar colores / tamaños / alineación.

   DÓNDE CAMBIAR COLORES:
   - Variables en :root (accent, bg, etc.)
   ========================================================== */

/* ==========================================================
   1) VARIABLES (COLORES / SOMBRAS / MEDIDAS)
   ========================================================== */
:root{
  --bg:#0f1724;
  --bg2:#131c2d;
  --text:#eaf0f6;
  --muted:#5f7286;
  --card:#ffffff;
  --cardText:#0f1724;
  --line:#e9eef3;

  /* Color de acento (botones primarios / detalles) */
  --accent:#13b9a6;
  --accent2:#0fb3a0;

  --shadow: 0 18px 45px rgba(15,23,36,.18);
  --radius: 18px;
  --container: 1180px;
}

/* ==========================================================
   2) BASE / RESET
   Aplica a toda la web
   ========================================================== */
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--cardText);
  background:#fff;
}
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; height:auto; }
.container{ max-width:var(--container); margin:0 auto; padding:0 24px; }

/* Foco visible (accesibilidad básica real) */
a:focus-visible,
button:focus-visible{
  outline: 2px solid rgba(19,185,166,.55);
  outline-offset: 3px;
  border-radius: 10px;
}

/* Texto secundario reusable */
.muted{ color: var(--muted); }

/* ==========================================================
   3) SECCIONES GENERALES (PAQUETES / SERVICIOS / PORTFOLIO / CONTACTO)
   HTML: .section, .section-alt, .section-head
   ========================================================== */
.section{ padding:84px 0; }
.section-alt{ background:#f7fafc; }

.section-head{ margin-bottom:26px; }
.section-kicker{
  letter-spacing:.18em;
  font-weight:800;
  font-size:.78rem;
  color: var(--accent);
  margin:0 0 10px;
}
.section-title{
  font-size:clamp(28px,3.4vw,44px);
  line-height:1.06;
  margin:0 0 10px;
}
.section-subtitle{
  margin:0;
  color:#607086;
  font-weight:500;
}

/* ==========================================================
   4) HEADER / NAV
   HTML: /includes/header.php
   ========================================================== */
.site-header{
  position:sticky;
  top:0;
  z-index:60;
  background:rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(0,0,0,.06);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
}

/* Marca */
.brand{ display:flex; align-items:center; gap:12px; }
.brand-logo{ width:36px; height:36px; object-fit:contain; }
.brand-text{ font-weight:800; font-size:1.1rem; white-space:nowrap; }
.brand-accent{ color:var(--accent); }
.brand-by{ font-weight:600; color:#607086; font-size:.9rem; white-space:nowrap; }

/* Nav desktop */
.nav{ display:flex; align-items:center; gap:22px; }
.nav-link{ color:#334155; font-weight:600; }
.nav-link:hover{ color:#0f172a; }

/* Botón hamburguesa (solo visible en móvil) */
.nav-toggle{
  display:none;
  border:0;
  background:transparent;
  font-size:1.45rem;
  padding:10px;
  border-radius:12px;
}
.sr-only{ position:absolute; left:-9999px; }

/* ==========================================================
   5) BOTONES (reutilizables)
   HTML: .btn en todo el sitio
   ========================================================== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:14px 22px;
  border-radius:999px;
  font-weight:800;
  border:1px solid transparent;
  transition:transform .08s ease, background .2s ease, border-color .2s ease;
}
.btn:active{ transform:scale(.98); }
.btn-block{ width:100%; }
.btn-sm{ padding:10px 16px; font-size:.95rem; }

/* Primario */
.btn-primary{ background:var(--accent); color:#06201c; }
.btn-primary:hover{ background:var(--accent2); }

/* Ghost (por defecto pensado para FONDO OSCURO: hero) */
.btn-ghost{
  background:transparent;
  border-color:rgba(255,255,255,.38);
  color:#fff;
}
.btn-ghost:hover{ border-color:rgba(255,255,255,.65); }

/* Ghost en fondo claro (paquetes/contacto/servicios) */
.section .btn-ghost,
.section-alt .btn-ghost,
.price-card .btn-ghost,
.contact-box .btn-ghost,
.card .btn-ghost,
.mini-card .btn-ghost{
  background:#fff;
  color:#0f172a;
  border-color:#cfd9e3;
}
.section .btn-ghost:hover,
.section-alt .btn-ghost:hover,
.price-card .btn-ghost:hover,
.contact-box .btn-ghost:hover,
.card .btn-ghost:hover,
.mini-card .btn-ghost:hover{
  border-color:#9fb2c6;
}

/* ==========================================================
   6) HERO
   HTML: section.hero
   ========================================================== */
.hero{
  position:relative;
  color:var(--text);
  padding:96px 0 72px;
  background:linear-gradient(180deg,var(--bg2),#0b1320);
  overflow:hidden;
}
.hero-bg{
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 400px at 50% 35%, rgba(19,185,166,.18), transparent 60%),
    radial-gradient(900px 400px at 10% 5%, rgba(255,255,255,.06), transparent 55%);
  pointer-events:none;
}
.hero-inner{
  position:relative;
  text-align:center; /* <--- AQUÍ CENTRAS TODO EL HERO */
  max-width:900px;
  margin:0 auto;
}
.pill{
  display:inline-block;
  padding:10px 16px;
  border-radius:999px;
  background:rgba(19,185,166,.14);
  border:1px solid rgba(19,185,166,.25);
  font-weight:800;
  letter-spacing:.08em;
  font-size:.8rem;
  margin-bottom:18px;
}
.hero-title{
  margin:0 0 16px;
  font-size:clamp(40px,6vw,72px);
  line-height:1.02;
  font-weight:900;
}
.accent{ color:var(--accent); }
.hero-subtitle{
  margin:0 auto 26px;
  max-width:760px;
  font-size:1.05rem;
  color:rgba(234,240,246,.86);
}
.hero-actions{
  display:flex;
  gap:14px;
  justify-content:center;
  flex-wrap:wrap;
}

/* Badges (no botones) */
.hero-badges{
  display:flex;
  gap:14px;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  margin:22px 0 0;
  padding:0;
  list-style:none;
}
.hero-badges li{
  color:rgba(234,240,246,.78);
  font-weight:500;
  font-size:14px;
  letter-spacing:.2px;
  display:inline-flex;
  align-items:center;
  white-space:nowrap;
}
/* Separador seguro (evita caracteres raros por encoding) */
.hero-badges li:not(:last-child)::after{
  content:"\2022";
  margin-left:14px;
  color:rgba(255,255,255,.35);
}

/* ==========================================================
   7) LISTAS REUTILIZABLES
   HTML: ul.list en paquetes/servicios
   ========================================================== */
.list{ margin:0 0 16px; padding:0; list-style:none; }
.list li{
  padding:10px 0;
  border-bottom:1px solid #eef3f7;
  color:#1f2937;
}
.list li:last-child{ border-bottom:0; }

/* ==========================================================
   8) PAQUETES (PRICING)
   HTML: .pricing-grid, .price-card
   ========================================================== */
.pricing-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:18px;
  margin-top:22px;
}
.price-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:24px;
  box-shadow: 0 14px 35px rgba(15,23,36,.06);
  position:relative;
}
.price-card h3{ margin:0 0 10px; font-size:1.2rem; }
.price{
  font-size:2rem;
  margin:0 0 14px;
  font-weight:900;
  color:#0f172a;
}

.price-card.featured{
  border-color: rgba(19,185,166,.35);
  box-shadow: var(--shadow);
}
.badge{
  position:absolute;
  top:16px;
  right:16px;
  background:rgba(19,185,166,.14);
  border:1px solid rgba(19,185,166,.25);
  color:#0b4b43;
  font-weight:900;
  padding:8px 12px;
  border-radius:999px;
  font-size:.85rem;
}
.note{
  margin-top:16px;
  padding:14px 16px;
  border-radius:14px;
  background:#f1fbf9;
  border:1px solid rgba(19,185,166,.25);
  color:#0f172a;
  font-weight:600;
}

/* Nota debajo de paquetes */
.pricing-footnote{
  margin-top:18px;
  color:#334155;
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  padding:14px 16px;
}

/* ==========================================================
   9) CARDS (SERVICIOS / PORTFOLIO)
   HTML: .card, .mini-card, .grid-3
   ========================================================== */
.card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:24px;
  box-shadow: 0 14px 35px rgba(15,23,36,.06);
}
.grid-3{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:18px;
}
.mini-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:22px;
  box-shadow: 0 10px 26px rgba(15,23,36,.06);
}
.mini-card h3{ margin:0 0 8px; }

/* ==========================================================
   10) CONTACTO
   HTML: .contact-box, .contact-actions
   ========================================================== */
.contact-box{
  text-align:center; /* <--- AQUÍ CENTRAS TODO CONTACTO */
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:26px;
  box-shadow: 0 14px 35px rgba(15,23,36,.06);
}
.contact-actions{
  margin-top:18px;
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
}

/* ==========================================================
   11) FOOTER
   HTML: /includes/footer.php
   ========================================================== */
.site-footer{
  padding:28px 0;
  border-top:1px solid rgba(0,0,0,.06);
  background:#fff;
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}
.footer-inner p{ margin:0; color:#334155; }

/* ==========================================================
   12) ANIMACIONES (JS)
   HTML: [data-animate] + .is-inview
   ========================================================== */
[data-animate]{
  opacity:0;
  transform: translate3d(0, 10px, 0);
  transition: opacity .65s ease, transform .65s ease;
  will-change: opacity, transform;
}
.is-inview{
  opacity:1;
  transform:none;
}
[data-delay="80"]{ transition-delay:.08s; }
[data-delay="140"]{ transition-delay:.14s; }
[data-delay="200"]{ transition-delay:.20s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  [data-animate]{
    opacity:1 !important;
    transform:none !important;
    transition:none !important;
  }
}

/* ==========================================================
   13) RESPONSIVE
   ========================================================== */
@media (max-width:980px){
  /* Paquetes y portfolio a 1 columna */
  .pricing-grid{ grid-template-columns:1fr; }
  .grid-3{ grid-template-columns:1fr; }

  /* Header mobile */
  .brand-by{ display:none; }
  .nav-toggle{ display:inline-flex; }

  /* Menú como dropdown flotante (abre con .is-open desde JS) */
  .nav{
    position:fixed;
    right:16px;
    top:72px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:16px;
    padding:12px;
    box-shadow: var(--shadow);
    display:none;
    flex-direction:column;
    align-items:stretch;
    min-width:240px;
    gap:10px;
  }
  .nav.is-open{ display:flex; }

  .hero{ padding:82px 0 58px; }
}

@media (max-width:620px){
  .container{ padding:0 18px; }

  /* Hero */
  .hero-title{ font-size:clamp(32px,9vw,46px); }
  .hero-subtitle{ font-size:1rem; }

  /* Botones a ancho completo */
  .hero-actions,
  .contact-actions{
    flex-direction:column;
    align-items:center;
  }
  .btn{ width:100%; max-width:360px; }

  /* Badges sin separador para que no se “corten” feo */
  .hero-badges li{
    white-space:normal;
    text-align:center;
  }
  .hero-badges li:not(:last-child)::after{
    content:"";
    margin-left:0;
  }

  /* Badge recomendado dentro de tarjeta en móvil */
  .badge{
    position:static;
    display:inline-block;
    margin-bottom:10px;
  }
}
