/* ========================
   ARTE MAGIA — style.css
   ======================== */

/* ── Variables globales ── */
:root {
  --color-bg: #0a0a12;
  --color-bg-alt: #0f0f1e;
  --color-surface: #14142a;
  --color-surface-hover: #1a1a35;
  --color-border: rgba(180, 150, 255, 0.15);
  --color-gold: #c9a84c;
  --color-gold-light: #e8c97e;
  --color-violet: #7c5cbf;
  --color-violet-light: #a87cff;
  --color-text: #e8e4f0;
  --color-text-muted: #9690b0;
  --color-white: #ffffff;

  --font-title: 'Cinzel', serif;
  --font-body: 'Lato', sans-serif;

  --radius: 16px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
}

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

/* ── Utilidades ── */
.gold { color: var(--color-gold); }

/* ========================
   NAVBAR
   ======================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 10, 18, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.logo-letters {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.heb-letter {
  font-size: 1.5rem;
  line-height: 1;
  transition: var(--transition);
}

.heb-letter.aleph { color: var(--color-gold); }
.heb-letter.mem   { color: var(--color-violet-light); }

.logo-dot {
  color: var(--color-gold);
  font-size: 0.6rem;
  opacity: 0.7;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: 0.05em;
}

.logo-sub {
  font-size: 0.65rem;
  color: var(--color-text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Menú */
.nav-menu ul {
  display: flex;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%; right: 50%;
  height: 2px;
  background: var(--color-gold);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--color-white);
  background: rgba(255,255,255,0.05);
}

.nav-link:hover::after {
  left: 1rem;
  right: 1rem;
}

/* Hamburguesa */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ========================
   HERO
   ======================== */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 2rem 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 42% 5%, rgba(124, 92, 191, 0.22) 0%, transparent 70%),
    radial-gradient(ellipse 50% 35% at 85% 78%, rgba(201, 168, 76, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 35% 28% at 12% 58%, rgba(124, 92, 191, 0.07) 0%, transparent 60%);
  z-index: 0;
}

/* Estrellas animadas */
.stars {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.star {
  position: absolute;
  width: 2px; height: 2px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  animation: twinkle var(--dur, 3s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

/* Letras hebreas grandes */
.hero-logo-big {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.heb-big {
  font-size: clamp(4rem, 10vw, 7rem);
  line-height: 1;
  filter: drop-shadow(0 0 24px currentColor);
  animation: float 6s ease-in-out infinite;
}

.aleph-big {
  color: var(--color-gold);
  animation-delay: 0s;
}

.mem-big {
  color: var(--color-violet-light);
  animation-delay: 1.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  text-shadow: 0 0 40px rgba(201, 168, 76, 0.3);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--color-text-muted);
  font-weight: 300;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.hero-desc {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.9;
  margin-bottom: 2.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  text-align: left;
}

.hero-desc strong { color: var(--color-gold); }
.hero-desc em { color: var(--color-violet-light); }

/* Botón principal */
.btn-primary {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  background: linear-gradient(135deg, var(--color-gold) 0%, #a07830 100%);
  color: #1a1000;
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 32px rgba(201, 168, 76, 0.55);
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-text-muted);
  font-size: 1.5rem;
  animation: bounce 2s ease-in-out infinite;
  z-index: 1;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50% { transform: translateX(-50%) translateY(-10px); opacity: 1; }
}

/* ========================
   SECCIONES GENERALES
   ======================== */
.section {
  padding: 100px 2rem;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  margin: 0.5rem auto 0;
  width: 60px; height: 2px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-violet-light));
  border-radius: 2px;
}

.section-desc {
  color: var(--color-text-muted);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ========================
   TARJETAS
   ======================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card:hover {
  transform: translateY(-6px);
  background: var(--color-surface-hover);
  border-color: rgba(201, 168, 76, 0.35);
  box-shadow: 0 16px 48px rgba(8, 6, 20, 0.7), 0 0 30px rgba(124, 92, 191, 0.12);
}

.card-active {
  border-color: rgba(201, 168, 76, 0.4);
}

.card-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  background: linear-gradient(135deg, var(--color-gold), #a07830);
  color: #1a1000;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
}

.card-badge.coming {
  background: rgba(124, 92, 191, 0.25);
  color: var(--color-violet-light);
  border: 1px solid rgba(124, 92, 191, 0.4);
}

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 0.25rem;
}

.card-title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-white);
  line-height: 1.3;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  flex: 1;
}

.card-desc em { color: var(--color-gold-light); font-style: italic; }

.card-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--color-gold);
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
}

.card-link:hover {
  color: var(--color-gold-light);
  letter-spacing: 0.05em;
}

.card-link.disabled {
  color: var(--color-text-muted);
  font-style: italic;
  cursor: default;
  font-weight: 400;
}

/* ========================
   VIDEOS PLACEHOLDER
   ======================== */
.video-placeholder {
  border: 1px dashed rgba(124, 92, 191, 0.4);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  background: rgba(124, 92, 191, 0.05);
}

.video-inner {
  max-width: 600px;
  margin: 0 auto;
}

.video-icon { font-size: 3rem; margin-bottom: 1rem; display: block; }

.video-inner h3 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.video-inner p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.video-sub {
  font-weight: 700;
  color: var(--color-violet-light) !important;
}

.video-list {
  list-style: none;
  text-align: left;
  display: inline-block;
  margin-top: 0.5rem;
}

.video-list li {
  padding: 0.35rem 0;
  color: var(--color-text);
  font-size: 0.95rem;
}

/* ========================
   FORMULARIO
   ======================== */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
  font-style: italic;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(201, 168, 76, 0.5);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.form-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-gold-light);
  margin-top: 0.5rem;
}

/* ========================
   FOOTER
   ======================== */
.footer {
  background: #06060f;
  border-top: 1px solid var(--color-border);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
}

.footer-name {
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: var(--color-white);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.footer-quote {
  font-style: italic;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.footer-year {
  font-size: 0.8rem;
  color: rgba(150,144,176,0.5);
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-menu {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: rgba(10,10,18,0.97);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
  }

  .nav-menu.open { display: block; }

  .nav-menu ul {
    flex-direction: column;
    padding: 0 1.5rem;
    gap: 0;
  }

  .nav-link {
    display: block;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--color-border);
  }

  .hero-desc {
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero { padding-top: 100px; }
  .section { padding: 70px 1.25rem; }
  .logo-text { display: none; }
}

/* ========================
   ANIMACIONES DE ENTRADA
   ======================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Retraso escalonado para las tarjetas */
.cards-grid .card:nth-child(1) { transition-delay: 0.05s; }
.cards-grid .card:nth-child(2) { transition-delay: 0.12s; }
.cards-grid .card:nth-child(3) { transition-delay: 0.19s; }
.cards-grid .card:nth-child(4) { transition-delay: 0.26s; }
.cards-grid .card:nth-child(5) { transition-delay: 0.33s; }

/* ========================
   REDESIGN-SKILL UPGRADES
   ======================== */

/* Noise overlay global — rompe la planitud digital */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0.025;
  pointer-events: none;
  z-index: 9998;
}

/* Focus rings accesibles */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* text-wrap: balance en títulos — evita palabras huérfanas */
h1, h2, h3,
.hero-title,
.section-title,
.card-title,
.hero-subtitle {
  text-wrap: balance;
}

/* Feedback en :active — simula clic físico */
.btn-primary:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 2px 8px rgba(201, 168, 76, 0.3);
}

/* Footer legal */
.footer-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.footer-link {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.footer-link:hover {
  color: var(--color-gold);
}

.footer-sep {
  color: var(--color-text-muted);
  opacity: 0.4;
  font-size: 0.78rem;
}

/* Enlace activo en el navbar */
.nav-link.active {
  color: var(--color-gold) !important;
}

.nav-link.active::after {
  left: 1rem;
  right: 1rem;
}

/* ========================
   LOGO IMAGEN
   ======================== */

/* Navbar */
.nav-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--color-gold);
  box-shadow: 0 0 10px rgba(201, 168, 76, 0.4);
  transition: box-shadow var(--transition), transform var(--transition);
}

.nav-logo:hover .nav-logo-img {
  box-shadow: 0 0 22px rgba(201, 168, 76, 0.7);
  transform: rotate(15deg);
}

/* Hero — medallón flotante */
.hero-medallion {
  position: relative;
  width: clamp(180px, 30vw, 280px);
  aspect-ratio: 1;
  margin: 0 auto 2rem;
  animation: medallion-float 8s ease-in-out infinite;
}

.medallion-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(201, 168, 76, 0.5);
  animation: medallion-rotate 60s linear infinite;
  filter: drop-shadow(0 0 30px rgba(124, 92, 191, 0.6))
          drop-shadow(0 0 15px rgba(201, 168, 76, 0.4));
}

.medallion-glow {
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 191, 0.2) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes medallion-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-15px); }
}

@keyframes medallion-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.08); }
}

/* Footer */
.footer-logo-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(201, 168, 76, 0.35);
  opacity: 0.8;
  transition: opacity var(--transition), box-shadow var(--transition);
}

.footer-logo-img:hover {
  opacity: 1;
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.4);
}
