/* Estilos generales para el body */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
    color: #333;
}

/* Contenedor principal para centrar el contenido */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* HEADER */
header {
    background-color: #222;
    color: white;
    padding: 20px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    text-align: center;
}

.logo {
    max-width: 150px;
    height: auto;
}

.header-container > div:first-of-type {
    flex-grow: 1;
}

.header-container h1 {
    margin: 0;
}

.language-selector {
    padding: 5px;
    border-radius: 5px;
}

/* NAV */
nav {
    background-color: #333;
    padding: 10px 0;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #ff4b2b;
}

/* HERO */
.hero {
    position: relative;
    /* CAMBIO: La altura ahora es del 75% de la ventana */
    height: 110vh; 
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 8px;
}

.hero-content h2 {
    font-size: 2.5em;
    margin: 0 0 10px 0;
}

.hero-content p {
    font-size: 1.2em;
    margin: 0 0 20px 0;
}

/* BOTONES GENERALES */
.btn {
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.primary-btn {
    background-color: #ff4b2b;
    color: white;
}

.primary-btn:hover {
    background-color: #e54228;
}

/* BOTÓN DE MUTE/UNMUTE */
.mute-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    z-index: 2;
    transition: background-color 0.3s ease;
}

.mute-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* SECCIÓN DE CARACTERÍSTICAS */
.features {
    background: #f5f5f5;
    padding: 40px 20px;
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* SECCIÓN DE IMÁGENES DE LA APP */
.screenshots {
    background-color: #e9ecef;
    padding: 60px 20px;
    text-align: center;
}

.screenshots h2 {
    margin-bottom: 40px;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.screenshot-item {
    width: 100%;
    max-height: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    object-fit: contain;
    background-color: #f0f2f5;
    padding: 10px;
}

/* SECCIÓN CTA */
.cta {
    background: #222;
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.app-buttons-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.app-button {
    display: inline-flex;
    align-items: center;
    padding: 15px 30px;
    border-radius: 10px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 1.1em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.app-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.app-store-button {
    background-color: #000;
}

.app-store-button:hover {
    background-color: #333;
}

.google-play-button {
    background-color: #4CAF50;
}

.google-play-button:hover {
    background-color: #45a049;
}

/* FOOTER */
footer {
    background: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

footer a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ff4b2b;
}

/* Media queries para ajustes en móvil */
@media (max-width: 768px) {
    .header-container {
        justify-content: center;
    }
    .language-selector {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
}

/* Header específico para la página principal del Cervezómetro */
.site-header {
  background-color: #222; /* conserva el fondo oscuro que tenías */
  color: #fff;
  padding: 20px 0;
}

.site-header .header-inner {
  display: flex;
  flex-direction: column;   /* apila verticalmente: título arriba, logo debajo */
  align-items: center;      /* centra horizontalmente ambos elementos */
  justify-content: center;
  gap: 8px;                 /* espacio pequeño entre título y logo */
  text-align: center;
}

/* Título, mantiene tamaño pero asegúrate que no se rompa en móvil */
.site-header #title {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
}

/* Logo centrado y responsive */
.logo-centered {
  display: block;
  margin: 0 auto;
  max-width: 120px;  /* ajusta esto si lo quieres más grande/pequeño */
  width: 35%;
  height: auto;
}

/* Ajustes en móvil para que el logo no ocupe demasiado */
@media (max-width: 600px) {
  .site-header #title {
    font-size: 1.2rem;
  }
  .logo-centered {
    max-width: 90px;
    width: 45%;
  }
}
