/* =========================================================
   GIO TUFTING — tema dark / morado / grunge
   Por Despega · paleta y tipografías aproximadas al mockup
   ========================================================= */

:root {
  --bg:        #0c0a0f;
  --bg-2:      #131016;
  --bg-3:      #1b1620;
  --bg-card:   #18141d;
  --line:      rgba(255, 255, 255, 0.08);
  --line-2:    rgba(255, 255, 255, 0.14);

  --purple:        #8b5cf6;
  --purple-bright: #a855f7;
  --purple-deep:   #6d28d9;
  --purple-soft:   rgba(139, 92, 246, 0.16);

  --text:   #f4f2f7;
  --muted:  #9b94a6;
  --muted-2:#6f6878;

  --font-body: "Plus Jakarta Sans", -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-display: "Anton", Impact, sans-serif;
  --font-brush: "Permanent Marker", "Comic Sans MS", cursive;

  --radius: 16px;
  --maxw: 1160px;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Textura sutil tipo lienzo/tela */
  background-image:
    radial-gradient(1200px 600px at 80% -5%, rgba(139, 92, 246, 0.10), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-attachment: fixed;
}

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Tipografía display / brush ---------- */
.brush {
  font-family: var(--font-brush);
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 1.05;
}

.section-title {
  font-family: var(--font-brush);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  color: var(--purple-bright);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--purple-bright);
  font-weight: 700;
  margin-bottom: 12px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 13px 26px;
  border-radius: 12px;
  border: 2px solid var(--purple);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-purple {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
}
.btn-purple:hover { background: var(--purple-bright); border-color: var(--purple-bright); box-shadow: 0 10px 30px rgba(139, 92, 246, 0.35); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--text);
}
.btn-outline:hover { background: var(--purple-soft); transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: 0.82rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 10, 15, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 80px; }

.logo { display: inline-flex; align-items: center; line-height: 1; }
.logo img { height: 62px; width: auto; display: block; }
.logo-footer img { height: 84px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links > a:not(.btn) {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.18s ease;
}
.nav-links > a:not(.btn):hover { color: var(--text); }
.nav-cta { margin-left: 6px; }

/* menú hamburguesa (mobile) */
.nav-toggle { display: none; }
.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.nav-burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { padding: 70px 0 60px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-family: var(--font-brush);
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 0.98;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero h1 .pl { color: var(--purple-bright); display: block; }
.hero p.lead { color: var(--muted); font-size: 1.08rem; max-width: 30ch; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-chips { display: flex; gap: 26px; flex-wrap: wrap; }
.chip { display: flex; align-items: center; gap: 9px; font-size: 0.82rem; color: var(--muted); }
.chip svg { width: 18px; height: 18px; stroke: var(--purple-bright); }

.hero-art {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  aspect-ratio: 4 / 4.4;
}
.hero-art img,
.about-art img,
.gallery-item img,
.post-card .cover img,
.article .cover img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Placeholders de imagen (reemplazar por fotos reales) ---------- */
.ph {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(139, 92, 246, 0.28), rgba(109, 40, 217, 0.12)),
    var(--bg-3);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  padding: 14px;
}
.ph::before {
  content: "🧶";
  position: absolute;
  font-size: 2rem;
  opacity: 0.5;
  top: 14px;
  left: 14px;
}

/* ---------- Quiénes somos ---------- */
.about { padding: 60px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-art { border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); aspect-ratio: 1.25 / 1; }
.about h2 { font-family: var(--font-brush); font-size: clamp(1.7rem, 4vw, 2.5rem); color: var(--purple-bright); text-transform: uppercase; margin-bottom: 18px; }
.about p { color: var(--muted); margin-bottom: 14px; }
.about .hand { font-family: var(--font-brush); color: var(--purple-bright); font-size: 1.25rem; line-height: 1.3; margin-top: 22px; }

/* ---------- Qué hacemos / servicios ---------- */
.services { padding: 60px 0; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--purple); }
.card .ico {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--purple-soft);
  border-radius: 12px;
  margin-bottom: 16px;
}
.card .ico svg { width: 24px; height: 24px; stroke: var(--purple-bright); }
.card h3 { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Cursos ---------- */
.courses { padding: 60px 0; }
.cursos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.curso-card {
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 30px 28px;
  position: relative;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.curso-card:hover { transform: translateY(-4px); border-color: var(--purple); }
.curso-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--purple-bright);
  background: var(--purple-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.curso-card h3 { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 10px; }
.curso-card > p { color: var(--muted); margin-bottom: 16px; }
.curso-where { font-size: 0.9rem; }
.curso-precio { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.precio-ahora { font-family: var(--font-display); font-size: 2rem; color: var(--text); letter-spacing: 0.5px; }
.precio-antes { color: var(--muted-2); text-decoration: line-through; font-size: 1.05rem; }
.precio-nota { color: var(--purple-bright); font-size: 0.82rem; font-weight: 600; }
.curso-list { list-style: none; margin: 0 0 22px; padding: 0; }
.curso-list li { color: var(--text); font-size: 0.92rem; padding: 7px 0 7px 26px; position: relative; border-bottom: 1px solid var(--line); }
.curso-list li::before { content: "✓"; position: absolute; left: 0; color: var(--purple-bright); font-weight: 800; }
.curso-list li:last-child { border-bottom: none; }

/* ---------- Galería / trabajos destacados ---------- */
.gallery { padding: 60px 0; }
.gallery-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 26px; }
.gallery-item { aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.gallery-foot { display: flex; justify-content: flex-end; }

/* ---------- Testimonios ---------- */
.testimonials { padding: 60px 0; }
.tcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tcard { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.tcard .quote { font-size: 2.4rem; line-height: 0.5; color: var(--purple); font-family: var(--font-display); }
.tcard p { color: var(--text); font-size: 0.95rem; margin: 14px 0 18px; }
.stars { color: var(--purple-bright); letter-spacing: 2px; margin-bottom: 14px; }
.tauthor { display: flex; align-items: center; gap: 12px; }
.tauthor .av { width: 40px; height: 40px; border-radius: 50%; background: var(--purple-soft); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--purple-bright); }
.tauthor b { display: block; font-size: 0.9rem; }
.tauthor small { color: var(--muted-2); font-size: 0.8rem; }

/* ---------- CTA band ---------- */
.cta-band {
  margin: 50px 0;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(109, 40, 217, 0.10)),
    var(--bg-2);
  border: 1px solid var(--line-2);
  padding: 44px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-band h2 { font-family: var(--font-brush); font-size: clamp(1.6rem, 3.5vw, 2.4rem); text-transform: uppercase; }
.cta-band p { color: var(--muted); margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 56px 0 26px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 32px; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; margin: 14px 0; max-width: 28ch; }
.socials { display: flex; gap: 16px; flex-wrap: wrap; }
.socials a { color: var(--muted); font-size: 0.85rem; }
.socials a:hover { color: var(--purple-bright); }
.footer-col h4 { font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 1px; text-transform: uppercase; color: var(--purple-bright); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--muted); font-size: 0.9rem; margin-bottom: 9px; }
.footer-col a:hover { color: var(--text); }
.footer-col p { color: var(--muted); font-size: 0.9rem; margin-bottom: 14px; }
.footer-mail { display: inline-block; margin-top: 12px; color: var(--purple-bright); font-size: 0.88rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 0.8rem; }
.footer-bottom a { color: var(--purple-bright); }

/* ---------- Blog ---------- */
.page-head { padding: 56px 0 20px; }
.page-head h1 { font-family: var(--font-brush); font-size: clamp(2.2rem, 5vw, 3.4rem); text-transform: uppercase; color: var(--purple-bright); }
.page-head p { color: var(--muted); margin-top: 10px; max-width: 56ch; }

.post-list { padding: 20px 0 50px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.18s ease, border-color 0.18s ease; }
.post-card:hover { transform: translateY(-4px); border-color: var(--purple); }
.post-card .cover { aspect-ratio: 16 / 9; }
.post-card .body { padding: 20px; }
.post-card time { color: var(--purple-bright); font-size: 0.78rem; letter-spacing: 1px; text-transform: uppercase; }
.post-card h2 { font-size: 1.15rem; margin: 8px 0 8px; line-height: 1.25; }
.post-card p { color: var(--muted); font-size: 0.9rem; }
.post-empty { color: var(--muted); padding: 30px 0; }

/* Artículo individual */
.article { max-width: 760px; margin: 0 auto; padding: 40px 22px 60px; }
.article .meta { color: var(--purple-bright); font-size: 0.82rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; }
.article h1 { font-family: var(--font-brush); font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; text-transform: uppercase; margin-bottom: 22px; }
.article .cover { border-radius: 16px; overflow: hidden; margin-bottom: 30px; aspect-ratio: 16 / 8; }
.article-body { font-size: 1.05rem; color: #e7e3ee; }
.article-body h2 { font-size: 1.5rem; margin: 30px 0 12px; color: var(--purple-bright); }
.article-body h3 { font-size: 1.2rem; margin: 24px 0 10px; }
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol { margin: 0 0 16px 22px; }
.article-body li { margin-bottom: 8px; }
.article-body img { border-radius: 12px; margin: 20px 0; }
.article-body a { color: var(--purple-bright); text-decoration: underline; }
.article-body blockquote { border-left: 3px solid var(--purple); padding-left: 18px; color: var(--muted); font-style: italic; margin: 18px 0; }
.back-link { display: inline-block; margin-bottom: 24px; color: var(--muted); font-size: 0.9rem; }
.back-link:hover { color: var(--purple-bright); }

/* ---------- Newsletter / suscripción ---------- */
.newsletter { padding: 20px 0 60px; }
.newsletter-box {
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(109, 40, 217, 0.10)),
    var(--bg-2);
  border: 1px solid var(--line-2);
  padding: 38px 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}
.newsletter-text h2 { font-family: var(--font-brush); font-size: clamp(1.5rem, 3.2vw, 2.1rem); text-transform: uppercase; line-height: 1.05; margin-bottom: 10px; }
.newsletter-text p { color: var(--muted); }
.newsletter-row { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.98rem;
}
.newsletter-form input[type="email"]:focus { outline: none; border-color: var(--purple); }
.newsletter-form input::placeholder { color: var(--muted-2); }
.newsletter-mini { color: var(--muted-2); font-size: 0.78rem; margin-top: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-burger { display: flex; }
  .nav-links {
    position: absolute;
    top: 80px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    padding: 10px 22px 18px;
    display: none;
  }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-links > a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin: 14px 0 0; justify-content: center; }

  .hero-grid, .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-art { aspect-ratio: 16 / 11; order: -1; }
  .cursos-grid { grid-template-columns: 1fr; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .gallery-row { grid-template-columns: repeat(2, 1fr); }
  .tcards { grid-template-columns: 1fr; }
  .post-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .newsletter-box { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .cards-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 32px 24px; }
}
