/* ============================================================
   BASE COMUNCYBER PLANTILLAS v2 — estilos con variables de tema
   ============================================================ */

:root {
  --color-primario: #1f2937;
  --color-secundario: #d97706;
  --color-acento: #f59e0b;
  --color-fondo: #ffffff;
  --color-fondo-alt: #f8fafc;
  --color-texto: #1e293b;
  --color-texto-suave: #64748b;
  --color-claro: #ffffff;
  --fuente-titulos: 'Inter', sans-serif;
  --fuente-texto: 'Inter', sans-serif;
  --radio: 14px;
  --sombra: 0 8px 30px rgba(0, 0, 0, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--fuente-texto); color: var(--color-texto); background: var(--color-fondo); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { width: min(1120px, 92%); margin: 0 auto; }

/* ===== BOTONES ===== */
.btn { display: inline-block; padding: 0.85rem 1.6rem; border-radius: 999px; font-weight: 700; font-size: 0.95rem; border: 0; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease; font-family: inherit; }
.btn:hover { transform: translateY(-2px); }
.btn--cta { background: var(--color-secundario); color: #fff; box-shadow: 0 6px 20px color-mix(in srgb, var(--color-secundario) 45%, transparent); }
.btn--ghost { border: 2px solid var(--color-claro); color: var(--color-claro); background: transparent; }

/* ===== HEADER ===== */
.header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--color-primario) 92%, transparent); backdrop-filter: blur(8px); color: #fff; transition: box-shadow 0.2s; }
.header.scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25); }
.header__inner { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 0; }
.header__logo { display: flex; align-items: center; gap: 0.55rem; font-weight: 800; font-size: 1.15rem; letter-spacing: 0.02em; }
.header__logo svg { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; gap: 1.5rem; font-size: 0.95rem; }
.nav a { opacity: 0.85; transition: opacity 0.15s; }
.nav a:hover { opacity: 1; }
.header__cta { padding: 0.55rem 1.2rem; font-size: 0.85rem; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* ===== HERO con imagen ===== */
.hero { position: relative; min-height: 86vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(115deg, color-mix(in srgb, var(--color-primario) 88%, transparent) 30%, color-mix(in srgb, var(--color-primario) 35%, transparent) 100%); }
.hero__content { position: relative; max-width: 660px; padding: 5rem 0; }
.hero__badge { display: inline-block; padding: 0.3rem 0.9rem; border-radius: 999px; background: color-mix(in srgb, var(--color-secundario) 30%, transparent); border: 1px solid color-mix(in srgb, var(--color-secundario) 65%, transparent); font-size: 0.8rem; font-weight: 600; margin-bottom: 1.2rem; }
.hero__title { font-family: var(--fuente-titulos); font-size: clamp(2.2rem, 5.5vw, 3.4rem); line-height: 1.1; font-weight: 800; margin-bottom: 1rem; text-shadow: 0 3px 20px rgba(0, 0, 0, 0.35); }
.hero__sub { font-size: 1.12rem; opacity: 0.95; margin-bottom: 1.8rem; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3); }
.hero__actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.hero__scroll { position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%); color: #fff; font-size: 1.6rem; opacity: 0.7; animation: bounce 2s infinite; }
@keyframes bounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ===== STATS ===== */
.stats { background: var(--color-primario); color: #fff; padding: 2.2rem 0; }
.stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; text-align: center; }
.stat__num { font-family: var(--fuente-titulos); font-size: 2.4rem; font-weight: 800; color: var(--color-secundario); }
.stat__label { font-size: 0.9rem; opacity: 0.85; }

/* ===== SECCIONES ===== */
.section { padding: 4.5rem 0; }
.section--alt { background: var(--color-fondo-alt); }
.section__title { font-family: var(--fuente-titulos); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; text-align: center; margin-bottom: 0.6rem; }
.section__sub { text-align: center; color: var(--color-texto-suave); margin-bottom: 2.6rem; }
.section__title--light { color: #fff; }
.section__sub--light { color: rgba(255, 255, 255, 0.85); }

.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* ===== CARDS ===== */
.card { background: var(--color-fondo); border: 1px solid #e2e8f0; border-radius: var(--radio); padding: 1.7rem; box-shadow: var(--sombra); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card:hover { transform: translateY(-5px); box-shadow: 0 16px 44px rgba(0, 0, 0, 0.13); }
.card__icon { font-size: 2.2rem; margin-bottom: 0.8rem; }
.card__title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.card__text { color: var(--color-texto-suave); font-size: 0.95rem; }

/* ===== FEATURES ===== */
.feature { text-align: center; padding: 1.2rem; }
.feature__num { font-family: var(--fuente-titulos); font-size: 2.4rem; font-weight: 800; color: color-mix(in srgb, var(--color-secundario) 70%, transparent); margin-bottom: 0.6rem; }
.feature__title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.4rem; }
.feature__text { color: var(--color-texto-suave); font-size: 0.95rem; }

/* ===== GALERÍA ===== */
.gal { border: 0; padding: 0; background: none; border-radius: var(--radio); overflow: hidden; cursor: pointer; box-shadow: var(--sombra); }
.gal img { width: 100%; height: 170px; object-fit: cover; transition: transform 0.35s ease; }
.gal:hover img { transform: scale(1.08); }

/* ===== QUOTES ===== */
.quote { background: var(--color-fondo); border-left: 4px solid var(--color-secundario); border-radius: var(--radio); padding: 1.5rem 1.6rem; box-shadow: var(--sombra); }
.quote__text { font-size: 0.98rem; margin-bottom: 0.8rem; }
.quote__author { font-weight: 700; font-size: 0.9rem; }
.quote__author span { color: var(--color-texto-suave); font-weight: 400; }

/* ===== CONTACTO ===== */
.section--cta { background: linear-gradient(135deg, var(--color-primario), color-mix(in srgb, var(--color-primario) 55%, var(--color-secundario))); color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; max-width: 860px; margin: 0 auto; }
.contact-info p { margin-bottom: 0.9rem; }
.contact-info .btn { margin-top: 0.6rem; }
.contact-form { display: flex; flex-direction: column; gap: 0.8rem; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: var(--radio); padding: 1.4rem; }
.contact-form input, .contact-form textarea { width: 100%; padding: 0.75rem 0.9rem; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.1); color: #fff; font-family: inherit; font-size: 0.95rem; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255, 255, 255, 0.6); }
.contact-form .btn { width: 100%; }
.form-ok { text-align: center; font-weight: 700; color: #4ade80; }

/* ===== FOOTER ===== */
.footer { background: var(--color-primario); color: rgba(255, 255, 255, 0.85); padding: 2.4rem 0; font-size: 0.9rem; }
.footer__inner { display: flex; flex-direction: column; gap: 1rem; }
.footer strong { color: #fff; font-size: 1.05rem; }
.footer__meta { display: flex; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; opacity: 0.7; font-size: 0.8rem; }

/* ===== FLOTANTES ===== */
.wa-float { position: fixed; bottom: 1.4rem; right: 1.4rem; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45); transition: transform 0.15s ease; }
.wa-float:hover { transform: scale(1.08); }
.to-top { position: fixed; bottom: 1.5rem; left: 1.4rem; z-index: 60; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--color-secundario); color: #fff; font-size: 1.2rem; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.to-top.show { opacity: 1; pointer-events: auto; }

/* ===== LIGHTBOX ===== */
.lightbox[hidden] { display: none !important; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, 0.9); display: flex; align-items: center; justify-content: center; padding: 2rem; }
.lightbox img { max-width: 92%; max-height: 88vh; border-radius: 12px; }
.lightbox__close { position: absolute; top: 1rem; right: 1.5rem; background: none; border: 0; color: #fff; font-size: 2.6rem; cursor: pointer; }

/* ===== ANIMACIONES (reveal al scroll) ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 0.6rem 0; background: var(--color-primario); }
  .nav.open { display: flex; }
  .nav a { padding: 0.7rem 1.4rem; border-top: 1px solid rgba(255, 255, 255, 0.08); }
  .nav-toggle { display: block; }
  .header__cta { display: none; }
  .hero { min-height: 72vh; }
  .hero__content { padding: 4rem 0; }
  .section { padding: 3.2rem 0; }
  .contact-grid { grid-template-columns: 1fr; }
}
