/* ============================================
   Vibra Eventos - CSS principal
   Paleta: amarillo Vibra + gris oscuro
   Fuentes: Cinzel (decorativa) + Montserrat (cuerpo)
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --amarillo: #ffe600;
  --amarillo-osc: #d9c200;
  --gris-osc: #1d1e20;
  --gris-medio: #4a4a4a;
  --gris-claro: #f5f5f5;
  --blanco: #ffffff;
  --negro: #000000;
  --wa: #25d366;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gris-osc);
  background: var(--blanco);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ============== NAV ============== */
nav.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--amarillo);
  width: 100%;
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
}

.logo img {
  height: 64px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--gris-osc);
  letter-spacing: 1px;
  transition: opacity .2s;
}

.nav-links a:hover,
.nav-links a.active {
  border-bottom: 2px solid var(--gris-osc);
}

/* Hamburguesa */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--gris-osc);
  position: relative;
}

.hamburger span::before,
.hamburger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 28px;
  height: 3px;
  background: var(--gris-osc);
}

.hamburger span::before { top: -9px; }
.hamburger span::after { top: 9px; }

/* ============== HERO ============== */
.hero {
  padding: 0;
  position: relative;
  width: 100%;
  background: var(--negro);
  overflow: hidden;
}

.hero-media {
  width: 100%;
  height: 70vh;
  min-height: 480px;
  max-height: 720px;
  position: relative;
}

.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}

.hero-logo {
  max-width: 380px;
  width: 60%;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
}

.btn-primary {
  background: var(--amarillo);
  color: var(--gris-osc);
}

.btn-primary:hover {
  background: var(--amarillo-osc);
}

.btn-secondary {
  background: var(--blanco);
  color: var(--gris-osc);
}

.btn-secondary:hover {
  background: var(--gris-claro);
}

/* ============== SECCIONES ============== */
section {
  padding: 80px 32px;
}

.section-yellow {
  background: var(--amarillo);
}

.section-dark {
  background: var(--gris-osc);
  color: var(--blanco);
}

.section-light {
  background: var(--blanco);
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

h1, h2, h3 {
  font-family: 'Cinzel', serif;
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 1.2;
}

h1 {
  font-size: clamp(28px, 5vw, 48px);
  margin-bottom: 24px;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(24px, 4vw, 36px);
  margin-bottom: 24px;
  text-transform: uppercase;
}

h3 {
  font-size: clamp(18px, 3vw, 24px);
  margin-bottom: 16px;
  text-transform: uppercase;
}

p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 16px;
  max-width: 720px;
}

p.lead {
  font-size: 18px;
  font-weight: 500;
}

.txt-center { text-align: center; }
.txt-center p { margin-left: auto; margin-right: auto; }

/* Grid de servicios (home) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.service-card {
  background: var(--gris-osc);
  color: var(--blanco);
  padding: 32px 24px;
  border-radius: 12px;
  text-align: center;
  transition: transform .2s;
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-card h3 {
  color: var(--amarillo);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 14px;
  margin: 0;
}

/* Galería de efectos */
.effects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.effect-card {
  background: var(--blanco);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.effect-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.effect-card-body {
  padding: 24px;
}

.effect-card h3 {
  color: var(--gris-osc);
  margin-bottom: 12px;
}

.effect-card p {
  font-size: 14px;
  color: var(--gris-medio);
}

/* Servicios sonido/iluminación, dj */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 64px;
}

.feature-block:nth-child(even) {
  direction: rtl;
}

.feature-block:nth-child(even) > * {
  direction: ltr;
}

.feature-img img {
  width: 100%;
  border-radius: 12px;
  max-height: 480px;
  object-fit: cover;
}

.feature-text h2 {
  color: var(--gris-osc);
}

/* ============== FORMULARIO CONTACTO ============== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 48px;
}

.form-block input,
.form-block select,
.form-block textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--gris-claro);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  background: var(--blanco);
  margin-bottom: 16px;
  transition: border-color .2s;
}

.form-block input:focus,
.form-block select:focus,
.form-block textarea:focus {
  outline: none;
  border-color: var(--gris-osc);
}

.form-block label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--gris-osc);
}

.form-block textarea {
  min-height: 120px;
  resize: vertical;
  font-family: inherit;
}

.form-submit {
  background: var(--gris-osc);
  color: var(--blanco);
  padding: 16px 40px;
  font-family: 'Cinzel', serif;
  font-size: 15px;
  letter-spacing: 1px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  width: 100%;
  transition: background .2s;
}

.form-submit:hover {
  background: var(--negro);
}

.contact-info {
  background: var(--gris-osc);
  color: var(--blanco);
  padding: 40px;
  border-radius: 12px;
}

.contact-info h3 {
  color: var(--amarillo);
  margin-bottom: 24px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 15px;
}

.contact-row .icon {
  font-size: 22px;
  flex-shrink: 0;
}

.contact-row a {
  color: var(--blanco);
  border-bottom: 1px dashed transparent;
  transition: border-color .2s;
}

.contact-row a:hover {
  border-bottom-color: var(--amarillo);
}

/* ============== FOOTER ============== */
footer {
  background: var(--gris-osc);
  color: var(--blanco);
  padding: 48px 32px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-col h4 {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--amarillo);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; font-size: 14px; opacity: 0.85; }
.footer-col ul li a:hover { opacity: 1; color: var(--amarillo); }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  opacity: 0.7;
}

/* ============== WHATSAPP FLOTANTE ============== */
.wa-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: var(--wa);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  z-index: 999;
  transition: transform .2s;
}

.wa-bubble:hover {
  transform: scale(1.08);
}

.wa-bubble svg {
  width: 34px;
  height: 34px;
  fill: #fff;
}

/* ============== RESPONSIVE ============== */
@media (max-width: 900px) {
  .hamburger { display: flex; }

  .nav-overlay {
    display: none;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    background: var(--amarillo);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    z-index: 99;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-radius: 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 16px 24px;
    width: 100%;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: #1a1a1a !important;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(0,0,0,0.06);
  }

  .nav-close {
    display: none !important;
  }

.nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 22px;
  }

  .nav-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: var(--gris-osc);
    width: 44px;
    height: 44px;
  }

  .hero-media {
    height: 60vh;
    min-height: 380px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .effects-grid {
    grid-template-columns: 1fr;
  }

  .feature-block {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature-block:nth-child(even) {
    direction: ltr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  section {
    padding: 56px 24px;
  }

  .nav-inner {
    padding: 12px 20px;
  }

  .logo img {
    height: 48px;
  }
}

@media (min-width: 901px) {
  .nav-close {
    display: none;
  }
}

/* Hero compacto para páginas internas (sin imagen) */
.hero-media:not(:has(img)):not(:has(video)) {
  background: var(--amarillo);
  height: auto;
  min-height: 0;
  max-height: none;
  padding: 60px 32px;
}
.hero-media:not(:has(img)):not(:has(video)) .hero-overlay {
  position: static;
  text-align: center;
  background: transparent;
}
.hero-media:not(:has(img)):not(:has(video)) h1,
.hero-media:not(:has(img)):not(:has(video)) p {
  color: #1a1a1a !important;
  margin-left: auto;
  margin-right: auto;
}

/* Casilla RGPD - excepción al width 100% de los inputs */
.form-block input[type="checkbox"] {
  width: auto !important;
  padding: 0 !important;
  margin: 4px 10px 0 0 !important;
  flex-shrink: 0;
  cursor: pointer;
}

.form-rgpd label {
  display: flex !important;
  align-items: flex-start;
  font-weight: normal !important;
  font-size: 13px;
  line-height: 1.5;
  color: #555;
  cursor: pointer;
  margin-top: 0 !important;
}

.form-rgpd label a {
  color: #1a1a1a;
  text-decoration: underline;
}
