/* POP Consultoría — Design System */
:root {
  /* Brand colors from logo */
  --color-teal: #1a6b7a;
  --color-teal-dark: #145662;
  --color-teal-light: #e8f4f6;
  --color-purple: #8b3a8b;
  --color-purple-light: #f3e8f3;
  --color-orange: #f59e0b;
  --color-orange-dark: #d97706;
  --color-orange-light: #fef3c7;
  --color-orange-gradient: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #f97316 100%);
  --color-navy: #1e3a5f;
  --color-navy-light: #2d4a6f;

  /* Neutrals */
  --color-white: #ffffff;
  --color-cream: #faf9f7;
  --color-gray-100: #f5f4f2;
  --color-gray-200: #e8e6e3;
  --color-gray-400: #9ca3af;
  --color-gray-600: #6b7280;
  --color-gray-800: #374151;
  --color-text: #1a2744;
  --color-text-muted: #5c6478;

  /* Typography */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Layout */
  --container-max: 1200px;
  --header-height: 80px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(26, 39, 68, 0.06);
  --shadow-md: 0 8px 32px rgba(26, 39, 68, 0.1);
  --shadow-lg: 0 16px 48px rgba(26, 39, 68, 0.12);
  --transition: 200ms ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-navy);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.875rem, 4vw, 2.75rem); }
h3 { font-size: 1.25rem; font-family: var(--font-body); font-weight: 600; }

.label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: var(--space-sm);
}

.label--light { color: rgba(255, 255, 255, 0.85); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--color-teal); outline-offset: 2px; }

.btn--primary {
  background: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}

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

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

.btn--outline:hover {
  background: var(--color-navy);
  color: var(--color-white);
}

.btn--sm { padding: 0.625rem 1.25rem; font-size: 0.875rem; }
.btn--full { width: 100%; }

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-gray-200);
  height: var(--header-height);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.nav__logo img {
  height: 56px;
  width: auto;
  object-fit: contain;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav__menu a:not(.btn) {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.nav__menu a:not(.btn):hover { color: var(--color-teal); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  transition: transform var(--transition), opacity var(--transition);
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  padding: calc(var(--header-height) + var(--space-xl)) 0 var(--space-xl);
  background: var(--color-cream);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero__content { max-width: 560px; }

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin: var(--space-md) 0 var(--space-lg);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.hero__stats {
  display: flex;
  gap: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-gray-200);
}

.stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--color-teal);
  line-height: 1;
}

.stat span {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.hero__media { position: relative; }

.hero__image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero__image-wrap img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.hero__badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--color-white);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  max-width: 260px;
}

.hero__badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--color-orange-light), var(--color-purple-light));
  border-radius: 12px;
  color: var(--color-teal);
  flex-shrink: 0;
}

.hero__badge strong {
  display: block;
  font-size: 0.875rem;
  font-family: var(--font-body);
  color: var(--color-navy);
}

.hero__badge span {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Courses */
.courses__intro {
  background: var(--color-teal);
  padding: var(--space-xl) 0;
  color: var(--color-white);
}

.courses__intro h2 { color: var(--color-white); }

.courses__intro-text p {
  color: rgba(255, 255, 255, 0.85);
  margin-top: var(--space-sm);
  max-width: 480px;
}

.courses__intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.courses__intro-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  align-items: stretch;
}

.courses__img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  object-fit: cover;
  width: 100%;
  height: 100%;
  min-height: 220px;
}

.courses__img--main,
.courses__img--secondary {
  position: static;
  width: 100%;
  aspect-ratio: 4/3;
}

.courses__img--secondary {
  border: none;
}

.courses {
  padding-bottom: var(--space-xl);
}

.courses__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: calc(-1 * var(--space-lg));
  position: relative;
  z-index: 3;
}

.course-card {
  background: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-200);
  transition: transform var(--transition), box-shadow var(--transition);
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.course-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--color-teal-light);
  color: var(--color-teal);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
}

.course-card h3 {
  margin-bottom: var(--space-xs);
  color: var(--color-navy);
}

.course-card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Impact */
.impact {
  padding: var(--space-xl) 0;
  background: var(--color-white);
}

.impact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.impact__media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

.impact__content p {
  color: var(--color-text-muted);
  margin: var(--space-sm) 0 var(--space-md);
}

.impact__list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}

.impact__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, var(--color-orange), var(--color-purple));
  border-radius: 50%;
}

/* About */
.about {
  padding: var(--space-xl) 0;
  background: var(--color-gray-100);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.about__content p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.about__credentials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
}

.credential {
  background: var(--color-white);
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-teal);
}

.credential strong {
  display: block;
  font-size: 0.875rem;
  color: var(--color-navy);
}

.credential span {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.about__media { position: relative; }

.about__image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about__image-wrap img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.about__quote {
  position: absolute;
  bottom: -24px;
  left: -24px;
  right: 24px;
  background: var(--color-navy);
  color: var(--color-white);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.about__quote blockquote {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-style: italic;
  line-height: 1.5;
}

/* Wellness */
.wellness {
  background: var(--color-navy);
  padding: var(--space-xl) 0;
  color: var(--color-white);
}

.wellness h2 { color: var(--color-white); }

.wellness__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.wellness__content p {
  color: rgba(255, 255, 255, 0.8);
  margin-top: var(--space-sm);
}

.wellness__media img {
  border-radius: var(--radius-lg);
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
}

/* Contact */
.contact {
  padding: var(--space-xl) 0;
  background: var(--color-teal-light);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.contact__info p {
  color: var(--color-text-muted);
  margin: var(--space-sm) 0 var(--space-lg);
}

.contact__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-teal);
  font-weight: 500;
  transition: color var(--transition);
}

.contact__link:hover { color: var(--color-teal-dark); }

.contact__form {
  background: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: var(--space-xs);
  color: var(--color-navy);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-sm);
  background: var(--color-cream);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(26, 107, 122, 0.15);
}

.form-group textarea { resize: vertical; min-height: 100px; }

/* Footer */
.footer {
  background: var(--color-orange-gradient);
  color: var(--color-navy);
  padding-top: var(--space-xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-lg);
}

.footer__brand img {
  height: 60px;
  width: auto;
  margin-bottom: var(--space-sm);
  filter: brightness(1.1);
}

.footer__brand p {
  font-size: 0.875rem;
  max-width: 280px;
  color: rgba(30, 58, 95, 0.85);
}

.footer__links h4 {
  color: var(--color-navy);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.footer__links li { margin-bottom: 0.5rem; }

.footer__links a {
  font-size: 0.875rem;
  color: rgba(30, 58, 95, 0.85);
  transition: color var(--transition);
}

.footer__links a:hover { color: var(--color-navy); }

.footer__bottom {
  border-top: 1px solid rgba(30, 58, 95, 0.15);
  padding: var(--space-md) 0;
  text-align: center;
}

.footer__social {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-sm);
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(30, 58, 95, 0.12);
  color: var(--color-navy);
  transition: background var(--transition), transform var(--transition);
}

.footer__social-link:hover {
  background: var(--color-navy);
  color: var(--color-white);
  transform: translateY(-2px);
}

.footer__bottom p {
  font-size: 0.8125rem;
  color: rgba(30, 58, 95, 0.7);
}

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: var(--color-white);
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}

.whatsapp-float:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 3px;
}

/* Responsive */
@media (max-width: 1024px) {
  .courses__grid { grid-template-columns: repeat(2, 1fr); }
  .about__credentials { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav__toggle { display: flex; }

  .nav__menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: var(--space-md);
    gap: var(--space-sm);
    border-bottom: 1px solid var(--color-gray-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
  }

  .nav__menu.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__menu a:not(.btn) {
    display: block;
    padding: var(--space-xs) 0;
    font-size: 1rem;
  }

  .hero__grid,
  .courses__intro-grid,
  .impact__grid,
  .about__grid,
  .wellness__grid,
  .contact__grid,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .hero__media { order: -1; }
  .hero__badge { left: 0; bottom: -16px; }

  .hero__stats {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .courses__grid {
    grid-template-columns: 1fr;
    margin-top: var(--space-lg);
  }

  .courses__intro-images {
    grid-template-columns: 1fr;
  }

  .courses__img--main,
  .courses__img--secondary {
    min-height: auto;
  }

  .about__quote {
    position: static;
    margin-top: var(--space-md);
  }

  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__brand p { max-width: none; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}
