/* Asesoría de Marketing Chile — static site */
:root {
  --color-primary: #0a582c;
  --color-primary-dark: #042512;
  --color-text: #48484a;
  --color-text-light: #f8f5f5;
  --color-white: #ffffff;
  --color-section-dark: #5d5d5e;
  --color-overlay: rgba(66, 66, 66, 0.6);
  --font-main: "Open Sans", system-ui, -apple-system, sans-serif;
  --font-alt: "Roboto", system-ui, sans-serif;
  --container-max: 1140px;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-main);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.5;
  background: var(--color-white);
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

/* ── Header ── */
.site-header {
  padding: 0.75rem 0;
  background: var(--color-white);
}

.site-header .logo {
  max-width: 500px;
  margin: 0 auto;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(var(--color-overlay), var(--color-overlay)),
    url("../assets/images/hero.jpg") center / cover no-repeat;
  color: var(--color-text-light);
  padding: 4rem 1.25rem;
}

.hero__title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

.hero__title span {
  display: block;
}

/* ── Sections common ── */
.section {
  padding: 3.5rem 0;
}

.section--dark {
  background: var(--color-section-dark);
  color: var(--color-text-light);
}

.section__title {
  text-align: center;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  margin: 0 0 1.5rem;
  color: inherit;
}

.section__subtitle {
  text-align: center;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  max-width: 900px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* ── Value proposition ── */
.value-prop {
  text-align: center;
  padding: 3rem 0;
}

.value-prop__quote {
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  max-width: 800px;
  margin: 0 auto 2rem;
  color: var(--color-text);
}

.value-prop__heading {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  margin-bottom: 1rem;
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  max-width: 900px;
  margin: 1.5rem auto;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
}

.features-grid span::after {
  content: ",";
}

.features-grid span:last-child::after {
  content: ".";
}

.badge {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.5rem 1.25rem;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius);
  font-size: 0.95rem;
}

/* ── Video ── */
.video-section {
  padding: 3rem 0;
  background: var(--color-white);
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

/* ── Services ── */
.services-intro {
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
}

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

.service-card {
  text-align: center;
}

.service-card__icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.service-card h3 {
  font-size: 1rem;
  margin: 0 0 0.75rem;
  color: var(--color-text-light);
}

.service-card ul {
  text-align: left;
  display: inline-block;
  font-weight: 400;
  font-size: 0.95rem;
}

.service-card li {
  margin-bottom: 0.35rem;
}

.service-card a {
  color: #a8d5b5;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.service-card a:hover {
  color: var(--color-white);
}

.service-card__label {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-top: 0.5rem;
}

/* ── Pricing ── */
.pricing {
  position: relative;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    url("../assets/images/plans.jpg") center / cover no-repeat;
  color: var(--color-text-light);
  padding: 4rem 0;
}

.pricing__intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.pricing__intro h2 {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  margin: 0 0 0.5rem;
}

.pricing__intro .highlight {
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  margin: 1rem 0;
}

.pricing__note {
  font-size: 0.9rem;
  font-weight: 400;
  margin-top: 1.5rem;
  opacity: 0.9;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.plan-card {
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-text);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.plan-card h3 {
  text-align: center;
  font-size: 1.1rem;
  margin: 0 0 0.25rem;
  color: var(--color-primary);
}

.plan-card__subtitle {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: #666;
}

.plan-card ul {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 400;
  margin-bottom: 1.25rem;
}

.plan-card li {
  padding: 0.25rem 0;
  padding-left: 1rem;
  position: relative;
}

.plan-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-primary);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius);
  background: var(--color-primary);
  color: var(--color-white);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  text-align: center;
  width: 100%;
}

.btn:hover,
.btn:focus-visible {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  outline: none;
}

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

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

.btn--whatsapp {
  background: #25d366;
  border-color: #25d366;
  font-size: 1.25rem;
  padding: 1rem 2rem;
  width: auto;
}

.btn--whatsapp:hover {
  background: #1da851;
  border-color: #1da851;
}

.btn--lg {
  font-size: 1.15rem;
  padding: 1rem 2.5rem;
}

/* ── Contact form ── */
.contact-form {
  max-width: 600px;
  margin: 2rem auto 0;
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: var(--radius);
  backdrop-filter: blur(4px);
}

.contact-form h3 {
  text-align: center;
  margin: 0 0 1rem;
  font-size: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-main);
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-text);
}

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: 2px solid var(--color-primary);
  border-color: transparent;
}

/* ── CTA sections ── */
.cta-section {
  text-align: center;
  padding: 3.5rem 1.25rem;
}

.cta-section p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  max-width: 800px;
  margin: 0 auto 1.5rem;
}

.cta-question {
  padding: 3rem 1.25rem;
  text-align: center;
  background: var(--color-white);
}

.cta-question p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin-bottom: 1.5rem;
}

/* ── Footer ── */
.site-footer {
  background: var(--color-section-dark);
  color: var(--color-text-light);
  padding: 2.5rem 0 1.5rem;
}

.footer__info {
  text-align: center;
  font-weight: 400;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.footer__info p {
  margin: 0.25rem 0;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  font-size: 1.25rem;
  transition: background var(--transition), transform var(--transition);
}

.social-links a:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
}

.footer__privacy {
  text-align: center;
  font-weight: 400;
}

.footer__privacy a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__privacy a:hover {
  color: #a8d5b5;
}

/* ── Modal (Leadbox) ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--color-white);
  border-radius: var(--radius);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  transform: translateY(20px);
  transition: transform var(--transition);
}

.modal-overlay.is-open .modal {
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
  line-height: 1;
  padding: 0.25rem;
}

.modal__close:hover {
  color: var(--color-text);
}

.modal h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  color: var(--color-primary);
}

.modal__price {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.modal .form-group label {
  color: var(--color-text);
}

/* ── Visibility helpers ── */
.hidden-mobile {
  display: block;
}

.hidden-desktop {
  display: none;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .plans-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .hidden-mobile {
    display: none !important;
  }

  .hidden-desktop {
    display: block;
  }

  .hero {
    min-height: 55vh;
    padding: 3rem 1rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .section {
    padding: 2.5rem 0;
  }
}

@media (max-width: 480px) {
  .site-header .logo {
    max-width: 280px;
  }

  .btn--whatsapp {
    width: 100%;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
