/*
Theme Name: EduFacil Landing
Theme URI: https://edufacil.mx/
Author: EduFacil
Author URI: https://edufacil.mx/
Description: Tema ligero de una sola landing page para EduFacil, optimizado para SEO tecnico, velocidad y conversion por WhatsApp.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: edufacil
*/

:root {
  --ink: #082450;
  --ink-soft: #17345f;
  --green: #08b77c;
  --green-dark: #008b65;
  --green-soft: #e8fbf4;
  --line: #e7edf5;
  --muted: #5e6d84;
  --white: #fff;
  --shadow: 0 18px 50px rgba(8, 36, 80, .12);
  --radius: 8px;
  --container: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: #fff;
  text-rendering: optimizeLegibility;
}

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

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

:focus-visible {
  outline: 3px solid rgba(8, 183, 124, .45);
  outline-offset: 3px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(231, 237, 245, .72);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  font-size: 1.34rem;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
}

.brand strong {
  color: var(--green);
}

.custom-logo-link img {
  width: auto;
  max-height: 48px;
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 28px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: .91rem;
  font-weight: 800;
}

.primary-nav a {
  padding: 30px 0 25px;
  border-bottom: 3px solid transparent;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav .current-menu-item > a {
  color: var(--green-dark);
  border-bottom-color: var(--green);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  font-weight: 850;
  border: 0;
  box-shadow: 0 12px 24px rgba(8, 183, 124, .22);
}

.btn:hover,
.btn:focus-visible {
  background: var(--green-dark);
}

.btn svg {
  width: 19px;
  height: 19px;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 32%, rgba(8, 183, 124, .11), transparent 24rem),
    linear-gradient(90deg, #fff 0%, #fff 46%, #f6fbff 100%);
}

.hero-inner {
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: 32px;
  padding: 62px 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-size: .95rem;
  font-weight: 850;
}

.hero h1,
.section-title,
.cta h2 {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 660px;
  font-size: clamp(2.75rem, 6vw, 5.6rem);
}

.accent {
  color: var(--green);
}

.hero-subtitle {
  margin: 18px 0 30px;
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  font-weight: 800;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0 0 34px;
  list-style: none;
  color: #1e2e45;
  font-weight: 650;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.check-list li::before {
  content: "";
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--green-soft);
  box-shadow: inset 0 0 0 1px rgba(8, 183, 124, .35);
}

.trust-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  color: var(--ink-soft);
  font-size: .9rem;
  font-weight: 800;
}

.avatars {
  display: flex;
}

.avatar {
  width: 34px;
  height: 34px;
  margin-left: -8px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, #f8c79c, #6f3d2f);
}

.avatar:first-child {
  margin-left: 0;
}

.avatar:nth-child(2) { background: linear-gradient(135deg, #f0aa7a, #17345f); }
.avatar:nth-child(3) { background: linear-gradient(135deg, #d8a063, #0c725a); }
.avatar:nth-child(4) { background: linear-gradient(135deg, #f3c4b2, #312333); }

.hero-visual {
  position: relative;
  min-height: 560px;
}

.student-figure {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(92%, 560px);
  height: 545px;
  border-radius: 180px 8px 8px 8px;
  background:
    radial-gradient(circle at 58% 19%, #1d1720 0 5.6rem, transparent 5.7rem),
    radial-gradient(circle at 60% 12%, #2b1b1d 0 3rem, transparent 3.1rem),
    linear-gradient(165deg, transparent 0 30%, #f2c4a6 30.2% 42%, transparent 42.2%),
    linear-gradient(155deg, transparent 0 46%, #80b6da 46.2% 100%);
  box-shadow: inset 0 -110px 0 rgba(255, 255, 255, .42);
}

.student-figure::before {
  content: "";
  position: absolute;
  left: 17%;
  right: 6%;
  bottom: 42px;
  height: 190px;
  border-radius: 8px;
  background: linear-gradient(180deg, #f9fbfd, #dfe8ef);
  box-shadow: var(--shadow);
}

.student-figure::after {
  content: "";
  position: absolute;
  right: 32px;
  bottom: 36px;
  width: 76px;
  height: 70px;
  border-radius: 0 0 18px 18px;
  border: 10px solid #fff;
  border-top: 0;
  box-shadow: 0 -22px 0 #fff, var(--shadow);
}

.student-figure:has(.visual-img),
.advisor:has(.visual-img) {
  overflow: hidden;
  background: transparent;
  box-shadow: var(--shadow);
}

.student-figure:has(.visual-img)::before,
.student-figure:has(.visual-img)::after {
  display: none;
}

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

.feature-card {
  position: absolute;
  left: 0;
  top: 155px;
  width: min(300px, 55%);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow);
}

.feature-card h2 {
  margin: 0 0 22px;
  font-size: 1.38rem;
  line-height: 1.22;
}

.feature-list {
  display: grid;
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: .88rem;
  font-weight: 750;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.line-icon {
  width: 26px;
  height: 26px;
  color: var(--green-dark);
}

.section {
  padding: 78px 0;
}

.section-head {
  margin: 0 auto 48px;
  text-align: center;
}

.section-title {
  font-size: clamp(2rem, 3.7vw, 3.25rem);
}

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

.step {
  position: relative;
  padding: 0 38px;
}

.step + .step {
  border-left: 1px solid #dbe5ef;
}

.step-icon {
  width: 128px;
  height: 128px;
  display: grid;
  place-items: center;
  margin: 0 auto 26px;
  border-radius: 50%;
  color: var(--green-dark);
  background: var(--green-soft);
}

.step-icon svg {
  width: 58px;
  height: 58px;
}

.step-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 12px;
  font-size: 1.2rem;
  font-weight: 900;
}

.step-title span {
  color: var(--green);
  font-size: 2.5rem;
}

.step p,
.target-copy p,
.testimonial p,
.cta p {
  margin: 0;
  color: #1e2e45;
}

.target-band {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .75fr);
  align-items: center;
  overflow: hidden;
  padding: 46px 66px 0;
  border-radius: var(--radius);
  background: linear-gradient(100deg, #eefbf8, #f8fcff);
}

.target-copy {
  padding-bottom: 44px;
}

.target-copy h2 {
  margin: 0 0 24px;
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  line-height: 1.12;
}

.advisor {
  min-height: 300px;
  align-self: end;
  border-radius: 48% 48% 0 0;
  background:
    radial-gradient(circle at 56% 7%, #16191d 0 3.7rem, transparent 3.8rem),
    linear-gradient(160deg, transparent 0 31%, #d7a17f 31.2% 43%, transparent 43.2%),
    radial-gradient(circle at 70% 46%, rgba(8, 183, 124, .28), transparent 9.2rem),
    linear-gradient(150deg, transparent 0 51%, #6f8b68 51.2% 100%);
}

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

.testimonial {
  min-height: 236px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(8, 36, 80, .06);
}

.quote-mark {
  color: var(--green);
  font-size: 3rem;
  line-height: .5;
  font-weight: 900;
}

.person {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.person b,
.person span {
  display: block;
}

.person span {
  color: var(--muted);
  font-size: .92rem;
}

.faq-section {
  background: linear-gradient(180deg, #fff 0%, #f8fcff 100%);
}

.faq-list {
  width: min(100%, 920px);
  display: grid;
  gap: 12px;
  margin-inline: auto;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 26px rgba(8, 36, 80, .05);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-toggle {
  position: relative;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green-soft);
}

.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  background: var(--green-dark);
  transform: translate(-50%, -50%);
}

.faq-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-toggle::after {
  display: none;
}

.faq-answer {
  padding: 0 26px 24px;
  color: #1e2e45;
}

.faq-answer p {
  max-width: 760px;
  margin: 0;
}

.certificate {
  display: flex;
  align-items: center;
  gap: 38px;
  padding: 38px 64px;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(90deg, #062859, #082450);
}

.certificate svg {
  flex: 0 0 82px;
  width: 82px;
  height: 82px;
  color: var(--green);
}

.certificate h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2.45rem);
  line-height: 1.15;
}

.certificate p {
  margin: 0;
  color: rgba(255, 255, 255, .9);
  font-size: 1.15rem;
}

.cta {
  overflow: hidden;
  background: linear-gradient(100deg, #f5fcfb, #fff);
}

.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(310px, .8fr);
  align-items: center;
  gap: 50px;
}

.cta h2 {
  font-size: clamp(2.35rem, 5vw, 4.2rem);
}

.cta p {
  max-width: 480px;
  margin: 24px 0 32px;
  font-size: 1.1rem;
}

.phone {
  position: relative;
  width: min(100%, 350px);
  aspect-ratio: 9 / 17;
  margin-inline: auto;
  padding: 18px;
  border-radius: 42px;
  background: #15212c;
  box-shadow: var(--shadow);
  transform: rotate(8deg);
}

.phone-screen {
  height: 100%;
  overflow: hidden;
  border-radius: 28px;
  background: #f7f4ed;
}

.phone-img {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  object-fit: cover;
}

.phone:has(.phone-img) .phone-screen {
  display: none;
}

.phone-top {
  padding: 24px 18px;
  color: #fff;
  background: #008760;
  font-weight: 850;
}

.message {
  width: 82%;
  margin: 34px 16px;
  padding: 16px;
  border-radius: var(--radius);
  background: #fff;
  color: #24344a;
  box-shadow: 0 8px 22px rgba(8, 36, 80, .12);
}

.site-footer {
  color: #fff;
  background: #062859;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr .7fr .7fr .7fr;
  gap: 40px;
  padding: 48px 0 38px;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, .86);
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 1rem;
}

.footer-links {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.socials {
  display: flex;
  gap: 12px;
}

.socials a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  font-weight: 900;
}

.copyright {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  font-size: .9rem;
}

.floating-whatsapp {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 30;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  box-shadow: 0 16px 30px rgba(8, 183, 124, .35);
}

.floating-whatsapp svg {
  width: 28px;
  height: 28px;
}

.content-page {
  min-height: 60vh;
  padding: 72px 0;
}

.entry-title {
  margin: 0 0 22px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.1;
}

@media (max-width: 920px) {
  .header-inner {
    min-height: 72px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-wrap {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    padding: 18px 16px 22px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(8, 36, 80, .08);
  }

  .nav-wrap.is-open {
    display: grid;
    gap: 18px;
  }

  .primary-nav {
    display: grid;
    gap: 4px;
  }

  .primary-nav a {
    display: block;
    padding: 10px 0;
    border-bottom: 0;
  }

  .hero-inner,
  .cta-inner {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
    padding-top: 44px;
  }

  .hero-visual {
    min-height: 450px;
  }

  .steps,
  .testimonials,
  .target-band,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .step {
    padding: 0;
  }

  .step + .step {
    padding-top: 34px;
    border-left: 0;
    border-top: 1px solid #dbe5ef;
  }

  .target-band {
    padding: 34px 28px 0;
  }
}

@media (max-width: 600px) {
  .site-container {
    width: min(100% - 24px, var(--container));
  }

  .hero h1 {
    font-size: 2.65rem;
  }

  .hero-subtitle {
    font-size: 1.18rem;
  }

  .hero-visual {
    min-height: 360px;
  }

  .student-figure {
    height: 350px;
    width: 88%;
  }

  .feature-card {
    top: 40px;
    width: 72%;
    padding: 20px;
  }

  .feature-card h2 {
    font-size: 1.05rem;
  }

  .feature-list {
    gap: 11px;
    font-size: .78rem;
  }

  .section {
    padding: 58px 0;
  }

  .certificate {
    display: grid;
    padding: 30px;
  }

  .phone {
    width: 270px;
  }

  .btn {
    width: 100%;
    padding-inline: 18px;
  }
}
