* { box-sizing: border-box; }
:root { --bg:#0b1220; --surface:#0f172a; --text:#111827; --muted:#6b7280; --primary:#3b82f6; --secondary:#8b5cf6; --accent:#22d3ee; --border:#e5e7eb; }
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; margin: 0; color: #1a1a1a; background: #f6f7fb; overflow-x: hidden; }
a { color: var(--primary); text-decoration: none; }
header { background: linear-gradient(90deg, var(--surface), #0e1528 40%, #0b1220); color: #fff; padding: 16px; }
header .container { display: flex; align-items: center; justify-content: space-between; width: 80%; margin: 0 auto; padding: 0 16px; }
.brand { font-weight: 700; letter-spacing: .3px; }
nav a { margin: 0 8px; color: #cbd5e1; padding: 8px 10px; border-radius: 6px; }
nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.container { width: 80%; max-width: none; margin: 24px auto; padding: 0 24px; }
.admin-layout { display: grid; grid-template-columns: 240px 1fr; gap: 16px; }
.admin-sidebar { background: linear-gradient(180deg, #0f172a, #0e1528); color: #fff; border-radius: 12px; padding: 16px; box-shadow: 0 10px 20px rgba(2,6,23,.12); position: sticky; top: 16px; align-self: start; }
.admin-brand { font-weight: 700; letter-spacing: .3px; margin-bottom: 12px; }
.admin-menu a { display: block; padding: 10px 12px; border-radius: 8px; color: #cbd5e1; margin: 4px 0; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.04); }
.admin-menu a:hover { background: rgba(255,255,255,.12); color: #fff; }
.admin-menu a.active { background: #1e3a8a; color: #fff; border-color: #1e40af; }
.admin-content { min-height: 60vh; }
.admin-topbar { display: flex; align-items: center; justify-content: flex-end; margin-bottom: 12px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 10px 20px rgba(2,6,23,.06); }
.card img { width: 100%; height: 160px; object-fit: cover; }
.card .body { padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.price { font-weight: 700; }
.btn { display: inline-block; padding: 12px 16px; border-radius: 10px; background: linear-gradient(90deg, var(--primary), var(--secondary)); color: #fff; border: none; cursor: pointer; transition: transform .08s ease, filter .2s ease, box-shadow .2s ease; font-weight: 600; box-shadow: 0 6px 14px rgba(59,130,246,.25); }
.btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn.secondary { background: #111827; }
.btn.outline { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.filters { display: flex; gap: 8px; margin-bottom: 16px; }
input, select, textarea { padding: 12px; border-radius: 8px; border: 1px solid #d1d5db; width: 100%; }
textarea { min-height: 100px; resize: vertical; }
.row { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.card-list { display: flex; flex-direction: column; gap: 8px; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 10px; border-bottom: 1px solid #e5e7eb; text-align: left; }
footer { padding: 24px; color: #cbd5e1; text-align: center; background: #0f172a; margin: 0 calc((100vw - 100%) / -2); grid-column: 1 / -1; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; width: 100%; max-width: none; margin: 0; padding: 8px 24px; align-items: start; }
.footer-brand { text-align: left; }
.footer-brand img { height: 32px; }
.social { display: flex; gap: 8px; margin-top: 12px; }
.social a { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; color: #fff; }
.social a:hover { background: rgba(255,255,255,.12); }
.footer-title { font-weight: 700; color: #e5e7eb; margin-bottom: 8px; }
.legal a, .contact a { color: #cbd5e1; display: block; margin: 6px 0; }
.legal a:hover, .contact a:hover { color: #ffffff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 12px; padding-top: 12px; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
@media (max-width: 980px) { .admin-layout { grid-template-columns: 1fr; } .admin-sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 240px; transform: translateX(-100%); z-index: 9990; } .admin-sidebar.open { transform: translateX(0); } .admin-content { padding-top: 8px; } }
.badge { display: inline-block; padding: 4px 8px; border-radius: 999px; font-size: 12px; background: #e5e7eb; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: none; align-items: center; justify-content: center; }
.modal .panel { width: 90%; max-width: 900px; background: #fff; border-radius: 8px; overflow: hidden; }
.modal header { background: #111827; color: #fff; padding: 12px; }
.modal iframe { width: 100%; height: 600px; border: none; }
.actions { display: flex; gap: 8px; align-items: center; }
.card .body form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.card .body form .btn { grid-column: 1 / -1; width: 100%; }
.card .body form input, .card .body form select, .card .body form textarea { grid-column: span 1; }
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.stat { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 16px; }
.section { margin: 24px 0; }
.section h2 { margin: 0 0 12px 0; }
.hero { background: linear-gradient(90deg, #0f172a, #0d1a38 40%, #0b1220); color: #fff; border-radius: 12px; padding: 24px; display: grid; grid-template-columns: 2fr 1fr; gap: 16px; border: 1px solid rgba(255,255,255,.08); }
.hero .title { font-size: 28px; font-weight: 700; }
.hero .subtitle { color: #cbd5e1; margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; padding: 8px 12px; border-radius: 999px; background: #eef2ff; color: #1e3a8a; border: 1px solid #e5e7eb; transition: background .2s ease; }
.chip:hover { background: #e0e7ff; }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.feature { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 16px; }
.muted { color: #6b7280; }
@media (max-width: 980px) { .hero { grid-template-columns: 1fr; } .feature-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }
/* Taglines */
.tagline { display: inline-block; margin-top: 8px; padding: 8px 12px; border-radius: 999px; background: #e0f2fe; color: #0c4a6e; border: 1px solid #bae6fd; font-weight: 600; }
.banner { background: linear-gradient(90deg, #eef2ff, #e0f2fe); border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px 16px; margin-bottom: 12px; }
.banner .em { color: var(--primary); font-weight: 700; }
/* Slider */
.slider { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid #e5e7eb; box-shadow: 0 10px 20px rgba(2,6,23,.06); }
.slides { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; transition: transform .5s ease; }
.slide { position: relative; height: 340px; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide .caption { position: absolute; left: 16px; bottom: 16px; background: rgba(0,0,0,.5); color: #fff; padding: 8px 12px; border-radius: 8px; }
.slider .prev, .slider .next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.4); color: #fff; border: none; width: 36px; height: 36px; border-radius: 999px; cursor: pointer; }
.slider .prev { left: 10px; }
.slider .next { right: 10px; }
.dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.dots button { width: 8px; height: 8px; border-radius: 999px; border: 1px solid #fff; background: rgba(255,255,255,.6); cursor: pointer; }
.dots button.active { background: #fff; }
@media (max-width: 600px) { .slide { height: 220px; } }
@media (max-width: 980px) { .card .body form { grid-template-columns: 1fr; } }
/* Chat */
.chat-panel { position: fixed; right: 16px; bottom: 16px; width: 340px; max-width: calc(100vw - 32px); background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 10px 20px rgba(2,6,23,.12); overflow: hidden; z-index: 9999; display: none; }
.chat-panel.show { display: flex; flex-direction: column; height: 420px; }
.chat-header { background: #111827; color: #fff; padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; }
.chat-body { flex: 1; overflow-y: auto; padding: 10px; position: relative; }
.chat-msg { margin: 8px 0; padding: 10px 12px; border-radius: 10px; max-width: 100%; display: block; border: 1px solid #e5e7eb; background: #f8fafc; }
.chat-msg.user { background: #eef2ff; color: #1e3a8a; }
.chat-msg.agent { background: #f3f4f6; color: #1f2937; }
.chat-msg .msg-meta { font-size: 12px; color: #6b7280; margin-top: 4px; }

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 90px;
  right: 24px;
  background-color: #25d366;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 10000;
  transition: transform 0.3s ease;
}
.whatsapp-float:hover {
  transform: scale(1.1);
}
.whatsapp-float svg {
  width: 36px;
  height: 36px;
}
.chat-input input, .chat-input textarea { flex: 1; }
.day-sep { text-align: center; margin: 8px 0; color: #6b7280; font-size: 12px; }
.empty { text-align: center; color: #6b7280; padding-top: 20px; }
.chat-bubble { position: fixed; right: 16px; bottom: 16px; width: 52px; height: 52px; border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--secondary)); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 20px rgba(2,6,23,.12); z-index: 9998; cursor: pointer; }
.chat-bubble .badge { position: absolute; top: -4px; right: -4px; background: #ef4444; color: #fff; border-radius: 999px; padding: 2px 6px; font-size: 12px; border: 2px solid #fff; display: none; }
.chat-bubble .status-dot { position: absolute; bottom: -2px; right: -2px; width: 10px; height: 10px; border-radius: 999px; border: 2px solid #fff; background: #9ca3af; }
.chat-bubble .status-dot.online { background: #10b981; }
@media (max-width: 600px) { .chat-panel.show { height: 70vh; } }
/* (quitado) efectos de lluvia de logos */
/* Legal pages */
.legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; }
.legal-aside { position: sticky; top: 16px; align-self: start; }
.legal-index { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px; box-shadow: 0 10px 20px rgba(2,6,23,.06); }
.legal-index a { display: block; padding: 8px 10px; border-radius: 8px; color: #1f2937; }
.legal-index a:hover { background: #f3f4f6; }
.legal-index a.active { background: #eef2ff; color: #1e3a8a; border: 1px solid #e5e7eb; }
@media (max-width: 980px) { .legal-layout { grid-template-columns: 1fr; } .legal-aside { position: relative; top: auto; } }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2,1fr); } .row { grid-template-columns: 1fr; } .stats { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } .container { padding: 0 12px; width: 94%; } header .container { width: 94%; } }
body.admin header .container { width: 100%; margin: 0; padding: 0 16px; }
body.admin .container { width: 100%; margin: 0; padding: 0 24px; }
html { scroll-behavior: smooth; }