/* ============================================
   Marca Personal para Vender en Tiempo de IA
   Main Stylesheet
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --bg-primary: #0B0E17;
  --bg-secondary: #111520;
  --bg-card: #1A1F2E;
  --bg-card-hover: #212738;
  --gold: #C9A84C;
  --gold-light: #E8D5A0;
  --gold-hover: #D9BC6A;
  --gold-dark: #A08030;
  --text-primary: #FFFFFF;
  --text-secondary: #B0B4C8;
  --text-muted: #6B7094;
  --accent-blue: #1E2A45;
  --border-color: #2A2F42;
  --shadow-gold: rgba(201, 168, 76, 0.15);
  --shadow-dark: rgba(0, 0, 0, 0.4);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
  --max-width: 1200px;
  --nav-height: 70px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.gold-text {
  color: var(--gold);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(11, 14, 23, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: background var(--transition);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.nav-logo span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Language Selector */
.lang-selector {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-card);
  border-radius: 30px;
  padding: 4px;
  border: 1px solid var(--border-color);
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lang-btn:hover {
  color: var(--text-primary);
  background: var(--accent-blue);
}

.lang-btn.active {
  background: var(--gold);
  color: var(--bg-primary);
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--shadow-gold) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.3);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 30px;
  margin-bottom: 24px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-title {
  margin-bottom: 16px;
}

.hero-title em {
  font-style: normal;
  color: var(--gold);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.book-cover {
  max-width: 380px;
  border-radius: var(--radius-md);
  box-shadow:
    0 25px 60px var(--shadow-dark),
    0 0 40px var(--shadow-gold);
  transition: transform 0.5s ease;
}

.book-cover:hover {
  transform: scale(1.03) rotate(-1deg);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background: var(--gold-hover);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--shadow-gold);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.82rem;
  border-radius: 20px;
}

/* --- About Section --- */
.about {
  background: var(--bg-secondary);
}

.about .container {
  max-width: 800px;
  text-align: center;
}

.about-text {
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--text-secondary);
}

.about-quote {
  margin-top: 40px;
  padding: 30px 40px;
  background: var(--bg-card);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--gold-light);
  text-align: left;
}

/* --- Features / What You'll Learn --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover {
  border-color: rgba(201, 168, 76, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px var(--shadow-dark);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 168, 76, 0.1);
  border-radius: 12px;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  color: var(--gold);
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin: 0;
}

/* --- Action Plan Section --- */
.plan-section {
  background: var(--bg-secondary);
  text-align: center;
}

.plan-highlight {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.15), rgba(201, 168, 76, 0.05));
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: var(--radius-lg);
  padding: 24px 40px;
  margin-top: 32px;
}

.plan-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.plan-text {
  text-align: left;
}

.plan-text strong {
  display: block;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.plan-text span {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* --- Languages Section --- */
.languages-section {
  background: var(--bg-primary);
}

.languages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.lang-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all var(--transition);
}

.lang-card:hover {
  border-color: rgba(201, 168, 76, 0.4);
  box-shadow: 0 8px 24px var(--shadow-dark);
}

.lang-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.lang-flag {
  font-size: 1.8rem;
  line-height: 1;
}

.lang-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid var(--gold);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.lang-card-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.lang-card-title {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 20px;
  min-height: 2.4em;
}

.lang-card-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.format-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.format-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
}

.marketplace-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.marketplace-link {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  background: var(--accent-blue);
  border-radius: 6px;
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}

.marketplace-link:hover {
  background: rgba(201, 168, 76, 0.15);
  border-color: var(--gold);
  color: var(--gold);
}

.coming-soon-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(107, 112, 148, 0.2);
  border: 1px solid var(--text-muted);
  border-radius: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}

/* --- Uruguay Section --- */
.uruguay-section {
  background: var(--bg-primary);
  padding: 60px 0;
}

.uruguay-card {
  max-width: 700px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.08), rgba(201, 168, 76, 0.03));
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: var(--radius-md);
  padding: 36px 40px;
  text-align: center;
}

.uruguay-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.uruguay-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid var(--gold);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.5px;
}

.uruguay-header h3 {
  font-size: 1.4rem;
  color: var(--gold);
  margin: 0;
}

.uruguay-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.uruguay-note {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-style: italic;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .uruguay-card {
    padding: 28px 24px;
  }
}

/* --- Author Section --- */
.author-section {
  background: var(--bg-secondary);
}

.author-content {
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
}

.author-image-wrapper {
  flex-shrink: 0;
}

.author-image {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  box-shadow: 0 0 30px var(--shadow-gold);
}

.author-placeholder {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-card), var(--accent-blue));
  border: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--gold);
  box-shadow: 0 0 30px var(--shadow-gold);
}

.author-info h3 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.author-role {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.author-bio {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* --- Footer --- */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  text-align: center;
}

.footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

.footer a {
  color: var(--gold);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .languages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 14, 23, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    padding: 40px;
    backdrop-filter: blur(20px);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.2rem;
  }

  .menu-toggle {
    display: block;
  }

  .lang-selector {
    flex-wrap: wrap;
    justify-content: center;
    max-width: 280px;
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-content {
    order: 2;
  }

  .hero-image {
    order: 1;
  }

  .hero-cta {
    justify-content: center;
  }

  .book-cover {
    max-width: 260px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .languages-grid {
    grid-template-columns: 1fr;
  }

  .author-content {
    flex-direction: column;
    text-align: center;
  }

  .plan-highlight {
    flex-direction: column;
    padding: 24px;
  }

  .plan-text {
    text-align: center;
  }

  section {
    padding: 60px 0;
  }

  .about-quote {
    padding: 20px 24px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }

  .lang-selector {
    gap: 2px;
  }

  .lang-btn {
    padding: 5px 8px;
    font-size: 0.72rem;
  }
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.animate-in:nth-child(1) { animation-delay: 0.1s; }
.animate-in:nth-child(2) { animation-delay: 0.2s; }
.animate-in:nth-child(3) { animation-delay: 0.3s; }
.animate-in:nth-child(4) { animation-delay: 0.4s; }
.animate-in:nth-child(5) { animation-delay: 0.5s; }
.animate-in:nth-child(6) { animation-delay: 0.6s; }

/* --- Intersection Observer animations --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-dark);
}
