@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap');

:root {
    --bg-dark: #000000;
    --card-dark: #1e1e1e;
    --text-main: #e8eaed;
    --text-dim: #9aa0a6;
    --google-blue: #a8c7fa;
    --border-color: #3c4043;
}

body {
    background-color: var(--bg-dark);
    margin: 0;
    display: flex;
    justify-content: center;
    font-size: 0; /* Elimina caracteres extraños fuera de etiquetas */
}

.content {
    width: 100%;
    max-width: 480px;
    background-color: var(--bg-dark);
    font-size: 14px; /* Restablece fuente */
    color: var(--text-main);
    font-family: 'Roboto', sans-serif;
    padding-bottom: 100px;
}

/* Header & Nav */
.top-nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    font-size: 22px;
}

.app-main-info {
    display: flex;
    padding: 10px 20px;
    gap: 20px;
}

.logo-container {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    overflow: hidden;
}

.logo-container img { width: 100%; height: 100%; object-fit: cover; }

.title-container h1 { margin: 0; font-size: 22px; }
.dev-name { color: var(--google-blue); font-weight: 500; margin: 5px 0; font-size: 14px; }

/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    text-align: center;
}

.border-sides { border-left: 1px solid #333; border-right: 1px solid #333; padding: 0 10px; }
.stat-val { display: block; font-weight: bold; font-size: 14px; }
.stat-label { font-size: 11px; color: var(--text-dim); }
.pegi-img { width: 20px; height: 20px; }

/* Buttons */
.action-buttons { padding: 0 20px; }
.install-wrapper { display: flex; gap: 2px; }
.btn-install {
    flex-grow: 1;
    background-color: var(--google-blue);
    color: #003355;
    text-align: center;
    padding: 12px;
    border-radius: 25px 4px 4px 25px;
    text-decoration: none;
    font-weight: bold;
}
.btn-dropdown {
    background-color: var(--google-blue);
    border: none;
    padding: 0 15px;
    border-radius: 4px 25px 25px 4px;
}
.install-sub { font-size: 12px; color: var(--text-dim); text-align: center; margin-top: 10px; }

/* Screenshots Carrusel */
.screenshots {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 20px;
    scroll-snap-type: x mandatory;
}
.screenshots::-webkit-scrollbar { display: none; }
.screenshot-item {
    flex-shrink: 0;
    width: 260px;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    scroll-snap-align: start;
}
.screenshot-item img { width: 100%; height: 100%; object-fit: cover; }
.play-overlay {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.5); color: white; width: 40px; height: 40px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
}

/* Info & Data Security Sections */
.info-section, .data-security, .rating-section { padding: 0 20px; margin-top: 25px; }
/* Contenedor del título y la flecha */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    cursor: pointer;
}

/* Efecto opcional: que brille un poco al tocarla */
.section-header:active .arrow-img {
    opacity: 1;
}

/* Títulos de sección */
.section-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-main);
}.app-tagline { font-size: 14px; color: var(--text-dim); margin: 10px 0; }
.category-pill {
    display: inline-block; border: 1px solid var(--border-color);
    padding: 6px 15px; border-radius: 8px; font-size: 12px;
}

/* Security Card */
.security-intro { font-size: 13px; color: var(--text-dim); margin-bottom: 15px; }
.security-card { border: 1px solid var(--border-color); border-radius: 12px; padding: 20px; }
.security-item { display: flex; gap: 15px; margin-bottom: 20px; }
.sec-icon { font-size: 18px; color: var(--text-main); }
.sec-text p { margin: 0; font-size: 13px; }
.sec-text span { font-size: 11px; color: var(--text-dim); }
.view-details-link { color: var(--google-blue); text-decoration: none; font-size: 13px; font-weight: 500; }

/* Ratings */
.stars-row { display: flex; justify-content: center; gap: 15px; margin-top: 15px; }
.stars-row img { width: 30px; }

/* Bottom Nav */
.bottom-nav {
    position: fixed; bottom: 0; width: 100%; max-width: 480px;
    background: #121212; display: flex; justify-content: space-around;
    padding: 10px 0; border-top: 1px solid #333; box-sizing: border-box;
}
.nav-item { display: flex; flex-direction: column; align-items: center; font-size: 10px; color: var(--text-dim); }
.nav-item img {
    width: 26px; /* Ancho fijo */
    height: 26px; /* Alto fijo para que sean iguales */
    object-fit: contain; /* Evita que se deformen si son rectangulares */
    margin-bottom: 5px;
    display: block;
}
.nav-item.active { color: var(--google-blue); }


/* Ajusta el tamaño de los iconos de seguridad */
.sec-icon img {
    width: 24px;   /* Tamaño estándar en Play Store */
    height: 24px;
    object-fit: contain;
}

/* Asegura que el icono esté alineado con el texto */
.security-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 22px;
}


.nav-item span {
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    font-weight: 400; /* Peso normal para los nombres */
    letter-spacing: 0.2px; /* Un poco de aire como en la original */
    color: var(--text-dim);
}

.nav-item.active span {
    font-weight: 500; /* La pestaña activa es un poco más gruesa */
    color: var(--google-blue);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1; /* Distribuye el espacio de forma equitativa */
}


html, body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Esto mata cualquier movimiento lateral */
    position: relative;
}



.bottom-nav {
    position: fixed;
    bottom: 0;
    /* En lugar de left: 50% y transform, usamos esto que es más estable en móvil: */
    left: 0;
    right: 0;
    width: 100%;
    max-width: 480px; /* El mismo ancho que tu contenedor .content */
    margin: 0 auto;   /* La centra si la pantalla es más ancha que 480px */
    
    background: #121212;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid #333;
    box-sizing: border-box; /* Fundamental: incluye el padding dentro del 100% */
    z-index: 9999;
}


body {
    background-color: var(--bg-dark);
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden; /* Mantiene bloqueado el movimiento lateral */
    
    /* ESTO ES LO QUE CENTRA TODO */
    display: flex;
    flex-direction: column;
    align-items: center; 
}


/* --- CORRECCIÓN FINAL DE CABECERAS Y FLECHAS --- */
.section-header {
    display: flex;
    justify-content: space-between; /* Empuja la flecha al extremo derecho */
    align-items: center;           /* Alinea la flecha al centro del texto */
    padding: 10px 0;
    width: 100%;
}

.section-header h2 {
    margin: 0;
    font-family: 'Roboto', sans-serif; /* Asegura la fuente en ambos títulos */
    font-size: 18px;
    font-weight: 500;
    color: var(--text-main);
}

/* --- FLECHAS GRANDES Y ALINEADAS --- */
.arrow-img {
    width: 30px !important;  /* Tamaño aumentado para que destaque */
    height: 30px !important;
    object-fit: contain;
    filter: brightness(1);    /* Máximo brillo para que se vea blanca */
    display: block;
    margin-left: auto;        /* Empuja la flecha a la derecha */
}

/* Asegura que el contenedor las mantenga en línea */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Centra la flecha verticalmente con el texto */
    width: 100%;
}

/* Asegurar que las secciones tengan el mismo aire */
.info-section, .data-security {
    padding: 0 20px;
    margin-top: 30px;
}

/* Contenedor para que el título y el logo estén en la misma línea */
.title-row {
    display: flex;
    align-items: center; /* Alineación vertical perfecta */
    gap: 12px;           /* Espacio entre el texto y el logo */
}

/* El logo al lado del título */
.logo-next-to-title {
    width: 20px !important;  /* Tamaño ajustado al texto */
    height: 20px !important;
    object-fit: contain;
    display: inline-block;
}

/* Asegura que el h1 no empuje hacia abajo */
.title-container h1 {
    margin: 0;
    font-size: 22px;
}