/* 
 * MiHojaDeVida.cr - Estilos Modernos y Ultra-Responsivos
 * Diseño enfocado en Conversión, Claridad y Móvil
 */

:root {
  --primary: #0052FF;
  --primary-dark: #0038A8;
  --primary-light: #EEF4FF;
  --accent: #10B981;
  --accent-dark: #059669;
  --accent-light: #ECFDF5;
  --dark: #0F172A;
  --dark-slate: #1E293B;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --bg-light: #F8FAFC;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 35px -5px rgba(0, 82, 255, 0.15);
  --radius: 14px;
  --radius-sm: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: var(--bg-light);
  color: var(--dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Nav */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--dark);
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(0, 82, 255, 0.25);
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-name span {
  color: var(--primary);
}

.brand-tag {
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.nav-cta-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 82, 255, 0.3);
}

.nav-cta-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
  padding: 60px 0 40px 0;
  position: relative;
  overflow: hidden;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 24px;
  border: 1px solid rgba(0, 82, 255, 0.2);
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--dark);
  margin-bottom: 20px;
}

.hero-title span.highlight {
  background: linear-gradient(135deg, var(--primary) 0%, #0099FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.18rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.btn-main-cta {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 14px;
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-main-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.45);
}

.price-tag-badge {
  background: rgba(255, 255, 255, 0.25);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.95rem;
}

.hero-guarantee {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--text-muted);
  font-size: 0.88rem;
  flex-wrap: wrap;
}

.hero-guarantee span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-guarantee i {
  color: var(--accent);
}

/* Live Template Preview Grid */
.preview-showcase {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  padding: 30px;
  margin-top: 40px;
}

.showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 15px;
}

.showcase-header h3 {
  font-size: 1.35rem;
  font-weight: 800;
}

.template-tabs {
  display: flex;
  gap: 8px;
  background: var(--bg-light);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.tab-btn {
  background: transparent;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn.active {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* CV Mockup Frame */
.cv-mockup-wrapper {
  background: #E2E8F0;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.cv-page-preview {
  background: white;
  width: 100%;
  max-width: 650px;
  min-height: 850px;
  border-radius: 6px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  padding: 35px;
  position: relative;
  font-size: 0.9rem;
}

/* Feature Cards */
.features-section {
  padding: 70px 0;
}

.section-head {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 50px auto;
}

.section-tag {
  color: var(--primary);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 82, 255, 0.3);
}

.feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.feature-icon-box.green {
  background: var(--accent-light);
  color: var(--accent);
}

.feature-card h4 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

/* Steps Section */
.steps-section {
  background: var(--white);
  padding: 70px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.step-box {
  text-align: center;
  padding: 20px;
  position: relative;
}

.step-num {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  border: 2px solid rgba(0, 82, 255, 0.2);
}

.step-box h4 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 10px;
}

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

/* Pricing Card Box */
.pricing-section {
  padding: 70px 0;
}

.pricing-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 82, 255, 0.12);
  padding: 40px;
  text-align: center;
  position: relative;
}

.pricing-badge-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 5px 18px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-amount {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--dark);
  line-height: 1;
  margin: 20px 0 8px 0;
}

.pricing-currency {
  font-size: 1.8rem;
  vertical-align: super;
  margin-right: 4px;
  color: var(--primary);
}

.pricing-term {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 25px;
}

.pricing-features-list {
  text-align: left;
  list-style: none;
  margin-bottom: 30px;
}

.pricing-features-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--bg-light);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.96rem;
  color: var(--dark-slate);
}

.pricing-features-list li i {
  color: var(--accent);
  font-size: 1.1rem;
}

/* FAQ Accordion */
.faq-section {
  padding: 70px 0;
  background: var(--white);
  border-top: 1px solid var(--border);
}

.faq-list {
  max-width: 750px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 14px;
  background: var(--bg-light);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 18px 22px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 22px 18px 22px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-item.open .faq-question i {
  transform: rotate(180deg);
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.modal-box {
  background: white;
  width: 100%;
  max-width: 500px;
  border-radius: 20px;
  padding: 32px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: modalIn 0.25s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--bg-light);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.modal-desc {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin-bottom: 24px;
}

.pay-choice-btn {
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  border: 2px solid var(--border);
  background: white;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s;
}

.pay-choice-btn:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.pay-choice-btn.primary-choice {
  border-color: var(--primary);
  background: #F4F7FF;
}

.pay-choice-title {
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pay-choice-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.sinpe-rescue-link {
  display: block;
  text-align: center;
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

/* Floating Action Button (Mobile) */
.mobile-fab {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: white;
  border: none;
  padding: 15px 24px;
  border-radius: 30px;
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
  z-index: 90;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: #94A3B8;
  padding: 40px 0 25px 0;
  font-size: 0.9rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--dark-slate);
}

.footer-logo {
  color: white;
  font-size: 1.25rem;
  font-weight: 800;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: #94A3B8;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 25px;
  font-size: 0.82rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.1rem;
  }
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .mobile-fab {
    display: block;
  }
  body {
    padding-bottom: 80px;
  }
  .pricing-amount {
    font-size: 2.8rem;
  }
}
