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

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,300&display=swap');

/* 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: #898989;
  --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;
  opacity: 0;
  transition: opacity 0.45s ease;
}

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: 13px;
  font-weight: 500;
  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: var(--color-bg-white);
  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__social {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  color: #070707;
  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-site.webp');
  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: 300;
  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);
  pointer-events: none;
}

/* 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;
}

/* ============================================================
   SECTION CASOS DE EXITO CARDS
   ============================================================ */
.casos-exito-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.caso-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
  min-height: 420px;
  background: linear-gradient(135deg, #2d1b69 0%, #1a1040 50%, #0d1a3a 100%);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base);
}

.caso-card:hover {
  transform: translateY(-6px);
}

.caso-card__img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  opacity: 0.7;
}

.caso-card__body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.caso-card__label {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-accent-blue);
  margin-bottom: 10px;
}

.caso-card__title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--color-text-white);
  font-weight: normal;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.caso-card__desc {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text-gray);
  line-height: 1.6;
}

/* ============================================================
   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);
}

/* ============================================================
   TABS COMPONENT
   ============================================================ */
.tabs-servicios {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 48px;
}

.tab-btn {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 2px;
  padding: 10px 28px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: var(--color-text-gray);
  background: transparent;
  cursor: pointer;
  transition:
    background var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base);
  text-transform: uppercase;
}

.tab-btn:hover {
  border-color: var(--color-accent-blue);
  color: var(--color-text-white);
}

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

/* ============================================================
   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;
  }

  .casos-exito-grid {
    grid-template-columns: 1fr;
  }

  .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;
  }
}
