/*
:root {
    --fixphone-red: #FF3131;
    --fixphone-dark: #1a1a1a;
}

.btn-fixphone {
    background-color: var(--fixphone-red);
    color: white;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-fixphone:hover {
    background-color: #d62828;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 49, 49, 0.3);
}

.hero-section {
    height: 80vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.search-box {
    max-width: 600px;
    width: 100%;
    padding: 20px;
}

.navbar-fixphone {
    background-color: #ffffff !important;
    border-bottom: 3px solid var(--fixphone-red);
}

.text-fixphone {
    color: var(--fixphone-red);
}

*/

:root {
    --fixphone-red: #FF3131;
    --bg-dark: #0f111a;
    --bg-card: #161b22;
    --text-muted: #ced4da;
}


.text-muted {
    color: var(--text-muted) !important;
}
.small, footer {
    color: #a0a0a0 !important; /* Un gris intermedio que sí se lee */
}

.custom-input-group input::placeholder {
    color: #808080;
}



body { 
    font-family: 'Poppins', sans-serif; 
    background-color: var(--bg-dark) !important; 
    color: #ffffff;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar */
.navbar-custom {
    background-color: var(--bg-card);
    border-bottom: 3px solid var(--fixphone-red);
    padding: 1rem 0;
}

/* Sección Principal */
.hero-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent !important;
}

.search-box {
    max-width: 700px;
    width: 100%;
    padding: 20px;
}

/* Buscador Estilo Cápsula */
.custom-input-group {
    display: flex;
    background: #1c2128; /* Color oscuro acorde al estilo */
    border: 2px solid #30363d;
    border-radius: 50px;
    padding: 8px;
    transition: all 0.3s ease;
    max-width: 600px;
    margin: 0 auto;
}
.custom-input-group:focus-within {
    border-color: var(--fixphone-red);
    box-shadow: 0 0 15px rgba(255, 49, 49, 0.2);
}


.custom-input-group input {
    flex: 1; /* Esto hace que el input tome todo el espacio sobrante */
    background: transparent;
    border: none;
    color: white;
    padding: 12px 25px;
    outline: none;
    font-size: 1.1rem;
    min-width: 0; /* Evita que el input empuje el botón hacia afuera */
}

.custom-input-group input::placeholder {
    color: #484f58;
}

.btn-buscar {
    background-color: var(--fixphone-red);
    color: white;
    border-radius: 40px;
    padding: 12px 35px;
    font-weight: 700;
    transition: 0.3s;
    border: none;
}

.btn-buscar:hover {
    background-color: #e62e2e;
    color: white;
}

/* Footer */
footer {
    background-color: #0d0f14;
    color: #484f58;
    padding: 20px 0;
    border-top: 1px solid #21262d;
}


/* Estilos del Visor Mejorados para Modo Oscuro */
.visor-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    justify-content: center;
    align-items: center;
}

.visor-content { 
    position: relative; 
    width: 90%; 
    max-width: 1000px; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.visor-img { 
    max-width: 100%; 
    max-height: 85vh; 
    border-radius: 8px; 
    box-shadow: 0 0 50px rgba(255, 49, 49, 0.2); /* Un leve resplandor rojo */
}

/* BOTONES DE NAVEGACIÓN - Aquí está el truco */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white !important; /* Forzamos el color blanco */
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 3100; /* Por encima de la imagen */
}

.nav-btn:hover { 
    background: var(--fixphone-red); 
    border-color: var(--fixphone-red);
    color: white !important;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: -30px; }
.next-btn { right: -30px; }

.close-visor { 
    position: absolute; 
    top: -60px; 
    right: 0; 
    color: white; 
    font-size: 3rem; 
    cursor: pointer;
    line-height: 1;
}

/* Ajuste para móviles */
@media (max-width: 576px) {
    .custom-input-group {
        flex-direction: column; /* Ponemos uno arriba del otro */
        background: transparent; /* Quitamos el fondo del grupo */
        border: none; /* Quitamos el borde para que no se vea raro */
        padding: 0;
        gap: 15px; /* Espacio entre input y botón */
    }

    .custom-input-group input {
        background: #1c2128; /* El fondo ahora va directo al input */
        border: 2px solid #30363d;
        border-radius: 15px; /* Menos redondeado para que se vea moderno */
        width: 100%;
    }

    .btn-buscar {
        width: 100%; /* Botón de ancho completo para que sea fácil tocarlo */
        border-radius: 15px;
    }

    .display-4 {
        font-size: 2.2rem; /* Achicamos un poco el título en móviles */
    }
}