@import url("https://fonts.googleapis.com/css2?family=Poiret+One&family=Quicksand:wght@400;500;600&display=swap");

:root {
  --sidebar: 288px;
  --purple: #6540ff;
  --purple-dark: #2e168d;
  --lavender: #f2f1fa;
  --lavender-2: #e5e0ff;
  --white: #ffffff;
  --ink: #161616;
  --muted: #3b3b3b;
  --line: #d8d8d8;
  --shadow: 0 18px 35px rgba(37, 25, 84, 0.14);
}

/* =========================
   Base
   ========================= */

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

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--lavender);
  font-family: "Quicksand", sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
.desktop-nav,
.mobile-nav,
.contact-title,
.site-footer {
  font-family: "Poiret One", cursive;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
  padding: 10px 14px;
  color: var(--white);
  background: var(--purple-dark);
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* =========================
   Sidebar
   ========================= */

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 100;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 34px 18px;
  background: var(--white);
  box-shadow: 3px 0 12px rgba(0, 0, 0, 0.12);
}

.brand {
  width: 205px;
  margin-bottom: 28px;
}

.brand img {
  width: 100%;
}

.desktop-nav {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 13px;
  font-size: 1.22rem;
}

.desktop-nav a {
  position: relative;
  padding: 3px 0 7px;
  text-decoration: none;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  transform: scaleX(1);
}

.sidebar-divider {
  width: 100%;
  height: 1px;
  margin: 56px 0 34px;
  background: var(--line);
}

.sidebar-social {
  display: flex;
  gap: 8px;
}

.sidebar-social a {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--purple);
  border-radius: 50%;
  text-decoration: none;
}

.sidebar-social .whatsapp-icon {
  background: #22c766;
}

.sidebar-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* =========================
   Encabezado móvil
   ========================= */

.mobile-header {
  display: none;
}

/* =========================
   Contenido general
   ========================= */

main {
  margin-left: var(--sidebar);
}

.section-panel {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.accent-line {
  width: 98px;
  height: 5px;
  margin: 30px 0 36px;
  background: var(--purple);
}

/* =========================
   Portada
   ========================= */

.hero {
  display: grid;
  align-items: center;
  padding: 76px 8vw;
  background: #f0eff8;
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(480px, 1.05fr) minmax(430px, 0.95fr);
  align-items: center;
  gap: clamp(55px, 6vw, 100px);
}

.hero-visual,
.hero-copy {
  min-width: 0;
}

.hero-visual img {
  width: 100%;
  max-width: 690px;
}

.hero-copy {
  max-width: 650px;
}

.hero-copy h1 {
  margin-bottom: 0;
  font-size: clamp(2.7rem, 4vw, 4.4rem);
  font-weight: 400;
  line-height: 1.18;
  overflow-wrap: break-word;
}

.hero-copy p {
  margin-bottom: 0;
  font-size: clamp(1.15rem, 1.6vw, 1.55rem);
  line-height: 1.45;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(198, 188, 247, 0.34);
}

.bubble-one {
  width: 460px;
  height: 460px;
  top: -210px;
  left: 3%;
}

.bubble-two {
  width: 445px;
  height: 445px;
  top: -245px;
  right: 25%;
}

.bubble-three {
  width: 300px;
  height: 300px;
  top: -50px;
  right: 4%;
}

/* =========================
   Sobre mí y Counseling
   ========================= */

.about,
.counseling {
  display: grid;
  align-items: center;
  padding: 80px 9vw;
}

.about {
  background: #fbfbfd;
}

.counseling {
  background: #efedf8;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(470px, 0.92fr) minmax(520px, 1.08fr);
  align-items: center;
  gap: clamp(70px, 8vw, 130px);
}

.text-column h2 {
  margin-bottom: 0;
  font-size: clamp(3rem, 5vw, 5.3rem);
  font-weight: 400;
  line-height: 1.05;
}

.text-column p {
  margin-bottom: 0.95rem;
  font-size: 1.11rem;
  line-height: 1.45;
}

.image-column {
  overflow: hidden;
  border-radius: 5px;
  box-shadow: var(--shadow);
}

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

.portrait-card {
  aspect-ratio: 1.12;
}

.counseling-grid {
  grid-template-columns: minmax(350px, 0.65fr) minmax(600px, 1.35fr);
  align-items: start;
}

.question-card {
  padding: 18px 16px;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 10px;
}

.question-card h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.25;
}

.counseling-copy .accent-line {
  margin-top: 28px;
}

.counseling-image {
  aspect-ratio: 1.53;
}

/* =========================
   Servicios
   ========================= */

.services {
  padding: 100px 9vw 90px;
  background: linear-gradient(
    165deg,
    #fbfbfd 0 55%,
    #ded8ff 55% 100%
  );
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 32px;
}

.service-card {
  overflow: hidden;
  background: var(--purple);
  border-radius: 5px;
  box-shadow: 0 8px 0 rgba(20, 10, 70, 0.12);
}

.service-card > img {
  width: 100%;
  height: 205px;
  object-fit: cover;
}

.service-body {
  padding: 22px 24px 26px;
  color: var(--white);
}

.service-body h3 {
  margin-bottom: 14px;
  color: var(--white);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.15;
}

.service-body p {
  margin-bottom: 0.8rem;
  color: var(--white);
  font-family: "Poiret One", cursive;
  font-size: 1.32rem;
  line-height: 1.35;
}

.service-body p:last-child {
  margin-bottom: 0;
}

/* =========================
   Contacto
   ========================= */

.contact {
  min-height: auto;
  padding-top: 48px;
  background: #efedf8;
}

.contact-title {
  text-align: center;
}

.contact-title h2 {
  margin-bottom: 0;
  font-size: 3.6rem;
  font-weight: 400;
}

.contact-title .accent-line {
  width: 52px;
  height: 3px;
  margin: 18px auto 42px;
}

.contact-methods {
  width: min(calc(100% - 40px), 850px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 0 auto 55px;
}

.contact-method {
  min-height: 120px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #dedbe9;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(46, 22, 141, 0.08);
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.contact-method:hover {
  transform: translateY(-4px);
  border-color: var(--purple);
  box-shadow: 0 18px 38px rgba(46, 22, 141, 0.14);
}

.contact-method-icon {
  width: 54px;
  height: 54px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: var(--white);
  border-radius: 50%;
}

.contact-method-icon.whatsapp {
  background: #20c662;
}

.contact-method-icon.email {
  background: var(--purple);
}

.contact-method-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.contact-method-text {
  min-width: 0;
  display: grid;
}

.contact-method-text small {
  margin-bottom: 4px;
  color: #6d6878;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-method-text strong {
  color: var(--ink);
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.map-wrap {
  height: 480px;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================
   Pie de página
   ========================= */

.site-footer {
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 42px 10vw;
  color: var(--white);
  background: var(--purple-dark);
}

.site-footer > div {
  display: grid;
}

.site-footer strong {
  font-size: 1.6rem;
  font-weight: 400;
}

.site-footer span {
  font-size: 1rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.site-footer a {
  color: var(--white);
  font-size: 1.02rem;
  text-decoration: none;
  text-transform: uppercase;
}

/* =========================
   WhatsApp flotante
   ========================= */

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 150;
  width: 57px;
  height: 57px;
  display: none;
  place-items: center;
  color: var(--white);
  background: #20c662;
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.floating-whatsapp svg {
  width: 29px;
  height: 29px;
  fill: currentColor;
}

/* =========================
   Escritorios medianos
   ========================= */

@media (max-width: 1200px) {
  :root {
    --sidebar: 245px;
  }

  .hero,
  .about,
  .counseling,
  .services {
    padding-right: 5vw;
    padding-left: 5vw;
  }

  .hero-inner,
  .content-grid,
  .counseling-grid {
    gap: 50px;
  }

  .service-body p {
    font-size: 1.15rem;
  }
}

/* Evita que la portada se corte en notebooks de 1366 px */

@media (min-width: 1181px) and (max-width: 1500px) {
  .hero {
    padding: 60px 38px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
    gap: 38px;
  }

  .hero-visual img {
    width: 100%;
    max-width: 100%;
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
  }

  .hero-copy h1 {
    font-size: clamp(2.7rem, 3.4vw, 3.7rem);
  }

  .hero-copy p {
    font-size: 1.12rem;
  }
}

/* =========================
   Tablet y menú móvil
   ========================= */

@media (max-width: 1180px) {
  body {
    padding-top: 78px;
  }

  .sidebar {
    display: none;
  }

  main {
    margin-left: 0;
  }

  .mobile-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 300;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(10px);
  }

  .mobile-brand {
    width: 138px;
  }

  .menu-button {
    width: 46px;
    height: 46px;
    padding: 7px;
    background: transparent;
    border: 0;
    cursor: pointer;
  }

  .menu-button span:not(.sr-only) {
    width: 26px;
    height: 2px;
    display: block;
    margin: 6px auto;
    background: var(--ink);
  }

  .mobile-nav {
    position: absolute;
    top: 78px;
    right: 0;
    left: 0;
    display: none;
    padding: 18px 22px 24px;
    background: var(--white);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.12);
  }

  .mobile-nav.is-open {
    display: grid;
  }

  .mobile-nav a {
    padding: 12px 2px;
    border-bottom: 1px solid #ececec;
    font-size: 1.18rem;
    text-decoration: none;
  }

  .hero,
  .about,
  .counseling,
  .services {
    padding: 72px 30px;
  }

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

  .hero-copy {
    max-width: 760px;
  }

  .hero-copy {
    order: 1;
  }

  .hero-visual {
    order: 2;
  }

  .content-grid {
    align-items: start;
  }

  .image-column {
    max-width: 760px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card > img {
    height: 260px;
  }

  .map-wrap {
    height: 410px;
  }

  .floating-whatsapp {
    display: grid;
  }
}

/* =========================
   Contacto en pantallas chicas
   ========================= */

@media (max-width: 720px) {
  .contact-methods {
    grid-template-columns: 1fr;
    margin-bottom: 40px;
  }

  .contact-method {
    min-height: 100px;
    padding: 20px;
  }

  .contact-method-icon {
    width: 48px;
    height: 48px;
  }

  .contact-method-icon svg {
    width: 25px;
    height: 25px;
  }

  .contact-method-text strong {
    font-size: 0.95rem;
  }
}

/* =========================
   Celulares
   ========================= */

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .section-panel {
    min-height: auto;
  }

  .hero,
  .about,
  .counseling,
  .services {
    padding: 58px 20px;
  }

  .hero-copy h1 {
    font-size: 2.55rem;
  }

  .hero-copy p {
    font-size: 1.08rem;
  }

  .text-column h2 {
    font-size: 3.2rem;
  }

  .question-card h2 {
    font-size: 2.15rem;
  }

  .accent-line {
    margin: 22px 0 28px;
  }

  .portrait-card,
  .counseling-image {
    aspect-ratio: auto;
  }

  .service-card > img {
    height: 190px;
  }

  .service-body {
    padding: 20px;
  }

  .service-body h3 {
    font-size: 1.75rem;
  }

  .service-body p {
    font-size: 1.08rem;
  }

  .contact-title h2 {
    font-size: 2.8rem;
  }

  .map-wrap {
    height: 350px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 38px 24px;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

/* =========================
   Accesibilidad
   ========================= */

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

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