/*
 * GuapiWeb Nuevo - Estilos principales
 *
 * Este archivo CSS define la apariencia moderna y efectiva del sitio de GuapiWeb.
 * Está inspirado en el estilo dark-premium propuesto, con glassmorphism sutil,
 * gradientes discretos y micro-animaciones suaves. Los colores se basan en la
 * identidad de GuapiWeb (azul, rojo, amarillo y verde) sobre un fondo oscuro.
 */

/* Paleta base personalizada para GuapiWeb */

/* ====== Temas: oscuro/claro ====== */
:root, [data-theme="dark"] {
  --bg: #0e0f12;
  --panel: rgba(255, 255, 255, 0.06);
  --brand: #f4b400;
  --brand2: #4285f4;
  --brand3: #ea4335;
  --brand4: #34a853;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --line: rgba(255, 255, 255, 0.1);
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  --header-bg: rgba(14, 15, 18, 0.7);
  --footer-bg: rgba(14, 15, 18, 0.8);
  --hero-grad-start: #0c111b;
  --hero-grad-end: #0b1020;
  --cta-fg: #0b1020;
}

[data-theme="light"] {
  --bg: #f8fafc;
  --panel: rgba(0, 0, 0, 0.04);
  --brand: #f4b400;
  --brand2: #2563eb;
  --brand3: #dc2626;
  --brand4: #16a34a;
  --text: #0f172a;
  --muted: #475569;
  --line: rgba(0, 0, 0, 0.12);
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  --header-bg: rgba(255, 255, 255, 0.7);
  --footer-bg: rgba(255, 255, 255, 0.85);
  --hero-grad-start: #e2e8f0;
  --hero-grad-end: #f1f5f9;
  --cta-fg: #0b1020;
}


/* Reset básico y tipografía */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.5;
  scroll-behavior: smooth;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--brand);
  text-decoration: none;
  transition: opacity 0.15s ease;
}
a:hover {
  opacity: 0.9;
}

/* Contenedor central para limitar el ancho */
.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* ================== ENCABEZADO ================== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
}
/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo img {
  height: 60px;      /* antes: 42px */
  max-height: 70px;  /* límite para que no rompa en móviles */
  width: auto;
}
.nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
.nav a {
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--text);
  font-weight: 500;
  transition: transform 0.18s ease, background 0.18s ease;
}
.nav a:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.05);
}
.nav a.active {
  color: var(--brand);
}
/* Instagram icon wrapper */
.instagram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.18s ease;
}
.instagram-link:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* CTA buttons */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: var(--cta-fg);
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}
.cta--ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}

/* Responsive helpers for CTAs */
.hide-mobile { display: none; }
.show-mobile { display: inline-flex; }
@media (min-width: 768px) {
  .hide-mobile { display: inline-flex; }
  .show-mobile { display: none; }
}

/* ================== HERO Y CARRUSEL ================== */
.hero {
  padding: 24px 0 8px;
}
.carousel {
  position: relative;
  width: 100%;
  height: clamp(240px, 52vh, 560px);
  background: linear-gradient(180deg, var(--hero-grad-start), var(--hero-grad-end));
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 20px;
  border: 1px solid var(--line);
}
.carousel__viewport {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}
.carousel__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.carousel__slide.is-active {
  opacity: 1;
}
.carousel__img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;object-position:center center;background:transparent}
.carousel__controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  pointer-events: none;
}
.carousel__btn {
  pointer-events: auto;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.18s ease;
}
.carousel__btn:hover {
  background: rgba(255, 255, 255, 0.25);
}
.carousel__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: background 0.18s ease;
}
.carousel__dot.is-active {
  background: var(--brand);
}

/* ================== SECCIONES GENERALES ================== */
.section {
  padding: 56px 0;
}
.section-title {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--text);
  text-align: center;
  letter-spacing: -1px;
}
.section-subtitle {
  font-size: clamp(1rem, 3vw, 1.3rem);
  color: var(--muted);
  text-align: center;
  margin-bottom: 32px;
}

/* Cards y grids */
.grid {
  display: grid;
  gap: 18px;
}
.grid--3 {
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
.grid--2 {
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}
.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.card p {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.card ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.card ul li {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 6px;
  position: relative;
  padding-left: 20px;
}
.card ul li:before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
.card .price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand);
  margin: 12px 0;
}
.card .card-links {
  margin-top: auto;
  display: flex;
  gap: 12px;
}
.card .card-link {
  background: var(--brand2);
  color: var(--cta-fg);
  text-decoration: none;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: background 0.14s ease;
}
.card .card-link:hover {
  background: var(--brand);
}

/* FAQ estilos */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  margin-bottom: 14px;
  overflow: hidden;
  transition: background 0.18s ease;
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
}
.faq-question h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}
.faq-icon {
  transition: transform 0.3s ease;
}
.faq-item.active .faq-icon {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.active .faq-answer {
  max-height: 240px;
  padding: 0 20px 16px 20px;
}
.faq-answer p {
  font-size: 0.95rem;
  color: var(--muted);
}

/* Contacto */
.contact-section {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.contact-methods {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
}
@media (min-width: 600px) {
  .contact-methods {
    flex-direction: row;
    justify-content: center;
  }
}
.contact-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.contact-method h4 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text);
}
.contact-method p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Footer */
.footer {
  margin-top: 64px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--footer-bg);
  backdrop-filter: blur(8px);
}
.footer .footer-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 600px) {
  .footer .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}
.footer-section {
  flex: 1;
}
.footer h4 {
  font-size: 1.05rem;
  margin-bottom: 12px;
  color: var(--text);
}
.footer a {
  color: var(--muted);
  font-size: 0.9rem;
}
.footer a:hover {
  color: var(--brand);
}

/* Semántica y accesibilidad */
a:focus, button:focus {
  outline: 2px solid var(--brand2);
  outline-offset: 2px;
}

/* Skip link: enlace para saltar al contenido principal */
.skip-link {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -40px;
  background: var(--brand);
  color: var(--cta-fg);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  z-index: 200;
  transition: top 0.25s ease;
}
.skip-link:focus {
  top: 10px;
}


/* ==== Micro-interacciones === */
.card, .cta, .instagram-link {
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 34px rgba(0,0,0,0.45);
}
.cta:hover {
  transform: translateY(-2px) scale(1.03);
}
.instagram-link:hover {
  transform: rotate(5deg) scale(1.1);
}
/* Animación de aparición en scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Theme toggle styles */.theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:999px;border:1px solid var(--line);background:var(--panel);color:var(--text);cursor:pointer;transition:transform .18s ease,background .18s ease}.theme-toggle:hover{transform:translateY(-1px);background:rgba(255,255,255,.08)}.theme-toggle svg{width:20px;height:20px}
.hero-subtagline{font-size:clamp(.9rem,3vw,1rem);color:var(--muted);text-align:center;margin-top:8px;margin-bottom:4px;line-height:1.4}
.footer .instagram-icon{width:28px;height:28px;vertical-align:middle;border-radius:6px;margin-left:6px}.slideshow{position:relative}.slideshow__img{width:100%;height:100%;object-fit:cover;object-position:var(--focus,50% 50%)}@media (prefers-reduced-motion:reduce){}.slideshow{position:relative}.slideshow__slide{position:absolute;inset:0;opacity:0;clip-path:inset(0 100% 0 0);transition:opacity 1.5s ease-in-out,clip-path 1.5s ease-in-out}.slideshow__slide.is-active{opacity:1;clip-path:inset(0 0 0 0);z-index:2}.slideshow__slide.is-exiting{opacity:1;clip-path:inset(0 0 0 0);z-index:1}.slideshow__img{width:100%;height:100%;object-fit:cover;object-position:var(--focus,50% 50%)}@media (prefers-reduced-motion:reduce){.slideshow__slide{transition:none}}