:root {
  --background: hsl(0 0% 100%);
  --foreground: hsl(200 25% 10%);

  --card: hsl(0 0% 100%);
  --card-foreground: hsl(200 25% 10%);

  --popover: hsl(0 0% 100%);
  --popover-foreground: hsl(200 25% 10%);

  --primary: hsl(174 62% 40%);
  --primary-foreground: hsl(0 0% 100%);

  --secondary: hsl(174 40% 95%);
  --secondary-foreground: hsl(174 62% 25%);

  --muted: hsl(174 20% 96%);
  --muted-foreground: hsl(200 10% 45%);

  --accent: hsl(174 50% 92%);
  --accent-foreground: hsl(174 62% 25%);

  --destructive: hsl(0 84.2% 60.2%);
  --destructive-foreground: hsl(0 0% 100%);

  --border: hsl(200 15% 90%);
  --input: hsl(200 15% 90%);
  --ring: hsl(174 62% 40%);

  --radius: 0.75rem;

  --sidebar-background: hsl(0 0% 98%);
  --sidebar-foreground: hsl(240 5.3% 26.1%);
  --sidebar-primary: hsl(174 62% 40%);
  --sidebar-primary-foreground: hsl(0 0% 100%);
  --sidebar-accent: hsl(174 50% 95%);
  --sidebar-accent-foreground: hsl(174 62% 25%);
  --sidebar-border: hsl(200 15% 91%);
  --sidebar-ring: hsl(174 62% 40%);

  --teal-dark: hsl(174 62% 30%);
  --teal-light: hsl(174 50% 95%);
  --gradient-hero: linear-gradient(135deg, hsl(174 62% 40%) 0%, hsl(174 45% 55%) 50%, hsl(180 40% 65%) 100%);

  --card-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  --shadow-sm: 0 6px 18px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}

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

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

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

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.section {
  padding: 96px 0;
}

.section.muted {
  background: hsl(174 20% 96% / 0.8);
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 700;
}

.section-title p {
  margin-top: 12px;
  color: var(--muted-foreground);
}

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  border-bottom: 1px solid var(--border);
}

.nav-bar {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 28px;
  font-weight: 800;
  color: var(--foreground);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--muted-foreground);
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.nav-links .btn-primary,
.nav-mobile .btn-primary {
  color: var(--primary-foreground);
}

.nav-links .btn-primary:hover,
.nav-mobile .btn-primary:hover {
  color: var(--primary-foreground);
}

.nav-toggle {
  display: none;
  color: var(--foreground);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 16px 0 24px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
}

.nav-mobile a {
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 500;
  color: var(--muted-foreground);
}

.nav-mobile a.active,
.nav-mobile a:hover {
  background: hsl(174 50% 92%);
  color: var(--primary);
}

.nav-mobile.open {
  display: flex;
}

.hero-section {
  position: relative;
  padding: 150px 0 120px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    hsl(174 62% 40% / 0.05),
    hsl(174 50% 92% / 0.3),
    hsl(0 0% 100%)
  );
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 4vw, 4.1rem);
  font-weight: 800;
  line-height: 1.1;
}

.hero-copy p {
  margin-top: 20px;
  color: var(--muted-foreground);
  font-size: 1.05rem;
}

.pill {
  display: inline-flex;
  padding: 6px 16px;
  border-radius: 999px;
  background: hsl(174 50% 92%);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

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

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-image {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
  z-index: -1;
}

.hero-glow-left {
  width: 120px;
  height: 120px;
  bottom: -16px;
  left: -16px;
  background: hsl(174 62% 40% / 0.25);
}

.hero-glow-right {
  width: 160px;
  height: 160px;
  top: -24px;
  right: -24px;
  background: hsl(180 40% 65% / 0.18);
}

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

.card {
  background: var(--card);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.card h3 {
  font-size: 1.15rem;
  margin: 16px 0 8px;
}

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

.icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: hsl(174 50% 92%);
  display: grid;
  place-items: center;
  margin: 0 auto;
  color: var(--primary);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 48px;
  align-items: center;
}

.about-grid p {
  margin-top: 16px;
  color: var(--muted-foreground);
}

.checklist {
  list-style: none;
  margin-top: 24px;
  display: grid;
  gap: 12px;
  color: var(--foreground);
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checklist i {
  color: var(--primary);
}

.stats-card {
  background: linear-gradient(135deg, hsl(174 40% 95%), hsl(174 50% 92%));
  border-radius: 28px;
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: center;
}

.stats-card strong {
  font-size: 2rem;
  display: block;
  color: var(--primary);
}

.stats-card span {
  color: var(--muted-foreground);
  font-size: 0.95rem;
}
.stats-card .stats-icon {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
}
.stats-card .stats-icon svg {
  width: 100%;
  height: 100%;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 32px;
}

.step span {
  width: 64px;
  height: 64px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 700;
  font-size: 1.5rem;
}

.step h3 {
  font-size: 1.1rem;
}

.step p {
  color: var(--muted-foreground);
  margin-top: 8px;
  font-size: 0.95rem;
}

.video-card {
  max-width: 820px;
  margin: 0 auto;
  background: #f1f5f9;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.video-frame {
  position: relative;
  padding-top: 56.25%;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.cta {
  padding: 96px 0;
  background: var(--primary);
  color: var(--primary-foreground);
  text-align: center;
}

.cta h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 24px;
}

.site-footer {
  background: var(--foreground);
  color: var(--primary-foreground);
  padding: 56px 0 32px;
}

.site-footer .brand {
  color: var(--primary-foreground);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.site-footer p {
  margin-top: 12px;
  opacity: 0.7;
}

.site-footer h4 {
  margin-bottom: 12px;
}

.site-footer a,
.site-footer button {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  opacity: 0.7;
  font-size: 0.95rem;
}

.site-footer a:hover,
.site-footer button:hover {
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  margin-top: 32px;
  opacity: 0.5;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 28px;
  font-weight: 600;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  border-color: var(--border);
  color: var(--foreground);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
}

.center {
  text-align: center;
}

.link-button {
  background: none;
  border: none;
  color: inherit;
  padding: 0;
  text-align: left;
}

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: hsl(142, 70%, 45%);
  color: #fff;
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
  transition: transform 0.2s ease;
  z-index: 40;
}

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

.hero-copy,
.hero-media,
.section-title,
.grid-3[data-animate],
.about-grid,
.steps,
.video-card,
.cta .container {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.6s ease;
}

.in-view {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Animación de carga tipo Lovable: desde los extremos al centro + título desde abajo */
@keyframes fadeUpIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-48px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(48px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

body.contact-page .form-section .section-title {
  opacity: 0;
  transform: translateY(24px);
}

body.contact-page .form-section .form-card {
  opacity: 0;
  transform: translateX(-48px);
}

body.contact-page .form-section .contact-info {
  opacity: 0;
  transform: translateX(48px);
}

body.contact-page.loaded .form-section .section-title {
  animation: fadeUpIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

body.contact-page.loaded .form-section .form-card {
  animation: slideInFromLeft 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards;
}

body.contact-page.loaded .form-section .contact-info {
  animation: slideInFromRight 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

.form-section {
  padding: 140px 0 96px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}

.form-card {
  background: var(--card);
  padding: 32px;
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.form-card label {
  font-weight: 600;
  font-size: 0.9rem;
}

.form-card input,
.form-card textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-top: 8px;
  font-size: 0.95rem;
}

.form-card textarea {
  resize: vertical;
}

.contact-info {
  display: grid;
  gap: 20px;
}

.info-card {
  padding: 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, hsl(174 40% 95%), hsl(174 50% 92%));
}

.info-card a {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  color: var(--muted-foreground);
}

.schedule-card {
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted-foreground);
}
.schedule-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.schedule-card h3 svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.45);
  z-index: 60;
}

.modal.open {
  display: flex;
}

.modal-content {
  background: var(--card);
  padding: 32px;
  border-radius: 20px;
  width: min(420px, 90%);
  box-shadow: var(--shadow-sm);
}

.modal-content h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.modal-content p {
  color: var(--muted-foreground);
}

.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.tutorial-card {
  background: var(--card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.tutorial-card iframe {
  width: 100%;
  height: 200px;
  border: none;
}

.tutorial-body {
  padding: 20px;
}

.tutorial-body small {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-foreground);
}

.tutorial-body h3 {
  margin: 10px 0 6px;
}

.tutorial-body p {
  color: var(--muted-foreground);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

@media (max-width: 1024px) {
  .hero-section .hero-grid {
    display: flex !important;
    flex-direction: column;
    grid-template-columns: 1fr !important;
    grid-auto-flow: row;
  }

  .hero-copy {
    order: 1;
  }

  .hero-media {
    order: 2;
  }
}

@media (min-width: 1025px) {
  .hero-section .hero-grid {
    grid-template-columns: 1fr 1fr !important;
    grid-auto-flow: row;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero-section {
    padding: 120px 0 80px;
  }

  .section {
    padding: 72px 0;
  }

  .stats-card {
    grid-template-columns: 1fr;
  }
}
