/* ==========================================
   PINTURAS ALPES — CSS
   ========================================== */

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

:root {
  --white:    #ffffff;
  --off:      #f8f6f2;
  --dark:     #1a1a1a;
  --mid:      #4a4a4a;
  --light:    #8a8a8a;
  --accent:   #c8a96e;
  --accent-d: #a8893e;
  --border:   #e8e4dd;
  --font-body: 'Inter', sans-serif;
  --font-disp: 'Playfair Display', serif;
  --max-w: 1120px;
  --nav-h: 64px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--white); color: var(--dark); line-height: 1.6; -webkit-font-smoothing: antialiased; }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }

.label {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}

h2 {
  font-family: var(--font-disp);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600; line-height: 1.2;
  margin-bottom: 24px; color: var(--dark);
}
h3 { font-family: var(--font-disp); font-size: 1.2rem; font-weight: 600; margin-bottom: 10px; color: var(--dark); }
p { color: var(--mid); font-size: 1rem; line-height: 1.75; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 4px;
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.04em;
  text-decoration: none; transition: all 0.25s var(--ease);
  cursor: pointer; border: none;
}
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-d); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200,169,110,0.3); }

/* ==========================================
   BURGER FLOTANTE — sin header
   ========================================== */
.nav__burger {
  position: fixed;
  top: 28px; left: 48px;
  z-index: 200;
  display: flex;
  flex-direction: column; justify-content: center; gap: 5px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  cursor: pointer;
  padding: 12px; width: 52px; height: 52px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  transition: background 0.2s, box-shadow 0.2s;
}
.nav__burger:hover { background: var(--white); box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.nav__burger span {
  display: block; width: 26px; height: 2px;
  background: var(--dark);
  transition: all 0.3s var(--ease);
  transform-origin: center;
}

/* ==========================================
   NAV DRAWER — MOBILE
   ========================================== */
.nav__drawer {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 300px; max-width: 85vw;
  background: var(--white);
  z-index: 300;
  transform: translateX(-100%);
  transition: transform 0.4s var(--ease);
  box-shadow: 4px 0 40px rgba(0,0,0,0.12);
}
.nav__drawer.open { transform: translateX(0); }

.nav__drawer-inner {
  padding: 32px 28px;
  display: flex; flex-direction: column;
  height: 100%;
}

.nav__close {
  align-self: flex-end;
  background: none; border: none;
  font-size: 1.2rem; color: var(--light);
  cursor: pointer; margin-bottom: 40px;
  padding: 4px;
  transition: color 0.2s;
}
.nav__close:hover { color: var(--dark); }

.nav__drawer-inner ul { list-style: none; flex: 1; }
.nav__drawer-inner ul li { border-bottom: 1px solid var(--border); }

.drawer-link {
  display: block; padding: 18px 4px;
  font-family: var(--font-disp);
  font-size: 1.4rem; font-weight: 600;
  color: var(--dark); text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
}
.drawer-link:hover { color: var(--accent); padding-left: 8px; }

.nav__drawer-socials {
  padding-top: 32px;
  display: flex; gap: 20px;
}
.nav__drawer-socials a {
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--light); text-decoration: none;
  transition: color 0.2s;
}
.nav__drawer-socials a:hover { color: var(--accent); }

/* Overlay oscuro */
.nav__overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 250;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.nav__overlay.visible { opacity: 1; pointer-events: all; }

/* ==========================================
   HERO
   ========================================== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden; background: var(--off);
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(200,169,110,0.12) 0%, transparent 70%),
    linear-gradient(135deg, #f8f6f2 0%, #f0ece3 100%);
}
.hero__content {
  position: relative; z-index: 2;
  width: 100%; max-width: 680px;
  margin: 0 auto;
  padding: 0 24px 80px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.hero__logo {
  width: 60%; max-width: 500px; min-width: 280px;
  height: auto;
  object-fit: contain;
  display: block; margin: 0 auto;
}
.hero__eyebrow {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px; margin-top: 8px;
}
.hero__title {
  font-family: var(--font-disp);
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 600; line-height: 1.1;
  color: var(--dark); margin-bottom: 24px;
}
.hero__title em { font-style: italic; color: var(--accent); }
.hero__sub {
  font-size: 1.1rem; color: var(--mid);
  margin-bottom: 40px; max-width: 480px; line-height: 1.7;
}
.hero__sub strong { color: var(--dark); }
.hero__scroll {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%);
}
.hero__scroll span {
  display: block; width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ==========================================
   NOSOTROS
   ========================================== */
.nosotros { background: var(--white); }
.nosotros__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.nosotros__text h2 { margin-bottom: 20px; }
.nosotros__text p { margin-bottom: 16px; }
.nosotros__text p strong { color: var(--dark); font-weight: 600; }
.nosotros__stats { display: flex; flex-direction: column; gap: 40px; padding-left: 40px; border-left: 1px solid var(--border); }
.stat__num { display: block; font-family: var(--font-disp); font-size: 3rem; font-weight: 600; color: var(--accent); line-height: 1; margin-bottom: 6px; }
.stat__label { font-size: 0.85rem; color: var(--light); letter-spacing: 0.05em; text-transform: uppercase; }

/* ==========================================
   HISTORIA
   ========================================== */
.historia { background: var(--dark); color: var(--white); }
.historia h2, .historia h3 { color: var(--white); }
.historia p { color: rgba(255,255,255,0.65); }
.historia__title { margin-bottom: 64px; }
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 0; width: 1px; background: linear-gradient(to bottom, var(--accent), transparent); }
.timeline__item { position: relative; padding-bottom: 56px; padding-left: 32px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot { position: absolute; left: -36px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(200,169,110,0.2); }
.timeline__year { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.timeline__content h3 { margin-bottom: 12px; }

/* ==========================================
   SERVICIOS
   ========================================== */
.servicios { background: var(--off); }
.servicios__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
.servicio-card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 32px 28px; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s; }
.servicio-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); border-color: var(--accent); }
.servicio-card__icon { font-size: 2rem; margin-bottom: 20px; display: block; }
.servicio-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.servicio-card p { font-size: 0.9rem; }

/* ==========================================
   VÍDEOS — CARRUSEL
   ========================================== */
.videos {
  background: var(--dark);
  overflow: hidden;
  padding-bottom: 64px;
}
.videos .container { padding-bottom: 40px; }
.videos h2 { color: var(--white); }
.videos .label { color: var(--accent); }
.videos__sub { color: rgba(255,255,255,0.55); max-width: 480px; margin-bottom: 0; }

.videos__carousel-wrap {
  position: relative;
  padding: 0 60px;
  max-width: var(--max-w);
  margin: 0 auto;
  overflow: hidden;
}

.videos__carousel {
  display: flex;
  gap: 20px;
  overflow: visible;
  cursor: grab;
  user-select: none;
  will-change: transform;
}
.videos__carousel.dragging { cursor: grabbing; }

.video-card {
  flex: 0 0 calc(33.333% - 14px);
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  transition: transform 0.3s var(--ease);
  aspect-ratio: 9/16;
  max-height: 560px;
  min-height: 300px;
  position: relative;
}
.video-card:hover { transform: scale(1.02); }

.video-card__placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  border: 1px solid rgba(200,169,110,0.2);
  border-radius: 12px;
}
.video-card__icon {
  font-size: 2.5rem;
  color: var(--accent);
  opacity: 0.6;
}
.video-card__net {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
}
.video-card__desc {
  font-size: 0.8rem; color: rgba(255,255,255,0.3);
}

/* Título del vídeo */
.video-card__title {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 12px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 0 0 12px 12px;
}
.video-card video {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* Embeds nativos */
.video-card iframe,
.video-card blockquote {
  width: 100% !important;
  height: 100% !important;
  border: none;
  border-radius: 12px;
}

/* Botones carrusel */
.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white); font-size: 1.4rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.2s;
  z-index: 10;
}
.carousel__btn:hover { background: var(--accent); transform: translateY(-50%) scale(1.1); }
.carousel__btn--prev { left: 8px; }
.carousel__btn--next { right: 8px; }
.carousel__btn.hidden { opacity: 0.2; pointer-events: none; }

/* Dots */
.carousel__dots {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 24px;
}
.carousel__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  cursor: pointer; transition: all 0.3s;
  border: none;
}
.carousel__dot.active {
  background: var(--accent);
  width: 20px; border-radius: 3px;
}

/* Social pills */
.videos__social-links {
  display: flex; justify-content: center; gap: 16px;
  margin-top: 32px; flex-wrap: wrap;
}
.social-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  text-decoration: none; font-size: 0.85rem; font-weight: 500;
  transition: all 0.25s var(--ease);
}
.social-pill:hover { border-color: var(--accent); color: var(--accent); }
.social-pill svg { flex-shrink: 0; }

/* ==========================================
   CONTACTO
   ========================================== */
.contacto { background: var(--white); text-align: center; }
.contacto__sub { max-width: 460px; margin: 0 auto 56px; font-size: 1rem; }
.contacto__grid { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.contacto-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 36px 40px; border: 1px solid var(--border); border-radius: 8px;
  text-decoration: none; color: var(--dark); min-width: 200px;
  transition: all 0.25s var(--ease); background: var(--white);
}
.contacto-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.contacto-card__icon { font-size: 1.8rem; color: var(--accent); display: flex; align-items: center; }
.contacto-card svg { stroke: var(--accent); }
.contacto-card__label { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--light); }
.contacto-card__value { font-size: 1rem; font-weight: 500; color: var(--dark); }

/* ==========================================
   FOOTER
   ========================================== */
.footer { background: var(--dark); padding: 32px 0; color: rgba(255,255,255,0.4); font-size: 0.8rem; }
.footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer__socials { display: flex; gap: 20px; }
.footer__socials a { color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.2s; font-size: 0.8rem; }
.footer__socials a:hover { color: var(--accent); }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .servicios__grid { grid-template-columns: repeat(2, 1fr); }
  .nosotros__grid { gap: 48px; }
  .video-card { flex: 0 0 calc(50% - 10px); }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }

  /* Nav mobile — burger ya visible globalmente */

  /* Hero */
  .hero__content { padding-top: 64px; padding-bottom: 40px; }
  .hero { min-height: auto; }
  .hero__logo { height: 160px; }
  .hero__sub { margin: 0 auto 32px; }

  /* Nosotros */
  .nosotros__grid { grid-template-columns: 1fr; gap: 40px; }
  .nosotros__stats { padding-left: 0; border-left: none; border-top: 1px solid var(--border); padding-top: 32px; flex-direction: row; flex-wrap: wrap; gap: 24px; }
  .stat { flex: 1; min-width: 90px; }

  /* Timeline */
  .timeline { padding-left: 20px; }
  .timeline__item { padding-left: 20px; padding-bottom: 40px; }
  .timeline__dot { left: -24px; }

  /* Servicios */
  .servicios__grid { grid-template-columns: 1fr; gap: 16px; }

  /* Vídeos */
  .videos__carousel-wrap { padding: 0 0; }
  .video-card {
    flex: 0 0 85vw;
    max-height: 70vw;
    min-height: unset;
    aspect-ratio: 9/16;
  }
  .videos__carousel { gap: 12px; padding: 0 7.5vw; }
  .carousel__btn { display: none; }
  .carousel__dots { margin-top: 16px; }

  /* Contacto */
  .contacto__grid { flex-direction: column; align-items: center; }
  .contacto-card { width: 100%; max-width: 320px; }

  /* Footer */
  .footer .container { flex-direction: column; text-align: center; }

  /* Fade-in override for mobile performance */
  .timeline__item, .servicio-card, .stat, .contacto-card { opacity: 1 !important; transform: none !important; }
}

/* ═══════════════════════════════
   FAQ SECTION
═══════════════════════════════ */
.faq { background: var(--bg-alt); }
.faq__list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: #fff;
  border: 1px solid #e8e0d5;
  border-radius: 10px;
  overflow: hidden;
}
.faq__question {
  display: block;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  color: var(--text-dark);
  position: relative;
  padding-right: 48px;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform 0.2s;
  font-weight: 300;
}
.faq__item[open] .faq__question::after {
  transform: translateY(-50%) rotate(45deg);
}
.faq__answer {
  padding: 0 22px 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}
