/* =========================================================
   RENTAL EVENTOS · Frontend
   Mobile-first · Tema oscuro premium con acentos eléctricos
   ========================================================= */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #e9eef5;
  background: var(--color-dark, #0b0f17);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary, #0a84ff); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ======= HEADER ======= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(11, 15, 23, 0.85);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .25s;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.logo { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 800; font-size: 1.1rem; letter-spacing: -0.01em; }
.logo img { max-height: 42px; width: auto; }
.logo-text { color: #fff; }

.main-nav { display: none; align-items: center; gap: 28px; }
.main-nav a { color: #cdd5e0; font-weight: 500; font-size: .95rem; }
.main-nav a:hover { color: #fff; }
.main-nav .nav-cta { color: #fff; }

.hamburger {
  display: flex; flex-direction: column; gap: 5px;
  width: 36px; height: 36px;
  background: transparent; border: 0; cursor: pointer;
  align-items: center; justify-content: center;
}
.hamburger span { width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: .25s; }
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 900px) {
  .main-nav { display: flex; }
  .hamburger { display: none; }
}

@media (max-width: 899px) {
  .main-nav {
    position: fixed; inset: 70px 0 0 0;
    background: rgba(11,15,23,.97);
    flex-direction: column; gap: 0;
    padding: 30px 24px; overflow-y: auto;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .25s, transform .25s;
  }
  .main-nav.is-open { display: flex; opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.06); width: 100%; font-size: 1.1rem; }
  .main-nav .nav-cta { margin-top: 18px; text-align: center; }
}

/* ======= BUTTONS ======= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 10px; font-weight: 600; font-size: .95rem;
  cursor: pointer; border: 0; transition: transform .15s, box-shadow .25s, background .2s;
  text-decoration: none; line-height: 1; white-space: nowrap;
}
.btn-primary {
  background: var(--color-primary); color: #fff;
  box-shadow: 0 8px 24px rgba(10, 132, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-1px); color: #fff; box-shadow: 0 12px 30px rgba(10, 132, 255, 0.5); }
.btn-secondary {
  background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,.14);
}
.btn-secondary:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-wa {
  background: #25d366; color: #fff;
}
.btn-wa:hover { background: #1eb955; color: #fff; }
.btn-sm { padding: 10px 18px; font-size: .85rem; }
.btn-lg { padding: 16px 30px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ======= SECTIONS ======= */
section { padding: 80px 0; }
@media (max-width: 768px) { section { padding: 50px 0; } }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-head .eyebrow {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(10,132,255,.12); color: var(--color-primary);
  font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px;
}
.section-head h2 { color: #fff; }
.section-head p { color: #aab2bf; font-size: 1.05rem; }

/* ======= HERO ======= */
.hero {
  position: relative; padding: 120px 0 80px; overflow: hidden;
  background:
    radial-gradient(circle at 20% 0%, rgba(10,132,255,.18), transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(124,252,0,.12), transparent 50%),
    var(--color-dark);
}
.hero::before {
  content:''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  pointer-events: none;
}
.hero-bg-media {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.hero-bg-media img, .hero-bg-media video {
  width: 100%; height: 100%; object-fit: cover; opacity: .25;
}
.hero-content { position: relative; z-index: 1; max-width: 820px; }
.hero-content h1 { color: #fff; margin-bottom: 20px; }
.hero-content .lead { color: #c1c9d4; font-size: 1.15rem; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 600px) { .hero-actions .btn { flex: 1 1 100%; } }

/* ======= TRUST ======= */
.trust { padding: 60px 0; border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); }
.trust-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-primary), rgba(10,132,255,.4));
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700;
}
.trust-text h4 { color: #fff; font-size: 1rem; margin-bottom: 4px; }
.trust-text p { color: #93a0b0; font-size: .9rem; margin: 0; }

/* ======= CARDS / GRID ======= */
.cards-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .25s, border-color .2s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); border-color: rgba(10,132,255,.35); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.card-image {
  aspect-ratio: 16/10; background: #1a2030; position: relative; overflow: hidden;
}
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card-image img { transform: scale(1.04); }
.card-image-placeholder {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1a2030, #0e131c);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.2); font-size: 3rem; font-weight: 800;
}
.card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.card-eyebrow {
  font-size: .75rem; font-weight: 600; color: var(--color-primary);
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px;
}
.card-title { color: #fff; font-size: 1.15rem; margin-bottom: 10px; }
.card-text { color: #aab2bf; font-size: .92rem; flex: 1; }
.card-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.card-actions .btn { flex: 1 1 auto; }

/* ======= QUOTE FORM (Configurador) ======= */
.quote-form {
  background: linear-gradient(135deg, rgba(10,132,255,.08), rgba(124,252,0,.04));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  padding: 40px;
}
@media (max-width: 600px) { .quote-form { padding: 24px; border-radius: 16px; } }

.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

.form-group label { display: block; color: #cdd5e0; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  color: #fff; font: inherit;
  transition: border-color .2s, background .2s;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #707b8a; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--color-primary); background: rgba(255,255,255,.06);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select option { background: #0e131c; color: #fff; }

.checkbox-grid {
  display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.checkbox-grid label {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px; cursor: pointer; transition: background .15s, border-color .15s;
  font-size: .9rem; font-weight: 500;
}
.checkbox-grid label:hover { background: rgba(255,255,255,.07); }
.checkbox-grid input { accent-color: var(--color-primary); }
.checkbox-grid input:checked + span { color: var(--color-primary); }

.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }

.form-message { padding: 14px 18px; border-radius: 10px; margin-bottom: 16px; font-weight: 500; }
.form-message.ok { background: rgba(34,197,94,.15); border: 1px solid rgba(34,197,94,.3); color: #4ade80; }
.form-message.err { background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.3); color: #f87171; }

/* ======= CLIENT TYPES ======= */
.client-types {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.client-type {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px; padding: 24px 18px; text-align: center;
  transition: transform .2s, border-color .2s;
}
.client-type:hover { transform: translateY(-3px); border-color: var(--color-primary); }
.client-type-icon { font-size: 2rem; margin-bottom: 10px; }
.client-type h4 { color: #fff; font-size: 1rem; margin: 0 0 6px; }
.client-type p { color: #93a0b0; font-size: .85rem; margin: 0; }

/* ======= CTA ======= */
.cta-block {
  background: linear-gradient(135deg, var(--color-primary), #0050cf);
  border-radius: 24px; padding: 60px 40px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-block::before {
  content:''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(255,255,255,.15), transparent 50%);
}
.cta-block > * { position: relative; }
.cta-block h2 { color: #fff; margin-bottom: 14px; }
.cta-block p { color: rgba(255,255,255,.9); font-size: 1.1rem; max-width: 600px; margin: 0 auto 28px; }
.cta-block .btn-primary { background: #fff; color: var(--color-primary); }
.cta-block .btn-primary:hover { background: rgba(255,255,255,.92); color: var(--color-primary); }
.cta-block .btn-secondary { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.3); }

/* ======= FAQ ======= */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px; margin-bottom: 12px; overflow: hidden;
}
.faq-q {
  width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer;
  padding: 20px; color: #fff; font-weight: 600; font-size: 1rem;
  display: flex; justify-content: space-between; align-items: center; gap: 10px; font: inherit; font-weight: 600;
}
.faq-q::after { content: '+'; font-size: 1.5rem; color: var(--color-primary); transition: transform .25s; flex-shrink: 0; }
.faq-item.is-open .faq-q::after { transform: rotate(45deg); }
.faq-a { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height .3s, padding .25s; color: #aab2bf; }
.faq-item.is-open .faq-a { padding: 0 20px 20px; max-height: 800px; }

/* ======= GALLERY ======= */
.gallery {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.gallery-item {
  aspect-ratio: 4/3; border-radius: 12px; overflow: hidden;
  background: #1a2030;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.05); }

/* ======= PORTFOLIO CARDS ======= */
.portfolio-card .card-image { aspect-ratio: 4/3; }
.portfolio-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: .8rem; color: #93a0b0; margin-top: 8px; }
.portfolio-meta span { background: rgba(255,255,255,.05); padding: 4px 10px; border-radius: 999px; }

/* ======= BLOG ======= */
.blog-meta { color: #93a0b0; font-size: .85rem; margin-bottom: 8px; }
.post-content { max-width: 760px; margin: 0 auto; line-height: 1.8; color: #cdd5e0; font-size: 1.05rem; }
.post-content h2 { color: #fff; margin-top: 1.6em; }
.post-content h3 { color: #fff; }
.post-content p { margin-bottom: 1.2em; }

/* ======= FOOTER ======= */
.site-footer { background: #060a12; padding: 60px 0 0; border-top: 1px solid rgba(255,255,255,.06); margin-top: 60px; }
.footer-grid {
  display: grid; gap: 40px;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-title { color: #fff; font-size: 1.2rem; }
.footer-subtitle { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 16px; }
.footer-text { color: #93a0b0; font-size: .9rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #93a0b0; font-size: .9rem; }
.footer-links a:hover { color: #fff; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { color: #93a0b0; font-size: .9rem; margin-bottom: 8px; }
.footer-contact a { color: #93a0b0; }
.footer-contact a:hover { color: #fff; }
.footer-socials { display: flex; gap: 8px; margin-top: 14px; }
.footer-socials a {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,.05); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .8rem; color: #cdd5e0;
}
.footer-socials a:hover { background: var(--color-primary); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); margin-top: 50px; padding: 22px 0; }
.footer-bottom p { color: #707b8a; font-size: .85rem; margin: 0; text-align: center; }

/* ======= FLOAT BUTTONS ======= */
.float-wa, .float-chat {
  position: fixed; right: 22px; width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: #fff; z-index: 40; box-shadow: 0 8px 22px rgba(0,0,0,.4);
  transition: transform .25s; border: 0; cursor: pointer;
}
.float-wa { background: #25d366; bottom: 24px; }
.float-wa:hover { transform: scale(1.08); color: #fff; }
.float-chat { background: var(--color-primary); bottom: 92px; }

/* ======= CHATBOT ======= */
.chatbot {
  position: fixed; bottom: 92px; right: 22px; width: 320px; max-width: calc(100vw - 44px);
  background: #0e131c; border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px; box-shadow: 0 14px 40px rgba(0,0,0,.5);
  z-index: 41; overflow: hidden;
  display: flex; flex-direction: column; max-height: 70vh;
}
.chatbot-head { padding: 14px 16px; background: var(--color-primary); color: #fff; display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.chatbot-close { background: transparent; border: 0; color: #fff; font-size: 1.4rem; cursor: pointer; }
.chatbot-body { padding: 14px; overflow-y: auto; flex: 1; min-height: 200px; }
.bot-msg, .user-msg { padding: 10px 14px; border-radius: 12px; margin-bottom: 8px; font-size: .9rem; max-width: 85%; }
.bot-msg { background: rgba(255,255,255,.06); color: #cdd5e0; }
.user-msg { background: var(--color-primary); color: #fff; margin-left: auto; }
.chatbot-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.chatbot-quick button { background: rgba(10,132,255,.15); color: var(--color-primary); border: 1px solid rgba(10,132,255,.3); border-radius: 999px; padding: 6px 12px; font-size: .8rem; cursor: pointer; font-weight: 500; }
.chatbot-quick button:hover { background: rgba(10,132,255,.25); }
.chatbot-form { display: flex; padding: 10px; gap: 8px; border-top: 1px solid rgba(255,255,255,.06); }
.chatbot-form input { flex: 1; padding: 10px 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; color: #fff; font: inherit; }
.chatbot-form button { background: var(--color-primary); color: #fff; border: 0; padding: 10px 14px; border-radius: 8px; cursor: pointer; }

/* ======= UTIL ======= */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 20px; }
.mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.text-white { color: #fff; }
.text-muted { color: #93a0b0; }
.divider { height: 1px; background: rgba(255,255,255,.06); margin: 40px 0; }

/* ======= BREADCRUMBS ======= */
.breadcrumbs { padding: 16px 0; font-size: .85rem; color: #93a0b0; }
.breadcrumbs a { color: #93a0b0; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs span { color: #707b8a; margin: 0 6px; }

/* ======= DETAIL PAGES ======= */
.detail-hero {
  background: linear-gradient(135deg, rgba(10,132,255,.1), rgba(0,0,0,0)) , #0e131c;
  padding: 60px 0;
}
.detail-hero h1 { color: #fff; }
.detail-hero p { color: #c1c9d4; font-size: 1.1rem; max-width: 700px; }
.detail-hero .actions { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }

.detail-grid { display: grid; gap: 40px; grid-template-columns: 2fr 1fr; }
@media (max-width: 768px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-content h2 { color: #fff; }
.detail-content { color: #cdd5e0; line-height: 1.8; }
.detail-aside { position: sticky; top: 90px; align-self: start; }
.detail-aside .card-aside {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px; padding: 26px;
}
.detail-aside h3 { color: #fff; }
.spec-list { list-style: none; padding: 0; margin: 0; }
.spec-list li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.06); color: #cdd5e0; font-size: .92rem; }
.spec-list li:last-child { border: 0; }

/* ======= ANIMACIONES SUAVES ======= */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .6s; }
.fade-up.is-visible { opacity: 1; transform: translateY(0); }

/* Lazy image fade */
img.lazy { opacity: 0; transition: opacity .4s; }
img.lazy.loaded { opacity: 1; }
