/* Anthony Academy - Estilos en modo oscuro */
:root {
  --bg: #0f0f15;
  --bg-2: #131824;
  --text: #f0f0f0;
  --muted: #c9c9cc;
  --accent: #4a9eff;
  --accent-2: rgba(255, 215, 0, 0.3); /* dorado suave con baja opacidad */
  --card: #151a27;
  --border: #232836;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 800px at 80% -10%, rgba(74,158,255,0.1), transparent 60%),
              radial-gradient(800px 600px at -10% 20%, rgba(255,215,0,0.08), transparent 60%),
              var(--bg);
  line-height: 1.6;
}

h1, h2, h3 { font-family: 'Poppins', 'Inter', sans-serif; margin: 0 0 10px; }
h1 { font-size: clamp(2rem, 3.6vw + 1rem, 3.2rem); line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 2.5vw + 0.8rem, 2.2rem); }
h3 { font-size: clamp(1.1rem, 1.5vw + 0.6rem, 1.4rem); }

p { margin: 0 0 16px; color: var(--text); opacity: 0.92; }
.muted { color: var(--muted); }

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.section {
  padding: 84px 0;
}
.section-sub { color: var(--muted); margin-top: -4px; margin-bottom: 26px; }

/* Header fijo */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(16, 18, 26, 0.6);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
  transition: transform .3s ease, box-shadow .3s ease;
}

.site-header.hide { transform: translateY(-100%); }
.site-header.show { box-shadow: 0 4px 20px rgba(0,0,0,0.3); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo-placeholder {
  width: 55px; height: 55px; border-radius: 12px;
  background: transparent;
  border: none;
  display: grid; place-items: center; color: #0b1320; font-weight: 800;
  overflow: hidden;
  transition: all .3s ease;
  box-shadow: none;
}
.logo-placeholder:hover {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  transform: scale(1.05);
}
.logo-placeholder img { 
  width: 100%; 
  height: 100%; 
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
  animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-3px) scale(1.02); }
}
.brand-title { font-weight: 700; letter-spacing: 0.2px; }
.brand-sub { font-size: 12px; color: var(--muted); }

/* Selector de idiomas */
.language-selector {
  display: flex;
  gap: 8px;
  align-items: center;
}

.lang-btn {
  background: transparent;
  border: 1px solid rgba(74,158,255,0.3);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all .2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.lang-btn:hover {
  border-color: rgba(74,158,255,0.6);
  background: rgba(74,158,255,0.1);
}

.lang-btn.active {
  background: rgba(74,158,255,0.2);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(74,158,255,0.3);
}

/* Botón Volver Arriba */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(74,158,255,0.2), rgba(74,158,255,0.1));
  border: 1px solid rgba(74,158,255,0.4);
  border-radius: 50%;
  color: var(--accent);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all .3s ease;
  z-index: 99;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.scroll-to-top:hover {
  background: linear-gradient(135deg, rgba(74,158,255,0.3), rgba(74,158,255,0.2));
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(74,158,255,0.3);
  transform: translateY(-3px);
}

.scroll-to-top.show {
  display: flex;
}

@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

.menu-toggle { display: none; flex-direction: column; gap: 6px; background: transparent; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s ease; }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(10px, 10px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

.nav ul { list-style: none; display: flex; gap: 18px; padding: 0; margin: 0; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: 10px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: rgba(255,255,255,0.05); }

/* Botones */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .12s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: linear-gradient(135deg, var(--accent), #2d7bd4); color: #0b1320; font-weight: 700; box-shadow: 0 8px 24px rgba(74,158,255,0.3); }
.btn-primary:hover { box-shadow: 0 12px 28px rgba(74,158,255,0.36); }

.btn-outline { background: transparent; color: var(--text); border-color: rgba(255,255,255,0.18); }
.btn-outline:hover { background: rgba(255,255,255,0.06); }

.btn-card { width: 100%; justify-content: center; background: rgba(74,158,255,0.12); color: var(--text); border-color: rgba(74,158,255,0.35); font-weight: 600; }
.btn-card:hover { background: rgba(74,158,255,0.18); }

.btn-whatsapp { background: rgba(37,211,102,0.16); color: #eafef2; border-color: rgba(37,211,102,0.35); }
.btn-whatsapp:hover { background: rgba(37,211,102,0.24); }

.header-wa { white-space: nowrap; }

/* Hero */
.hero { padding-top: 110px; }
.grid-2 { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 36px; }
.hero-copy .sub { color: var(--muted); font-size: 1.05rem; margin-top: 8px; }
.hero-cta { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }

.hero-art { position: relative; height: 260px; }
.hero-art .glow { position: absolute; inset: -30px; background: radial-gradient(400px 220px at 60% 40%, rgba(74,158,255,0.25), transparent), radial-gradient(300px 200px at 20% 70%, var(--accent-2), transparent); filter: blur(24px); border-radius: 20px; }
.shapes { position: absolute; inset: 0; display: grid; place-items: center; }
.shape { width: 160px; height: 160px; border-radius: 28px; background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0)); border: 1px solid var(--border); box-shadow: var(--shadow); animation: float 8s ease-in-out infinite; }
.shape.s2 { width: 120px; height: 120px; transform: translate(120px, 30px) rotate(8deg); animation-delay: 1.2s; }
.shape.s3 { width: 80px; height: 80px; transform: translate(-130px, -10px) rotate(-6deg); animation-delay: 2s; }
@keyframes float { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-10px) } }

/* Cards de cursos */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)), var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; transition: transform .15s ease, border-color .2s ease, background .2s ease; overflow: hidden; }
.card:hover { transform: translateY(-4px); border-color: rgba(74,158,255,0.35); background: linear-gradient(180deg, rgba(74,158,255,0.06), rgba(255,255,255,0.01)), var(--card); }

.card-image { width: 100%; height: 140px; border-radius: 10px; overflow: hidden; margin-bottom: 8px; background: rgba(74,158,255,0.05); display: flex; align-items: center; justify-content: center; }
.card-image img, .card-image svg { width: 100%; height: 100%; object-fit: cover; }

/* Nosotros */
.ai-start { align-items: flex-start; }
.about-card { background: linear-gradient(135deg, rgba(74,158,255,0.08), rgba(255,255,255,0)); border: 1px dashed rgba(255,255,255,0.18); border-radius: var(--radius); padding: 18px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, var(--accent), rgba(74,158,255,0.35)); box-shadow: 0 0 0 4px rgba(74,158,255,0.15); }

/* Contacto */
.contact-form { background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)), var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: grid; gap: 6px; font-size: 0.95rem; color: var(--muted); }
input, textarea, select { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.14); background: #101626; color: var(--text); outline: none; transition: border-color .2s ease, box-shadow .2s ease; font-family: inherit; }
input:focus, textarea:focus, select:focus { border-color: rgba(74,158,255,0.6); box-shadow: 0 0 0 3px rgba(74,158,255,0.15); }
input::placeholder, textarea::placeholder { color: rgba(255,255,255,0.35); }
.actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.fine-print { color: var(--muted); font-size: 0.9rem; margin-top: 8px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 24px 0; background: rgba(16, 18, 26, 0.6); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.footer-nav a { color: var(--muted); text-decoration: none; margin-left: 12px; }
.footer-nav a:hover { color: var(--text); }

/* Modales */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  animation: fadeIn .3s ease;
}

.modal.active { display: flex; align-items: center; justify-content: center; }

.modal-content {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)), var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 600px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: slideUp .3s ease;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.modal-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 28px;
  cursor: pointer;
  transition: color .2s ease;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover { color: var(--text); }

.modal-body {
  display: grid;
  gap: 20px;
}

.course-info {
  display: grid;
  gap: 16px;
}

.info-item {
  display: grid;
  gap: 8px;
}

.info-label {
  font-weight: 600;
  color: var(--accent);
  font-size: 0.95rem;
}

.info-value {
  color: var(--muted);
  line-height: 1.6;
}

.course-highlights {
  background: rgba(74,158,255,0.08);
  border-left: 3px solid var(--accent);
  padding: 16px;
  border-radius: 8px;
}

.course-highlights h4 {
  margin: 0 0 12px 0;
  color: var(--accent);
  font-size: 1rem;
}

.course-highlights ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.course-highlights li {
  color: var(--text);
  padding-left: 20px;
  position: relative;
  font-size: 0.95rem;
}

.course-highlights li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.price-section {
  background: linear-gradient(135deg, rgba(74,158,255,0.15), rgba(255,215,0,0.08));
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(74,158,255,0.2);
}

.price-label {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.price-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.price-duration {
  color: var(--muted);
  font-size: 0.95rem;
}

.modal-footer {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.modal-footer .btn { flex: 1; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animaciones on-scroll */
[data-animate] { opacity: 0; transform: translateY(10px) scale(0.99); transition: opacity .6s ease, transform .6s ease; }
[data-animate].in { opacity: 1; transform: translateY(0) scale(1); }

/* Responsivo */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  .grid-2 { grid-template-columns: 1fr; }
  .hero-art { height: 220px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .nav ul { gap: 10px; }
  .header-inner { gap: 12px; }
  .header-wa { display: none; }
}

@media (max-width: 620px) {
  .menu-toggle { display: flex; }
  .nav { position: fixed; top: 60px; left: 0; right: 0; background: rgba(16, 18, 26, 0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); max-height: 0; overflow: hidden; transition: max-height .3s ease; z-index: 40; }
  .nav.active { max-height: 300px; }
  .nav ul { flex-direction: column; gap: 0; padding: 12px 0; }
  .nav a { display: block; padding: 12px 16px; border-radius: 0; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .section { padding: 60px 0; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .actions { flex-direction: column; }
  .actions .btn { width: 100%; }
}

@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .header-inner { padding: 8px 0; }
  .brand-sub { display: none; }
  .brand-title { font-size: 1rem; display: none; }
  .logo-placeholder { width: 48px; height: 48px; font-size: 0.9rem; border-radius: 10px; }
  .site-footer .footer-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-nav { display: flex; flex-wrap: wrap; gap: 8px; }
  .footer-nav a { margin-left: 0; }
  .btn { padding: 10px 14px; font-size: 0.95rem; }
  .btn-card { padding: 12px 10px; }
  .hero-art { height: 180px; }
  .shape { width: 120px; height: 120px; }
  .shape.s2 { width: 90px; height: 90px; transform: translate(80px, 20px) rotate(8deg); }
  .shape.s3 { width: 60px; height: 60px; transform: translate(-80px, -5px) rotate(-6deg); }
}
