/* ==========================================================
   VIDEOQUITO - Hoja de estilos (paleta amarilla)
   Usada por index.html y galeria.html
   ========================================================== */

:root {
  --yellow: #ffc629;
  --yellow-soft: #ffe38a;
  --yellow-dark: #d99f00;
  --charcoal: #1d1f23;
  --charcoal-2: #2a2d33;
  --ink: #23262b;
  --muted: #5b6068;
  --cream: #fffaf0;
  --white: #ffffff;
  --line: #eadfc4;
  --radius: 16px;
  --shadow: 0 18px 40px rgba(29, 31, 35, 0.14);
  --max: 1180px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  line-height: 1.2;
  color: var(--charcoal);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.25rem; }

p {
  margin: 0 0 1em;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--yellow);
  color: var(--charcoal);
  padding: 0.6rem 1rem;
  font-weight: 700;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

:focus-visible {
  outline: 3px solid var(--charcoal);
  outline-offset: 3px;
}

/* ---------- Encabezado y navegación ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--charcoal);
  color: #fff;
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
}

/* Altura del logo: ajusta este valor si tu logo es más grande o más pequeño */
.brand-logo {
  height: 48px;
  width: auto;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--yellow);
}

.nav-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem 1.25rem 1.5rem;
  background: var(--charcoal);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.3);
}

.nav-menu.is-open {
  display: flex;
}

.nav-menu a {
  padding: 0.6rem 0.4rem;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
  color: var(--yellow);
}

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

  .nav-menu {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.4rem;
    padding: 0;
    background: none;
    box-shadow: none;
  }

  .nav-menu a {
    padding: 0.3rem 0;
  }

  .nav-menu .btn-small {
    padding: 0.55rem 1.1rem;
  }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--yellow);
  color: var(--charcoal);
}

.btn-primary:hover {
  background: var(--yellow-soft);
}

.btn-ghost {
  border-color: #fff;
  color: #fff;
  background: transparent;
}

.btn-ghost:hover {
  background: #fff;
  color: var(--charcoal);
}

.btn-dark {
  background: var(--charcoal);
  color: #fff;
}

.btn-dark:hover {
  background: var(--charcoal-2);
}

.btn-outline {
  border-color: var(--charcoal);
  color: var(--charcoal);
  background: transparent;
}

.btn-outline:hover {
  background: var(--yellow-soft);
}

.btn-small {
  padding: 0.55rem 1.1rem;
  font-size: 0.95rem;
}

/* ---------- Hero con foto 16:9 ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 88vh;
  overflow: hidden;
  color: #fff;
  background: var(--charcoal);
}

/* Foto de fondo: se recorta sin deformarse y ocupa todo el hero */
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(20, 21, 24, 0.92) 0%,
    rgba(20, 21, 24, 0.66) 55%,
    rgba(20, 21, 24, 0.25) 100%
  );
}

.hero-content {
  position: relative;
  padding: 6rem 0;
  max-width: 860px;
}

.hero h1 {
  color: #fff;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--yellow);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow-dark {
  color: var(--yellow-dark);
}

.hero-lead {
  max-width: 700px;
  font-size: 1.12rem;
  color: #f1ece0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.8rem 0 2.4rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  color: #e9e3d3;
}

.hero-stats strong {
  display: block;
  color: var(--yellow);
  font-size: 1.3rem;
}

/* ---------- Secciones ---------- */
.section {
  padding: 5.5rem 0;
}

.section-alt {
  background: var(--white);
}

.section-head {
  max-width: 780px;
  margin-bottom: 3rem;
}

.section-head p,
.lead {
  color: var(--muted);
  font-size: 1.08rem;
}

.lead {
  font-size: 1.12rem;
}

.split {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Tarjetas ---------- */
.card {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(29, 31, 35, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.2rem;
  border-radius: 14px;
  background: var(--yellow);
  color: var(--charcoal);
  font-weight: 800;
}

/* Tarjeta de "¿Qué necesitas comunicar?" */
.needs-card {
  padding: 2.4rem;
  color: #f5f1e6;
  background: var(--charcoal);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.needs-card h3 {
  color: #fff;
  font-size: 1.6rem;
}

.needs-card > p {
  color: #e4dfd0;
}

.needs-list {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
  padding: 0;
  list-style: none;
}

.needs-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.needs-list li::before {
  content: "";
  flex: 0 0 12px;
  height: 12px;
  margin-top: 0.5rem;
  border-radius: 50%;
  background: var(--yellow);
}

.needs-list strong {
  display: block;
  color: var(--yellow);
}

.needs-list span {
  color: #d9d4c7;
  font-size: 0.97rem;
}

/* ---------- Pasos del proceso ---------- */
.steps {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step {
  padding: 2rem 1.6rem;
  background: var(--white);
  border-top: 6px solid var(--yellow);
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(29, 31, 35, 0.06);
}

.step-number {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--yellow-dark);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
}

.step p {
  margin: 0;
  color: var(--muted);
}

/* ---------- Banda de llamado a la acción ---------- */
.cta-band {
  padding: 4rem 0;
  background: var(--yellow);
  color: var(--charcoal);
}

.cta-band h2 {
  color: var(--charcoal);
}

.cta-band p {
  margin: 0;
  color: #3b3520;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .cta-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ---------- Preguntas frecuentes ---------- */
.faq {
  display: grid;
  gap: 1rem;
  max-width: 860px;
}

.faq details {
  padding: 1.2rem 1.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.faq summary {
  position: relative;
  padding-right: 2rem;
  cursor: pointer;
  color: var(--charcoal);
  font-weight: 700;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -2px;
  color: var(--yellow-dark);
  font-size: 1.5rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2013";
}

.faq details p {
  margin: 0.8rem 0 0;
  color: var(--muted);
}

/* ---------- Contacto y mapa ---------- */
.contact-info {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

.contact-info div {
  padding: 1rem 1.2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.contact-info strong {
  display: block;
  color: var(--charcoal);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.map-wrap {
  min-height: 380px;
  overflow: hidden;
  border: 4px solid var(--yellow);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
}

/* ---------- Página Galería ---------- */
.page-hero {
  padding: 5rem 0 4rem;
  background: var(--charcoal);
  color: #fff;
}

.page-hero h1 {
  color: #fff;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  font-size: 1.1rem;
  color: #e4dfd0;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.55rem 1.1rem;
  border: 2px solid var(--charcoal);
  border-radius: 999px;
  background: transparent;
  color: var(--charcoal);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.filter-btn:hover {
  background: var(--yellow-soft);
}

.filter-btn.is-active {
  background: var(--charcoal);
  color: #fff;
}

.video-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(29, 31, 35, 0.06);
}

.video-card[hidden] {
  display: none;
}

.video-embed {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  background: #ece5cf;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-pending {
  margin: 0;
  padding: 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.video-body {
  padding: 1.4rem 1.5rem 1.6rem;
}

.video-body h3 {
  font-size: 1.1rem;
}

.video-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

.tag {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--charcoal);
  font-size: 0.8rem;
  font-weight: 700;
}

/* ---------- Pie de página ---------- */
.site-footer {
  padding: 2.5rem 0;
  background: #15161a;
  color: #c9c4b6;
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner p {
  margin: 0;
}

.site-footer a {
  color: var(--yellow);
}

/* ---------- Animaciones (solo si hay JavaScript) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
