/* Fuente Inter desde Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

/* Variables de color */
:root {
  --primary: #ff6c3c;
  --secondary: #ffd3bd;
  --black: #121212;
}

/* Reset muy suave */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Helvetica, Arial, sans-serif;
  color: var(--black);
  background-color: #ffffff;
}

/* ESTILOS GLOBALES */

/* Cabecera de las secciones */
section {
  scroll-margin-block: 50px;
}

.section-header {
  max-width: 960px;
  margin: 0 auto 2rem;
  text-align: center;
}

/* TEXTO*/
.section-title {
  margin: 0 0 0.5rem;
  font-size: 2rem;
}

.section-subtitle {
  margin: 0;
  color: rgba(18, 18, 18, 0.7);
}

.section-title .subtitle {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(18, 18, 18, 0.65);
}

/* Tipografía dentro de la card */
.card-title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  color: var(--primary);
}

.card-info {
  margin: 0 0 1.25rem;
  color: rgba(18, 18, 18, 0.75);
}

.card-description {
  margin: 0 0 1.25rem;
  color: rgba(18, 18, 18, 0.75);
}

/* BOTONES */
.button-primary {
  display: inline-block;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  background-color: var(--primary);
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    transform 0.12s ease;
}

/* Hover/active/focus del botón */
.button-primary:hover {
  transform: translateY(-1px);
  background-color: #e85d31;
}

.button-primary:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 2px;
}

.button-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(255, 108, 60, 0.4);
}

/* HEADER */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  height: 60px;
  padding: 0 1.5rem;
  background-color: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.logo {
  display: block;
  width: auto;
  height: 40px;
}

/* Burger menu visible en mobile */
.menu-toggle {
  z-index: 1001;
  display: flex;
  flex-direction: column;
  justify-content: center;
  justify-self: end;
  gap: 6px;
  width: 30px;
  height: 25px;
  margin-left: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.hamburger {
  width: 100%;
  height: 3px;
  background-color: var(--primary);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.menu-toggle.active .hamburger:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active .hamburger:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .hamburger:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Nav colapsado en mobile */
.site-nav {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  max-height: 0;
  background-color: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.site-nav.active {
  max-height: 400px;
}

.site-nav ul {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0.5rem 1rem 0.5rem 1rem;
  list-style-type: none;
}

.site-nav li {
  width: 100%;
}

.site-nav a {
  display: inline-block;
  width: auto;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  text-align: left;
  text-decoration: none;
  color: var(--black);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.site-nav a:hover {
  background-color: var(--secondary);
}

.site-nav .button-primary {
  margin: 0 0 1rem 1.2rem;
  text-align: center;
  color: #ffffff;
}

/* Media queries del Header para Desktop */
@media (min-width: 768px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .logo {
    height: 50px;
  }

  /* Ocultar burguer menu */
  .menu-toggle {
    display: none;
  }

  /* Nav visible */
  .site-nav {
    position: static;
    display: flex;
    justify-content: center;
    max-height: none;
    box-shadow: none;
  }

  .site-nav ul {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 0;
    margin: 0;
  }

  .site-nav li {
    width: auto;
  }

  .site-nav a {
    display: inline-block;
    padding: 0.75rem 1rem;
    text-align: center;
  }

  .header-cta {
    display: block;
  }

  .site-nav .button-primary {
    margin: 0;
    margin-left: auto;
  }

  /* Quitar animación del botón en header */
  .site-header .button-primary:hover,
  .site-header .button-primary:active {
    transform: none;
  }
}

/* HERO */
#hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-image: url('https://a478.masterux.net/img/1061513-taylor-swift-en-concert-a-paris-la-defense-arena-on-y-etait-on-vous-raconte.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
}

/* Fondo semi-transparente encima de la imagen */
#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background-color: rgba(1, 1, 1, 0.7);

}

/* Contenido del Hero */
.hero-content {
  position: relative;
  z-index: 2;
  width: 80vw;
  margin-block-end: 18rem;

}

.hero-badge {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: clamp(0.75rem, 2vw, 0.9rem);
  font-weight: 600;
  color: var(--primary);
  background-color: var(--secondary);
  border-radius: 999px;
}

.hero-title {
  margin: 0 0 0.5rem 0;
  font-size: clamp(1.75rem, 5vw, 3rem);
  line-height: 1.2;
  color: #ffffff;
}

.hero-subtitle {
  margin: 0 0 2rem 0;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.hero-descarga {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.hero-img {
  position: absolute;
  bottom: 0;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  width: 240px;
  height: auto;
  max-width: 90vw;
  pointer-events: none;
}

/* Media queries del Hero para pantallas muy pequeñas */
@media (max-width: 400px) {
  .hero-content {
    margin-block-end: 15rem;
  }

  .hide-small {
    display: none;
  }

  .hero-img {
    width: 200px;
  }
}

/* Media queries del Hero para Tablet */
@media (min-width: 900px) {
  .hero-content {
    justify-items: center;
    margin-bottom: 11rem;
  }

  .hero-title {
    max-width: 50%;
  }

  .hero-subtitle {
    max-width: 60%;
  }

  .hero-descarga .download-badge {
    height: 50px;
    width: auto;
    transition: transform 0.2s ease;
  }

  .hero-descarga .download-badge:hover {
    transform: scale(1.05);
  }

  .hero-img {
    width: 200px;
  }
}

/* Media queries del Hero para Desktop */
@media (min-width: 1300px) {
  .hero-img {
    width: 225px;
  }
}

/* SECCIÓN FUNCIONES */
#funciones {
  padding: 3rem 1.5rem 4rem;
}

/* Grid de cards */
.function-grid {
  display: grid;
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
  padding-block-end: 2rem;
  padding-inline-start: 0;
  list-style-type: none;
}

.function-image-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 900px;
  margin: 0 auto;
  background-image: url('https://a478.masterux.net/img/ruralonlive-app.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Card base */
.function-card {
  padding: 1.75rem 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(18, 18, 18, 0.06);
  background-color: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

/* Focus visible de card */
.function-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Imágenes */
.icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

/* Media queries de funciones */
/* En pantallas medianas, 2 columnas */
@media (min-width: 500px) {
  .function-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .function-image-card {
    display: flex;
    grid-row: 1;
    grid-column: 1 / 3;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    margin: 0 auto;
  }
}

/* En pantallas grandes, 3 columnas */
@media (min-width: 900px) {
  .function-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .function-image-card {
    grid-column: 2;
    grid-row: 1 / 3;
  }
}

/*SECCIÓN CONCIERTOS*/
#proximos-conciertos {
  padding: 3rem 1.5rem 4rem;
}

/* Chips de género musical */
.chips-container {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.chip {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(18, 18, 18, 0.15);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--black);
  background-color: #ffffff;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    transform 0.12s ease;
}

.chip:hover {
  color: var(--black);
  background-color: var(--secondary);
}

.chip-active {
  color: #ffffff;
  background-color: var(--primary);
}

.chip-add {
  font-weight: 700;
}

/* Grid de cards */
.cards-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
  padding-inline-start: 0;
  list-style-type: none;
}

/* Card de concierto */
.concert-card {
  padding: 1rem 1rem 0.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(18, 18, 18, 0.06);
  background-color: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.card-image {
  display: block;
  width: 100%;
  height: 180px;
  border-radius: 1rem;
  object-fit: cover;
}

.card-data {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding: 0.75rem 0;
  font-size: 0.9rem;
  color: rgba(18, 18, 18, 0.75);
}

/* Media queries de conciertos */
/* En pantallas medianas, 2 columnas */
@media (min-width: 500px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* En pantallas grandes, 3 columnas */
@media (min-width: 900px) {
  .cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* SECCIÓN OPINIONES */
#opiniones {
  padding: 3rem 1.5rem 4rem;
}

/* Card destacada */
.valoraciones-contenedor {
  max-width: 960px;
  margin: 0 auto 2rem;
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(18, 18, 18, 0.06);
  border-radius: 1rem;
  text-align: center;
  background-color: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.valoraciones-numero {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: var(--black);
}

.valoraciones-estrellas {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  color: var(--primary);
}

/* Grid de cards */
.opiniones-lista {
  display: grid;
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

/* Card base */
.opiniones-item {
  display: grid;
  gap: 1rem;
  justify-items: center;
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(18, 18, 18, 0.06);
  border-radius: 1rem;
  text-align: center;
  background-color: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

/* Imágenes */
.usuario {
  width: 40%;
  min-width: 56px;
  aspect-ratio: 1/1;
  border: 2px solid rgba(255, 108, 60, 0.25);
  border-radius: 999px;
  object-fit: cover;
}

/* Media queries de opiniones */
/* En pantallas medianas, 2 columnas */
@media (min-width: 500px) {
  .opiniones-item {
    grid-template-columns: 56px 1fr;
    align-items: start;
    text-align: start;
  }
}

/* En pantallas grandes, 3 columnas */
@media (min-width: 900px) {
  .opiniones-lista {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* SECCIÓN SUSCRIPCIÓN */
#suscripcion {
  padding: 3rem 1.5rem 8rem;
}

/* Textos Precio */
.card-price {
  margin: 0 0 1.5rem;
  font-size: 2rem;
  font-weight: 700;
  color: var(--black);
}

.card-price .currency {
  margin-right: 0.25rem;
  font-size: 1rem;
  vertical-align: super;
}

.card-price .period {
  margin-left: 0.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(18, 18, 18, 0.7);
}

/* Botón */
.subscription-card .button-primary {
  width: 100%;
}

/* Grid de cards */
.subscription-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
  padding-inline-start: 0;
  list-style-type: none;
}

/* Card base */
.subscription-card {
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(18, 18, 18, 0.06);
  border-radius: 1rem;
  background-color: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

/* Hover de card */
.subscription-card:has(.button-primary:hover) {
  transform: translateY(-4px);
  border-color: rgba(18, 18, 18, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

/* Card destacada */
.card-featured {
  background-color: var(--secondary);
  border-color: var(--primary);
}

/* Media queries de suscripción */
/* En pantallas grandes, 3 columnas */
@media (min-width: 768px) {
  .subscription-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* FOOTER */
#footer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem 2rem 0rem 2rem;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.1);
}

#footer .logo {
  width: auto;
  height: 80px;
}

.footer-tagline {
  margin: 0.5rem 0 0 0;
  font-size: 1rem;
  font-style: italic;
  color: rgba(18, 18, 18, 0.7);
}

.redes-container {
  display: flex;
  gap: 2rem;
  padding: 1.5rem 1rem 0.5rem 1rem;
}

.redes {
  width: 40px;
  height: auto;
  padding: 10px;
  border-radius: 50%;
  background-color: var(--primary);
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.redes:hover {
  transform: translateY(-1px);
  background-color: #e85d31;
}

.redes:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(255, 108, 60, 0.4);
}

.redes:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 2px;
}

.footer-title {
  margin: 0;
  font-size: 1.5rem;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0.5rem 0;
  padding: 0;
  font-size: 0.95rem;
  color: rgba(18, 18, 18, 0.75);
  list-style-type: none;
}

.footer-info li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.descarga-text {
  margin: 0.5rem 0 1.75rem;
  font-size: 0.95rem;
  color: rgba(18, 18, 18, 0.75);
}

.footer-descarga {
  display: flex;
  gap: 1.5rem;
  padding-block-end: 2rem;
}

.download-badge {
  height: 40px;
  width: auto;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.download-badge:hover {
  transform: scale(1.05);
}

.footer-bottom {
  align-items: center;
  border-top: 1px solid rgba(18, 18, 18, 0.1);
}

.rights {
  text-align: center;
  font-size: 0.9rem;
  color: rgba(18, 18, 18, 0.7);
}

.surname {
  display: none;
}

.footer-legal {
  display: flex;
  gap: 2rem;
  padding: 0;
  font-size: 0.9rem;
  list-style-type: none;
}

.footer-legal li a,
.separator {
  color: rgba(18, 18, 18, 0.7);
}

/* Media queries del footer para Desktop */
@media (min-width: 768px) {
  #footer {
    grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  }

  .footer-bottom {
    display: flex;
    grid-column: 1 / -1;
    justify-content: space-between;
  }

  .surname {
    display: inline;
  }
}