*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html,
body {
  height: 100%;
}
body {
  /* REGLA ÚNICA BODY: Tipografía y Fondo de Melotron */
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-family: 'Montserrat', sans-serif; /* Fuente de Melotron */
  
  background: #f0f2f5; /* Fondo consistente */
  color: #0D131A; /* Color de texto principal de Melotron */
  position: relative;
  display: block;
  padding-top: 100px;
  justify-items: center;
  grid-template-rows: 1.5fr 4fr;
}
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}
input,
button,
textarea,
select {
  font: inherit;
}
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

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

.main-header {
    width: 100%;
    position: fixed; /* Lo fija en la parte superior */
    top: 0;
    left: 0;
    
    /* Usamos Flexbox para alinear Logo y Título */
    display: flex;
    align-items: center; /* Alineación vertical: centra el título junto al logo */
    
    background-color: #ffffff; /* Mismo fondo que el body */
    padding: 15px 40px; 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Sombra suave */
    z-index: 1000; 
}

/* Contenedor del Título */
.header-title-container {
    flex-grow: 1; /* Ocupa el espacio restante */
    text-align: center; /* Centra el texto H1 y Tagline */
}

.main-header h1 {
   font-size: 1.8em; 
    font-weight: 700;
    margin: 0; 
    white-space: normal; /* Asegura que el texto se pueda envolver */
}

/* Ajustamos el Tagline para que se vea bien en el header */
.main-header #tagline {
    font-size: 0.9em;
    color: #606060;
    margin-top: 5px;
}

.logo-img {
    width: auto;
    height: 75px; 
    min-width: 75px; 
    margin-right: 40px; 
    /* SOLUCIÓN: Evita que el logo se encoja cuando el espacio es limitado */
    flex-shrink: 0; 
}

.logo-spacer {
    /* 75px (logo) + 40px (margin-right) = 115px */
    width: 115px; 
    flex-shrink: 0;
}

#intro {
  max-width: 800px; 
  width: 90vw; 
  margin: 0 auto 3rem auto; 
  align-content: center;
  text-align: center;
  color: #0D131A;
  /* REDUCCIÓN: Cambia de 1.2em a, por ejemplo, 1.0em */
  font-size: 1.0em; 
  padding-top: 20px; 
}

#intro h1 {
  font-size: 1.4em;
  font-weight: 700;
}

#intro p {
  margin-top: 20px;
  font-size: 0.9em;
  color: #0D131A;
}
#tagline {
  font-size: 0.78em;
  margin-bottom: 0px;
  color: #606060;
}

#intro a {
  transition: all 0.3s;
  font-weight: 600;
  font-size: 1.2rem;
  color: rgb(192, 56, 36); /* Color principal de Melotron para enlaces */
}

#intro a:hover {
  opacity: 0.8;
}

.players {
  /* CAMBIO 1: Centra el contenedor horizontalmente */
  margin: 0 auto; 
  /* CAMBIO 2: Usar display: grid o display: flex. 
     'grid' es mejor si quieres que siga la lógica de columnas. */
  display: grid; 
  /* Mantenemos el centrado interno de ítems si es necesario */
  justify-content: center; 
  align-items: center;
  /* Las 3 columnas */
  grid-template-columns: 1fr 1fr 1fr; 
  /* Espacio opcional entre reproductores */
  gap: 20px; 
}
.player__wrapper {
  border-radius: 50px;
  background: #e6e6e6;
  box-shadow: 20px 20px 37px #cdcdcd, -20px -20px 37px #ffffff;
  /* AJUSTES DE TAMAÑO */
  padding: 2vh 3vw 2.5vh 3vw; 
  max-width: 290px; 
  align-self: start;
  margin: 15px 1vw; 
}

.player__wrapper h3 {
  font-size: 1em; 
  font-weight: 600;
  margin-top: 5px;
  text-align: center;
  margin-bottom: 10px;
}

.ab__controls {
  display: grid;
  align-content: center;
  align-items: baseline;
  grid-template-columns: 1fr 1fr;
  justify-content: center;
  justify-items: center;
  width: 100%;
}

/* ----------------------------------------------------- */
/* BOTONES (APARIENCIA ORIGINAL NEUMORPHISM GRIS) */
/* ----------------------------------------------------- */
button {
  font-size: 0.9rem;  
  text-transform: uppercase;
  border: none;
  color: #727586;
  width: 4rem;  
  padding: 0.5rem;  
  border-radius: 12px;
  background: #e6e6e6;
  box-shadow: 7px 7px 15px #cdcdcd, -7px -7px 15px #ffffff;
  cursor: pointer;
  transition: all ease-in-out 0.3s;
}

button:disabled {
  color: #c9c9c9;
  box-shadow: inset 7px 7px 15px #cdcdcd, inset -7px -7px 15px #ffffff;
  transition: all ease-in-out 0.3s;
}
button:disabled:hover {
  color: #c9c9c9;
  box-shadow: inset 5px 5px 15px #cdcdcd, inset -5px -5px 15px #ffffff;
}

button:hover {
  box-shadow: 4px 4px 15px #cdcdcd, -4px -4px 15px #ffffff;
}

.a__button {
  width: 6rem;
  border-radius: 12px 0 0 12px;
  justify-self: self-end;
}

.b__button {
  width: 6rem;
  border-radius: 0 12px 12px 0;
  justify-self: self-start;
}

.play__button {
  justify-self: self-end;
}

.stop__button {
  width: 4rem;
  color: #966f6f;
  justify-self: self-start;
}

.stop__button:disabled {
  color: #966f6fd3;
}

.play__stop__controls {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-content: center;
  grid-gap: 1rem;
}

.progress__container {
  display: inline-flex;
  background: #a8a8a8;
  height: 0.75rem;
  width: 100%;
  margin-bottom: 1.5rem;
  border-radius: 10px;
  border-radius: 12px;
  background: #e6e6e6;
  box-shadow: inset 7px 7px 15px #cdcdcd, inset -7px -7px 15px #ffffff;
  cursor: pointer;
  align-self: center;
  overflow: hidden;
}

/* BARRA DE PROGRESO (¡ESTILO MELOTRON!) */
.progress__bar {
  background: linear-gradient(360deg, rgb(192, 56, 36), #ff7755); /* Color de Melotron para el progreso */
  border-radius: 12px;
  transition: all ease-in-out 0.03s;
}

.progress__fill {
  width: 0%;
}

/* ----------------------------------------------------- */
/* CONTENEDOR PRINCIPAL DE CARACTERÍSTICAS (3 COLUMNAS) */
/* ----------------------------------------------------- */
.service-features {
    display: grid;
    /* Crea 3 columnas de igual ancho y añade espacio entre ellas */
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
    max-width: 1000px; /* Limita el ancho en escritorio */
    margin: 4rem auto 4rem auto; /* Margen superior, centrado, margen inferior */
    padding: 0 20px;
}

/* ----------------------------------------------------- */
/* ESTILO DE CADA ITEM INDIVIDUAL */
/* ----------------------------------------------------- */
.feature-item {
    background-color: #ffffff; /* Fondo blanco (o el que prefieras) */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s;
}

/* Opcional: Un pequeño efecto al pasar el ratón */
.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.feature-item h3 {
    font-size: 1.25em;
    color: #0D131A;
    margin-top: 10px;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 0.9em;
    color: #606060;
    line-height: 1.5;
}

/* ----------------------------------------------------- */
/* ESTILO DE LOS ICONOS */
/* ----------------------------------------------------- */
.feature-item i {
    font-size: 2.5em; /* Tamaño grande para que destaquen */
    /* Color de la marca Melotron (el mismo que has usado para el enlace) */
    color: rgb(192, 56, 36); 
    margin-bottom: 5px;
}

/* ----------------------------------------------------- */
/* ESTILO DEL BOTÓN (MÁXIMA ESPECIFICIDAD) */
/* ----------------------------------------------------- */

/* Contenedor para centrar el botón y añadir espacio */
.download-container {
    text-align: center;
    /* Más margen inferior para el espacio final */
    margin: 40px auto 50px auto; 
}

/* 🚨 ¡CLAVE! Hacemos el selector más específico que #intro a */
.download-container .download-button {
    /* Estilo visual del botón */
    display: inline-block;
    padding: 12px 30px;
    
    /* Colores y bordes */
    background-color: rgb(192, 56, 36); /* Fondo del botón (Rojo) */
    
    /* Forzamos el texto a BLANCO (ahora tiene mayor prioridad) */
    color: #ffffff; 
    
    border-radius: 6px;
    text-decoration: none; 
    
    /* Tipografía */
    font-weight: 700;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.download-container .download-button:hover {
    background-color: #a0301f; 
}

/* Forzamos el icono a BLANCO de forma explícita */
.download-container .download-button i {
    color: #ffffff;
    margin-right: 8px;
}

@media screen (min-width: 768px) {
  body {
    grid-template-rows: 1fr 1fr;
  }

  #intro {
    margin-bottom: 0;
  }

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

@media screen and (max-width: 768px) {
  .service-features {
        /* En pantallas estrechas, pasa de 3 columnas a 1 columna */
        grid-template-columns: 1fr; 
        gap: 20px;
        margin: 3rem auto;
    }
  
  .players {
    grid-template-columns: 1fr;  
  }

  .player__wrapper {
      /* SOLUCIÓN: Usamos un ancho relativo al viewport para que sea grande */
      width: 90vw;
      /* Aseguramos que el límite de ancho fijo se anule en móvil */
      max-width: 70vw; 
      /* Añadimos margin auto para centrar el reproductor, anulando el 1vw */
      margin: 15px auto; 
  }
  
.main-header {
        flex-direction: column;
        align-items: center; /* Centra todo horizontalmente */
        padding: 15px 20px;
        height: auto; /* Permite que crezca verticalmente */
    }

.logo-img {
        height: 50px; /* Logo más pequeño */
        min-width: 50px;
        margin-right: 0; /* Elimina el margen lateral */
        margin-bottom: 10px; /* Añade espacio debajo */
    }
	
	.header-title-container {
        text-align: center; /* Centrado total para móvil */
        width: 100%; /* Ocupa todo el ancho */
    }
	
	body {
        padding-top: 170px; /* Ajusta este valor si el contenido queda debajo del header móvil */
    }
}