/* ═══════════════════════════════════════════
   NAVIGATION BAR
═══════════════════════════════════════════════ */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10%;
  height: 80px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  border-bottom: var(--border-light);
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.nav-logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-auth {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════ */
.btn-primary {
  background: var(--primary);
  color: white;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  background: var(--secondary);
  color: white;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-secondary:hover {
  background: var(--secondary-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid #CBD5E1;
  transition: all 0.2s ease;
}

.btn-outline:hover {
  border-color: var(--text-main);
  background: rgba(0,0,0,0.02);
}

/* ═══════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════ */
#inicio {
  min-height: 90vh;
  padding-top: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}

.hero-tag {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.hero-title {
  color: var(--text-main);
}

.hero-sub {
  color: var(--text-muted);
}

.trust-banner {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.trust-stars {
  color: #FBBF24;
  font-size: 1.2rem;
  letter-spacing: 2px;
}
.trust-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ═══════════════════════════════════════════
   SECTIONS GENERAL
═══════════════════════════════════════════════ */
section {
  padding: 6rem 10%;
}

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

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

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

/* ═══════════════════════════════════════════
   COMO FUNCIONA / FEATURES (EXPATFILE STYLE)
═══════════════════════════════════════════════ */
#como-funciona {
  background: var(--bg-light);
}

.feature-block {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 6rem;
}

.feature-block:nth-child(even) {
  flex-direction: row-reverse;
}

.feature-content {
  flex: 1;
}

.feature-content h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.feature-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.feature-image {
  flex: 1;
  background: var(--bg-alt);
  border-radius: 24px;
  padding: 2rem;
  border: var(--border-light);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 350px;
}

.feature-icon-large {
  font-size: 6rem;
}

/* ═══════════════════════════════════════════
   TEMÁTICAS & EJEMPLOS GRID
═══════════════════════════════════════════════ */
#temas {
  background: var(--bg-alt);
}
#ejemplos {
  background: var(--bg-light);
}

.grid-cards {
  display: grid;
  gap: 1.5rem;
}

.card {
  background: var(--bg-surface);
  border: var(--border-light);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: inline-block;
  background: rgba(37, 99, 235, 0.1);
  padding: 0.8rem;
  border-radius: 12px;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   PRECIOS (VERTICAL COLUMNS EXPATFILE STYLE)
═══════════════════════════════════════════════ */
#planes {
  background: var(--bg-alt);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.plan-card {
  background: var(--bg-surface);
  border: var(--border-light);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
}

.plan-card.popular {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-md);
  transform: scale(1.02);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-warm);
  color: white;
  padding: 0.2rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.plan-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.plan-price {
  font-size: 3rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}
.plan-price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.plan-features {
  list-style: none;
  margin: 2rem 0;
  text-align: left;
  flex: 1;
}

.plan-features li {
  margin-bottom: 1rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.plan-features li::before {
  content: "✓";
  color: var(--success);
  font-weight: bold;
}

.paypal-container {
  margin-top: 1.5rem;
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
footer {
  background: var(--bg-deep);
  color: white;
  padding: 4rem 10% 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: white;
}
.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: white;
}

.footer-col p {
  color: #94A3B8;
  font-size: 0.95rem;
}

.footer-col ul {
  list-style: none;
}
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col ul li a {
  color: #94A3B8;
  font-size: 0.95rem;
}
.footer-col ul li a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  text-align: center;
  color: #64748B;
  font-size: 0.9rem;
}

/* ═══════════════════════════════════════════
   MODAL
═══════════════════════════════════════════════ */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(26, 27, 65, 0.6);
  backdrop-filter: blur(5px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.open {
  display: flex;
}

.modal-content {
  background: var(--bg-surface);
  border-radius: 16px;
  width: 90%;
  max-width: 450px;
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  border: var(--border-light);
}

.modal-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  background: none; border: none;
}

.modal-content h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.modal-content p {
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 2rem;
}

.input-group {
  margin-bottom: 1.5rem;
}

.input-group label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.input-group input {
  width: 100%;
  padding: 0.8rem;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  color: var(--text-main);
  font-family: var(--font-body);
}

.input-group input:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
}

.btn-google {
  width: 100%;
  background: white;
  color: var(--text-main);
  border: 1px solid #E2E8F0;
  padding: 0.8rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  transition: background 0.2s;
}

.btn-google:hover {
  background: #F8FAFC;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media(max-width: 768px) {
  .nav-links { display: none; }
  .feature-block, .feature-block:nth-child(even) { flex-direction: column; text-align: center; gap: 2rem; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-title { font-size: 2.2rem; }
  .hero-sub { font-size: 1rem; }
  section { padding: 4rem 5%; }
  nav { padding: 0 5%; }
  .nav-auth .btn-outline { display: none; }
}
