/* ========================================
   NATY PIANO
   ESTILOS PRINCIPALES
======================================== */

:root {
  --purple-dark: #48206d;
  --purple: #7542a5;
  --purple-light: #eee2f8;
  --purple-soft: #f6effb;
  --purple-border: #e2d0f1;
  --pink: #ef8ab4;
  --text: #463b4d;
  --text-soft: #735c87;
  --background: #fffcff;
  --white: #ffffff;

  --font-body: 'Trebuchet MS', 'Segoe UI', Arial, sans-serif;
  --font-hand: 'Segoe Print', 'Bradley Hand', 'Comic Sans MS', cursive;
}

/* ========================================
   RESET
======================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font: inherit;
}

/* ========================================
   HEADER
======================================== */

.site-header {
  position: relative;
  z-index: 20;

  height: 82px;

  background: rgba(255, 255, 255, 0.92);
}

.header-container {
  position: relative;

  width: min(1280px, calc(100% - 80px));
  height: 82px;

  margin: 0 auto;

  display: grid;
  grid-template-columns: 180px 1fr 430px;

  align-items: center;

  gap: 32px;
}

/* ========================================
   LOGO
======================================== */

.brand {
  position: relative;
  z-index: 30;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 150px;
  height: 120px;

  transform: translateY(20px);

  margin-left: 80px;
}

.brand img {
  width: 150px;
  height: auto;
}

/* ========================================
   NAVEGACIÓN
======================================== */

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 12px;
}

.main-nav a {
  padding: 11px 17px;

  border-radius: 999px;

  color: #4d276d;

  font-size: 15px;
  font-weight: 700;

  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.main-nav a:hover {
  background: var(--purple-light);
  color: var(--purple);
}

.main-nav a.active {
  background: var(--purple-light);
  color: #7040a1;
}

/* ========================================
   ACCIONES HEADER
======================================== */

.header-actions {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 12px;
}

.search-button {
  display: grid;
  place-items: center;

  width: 42px;
  height: 42px;

  padding: 0;

  border: 0;
  border-radius: 50%;

  background: transparent;

  color: #54277b;

  cursor: pointer;

  transition: background 0.2s ease;
}

.search-button:hover {
  background: var(--purple-light);
}

.search-button svg {
  width: 23px;
  height: 23px;

  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* ========================================
   BOTONES
======================================== */

.button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-height: 46px;

  padding: 0 22px;

  border-radius: 999px;

  font-size: 14px;
  font-weight: 800;

  white-space: nowrap;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  border: 2px solid var(--purple);

  background: var(--purple);
  color: white;

  box-shadow: 0 8px 20px rgba(117, 66, 165, 0.16);
}

.button-primary:hover {
  border-color: #62368f;
  background: #62368f;
}

.button-outline {
  border: 2px solid var(--purple-border);

  background: white;
  color: #633687;
}

.button-outline:hover {
  background: #faf5ff;
}

.button-large {
  min-height: 52px;

  padding: 0 27px;

  font-size: 15px;
}

/* ========================================
   HERO
======================================== */

.hero {
  position: relative;

  overflow: hidden;

  background: var(--background);
}

/* ========================================
   DECORACIONES HERO
======================================== */

.hero-decoration {
  position: absolute;
  z-index: 0;

  pointer-events: none;

  background: #f0e1fa;
}

.hero-decoration-left {
  top: -150px;
  left: -120px;

  width: 360px;
  height: 330px;

  border-radius: 44% 56% 62% 38% / 48% 42% 58% 52%;

  transform: rotate(-15deg);
}

.hero-decoration-right {
  top: -105px;
  right: -125px;

  width: 330px;
  height: 290px;

  border-radius: 56% 44% 38% 62% / 43% 55% 45% 57%;

  transform: rotate(12deg);
}

/* ========================================
   CONTENEDOR HERO
======================================== */

.hero-container {
  position: relative;
  z-index: 1;

  width: min(1280px, calc(100% - 80px));

  margin: 0 auto;

  display: grid;

  grid-template-columns:
    minmax(0, 0.82fr)
    minmax(0, 1.18fr);

  align-items: center;

  gap: 64px;

  padding-top: 92px;
  padding-bottom: 86px;
}

/* ========================================
   CONTENIDO HERO
======================================== */

.hero-content {
  position: relative;

  min-width: 0;

  width: 100%;
  max-width: 500px;
}

/* ========================================
   EYEBROW
======================================== */

.eyebrow {
  margin: 0;

  color: #9669bf;

  font-size: 13px;
  font-weight: 900;

  letter-spacing: 0.14em;
}

/* ========================================
   TITULO
======================================== */

.hero h1 {
  margin: 18px 0 0;

  color: var(--purple-dark);

  font-family: var(--font-hand);

  font-size: clamp(48px, 4.2vw, 67px);

  font-weight: 700;

  line-height: 1.04;

  letter-spacing: -0.035em;
}

.hero h1 span {
  color: var(--pink);
}

/* ========================================
   DESCRIPCIÓN
======================================== */

.hero-description {
  max-width: 480px;

  margin: 24px 0 0;

  color: var(--text);

  font-size: 18px;

  line-height: 1.75;
}

/* ========================================
   BOTONES HERO
======================================== */

.hero-buttons {
  display: flex;

  align-items: center;
  justify-content: center;

  flex-wrap: wrap;

  gap: 14px;

  margin-top: 30px;
}

/* ========================================
   TEXTO DECORATIVO HERO
======================================== */

.hero-note {
  margin: 30px 0 0 270px;

  color: #a778c3;

  font-family: var(--font-hand);

  font-size: 19px;

  line-height: 1.3;

  transform: rotate(-5deg);
}

.hero-note span {
  color: var(--pink);
}

/* ========================================
   VISUAL HERO
======================================== */

.hero-visual {
  position: relative;

  min-width: 0;

  width: 100%;
}

/* ========================================
   MARCO IMAGEN
======================================== */

.hero-image-frame {
  width: 100%;

  padding: 9px;

  border: 6px solid white;

  border-radius: 30px;

  background: white;

  box-shadow: 0 20px 50px rgba(99, 70, 126, 0.16);
}

.hero-image-frame img {
  width: 100%;
  height: auto;

  border-radius: 21px;
}

/* ========================================
   CONTROLES CARRUSEL
======================================== */

.carousel-controls {
  display: flex;

  align-items: center;
  justify-content: center;

  gap: 22px;

  margin-top: 20px;
}

.carousel-controls > button {
  display: grid;
  place-items: center;

  width: 38px;
  height: 38px;

  padding: 0;

  border: 2px solid var(--purple-border);

  border-radius: 50%;

  background: white;

  color: var(--purple);

  font-size: 25px;

  line-height: 1;

  cursor: pointer;
}

.carousel-dots {
  display: flex;

  align-items: center;

  gap: 9px;
}

.carousel-dots span {
  width: 10px;
  height: 10px;

  border-radius: 50%;

  background: #e4d1f2;
}

.carousel-dots span.active {
  background: #7950a7;
}

/* ========================================
   BENEFICIOS
======================================== */

.benefits {
  position: relative;

  background: var(--purple-soft);

  padding: 38px 0 42px;
}

.benefits-container {
  width: min(1280px, calc(100% - 80px));

  margin: 0 auto;

  display: grid;

  grid-template-columns: repeat(4, minmax(0, 1fr));

  gap: 28px;
}

.benefit {
  display: flex;

  align-items: flex-start;

  gap: 15px;

  min-width: 0;
}

.benefit-icon {
  flex: 0 0 58px;

  display: grid;
  place-items: center;

  width: 58px;
  height: 58px;

  border-radius: 50%;

  background: #eadcf5;

  color: #8052af;

  font-size: 25px;
  font-weight: 700;
}

.benefit h2 {
  margin: 2px 0 0;

  color: #432166;

  font-size: 15px;

  font-weight: 900;

  line-height: 1.3;
}

.benefit p {
  margin: 6px 0 0;

  color: var(--text-soft);

  font-size: 13px;

  line-height: 1.55;
}

/* ========================================
   SECCIONES TEMPORALES
======================================== */

.placeholder-section {
  min-height: 300px;

  display: grid;
  place-items: center;

  padding: 60px 20px;

  background: white;
}

.placeholder-section:nth-of-type(even) {
  background: var(--purple-soft);
}

.placeholder-section h2 {
  margin: 0;

  color: var(--purple-dark);

  font-family: var(--font-hand);

  font-size: 40px;
}

/* ========================================
   TABLET
======================================== */

@media (max-width: 1050px) {
  .header-container {
    width: min(100% - 48px, 1280px);

    grid-template-columns: 140px 1fr auto;

    gap: 18px;
  }

  .brand {
    width: 130px;
    margin-left: 40px;
  }

  .brand img {
    width: 130px;
  }

  .main-nav {
    gap: 4px;
  }

  .main-nav a {
    padding: 10px 12px;

    font-size: 14px;
  }

  .header-actions {
    gap: 7px;
  }

  .header-actions .button {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-container {
    width: min(100% - 48px, 1280px);

    gap: 38px;
  }

  .benefits-container {
    width: min(100% - 48px, 1280px);

    gap: 20px;
  }
}

/* ========================================
   TABLET / MÓVIL
======================================== */

@media (max-width: 820px) {

  /* HEADER */

  .site-header {
    height: auto;
  }

  .header-container {
    width: calc(100% - 32px);
    height: auto;

    display: grid;

    grid-template-columns: 1fr auto;
    grid-template-rows: 82px auto;

    align-items: center;

    gap: 0;

    padding: 0 0 10px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;

    width: 105px;
    height: 82px;

    margin-left: 0;

    transform: none;

    justify-content: flex-start;
  }

  .brand img {
    width: 105px;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;

    display: flex;

    align-items: center;
    justify-content: flex-end;

    gap: 8px;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;

    width: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 4px;

    padding: 8px 0 2px;

    overflow: visible;
  }

  .main-nav a {
    padding: 9px 10px;

    font-size: 14px;

    white-space: nowrap;
  }

  /* HERO */

  .hero-container {
    width: calc(100% - 32px);

    display: grid;

    grid-template-columns: 1fr;

    gap: 42px;

    padding-top: 48px;
    padding-bottom: 60px;
  }

  .hero-content {
    width: 100%;
    max-width: 600px;

    margin: 0 auto;
  }

  .hero h1 {
    font-size: clamp(48px, 9vw, 64px);
  }

  .hero-description {
    max-width: 520px;

    font-size: 17px;

    line-height: 1.65;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-note {
    width: fit-content;

    margin: 28px auto 0;

    text-align: center;
  }

  /* IMAGEN */

  .hero-visual {
    width: 100%;

    max-width: 720px;

    margin: 0 auto;
  }

  /* BENEFICIOS */

  .benefits-container {
    width: calc(100% - 32px);

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 24px;
  }
}

/* ========================================
   MÓVIL
======================================== */

@media (max-width: 560px) {

  /* HEADER */

  .header-container {
    width: calc(100% - 24px);

    height: auto;

    display: grid;

    grid-template-columns: 1fr auto;
    grid-template-rows: 76px auto;

    align-items: center;

    gap: 0;

    padding-top: 5px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;

    width: 82px;
    height: 76px;

    margin: 0;

    transform: none;

    display: flex;

    align-items: center;
    justify-content: flex-start;
  }

  .brand img {
    width: 82px;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;

    min-width: 0;

    display: flex;

    align-items: center;
    justify-content: flex-end;

    gap: 7px;
  }

  .search-button {
    flex: 0 0 38px;

    width: 38px;
    height: 38px;
  }

  .header-actions .button-outline {
    display: none;
  }

  .header-actions .button-primary {
    flex: 0 0 auto;

    width: auto;
    max-width: none;

    min-height: 40px;

    padding: 0 14px;

    font-size: 12px;

    white-space: nowrap;
  }

  /* ========================================
     NAVEGACIÓN MÓVIL
  ======================================== */

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;

    width: 100%;

    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    align-items: center;

    gap: 0;

    padding: 6px 0 11px;
  }

  .main-nav a {
    width: max-content;
    max-width: 100%;

    justify-self: center;

    padding: 8px 7px;

    font-size: 12px;

    white-space: nowrap;
  }

  /* ========================================
     DECORACIONES
  ======================================== */

  .hero-decoration-left {
    top: -80px;
    left: -170px;

    width: 300px;
    height: 280px;
  }

  .hero-decoration-right {
    top: -50px;
    right: -180px;

    width: 300px;
    height: 260px;
  }

  /* ========================================
     HERO
  ======================================== */

  .hero-container {
    width: calc(100% - 28px);

    gap: 38px;

    padding-top: 42px;
    padding-bottom: 48px;
  }

  .hero-content {
    max-width: none;
  }

  .eyebrow {
    font-size: 11px;

    letter-spacing: 0.13em;
  }

  .hero h1 {
    margin-top: 16px;

    font-size: clamp(43px, 12vw, 56px);

    line-height: 1.05;
  }

  .hero-description {
    margin-top: 22px;

    font-size: 16px;

    line-height: 1.65;
  }

  /* ========================================
     BOTONES HERO
  ======================================== */

  .hero-buttons {
    width: 100%;

    flex-direction: column;

    gap: 12px;

    margin-top: 26px;
  }

  .hero-buttons .button {
    width: 100%;
  }

  /* ========================================
     TEXTO DECORATIVO
  ======================================== */

  .hero-note {
    max-width: 280px;

    margin: 28px auto 0;

    font-size: 17px;

    line-height: 1.3;

    text-align: center;
  }

  /* ========================================
     IMAGEN
  ======================================== */

  .hero-visual {
    width: 100%;

    margin: 0 auto;
  }

  .hero-image-frame {
    padding: 5px;

    border-width: 4px;

    border-radius: 20px;
  }

  .hero-image-frame img {
    width: 100%;
    height: auto;

    border-radius: 14px;
  }

  .carousel-controls {
    gap: 15px;

    margin-top: 15px;
  }

  /* ========================================
     BENEFICIOS
  ======================================== */

  .benefits {
    padding: 30px 0;
  }

  .benefits-container {
    width: calc(100% - 28px);

    grid-template-columns: 1fr;

    gap: 20px;
  }

  .benefit {
    gap: 13px;
  }

  .benefit-icon {
    flex-basis: 52px;

    width: 52px;
    height: 52px;
  }

  .benefit h2 {
    font-size: 14px;
  }

  .benefit p {
    font-size: 13px;
  }

  /* ========================================
     SECCIONES
  ======================================== */

  .placeholder-section {
    min-height: 220px;
  }

  .placeholder-section h2 {
    font-size: 34px;
  }
}