/* ============================================================
   DISLIA — Sistema de diseño
   Paleta: rojo flama #e8192c → naranja #ff7a00 sobre base oscura,
   catálogo en fondo claro para que los diseños resalten.
   ============================================================ */

:root {
  --ink: #12141a;
  --ink-2: #1b1f29;
  --ink-3: #252b3a;
  --paper: #f6f7f9;
  --card: #ffffff;
  --line: #e6e8ee;
  --text: #252a35;
  --muted: #6b7280;
  --red: #e8192c;
  --orange: #ff7a00;
  --grad: linear-gradient(135deg, #e8192c 0%, #ff7a00 100%);
  --wa: #25d366;
  --gold: #ffb700;
  --ok: #16a34a;
  --err: #dc2626;
  --info: #2563eb;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(18, 20, 26, 0.08);
  --shadow-lg: 0 14px 40px rgba(18, 20, 26, 0.16);
  --font-display: 'Montserrat', 'Arial Black', Arial, sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 4.5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }

.container { width: min(1200px, 92%); margin: 0 auto; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(232, 25, 44, 0.35); }
.btn-primary:hover { box-shadow: 0 10px 26px rgba(232, 25, 44, 0.45); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-outline-light { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.55); }
.btn-outline-light:hover { border-color: #fff; }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--ink); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none !important; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  padding: 4px 11px; border-radius: 999px; text-transform: uppercase;
}
.badge-free { background: #e7f8ee; color: #0f8a43; }
.badge-premium { background: var(--grad); color: #fff; }
.badge-format { background: var(--ink); color: #fff; }
.badge-soft { background: var(--paper); color: var(--muted); border: 1px solid var(--line); }
.badge-popular { background: var(--gold); color: #422f00; }

/* ---------- Header ---------- */
.site-header {
  background: var(--ink);
  position: sticky; top: 0; z-index: 60;
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
.nav {
  display: flex; align-items: center; gap: 26px;
  padding: 13px 0;
}
.nav .logo-link { display: flex; align-items: center; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin-left: 6px; }
.nav-links a {
  color: #cfd3dd; font-weight: 500; font-size: 0.95rem;
  padding: 8px 13px; border-radius: 8px; transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.07); }
.nav-links a.active { color: #fff; background: rgba(255,255,255,0.1); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.hamburger {
  display: none; margin-left: auto;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.hamburger span { display: block; width: 24px; height: 2.6px; background: #fff; margin: 5px 0; border-radius: 2px; transition: 0.25s; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(232, 25, 44, 0.28), transparent 60%),
    radial-gradient(700px 360px at 5% 110%, rgba(255, 122, 0, 0.18), transparent 60%),
    var(--ink);
  color: #fff;
  padding: 72px 0 86px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; inset: auto 0 -2px 0; height: 60px;
  background: var(--paper);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
}
.hero h1 { color: #fff; margin-bottom: 14px; }
.hero p.lead { color: #b9bfcc; font-size: 1.12rem; max-width: 640px; margin-bottom: 30px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
  color: #ffd9c2; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em;
  padding: 7px 16px; border-radius: 999px; margin-bottom: 22px; text-transform: uppercase;
}
.hero-search { max-width: 620px; }
.hero-search form { display: flex; background: #fff; border-radius: 999px; padding: 6px; box-shadow: var(--shadow-lg); }
.hero-search input {
  flex: 1; border: 0; outline: 0; background: transparent;
  padding: 10px 20px; font-size: 1rem; font-family: var(--font-body); color: var(--ink);
}
.hero-search .btn { border-radius: 999px; }
.hero-stats { display: flex; gap: 34px; margin-top: 36px; flex-wrap: wrap; }
.hero-stats .stat strong { font-family: var(--font-display); font-size: 1.5rem; display: block; color: #fff; }
.hero-stats .stat span { color: #9aa1b0; font-size: 0.85rem; }

/* ---------- Secciones ---------- */
.section { padding: 64px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.section-head p { color: var(--muted); margin-top: 6px; max-width: 560px; }
.section-dark { background: var(--ink-2); color: #fff; }
.section-dark h2 { color: #fff; }
.section-dark p { color: #b9bfcc; }

/* ---------- Grid de diseños ---------- */
.grid-designs {
  display: grid; gap: 22px;
  grid-template-columns: repeat(4, 1fr);
}
.design-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex; flex-direction: column;
}
.design-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.design-card .thumb {
  position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: #eceef2;
}
.design-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.design-card:hover .thumb img { transform: scale(1.05); }
.design-card .thumb .badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; z-index: 2; }
.design-card .thumb .overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(18, 20, 26, 0.45); opacity: 0; transition: opacity 0.2s ease; z-index: 1;
}
.design-card:hover .thumb .overlay { opacity: 1; }
.design-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.design-card .body h3 { font-size: 0.98rem; font-weight: 700; }
.design-card .meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; color: var(--muted); font-size: 0.8rem; }

/* ---------- Filtros ---------- */
.filters {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 26px;
}
.chip {
  display: inline-block; padding: 8px 16px; border-radius: 999px;
  background: var(--card); border: 1.5px solid var(--line);
  font-size: 0.88rem; font-weight: 600; color: var(--muted);
  transition: all 0.15s ease; cursor: pointer;
}
.chip:hover { border-color: var(--red); color: var(--red); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.filters .search-mini { margin-left: auto; }
.search-mini form { display: flex; background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; }
.search-mini input { border: 0; outline: 0; background: none; padding: 7px 14px; font-family: var(--font-body); font-size: 0.9rem; width: 190px; }
.search-mini button { border: 0; background: var(--ink); color: #fff; border-radius: 999px; width: 34px; height: 34px; cursor: pointer; }

/* ---------- Paginación ---------- */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; background: var(--card); border: 1.5px solid var(--line);
  font-weight: 600; font-size: 0.9rem; color: var(--muted); padding: 0 12px;
}
.pagination a:hover { border-color: var(--red); color: var(--red); }
.pagination .current { background: var(--grad); border-color: transparent; color: #fff; }

/* ---------- Detalle de diseño ---------- */
.design-detail { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: start; }
.design-detail .preview {
  background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.design-detail .info h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 10px 0 14px; }
.design-detail .info .badges { display: flex; gap: 8px; flex-wrap: wrap; }
.design-detail .desc { color: var(--muted); margin: 14px 0 22px; }
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; font-size: 0.92rem; }
.spec-table td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.spec-table td:first-child { color: var(--muted); width: 40%; }
.spec-table td:last-child { font-weight: 600; color: var(--ink); }
.download-box {
  background: var(--card); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px;
}
.download-box .note { font-size: 0.85rem; color: var(--muted); }
.tag-list { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 18px; }

/* ---------- Planes ---------- */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; align-items: stretch; }
.plan-card {
  background: var(--card); border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 0;
  border: 2px solid transparent; position: relative;
}
.plan-card.featured { border-color: var(--orange); transform: scale(1.03); }
.plan-card .plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); }
.plan-card h3 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.04em; }
.plan-card .price { font-family: var(--font-display); font-weight: 800; font-size: 2.3rem; color: var(--ink); margin: 12px 0 2px; }
.plan-card .price small { font-size: 0.95rem; color: var(--muted); font-weight: 600; }
.plan-card .per { color: var(--muted); font-size: 0.85rem; margin-bottom: 16px; }
.plan-card ul { list-style: none; margin: 0 0 22px; display: flex; flex-direction: column; gap: 9px; }
.plan-card ul li { padding-left: 26px; position: relative; font-size: 0.92rem; color: var(--text); }
.plan-card ul li::before { content: '✓'; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.plan-card .btn { margin-top: auto; }

/* ---------- Servicios ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.service-card {
  background: var(--card); border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow); transition: transform 0.18s ease;
}
.section-dark .service-card { background: var(--ink-3); }
.section-dark .service-card h3 { color: #fff; }
.section-dark .service-card p { color: #aab1c0; }
.service-card:hover { transform: translateY(-4px); }
.service-card .icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--grad);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 16px;
  color: #fff;
}
.service-card p { color: var(--muted); font-size: 0.92rem; margin-top: 8px; }

/* ---------- Formularios ---------- */
.form-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 36px; max-width: 460px; margin: 0 auto;
}
.form-card h1 { font-size: 1.6rem; margin-bottom: 6px; }
.form-card .sub { color: var(--muted); font-size: 0.92rem; margin-bottom: 24px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 7px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 15px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: var(--font-body); font-size: 0.95rem; color: var(--ink);
  background: #fff; outline: none; transition: border-color 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--orange); }
.field .hint { font-size: 0.78rem; color: var(--muted); margin-top: 5px; }
.form-foot { text-align: center; margin-top: 18px; font-size: 0.9rem; color: var(--muted); }
.form-foot a { color: var(--red); font-weight: 600; }

/* ---------- Flash ---------- */
.flash-wrap { position: fixed; top: 78px; right: 18px; z-index: 90; display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.flash {
  padding: 14px 18px; border-radius: 12px; color: #fff; font-size: 0.92rem; font-weight: 500;
  box-shadow: var(--shadow-lg); animation: flash-in 0.3s ease;
}
.flash-ok { background: var(--ok); }
.flash-error { background: var(--err); }
.flash-info { background: var(--info); }
@keyframes flash-in { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }

/* ---------- Cuenta ---------- */
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 36px; }
.stat-card {
  background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.stat-card .label { color: var(--muted); font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.stat-card .value { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: var(--ink); margin-top: 6px; }
.stat-card .value.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Tablas ---------- */
.table-wrap { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 560px; }
table.list th {
  text-align: left; padding: 13px 16px; background: var(--paper); color: var(--muted);
  font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em;
}
table.list td { padding: 13px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
table.list tr:hover td { background: #fafbfc; }

/* ---------- CTA banda ---------- */
.cta-band {
  background: var(--grad); border-radius: 20px; padding: 44px 40px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); margin-top: 6px; }
.cta-band .btn { background: #fff; color: var(--red); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #9aa1b0; padding: 54px 0 26px; margin-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.site-footer a:hover { color: #fff; }
.site-footer .about { font-size: 0.9rem; max-width: 320px; margin-top: 14px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,0.08);
  display: inline-flex; align-items: center; justify-content: center; transition: background 0.15s;
}
.footer-social a:hover { background: rgba(255,255,255,0.18); }
.footer-social svg { width: 18px; height: 18px; fill: #fff; }
.copyright { text-align: center; padding-top: 24px; font-size: 0.82rem; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 80;
  width: 58px; height: 58px; border-radius: 50%; background: var(--wa);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.18s ease;
  animation: wa-pop 0.5s ease 1s backwards;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
@keyframes wa-pop { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }

/* ---------- Bloque AdSense ---------- */
.ad-slot { margin: 30px auto; text-align: center; min-height: 0; }

/* ---------- Página de error ---------- */
.error-page { text-align: center; padding: 90px 0; }
.error-page .code { font-family: var(--font-display); font-weight: 800; font-size: 5rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-designs { grid-template-columns: repeat(3, 1fr); }
  .design-detail { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ink); flex-direction: column; align-items: stretch;
    padding: 12px 4%; gap: 2px; box-shadow: 0 18px 30px rgba(0,0,0,0.35);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 14px; }
  .hamburger { display: block; }
  .nav-cta { margin-left: 0; }
  .nav-cta .btn span.txt { display: none; }
  .grid-designs { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .filters .search-mini { margin-left: 0; width: 100%; }
  .search-mini input { width: 100%; }
  .search-mini form { width: 100%; }
  .plan-card.featured { transform: none; }
  .cta-band { padding: 32px 24px; }
  .hero { padding: 54px 0 70px; }
  .form-card { padding: 26px 20px; }
}
@media (max-width: 460px) {
  .grid-designs { grid-template-columns: 1fr 1fr; }
  .design-card .body h3 { font-size: 0.88rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
