/* ============================================================
   TOWN MUSIC — style.css
   Global styles, variables, nav, footer, shared components
   ============================================================ */

/* Montserrat — self-hosted (variable font, latin subset) */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/Montserrat-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/Montserrat-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* COCOGOOSE font-face */
@font-face {
  font-family: 'COCOGOOSE';
  src: url('../assets/fonts/Cocogoose-Pro-Bold.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --color-bg-primary: #070707;
  --color-bg-black: #000000;
  --color-bg-white: #ffffff;
  --color-text-white: #ffffff;
  --color-text-gray: #d3cece;
  --color-accent-blue: #80abfe;
  --color-stroke: #ebebeb;
  --color-card-bg: #1a1a1a;
  --radius-pill: 44px;
  --radius-card: 30px;
  --radius-card-lg: 35px;
  --radius-artista: 108px;
  --radius-carousel: 34px;

  --font-display: 'COCOGOOSE', 'Arial Black', 'Helvetica Neue', sans-serif;
  --font-body: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  --nav-height: 80px;
  --transition-base: 0.3s ease;
  --max-width: 1440px;
  --container-padding: 80px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-primary);
  color: var(--color-text-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input,
textarea,
select {
  font-family: inherit;
}

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background: transparent;
  transition:
    background var(--transition-base),
    backdrop-filter var(--transition-base);
}

.nav.scrolled {
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.nav__logo {
  display: none;
  align-items: center;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.nav__logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 48px;
}

.nav__link {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-white);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--transition-base);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent-blue);
  transition: width var(--transition-base);
}

.nav__link:hover {
  color: var(--color-accent-blue);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link.active {
  color: var(--color-accent-blue);
}

/* Hamburger (mobile) */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition:
    transform var(--transition-base),
    opacity var(--transition-base);
}

.nav__hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #000000;
  padding: 40px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.footer__logo {
  display: flex;
  align-items: center;
}

.footer__logo-img {
  height: 52px;
  width: auto;
  display: block;
}

.footer__copyright {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text-gray);
  text-align: center;
}
.footer__privacy {
  color: var(--color-text-gray);
  text-decoration: none;
  margin-left: 12px;
  border-left: 1px solid #444;
  padding-left: 12px;
}
.footer__privacy:hover {
  color: #ffffff;
}

.footer__social {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  color: #ffffff;
  transition:
    color var(--transition-base),
    transform var(--transition-base);
}

.footer__social-link svg {
  width: 44px;
  height: 44px;
}

.footer__social-link:hover {
  color: var(--color-accent-blue);
  transform: scale(1.1);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--color-text-white);
  border-radius: var(--radius-pill);
  padding: 0 28px;
  height: 48px;
  color: var(--color-text-white);
  background: transparent;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition:
    background var(--transition-base),
    color var(--transition-base),
    transform var(--transition-base);
  white-space: nowrap;
}

.btn-outline:hover {
  background: var(--color-text-white);
  color: var(--color-bg-black);
  transform: translateY(-2px);
}

.btn-outline--blue {
  border-color: var(--color-accent-blue);
  color: var(--color-accent-blue);
}

.btn-outline--blue:hover {
  background: var(--color-accent-blue);
  color: var(--color-bg-black);
}

.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-white);
  color: var(--color-bg-black);
  border: none;
  border-radius: var(--radius-pill);
  padding: 14px 36px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition:
    background var(--transition-base),
    color var(--transition-base),
    transform var(--transition-base);
}

.btn-solid:hover {
  background: var(--color-accent-blue);
  color: var(--color-bg-black);
  transform: translateY(-2px);
}

.btn-solid--blue {
  background: var(--color-accent-blue);
  color: var(--color-bg-black);
}

.btn-solid--blue:hover {
  background: var(--color-text-white);
}

/* ============================================================
   SECTION LABELS
   ============================================================ */
.section-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-text-gray);
  display: block;
  margin-bottom: 12px;
}

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes musicPulse {
  0%,
  100% {
    transform: scale(1);
    filter: brightness(0.8) grayscale(20%);
    border-color: rgba(255, 255, 255, 0.08);
  }
  50% {
    transform: scale(1.04);
    filter: brightness(1.1) grayscale(0%);
    border-color: rgba(255, 255, 255, 0.25);
  }
}

@keyframes tmSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tmFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes tmSlideUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}
.reveal--up {
  transform: translateY(40px);
}
.reveal--left {
  transform: translateX(-56px);
}
.reveal--right {
  transform: translateX(56px);
}
.reveal.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ============================================================
   SECTION: ARTISTAS + CONTACTO (shared combined component)
   ============================================================ */
.section-artistas-contacto {
  background-image: url('../assets/images/bg-morado-ruido.jpeg');
  background-size: cover;
  background-position: center;
  padding-top: 80px;
  overflow: hidden;
}

/* Subtítulo sobre las cápsulas */
.artistas-contacto__subtitle {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-gray);
  text-align: center;
  padding: 0 var(--container-padding);
  margin-bottom: 48px;
  opacity: 0;
  animation: tmSlideUp 1s ease-out 0.1s forwards;
}

/* Fila de cápsulas */
.artistas-columnas__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  width: 100%;
  padding: 0 var(--container-padding);
  max-width: var(--max-width);
  margin: 0 auto;
  opacity: 0;
  animation: tmSlideUp 1s ease-out 0.3s forwards;
}

.artistas-col {
  flex-shrink: 0;
  border-radius: 999px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  filter: grayscale(20%);
  animation: musicPulse var(--duration, 2s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  cursor: pointer;
  display: block;
  text-decoration: none;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.artistas-col:hover {
  filter: grayscale(0%);
  transform: translateY(-6px);
}

/* Tamaños: short | medium | tall */
.artistas-col--short {
  height: 250px;
  width: 140px;
}
.artistas-col--medium {
  height: 380px;
  width: 160px;
}
.artistas-col--tall {
  height: 500px;
  width: 180px;
}

@media (max-width: 1024px) {
  .artistas-col--short {
    height: 200px;
    width: 110px;
  }
  .artistas-col--medium {
    height: 300px;
    width: 130px;
  }
  .artistas-col--tall {
    height: 400px;
    width: 150px;
  }
}

@media (max-width: 768px) {
  .artistas-columnas__inner {
    gap: 8px;
  }
  .artistas-col--short {
    height: 150px;
    width: 70px;
  }
  .artistas-col--medium {
    height: 220px;
    width: 85px;
  }
  .artistas-col--tall {
    height: 300px;
    width: 100px;
  }
}

/* ============================================================
   SECTION: CONTACTO (shared component)
   ============================================================ */
.section-contacto {
  background: transparent;
  padding: 100px 0;
}

.section-contacto__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section-contacto__title {
  font-family: var(--font-display);
  font-size: 80px;
  color: var(--color-text-white);
  font-weight: normal;
  margin-bottom: 56px;
  letter-spacing: 2px;
}

.contacto-form {
  width: 100%;
}

.contacto-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
}

.contacto-form__field {
  display: flex;
  flex-direction: column;
  margin-bottom: 40px;
}

.contacto-form__field input,
.contacto-form__field select,
.contacto-form__field textarea {
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--color-text-white);
  padding: 18px 0;
  color: var(--color-text-white);
  font-family: var(--font-body);
  font-size: 22px;
  outline: none;
  transition: border-color var(--transition-base);
  width: 100%;
}

.contacto-form__field input::placeholder,
.contacto-form__field select option,
.contacto-form__field textarea::placeholder {
  color: var(--color-text-gray);
}

.contacto-form__field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  color: var(--color-text-gray);
}

.contacto-form__field select:valid {
  color: var(--color-text-white);
}

.contacto-form__field input:focus,
.contacto-form__field select:focus,
.contacto-form__field textarea:focus {
  border-bottom-color: var(--color-accent-blue);
}

.contacto-form__field textarea {
  resize: none;
  min-height: 80px;
}

.contacto-form__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

/* ============================================================
   CARD ARTISTA
   ============================================================ */
.card-artista {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1;
}

/* Imagen cuadrada que llena toda la card */
.card-artista__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.card-artista:hover .card-artista__img {
  transform: scale(1.06);
}

/* Overlay oscuro interno — se aclara al hover */
.card-artista__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.25) 55%,
    rgba(0, 0, 0, 0.05) 100%
  );
  transition: opacity 0.4s ease;
}

.card-artista:hover .card-artista__overlay {
  opacity: 0.35;
}

/* Nombre abajo a la izquierda */
.card-artista__body {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
}

.card-artista__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: normal;
  color: var(--color-text-white);
  letter-spacing: 1.5px;
  line-height: 1.2;
}

/* desc oculta — ya no se muestra en el nuevo diseño */
.card-artista__desc {
  display: none;
}

/* ============================================================
   FEEDBACK FORMULARIO
   ============================================================ */
.contacto-feedback {
  padding: 14px 20px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contacto-feedback--ok {
  background: rgba(76, 175, 80, 0.12);
  border: 1px solid rgba(76, 175, 80, 0.4);
  color: #81c784;
}

.contacto-feedback--error {
  background: rgba(244, 67, 54, 0.12);
  border: 1px solid rgba(244, 67, 54, 0.4);
  color: #e57373;
}

/* Errores inline por campo */
.contacto-form__field.has-error input,
.contacto-form__field.has-error textarea {
  border-color: rgba(229, 115, 115, 0.7);
  background: rgba(244, 67, 54, 0.05);
}

.field-error {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  color: #e57373;
  margin-top: 6px;
  padding-left: 2px;
}

/* Honeypot — invisible para humanos, visible para bots */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* ============================================================
   HERO SHARED STYLES
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ============================================================
   SECTION TITLES
   ============================================================ */
.section-title {
  font-family: var(--font-display);
  color: var(--color-text-white);
  font-weight: normal;
  letter-spacing: 2px;
}

.section-title--128 {
  font-size: 128px;
  line-height: 1;
}
.section-title--96 {
  font-size: 96px;
  line-height: 1.1;
}
.section-title--80 {
  font-size: 80px;
  line-height: 1.1;
}
.section-title--60 {
  font-size: 60px;
  line-height: 1.15;
}
.section-title--48 {
  font-size: 48px;
  line-height: 1.2;
}

/* ============================================================
   DIVIDER
   ============================================================ */
.divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--color-accent-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity var(--transition-base),
    transform var(--transition-base);
  border: none;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: all;
}

.scroll-top:hover {
  transform: translateY(-4px);
}

.scroll-top svg {
  width: 20px;
  height: 20px;
  color: black;
}

/* ============================================================
   WHATSAPP BUTTON
   ============================================================ */
.whatsapp-btn {
  position: fixed;
  bottom: 92px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.28);
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base);
}

.whatsapp-btn svg {
  width: 26px;
  height: 26px;
}

.whatsapp-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ============================================================
   TABLET + MOBILE NAV
   ============================================================ */
@media (max-width: 1100px) {
  .nav__inner {
    justify-content: space-between;
    padding: 0 var(--container-padding);
  }

  .nav__logo {
    display: flex;
    opacity: 1;
    pointer-events: auto;
  }

  /* Panel de links */
  .nav__links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.97);
    flex-direction: column;
    gap: 0;
    padding: 24px 0;
    transform: translateY(-100%);
    opacity: 0;
    transition:
      transform var(--transition-base),
      opacity var(--transition-base);
    pointer-events: none;
    z-index: 999;
  }

  .nav__links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav__link {
    padding: 16px 40px;
    width: 100%;
    display: block;
    font-size: 16px;
  }

  .nav__hamburger {
    display: flex;
  }
}

/* ============================================================
   MOBILE ONLY
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --container-padding: 24px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .artistas-columnas__inner {
    gap: 6px;
    height: 320px;
    padding: 0 16px;
  }

  /* Columnas proporcionales: eliminamos anchos fijos para que se adapten */
  .artistas-col--short,
  .artistas-col--medium,
  .artistas-col--tall {
    flex: 1;
    min-width: 0;
    width: auto;
  }

  .artistas-col:nth-child(1) {
    height: 150px;
  }
  .artistas-col:nth-child(2) {
    height: 220px;
  }
  .artistas-col:nth-child(3) {
    height: 320px;
  }
  .artistas-col:nth-child(4) {
    height: 220px;
  }
  .artistas-col:nth-child(5) {
    height: 150px;
  }

  .section-title--128 {
    font-size: 52px;
  }
  .section-title--96 {
    font-size: 42px;
  }
  .section-title--80 {
    font-size: 36px;
  }
  .section-title--60 {
    font-size: 32px;
  }

  .contacto-form__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contacto-form__field input,
  .contacto-form__field select,
  .contacto-form__field textarea {
    font-size: 15px;
    padding: 14px 0;
  }

  .section-contacto__title {
    font-size: 40px;
    margin-bottom: 36px;
  }

  .artistas-contacto__subtitle {
    font-size: 16px;
    letter-spacing: 0.12em;
  }

  .section-artistas-contacto {
    padding-top: 60px;
  }
}

@media (min-width: 769px) and (max-width: 1100px) {
  :root {
    --container-padding: 40px;
  }

  .section-title--128 {
    font-size: 80px;
  }
  .section-title--96 {
    font-size: 64px;
  }

  .artistas-columnas__inner {
    height: 580px;
  }

  .artistas-col:nth-child(1) {
    height: 270px;
  }
  .artistas-col:nth-child(2) {
    height: 390px;
  }
  .artistas-col:nth-child(3) {
    height: 580px;
  }
  .artistas-col:nth-child(4) {
    height: 390px;
  }
  .artistas-col:nth-child(5) {
    height: 270px;
  }

  .contacto-form__field input,
  .contacto-form__field select,
  .contacto-form__field textarea {
    font-size: 17px;
  }
}

/* ============================================================
   QUÉ NECESITAS — Módulo compartido (home, servicios, single-servicio)
   ============================================================ */
.section-que-necesitas {
  background: var(--color-bg-black);
  padding: 100px var(--container-padding);
}

.que-necesitas__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.que-necesitas__header {
  margin-bottom: 56px;
}

.que-necesitas__label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-text-gray);
  margin-bottom: 12px;
  display: block;
}

.que-necesitas__title {
  font-family: var(--font-display);
  font-size: 60px;
  color: var(--color-text-white);
  font-weight: normal;
  letter-spacing: 2px;
}

.que-necesitas__carousel-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.que-necesitas__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1;
  padding: 8px 2px 52px;
}

.que-necesitas__track::-webkit-scrollbar {
  display: none;
}

.que-necesitas__arrow {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--color-text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.que-necesitas__arrow:hover {
  border-color: var(--color-accent-blue);
  color: var(--color-accent-blue);
}

.que-necesitas__arrow svg {
  width: 20px;
  height: 20px;
}

.necesidad-card {
  background: var(--color-card-bg);
  border-radius: var(--radius-card);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base);
  border: 1.5px solid transparent;
  flex-shrink: 0;
  width: 320px;
  scroll-snap-align: start;
}

.necesidad-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(128, 171, 254, 0.3);
}

.necesidad-card__icon {
  width: 44px;
  height: 44px;
  color: var(--color-accent-blue);
  flex-shrink: 0;
}

.necesidad-card__title {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--color-text-white);
  font-weight: normal;
  letter-spacing: 1px;
  line-height: 1.3;
}

.necesidad-card__desc {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-white);
  line-height: 1.7;
  text-align: justify;
}

@media (max-width: 768px) {
  .que-necesitas__title {
    font-size: 36px;
  }
  .que-necesitas__arrow {
    display: none;
  }
  .necesidad-card {
    width: min(300px, 80vw);
  }
}

/* ============================================================
   SERVICIO PREVIEW CARDS — compartido (home + page-servicios)
   ============================================================ */
.servicios-preview__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 420px;
  gap: 24px;
}

.servicio-preview-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  cursor: pointer;
  display: block;
  text-decoration: none;
}

.servicio-preview-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

.servicio-preview-item:hover .servicio-preview-item__img {
  transform: scale(1.05);
}

.servicio-preview-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.15) 55%);
  transition: background 0.4s ease;
}

.servicio-preview-item:hover .servicio-preview-item__overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 65%);
}

.servicio-preview-item__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 28px;
  /* Sin gap fijo — desc y cta se colapsan a 0 en reposo y
     añaden su propio margin-top al aparecer en hover */
}

.servicio-preview-item__title {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--color-text-white);
  letter-spacing: 2px;
  font-weight: normal;
  line-height: 1.2;
  transition: transform 0.35s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  /* Sin min-height: con desc/cta colapsados el título
     siempre queda al fondo del card en la misma posición */
}

.servicio-preview-item:hover .servicio-preview-item__title {
  transform: translateY(-4px);
}

.servicio-preview-item__desc {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: var(--color-text-white);
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 0;       /* colapsado: 0px en el flujo flex */
  opacity: 0;
  margin-top: 0;
  transition: max-height 0.4s ease, opacity 0.35s ease, margin-top 0.35s ease;
}

.servicio-preview-item__cta {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--color-accent-blue);
  border: 1px solid var(--color-accent-blue);
  border-radius: var(--radius-pill);
  padding: 0 22px;     /* padding vertical 0 en reposo */
  max-height: 0;       /* colapsado: 0px en el flujo flex */
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transition: max-height 0.4s ease 0.06s, opacity 0.35s ease 0.06s, padding 0.35s ease 0.06s, margin-top 0.35s ease 0.06s, background 0.25s ease, color 0.25s ease;
}

.servicio-preview-item:hover .servicio-preview-item__desc {
  max-height: 90px;
  opacity: 1;
  margin-top: 14px;
}

.servicio-preview-item:hover .servicio-preview-item__cta {
  max-height: 50px;
  padding: 9px 22px;
  opacity: 1;
  margin-top: 14px;
}

.servicio-preview-item:hover .servicio-preview-item__cta:hover {
  background: var(--color-accent-blue);
  color: var(--color-bg-primary);
}

@media (hover: none) {
  .servicio-preview-item__desc {
    max-height: 90px;
    opacity: 1;
    margin-top: 14px;
  }

  .servicio-preview-item__cta {
    max-height: 50px;
    padding: 9px 22px;
    opacity: 1;
    margin-top: 14px;
  }
}

@media (max-width: 600px) {
  .servicios-preview__grid {
    grid-template-columns: 1fr;
  }
}
