/* Suavizado del texto */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Variables globales para colores, tipografías, tamaños y espaciado */
:root {
  /* Colores */
  --bg-color: #000;
  --text-color: #ddd;
  --accent-color: #d4000e;
  --accent-hover: #FF0000;
  --social-bg: #222;


  /* Tipografías (se asume que Hubo Sans se carga localmente o vía @font-face) */
  --font-family-body: 'Hubo Sans', sans-serif;      /* Versión light para el cuerpo */
  --font-family-heading: 'Hubo Sans', sans-serif;     /* Versión heavy para títulos */
  --font-weight-body: 400;
  --font-weight-heading: 900;

  /* Tamaños tipográficos */
  --font-size-base: 0.9em;       /* Tamaño principal reducido */

  /* Tamaños individuales para encabezados */
  --h1-size: 3em;
  --h2-size: 5em;
  --h3-size: 1.5em;
  --h4-size: 1em;
  --h5-size: .8em;
  --h6-size: .6em;

  /* Espaciado */
  --letter-spacing-base: 0.1em;  
  --line-height-base: 1.6;
  --letter-spacing-heading: -0.08em;
}

/* Reset de márgenes y padding */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Fuente y fondo general */
html, body {
  height: 100%;
  font-family: var(--font-family-body);
  font-weight: var(--font-weight-body);
  background-color: var(--bg-color);
  color: var(--text-color);
  font-size: var(--font-size-base);
  letter-spacing: var(--letter-spacing-base);
  line-height: var(--line-height-base);
}

/* Encabezados: propiedades comunes y tamaños individuales */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-heading);
  letter-spacing: var(--letter-spacing-heading);
}

h2, h3, h4, h5, h6{
  text-transform: uppercase;
}

h1 { font-size: var(--h1-size); }
h2 { font-size: var(--h2-size); }
h3 { font-size: var(--h3-size); }
h4 { font-size: var(--h4-size); }
h5 { font-size: var(--h5-size); }
h6 { font-size: var(--h6-size); }


.white_title{
  line-height: .8em;
  font-size: 3.3em;
  color: #FFF;
  text-shadow: rgba(0, 0, 0, 1) 0px 0px 100px;
}

/* Estilo para todos los enlaces (links) */
a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover,
a:focus {
  color: var(--accent-hover);
}

/* numerote */
.numerote{
  color: var(--accent-color);
}

/* Contenedor de la grid: 4 columnas x 3 filas en escritorio */
.grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  width: 100vw;
  height: 100vh;
  gap: 0;
}

/* Cada celda sin padding para que elementos (como botones) ocupen el 100% */
.grid-item {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease;
  position: relative;
  background-color: var(--bg-color);
  border: 0px;
}

/* Contenedor interno para celdas con contenido textual, con padding */
.content {
  padding: 15%;
}

.content p {
  text-align: center;
}

/* Efecto de crecimiento al pasar el cursor (20% de aumento) */
.grow {
  transform: scale(1.20);
  z-index: 1;
  box-shadow: var(--accent-hover) 0px 0px 500px;
  border-radius: .5em;
}


/* En la primera celda (#item1) se coloca la imagen de fondo con opacidad del 20% */
#item1 {
  position: relative;
  overflow: hidden;
}

#item1::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('imgs/header.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 1;
  z-index: 0;
}

/* Asegurarse de que el contenido de la celda se muestre por encima */
#item1 .content {
  position: relative;
  z-index: 1;
}

/* Patrón de fondo animado para celdas vacías */
.grid-item.empty {
  background-color: var(--bg-color);
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 5px,
    rgba(255, 255, 255, 0.1) 5px,
    rgba(255, 255, 255, 0.1) 10px
  );
}


/* Clase para que el botón ocupe el 100% de la celda */
.botton_celda {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  border: none;
}

.spotify {
  background: var(--accent-color);
}


.sociales {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 3em; /* Ajusta el espacio entre celdas si lo deseas */
  width: 100%;
  height: 100%;
}

.sm_icon {
  display: flex;
  justify-content: center;
  align-items: center;
}

.sm_icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.background-link {
  display: flex; /* Usamos flex para centrar contenido */
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-decoration: none;
}

/* Versión móvil: cada celda ocupa 100% de ancho y 50% de alto; omite borde, escala y randomización */
@media (max-width: 768px) {
  .grid-container {
    display: block;
  }
  .grid-item {
    width: 100%;
    height: 50vh;
    border: none;
    /* Eliminamos cualquier animación que pudiese heredarse */
    animation: none !important;
  }
  .grid-item.empty {
    display: none;
    animation: none !important;
  }
  /* Omitir cualquier transformación de escala */
  .grow {
    transform: none !important;
    animation: none !important;
  }
  /* Eliminar la animación del botón "Ver Video Reel" y de contacto */
  .video-link {
    animation: none !important;
  }
}