/*
Theme Name: ¿Por qué no usas IA?
Theme URI: https://porquenousasia.com
Author: PorQueNoUsasIA Team
Description: Tema personalizable para docentes que integran IA en el aula. Dark mode, diseño premium, totalmente configurable desde el Customizer de WordPress.
Version: 1.0.0
Text Domain: porquenousasia
Requires at least: 6.0
Requires PHP: 7.4
License: GPL v2 or later
*/

/* ── Reset & Variables ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0f0f1a;
  --bg2: #16162a;
  --bg3: #1e1e36;
  --accent: #b6f542;
  --accent-dim: #9ad038;
  --accent-glow: rgba(182, 245, 66, 0.15);
  --white: #f5f5f7;
  --muted: #8a8aa0;
  --border: #2a2a40;
  --card: #181830;
  --radius: 14px;
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

/* ── Scrollbar ────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ── Background Pattern ───────────────────────────── */
.bg-pattern {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
}
.bg-pattern--dots {
  background-image: radial-gradient(circle, rgba(42,42,64,0.5) 1px, transparent 1px);
  background-size: 32px 32px;
}
.bg-pattern--grid {
  background-image:
    linear-gradient(rgba(42,42,64,0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42,42,64,0.3) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ── Nav ──────────────────────────────────────────── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: all 0.3s ease;
  padding: 0 clamp(20px, 5vw, 80px);
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  background: rgba(15,15,26,0.95);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between; height: 68px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
}
.nav-logo-icon {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: #0a0a1a;
}
.nav-logo-text {
  font-family: var(--font-head); font-weight: 700;
  font-size: 17px; letter-spacing: -0.02em;
}
.nav-logo-text span { color: var(--accent); }
.nav-links {
  display: flex; gap: 4px; align-items: center;
}
.nav-link {
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-family: var(--font-head);
  font-weight: 500; font-size: 14px;
  padding: 7px 14px; border-radius: 8px;
  text-transform: capitalize; transition: all 0.2s;
  letter-spacing: 0.01em;
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link.active { background: rgba(182,245,66,0.09); color: var(--accent); }
.nav-cta {
  margin-left: 8px; background: var(--accent); color: #0a0a1a;
  border: none; cursor: pointer; font-family: var(--font-head);
  font-weight: 700; font-size: 13px; padding: 9px 20px;
  border-radius: 9px; transition: all 0.2s;
}
.nav-cta:hover { transform: scale(1.04); opacity: 0.9; }

/* Mobile menu */
.nav-toggle {
  display: none; background: none; border: none;
  color: var(--white); cursor: pointer; padding: 8px;
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 68px; left: 0; right: 0;
    background: rgba(15,15,26,0.98); backdrop-filter: blur(12px);
    padding: 20px; gap: 8px; border-bottom: 1px solid var(--border);
  }
  .nav-cta { margin-left: 0; width: 100%; text-align: center; }
}

/* ── Section Common ───────────────────────────────── */
.section {
  padding: clamp(60px, 8vw, 120px) clamp(20px, 5vw, 80px);
  position: relative; z-index: 1;
}
.section-inner {
  max-width: 1200px; margin: 0 auto;
}
.section--alt {
  background: rgba(15,15,32,0.5);
}
.section-label {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--accent);
  font-family: var(--font-head); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 16px;
}
.section-label::before {
  content: ''; width: 20px; height: 2px;
  background: var(--accent);
}
.section-title {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(32px, 3.5vw, 52px);
  letter-spacing: -0.03em; line-height: 1.1;
  margin-bottom: 16px; color: var(--white);
}
.section-title span { color: var(--accent); }
.section-desc {
  color: var(--muted); font-size: 17px;
  max-width: 540px; line-height: 1.75;
}

/* ── Hero ─────────────────────────────────────────── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: clamp(100px,12vh,140px) clamp(20px,5vw,80px) 80px;
  position: relative; overflow: hidden; z-index: 1;
}
.hero-glow {
  position: absolute; top: 10%; left: 30%;
  transform: translateX(-50%);
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto; width: 100%;
  position: relative; z-index: 1;
}
.hero--split .hero-inner {
  display: grid; grid-template-columns: 1fr 420px;
  gap: 60px; align-items: center;
}
.hero--centered .hero-inner {
  text-align: center; max-width: 780px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(182,245,66,0.08);
  border: 1px solid rgba(182,245,66,0.25);
  border-radius: 50px; padding: 6px 16px; margin-bottom: 28px;
  font-size: 13px; color: var(--accent);
  font-family: var(--font-head); font-weight: 600;
  letter-spacing: 0.04em;
}
.hero h1 {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(46px, 6vw, 82px); line-height: 1.05;
  letter-spacing: -0.03em; margin-bottom: 24px;
}
.hero h1 span { color: var(--accent); }
.hero-desc {
  font-size: 18px; color: var(--muted); max-width: 540px;
  line-height: 1.7; margin-bottom: 40px;
}
.hero--centered .hero-desc { margin: 0 auto 40px; }
.hero-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.hero--centered .hero-actions { justify-content: center; }

.hero-mascot {
  display: flex; justify-content: center;
}
.hero-mascot img {
  max-width: 340px; width: 100%;
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}
.hero-stats {
  display: flex; gap: 36px; margin-top: 56px; flex-wrap: wrap;
}
.hero--centered .hero-stats { justify-content: center; }
.hero-stat-num {
  font-family: var(--font-head); font-weight: 700;
  font-size: 28px; color: var(--accent);
}
.hero-stat-label {
  font-size: 13px; color: var(--muted); margin-top: 2px;
}

@media (max-width: 900px) {
  .hero--split .hero-inner {
    grid-template-columns: 1fr; text-align: center;
  }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-desc { margin: 0 auto 40px; }
}

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700;
  font-size: 15px; padding: 13px 28px; border-radius: 10px;
  border: none; cursor: pointer; transition: all 0.2s;
}
.btn--primary {
  background: var(--accent); color: #0a0a1a;
}
.btn--primary:hover {
  transform: scale(1.04);
  box-shadow: 0 0 30px rgba(182,245,66,0.3);
}
.btn--outline {
  background: none; border: 1px solid var(--border);
  color: var(--white);
}
.btn--outline:hover {
  border-color: var(--accent); color: var(--accent);
}
.btn--accent-outline {
  background: none; border: 1px solid var(--accent);
  color: var(--accent);
}
.btn--accent-outline:hover {
  background: rgba(182,245,66,0.08);
}

/* ── Inputs ───────────────────────────────────────── */
.form-input, .form-select, .form-textarea {
  background: var(--bg); border: 1px solid var(--border);
  color: var(--white); font-family: var(--font-body);
  font-size: 15px; padding: 13px 18px; border-radius: 11px;
  outline: none; width: 100%; transition: border 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent);
}
.form-select { appearance: auto; }
.form-textarea { resize: vertical; }
.form-input::placeholder, .form-textarea::placeholder {
  color: var(--muted);
}

/* ── Cards ────────────────────────────────────────── */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px;
  transition: all 0.25s; position: relative; overflow: hidden;
}
.card:hover {
  border-color: rgba(182,245,66,0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(182,245,66,0.08);
}
.card-glow {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity 0.25s;
}
.card:hover .card-glow { opacity: 1; }

/* ── Tools Grid ───────────────────────────────────── */
.tools-header {
  display: flex; justify-content: space-between;
  align-items: flex-end; flex-wrap: wrap;
  gap: 20px; margin-bottom: 40px;
}
.tools-filters {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.filter-btn {
  background: var(--card); border: 1px solid var(--border);
  color: var(--muted); font-family: var(--font-head);
  font-weight: 600; font-size: 12px;
  padding: 7px 14px; border-radius: 8px;
  cursor: pointer; transition: all 0.2s;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--accent); color: #0a0a1a;
  border-color: var(--accent);
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}
.tool-icon-wrap {
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(182,245,66,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.tool-header {
  display: flex; justify-content: space-between;
  align-items: flex-start; margin-bottom: 16px;
}
.tool-info { display: flex; align-items: center; gap: 12px; }
.tool-name {
  font-family: var(--font-head); font-weight: 700; font-size: 17px;
}
.tool-cat {
  font-size: 12px; color: var(--accent); font-weight: 600; margin-top: 1px;
}
.tool-tag {
  border-radius: 50px; padding: 3px 11px; font-size: 11px;
  font-family: var(--font-head); font-weight: 700;
}
.tool-tag--free {
  background: rgba(182,245,66,0.12);
  color: var(--accent);
  border: 1px solid rgba(182,245,66,0.25);
}
.tool-tag--pro {
  background: rgba(140,100,255,0.12);
  color: #b090ff;
  border: 1px solid rgba(140,100,255,0.25);
}
.tool-desc {
  color: var(--muted); font-size: 14px;
  line-height: 1.65; margin-bottom: 18px;
}
.tool-link {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--accent);
  font-family: var(--font-head); font-weight: 600;
  opacity: 0; transition: opacity 0.2s;
}
.card:hover .tool-link { opacity: 1; }

@media (max-width: 600px) {
  .tools-grid { grid-template-columns: 1fr; }
}

/* ── Blog Grid ────────────────────────────────────── */
.blog-header {
  display: flex; justify-content: space-between;
  align-items: flex-end; flex-wrap: wrap;
  gap: 16px; margin-bottom: 44px;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.blog-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  cursor: pointer; transition: all 0.25s;
}
.blog-card:hover {
  border-color: rgba(182,245,66,0.25);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(182,245,66,0.07);
}
.blog-thumb {
  height: 160px; display: flex; align-items: center;
  justify-content: center; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1e1e36, #252545);
}
.blog-thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
.blog-thumb-placeholder {
  font-family: var(--font-head); font-size: 48px;
  font-weight: 700; color: rgba(182,245,66,0.15);
  user-select: none;
}
.blog-tag {
  position: absolute; bottom: 12px; left: 14px;
  background: rgba(182,245,66,0.12);
  border: 1px solid rgba(182,245,66,0.25);
  border-radius: 50px; padding: 4px 11px;
  font-size: 11px; color: var(--accent);
  font-family: var(--font-head); font-weight: 700;
}
.blog-body { padding: 20px 22px 22px; }
.blog-meta {
  font-size: 12px; color: var(--muted);
  margin-bottom: 10px; display: flex; gap: 12px;
}
.blog-title {
  font-family: var(--font-head); font-weight: 700;
  font-size: 16px; line-height: 1.35; margin-bottom: 10px;
  transition: color 0.2s;
}
.blog-card:hover .blog-title { color: var(--accent); }
.blog-excerpt {
  font-size: 13px; color: var(--muted); line-height: 1.6;
}

/* ── About / Nosotros ─────────────────────────────── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.about-tags {
  display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap;
}
.about-tag {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 50px; padding: 6px 16px; font-size: 13px;
  color: var(--muted); font-family: var(--font-head); font-weight: 500;
}
.values-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.value-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px 20px; transition: all 0.2s;
}
.value-card:hover {
  border-color: rgba(182,245,66,0.3);
  transform: translateY(-3px);
}
.value-icon { font-size: 28px; margin-bottom: 12px; }
.value-title {
  font-family: var(--font-head); font-weight: 700;
  font-size: 15px; margin-bottom: 8px;
}
.value-desc {
  font-size: 13px; color: var(--muted); line-height: 1.6;
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ── Newsletter / Boletín ─────────────────────────── */
.newsletter-box {
  background: linear-gradient(135deg, var(--bg2), #1a1a38);
  border: 1px solid rgba(182,245,66,0.18);
  border-radius: 24px; padding: clamp(40px,5vw,72px);
  position: relative; overflow: hidden;
}
.newsletter-glow {
  position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(182,245,66,0.06) 0%, transparent 70%);
}
.newsletter-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
  position: relative; z-index: 1;
}
.newsletter-benefits { list-style: none; margin-top: 28px; }
.newsletter-benefits li {
  display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px;
}
.newsletter-check {
  color: var(--accent); font-weight: 700; font-size: 16px; margin-top: 1px;
}
.newsletter-benefits span {
  color: var(--muted); font-size: 15px; line-height: 1.55;
}
.newsletter-form {
  display: flex; flex-direction: column; gap: 12px;
}
.newsletter-form .btn { justify-content: center; margin-top: 4px; }
.newsletter-privacy {
  font-size: 12px; color: var(--muted);
  text-align: center; line-height: 1.5;
}
.newsletter-success {
  background: rgba(182,245,66,0.08);
  border: 1px solid rgba(182,245,66,0.25);
  border-radius: 16px; padding: 40px; text-align: center;
}
.newsletter-success-icon { font-size: 48px; margin-bottom: 16px; }
.newsletter-success-title {
  font-family: var(--font-head); font-weight: 700;
  font-size: 22px; color: var(--accent); margin-bottom: 10px;
}

@media (max-width: 900px) {
  .newsletter-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ── Contact ──────────────────────────────────────── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 80px; align-items: flex-start;
}
.contact-card {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 20px; padding: 16px 20px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; cursor: pointer; transition: all 0.2s;
}
.contact-card:hover {
  border-color: rgba(182,245,66,0.3);
  transform: translateX(4px);
}
.contact-card-icon { font-size: 22px; }
.contact-card-label {
  font-size: 12px; color: var(--muted); margin-bottom: 2px;
}
.contact-card-val {
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
}
.contact-form {
  display: flex; flex-direction: column; gap: 12px;
}
.contact-form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.contact-success {
  background: rgba(182,245,66,0.07);
  border: 1px solid rgba(182,245,66,0.18);
  border-radius: 16px; padding: 48px; text-align: center;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-form-row { grid-template-columns: 1fr; }
}

/* ── Footer ───────────────────────────────────────── */
.site-footer {
  background: var(--bg); border-top: 1px solid var(--border);
  padding: 40px clamp(20px, 5vw, 80px);
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 16px;
  position: relative; z-index: 1;
}
.footer-logo {
  display: flex; align-items: center; gap: 10px;
}
.footer-logo-icon {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: #0a0a1a;
}
.footer-logo-text {
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
}
.footer-logo-text span { color: var(--accent); }
.footer-copy {
  color: var(--muted); font-size: 13px;
}
.footer-copy span { color: var(--accent); font-weight: 600; }
.footer-links {
  display: flex; gap: 20px;
}
.footer-link {
  font-size: 13px; color: var(--muted);
  cursor: pointer; transition: color 0.2s;
}
.footer-link:hover { color: var(--accent); }

/* ── SVG Icon ─────────────────────────────────────── */
.icon-sparkle {
  display: inline-block; width: 18px; height: 18px;
}

/* ── Animations ───────────────────────────────────── */
.fade-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1; transform: translateY(0);
}

/* ── WordPress specific ───────────────────────────── */
.wp-block-image img { border-radius: var(--radius); }
.aligncenter { text-align: center; }
.alignleft { float: left; margin-right: 20px; }
.alignright { float: right; margin-left: 20px; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
