/* =========================================
   Mi Mundo Digital — Landing Page Styles
   ========================================= */

/* =========================================
   1. Custom Properties
   ========================================= */
:root {
  /* Brand Colors */
  --color-primary:    #40E0D0;
  --color-accent:     #FFD700;
  --color-bg-light:   #F5F5F5;
  --color-bg-sand:    #EDEDED;
  --color-text:       #4a413d;
  --color-text-muted: #6b7280;
  --color-text-light: #9ca3af;
  --color-white:      #ffffff;
  --color-gray-100:   #f3f4f6;
  --color-gray-200:   #e5e7eb;
  --color-cyan-50:    #ecfeff;
  --color-yellow-50:  #fefce8;

  /* Typography */
  --font-sans: 'Manrope', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Border Radius */
  --radius-sm:   0.5rem;
  --radius-md:   0.75rem;
  --radius-lg:   1rem;
  --radius-xl:   1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:   0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md:   0 4px 6px -1px rgba(0, 0, 0, 0.10), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg:   0 10px 15px -3px rgba(0, 0, 0, 0.10), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl:   0 20px 25px -5px rgba(0, 0, 0, 0.10), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl:  0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.03);

  /* Transition */
  --transition: all 0.3s ease;

  /* Container widths (mirrors Tailwind max-w scale) */
  --container-xl: 72rem; /* max-w-6xl */
  --container-lg: 56rem; /* max-w-4xl */
  --container-md: 48rem; /* max-w-3xl */
  --container-sm: 42rem; /* max-w-2xl */
}

/* =========================================
   2. Reset & Base
   ========================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-light);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* =========================================
   3. Layout & Containers
   ========================================= */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container--lg { max-width: var(--container-lg); }
.container--md { max-width: var(--container-md); }
.container--sm { max-width: var(--container-sm); }

/* =========================================
   4. Typography Helpers
   ========================================= */
.text-center { text-align: center; }

.text-primary {
  color: var(--color-primary);
  font-style: italic;
}

/* =========================================
   5. Buttons
   ========================================= */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 700;
  text-align: center;
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: pointer;
  line-height: 1.3;
  border: none;
  white-space: normal;
  max-width: 100%;
}

/* Variants */
.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn--primary:hover {
  background-color: rgba(64, 224, 208, 0.88);
}

/* Shape */
.btn--round {
  border-radius: var(--radius-full);
}

/* Sizes */
.btn--sm {
  padding: 0.5rem 1.5rem;
  font-size: 0.875rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.btn--lg {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  box-shadow: var(--shadow-lg);
}

.btn--xl {
  padding: 1.25rem 3rem;
  font-size: 1.25rem;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
}

/* Modifiers */
.btn--block {
  display: block;
  width: 100%;
}

.btn--scale {
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn--scale:hover {
  transform: scale(1.05);
}

/* =========================================
   6. Header
   ========================================= */
.header {
  background-color: rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--color-gray-100);
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.header__logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}

/* =========================================
   7. Badge
   ========================================= */
.badge {
  display: inline-block;
  background-color: var(--color-bg-sand);
  color: var(--color-primary);
  padding: 0.25rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* =========================================
   8. Section Base
   ========================================= */
.section {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.section--white    { background-color: var(--color-white); }
.section--sand     { background-color: var(--color-bg-sand); }
.section--cream    { background-color: var(--color-bg-light); }
.section--yellow   { background-color: var(--color-yellow-50); }
.section--bordered { border-top: 1px solid var(--color-gray-100); }

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

.section__title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.section__subtitle {
  color: var(--color-text-muted);
  line-height: 1.6;
}

.section__cta {
  text-align: center;
  margin-top: 3rem;
}

/* =========================================
   9. Hero Section
   ========================================= */
.hero {
  background: linear-gradient(180deg, var(--color-white) 0%, var(--color-bg-light) 100%);
  padding-top: 3rem;
  padding-bottom: 5rem;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero__title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-text);
}

.hero__description {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 32rem;
  line-height: 1.7;
}

.hero__cta {
  padding-top: 1rem;
}

.hero__image {
  flex: 1;
  width: 100%;
}

.hero__image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  transform: rotate(2deg);
  transition: transform 0.5s ease;
}

.hero__image-wrapper:hover {
  transform: rotate(0deg);
}

.hero__img {
  width: 100%;
  height: auto;
}

/* =========================================
   10. Empathy Section
   ========================================= */
.empathy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
}

.empathy-card {
  background-color: var(--color-white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: var(--shadow-card);
}

.empathy-card__icon {
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  background-color: var(--color-cyan-50);
  flex-shrink: 0;
  font-size: 1.125rem;
  line-height: 1;
}

.empathy-card__text {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  padding-top: 0.25rem;
}

.empathy-quote {
  text-align: center;
  font-style: italic;
  margin-top: 3rem;
  font-size: 1.125rem;
  font-weight: 500;
}

/* =========================================
   11. Benefits Section
   ========================================= */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.benefit-card {
  background-color: var(--color-bg-light);
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.benefit-card--outlined {
  background-color: var(--color-white);
  border: 2px solid var(--color-bg-sand);
}

.benefit-card__icon {
  background-color: var(--color-white);
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.benefit-card__icon--primary {
  background-color: rgba(64, 224, 208, 0.10);
}

.benefit-card__title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text);
}

.benefit-card__text {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* =========================================
   12. Curriculum Section
   ========================================= */
.curriculum-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.curriculum-item {
  background-color: var(--color-white);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-card);
}

.curriculum-item__check {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 0.625rem;
  font-weight: 700;
}

.curriculum-item__title {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--color-text);
}

.curriculum-item__desc {
  font-size: 0.75rem;
  color: var(--color-text-light);
  margin-top: 0.25rem;
}

/* =========================================
   13. Testimonials Section
   ========================================= */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.testimonial-card {
  background-color: var(--color-bg-light);
  padding: 2rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial-card__stars {
  color: var(--color-accent);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.testimonial-card__quote {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  font-style: italic;
  line-height: 1.6;
  flex: 1;
}

.testimonial-card__author {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--color-text);
}

.testimonial-card__location {
  font-size: 0.75rem;
  color: var(--color-text-light);
}

/* =========================================
   14. Pricing Section
   ========================================= */
.pricing-card {
  background-color: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-gray-100);
}

.pricing-card__title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.pricing-card__timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.pricing-card__timer-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.pricing-card__timer-clock {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.125rem;
}

.pricing-card__prices {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.pricing-card__original {
  color: var(--color-text-light);
  text-decoration: line-through;
  font-size: 1.25rem;
}

.pricing-card__price {
  font-size: 3.75rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  padding: 0.5rem 0;
}

.pricing-card__note {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.pricing-card__guarantee {
  font-size: 0.75rem;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* =========================================
   15. FAQ Section
   ========================================= */
.faq-title {
  margin-bottom: 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 3rem;
}

.faq-item {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-gray-100);
  overflow: hidden;
}

.faq-item__button {
  width: 100%;
  padding: 1.5rem;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--color-text);
  gap: 1rem;
  transition: background-color 0.2s ease;
}

.faq-item__button:focus {
  outline: none;
}

.faq-item__button:hover {
  background-color: var(--color-bg-light);
}

.faq-item__chevron {
  flex-shrink: 0;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.faq-item__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
  padding: 0 1.5rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.faq-item.active .faq-item__content {
  max-height: 200px;
  padding-bottom: 1.5rem;
}

.faq-item.active .faq-item__chevron {
  transform: rotate(180deg);
}

/* =========================================
   16. Author Section
   ========================================= */
.author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  text-align: center;
}

.author__image-wrapper {
  width: 12rem;
  height: 12rem;
  border-radius: var(--radius-full);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-xl);
  border: 4px solid var(--color-bg-sand);
}

.author__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.author__title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-text);
}

.author__bio {
  color: var(--color-text-muted);
  line-height: 1.75;
}

.author__credentials {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* =========================================
   17. Final CTA Section
   ========================================= */
.cta__title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.cta__description {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* =========================================
   18. Footer
   ========================================= */
.footer {
  background-color: var(--color-bg-sand);
  padding-top: 3rem;
  padding-bottom: 6rem;
  border-top: 1px solid var(--color-gray-200);
}

.footer__inner {
  text-align: center;
}

.footer__brand {
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.footer__copy {
  font-size: 0.75rem;
  color: var(--color-text-light);
}

/* =========================================
   19. Responsive — Mobile (< 768px)
   ========================================= */
@media (max-width: 767px) {

  /* CTA buttons take full width on mobile */
  .section__cta .btn,
  .cta-section .btn,
  .section--yellow .btn {
    display: block;
    width: 100%;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  /* Reduce side padding on large buttons */
  .btn--lg {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .btn--xl {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    font-size: 1.125rem;
  }
}

/* =========================================
   20. Scroll To Top Button
   ========================================= */
.scroll-top {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  z-index: 101;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-full);
  background-color: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.5rem);
  transition: opacity 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  border: none;
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top:hover {
  background-color: rgba(64, 224, 208, 0.85);
  transform: translateY(-2px);
}

/* =========================================
   21. Sticky Buy Button
   ========================================= */
.sticky-buy {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--color-gray-200);
  padding: 0.875rem 1.5rem;
  transform: translateY(100%);
  transition: transform 0.35s ease;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.sticky-buy.is-visible {
  transform: translateY(0);
}

.sticky-buy__inner {
  max-width: var(--container-sm);
  margin: 0 auto;
  text-align: center;
}

.sticky-buy__btn {
  padding: 0.875rem 2.5rem;
  font-size: 1rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 360px;
}

/* =========================================
   21. Responsive — Tablet+ (≥ 768px)
   ========================================= */
@media (min-width: 768px) {

  .hero__inner {
    flex-direction: row;
  }

  .hero__content {
    text-align: left;
  }

  .hero__title {
    font-size: 3.75rem;
  }

  .empathy-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .author {
    flex-direction: row;
    text-align: left;
  }
}
