* {
	margin: 0;
	padding: 0;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

body{
    font-family: 'Lato', sans-serif;
    background-color: #ffffff;
    color: #0859a5;
}

.container {
    background: #ffffff;
    width: 95%;
    max-width: 1000px;
    margin: 20px auto;
    border: 1px solid rgba(8,89,165,0.15);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(8,89,165,0.06);
}

.app-header{
    padding: 18px 20px 0;
    text-align: center;
}

.app-header h1{
    font-size: 28px;
    color: #0859a5;
    font-weight: 900;
    letter-spacing: 0.3px;
}

/* Explorador de categorías */
.explorer{
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
    padding: 10px 20px 20px;
}

.explorer__sidebar{
    border-right: 1px solid rgba(8,89,165,0.15);
    padding-right: 10px;
    position: sticky;
    top: 10px;
    align-self: start;
    max-height: calc(100vh - 160px);
    overflow: auto;
}

.explorer__list{
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.explorer__item{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(8,89,165,0.15);
    cursor: pointer;
    background: #ffffff;
}

.explorer__item:hover, .explorer__item--active{
    background: rgba(8,89,165,0.06);
}

.explorer__item-count{
    font-size: 12px;
    color: #0859a5;
    opacity: 0.8;
}

.explorer__content{
    min-height: 200px;
}

.explorer__title{
    font-size: 22px;
    margin: 6px 0 14px;
    color: #0859a5;
}

.explorer__tools{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.explorer__tools input[type="search"]{
    width: 100%;
    max-width: 320px;
    padding: 10px 12px;
    border: 2px solid #0859a5;
    border-radius: 10px;
    color: #0859a5;
}

.explorer__tools input[type="search"]:focus{
    outline: 3px solid rgba(8,89,165,0.25);
}

.category-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    max-height: 60vh; /* Altura máxima relativa a la pantalla */
    overflow-y: auto; /* Activa el scroll vertical cuando sea necesario */
    padding-right: 10px; /* Espacio para la barra de scroll */
}

.city-pill{
    background: rgba(8,89,165,0.08);
    border: 1px solid rgba(8,89,165,0.2);
    color: #0859a5;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 700;
}

/* Sutiles decoraciones */
.explorer__sidebar::-webkit-scrollbar{
    width: 10px;
}
.explorer__sidebar::-webkit-scrollbar-thumb{
    background: rgba(8,89,165,0.25);
    border-radius: 10px;
}

/* Tarjetas dentro del panel de contenido */
.category-grid .box-img{
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(8,89,165,0.12), 0 4px 10px rgba(8,89,165,0.12);
    overflow: hidden;
    padding: 8px;
}

.category-grid .box-img a{
    display: block;
    width: 100%;
    height: 100%;
}

.category-grid .box-img img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: none;
}

/* Desactivar efecto zoom en panel */
.category-grid .box-img img:hover{
    transform: none;
}

/* Tarjetas de canal */
.channel-card {
    position: relative; /* Needed for absolute positioning of the badge */
}

.channel-card .box-img {
    /* Existing styles for .category-grid .box-img */
}

.channel-card__badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #0859a5; /* Primary color */
    color: #fff;
    padding: 4px 8px; /* Increased padding */
    font-size: 12px; /* Slightly larger font */
    border-radius: 999px; /* Pill shape */
    font-weight: bold; /* Make text bold */
    text-shadow: 0 1px 2px rgba(0,0,0,0.2); /* Subtle text shadow */
    box-shadow: 0 1px 3px rgba(0,0,0,0.2); /* Subtle box shadow */
    z-index: 10; /* Ensure it's above the image */
}

.menu ul {
	list-style: none;
	width: 100%;
	display: table;
}

.menu ul li {
	display: table-cell;
	width: calc(30px * 5)
}

.menu ul li:hover {
	background: rgba(0,0,0,.9);
}

.menu ul li a {
	text-decoration: none;
	display: block;
	color: #fff;
	padding: 20px 0;
	text-align: center;
}

.menu ul .todos {background: #3691be;}
.menu ul .laptop {background: #106288;}
.menu ul .camara {background: #0b4661;}
.menu ul .iphone {background: #093144;}
.menu ul .audifono {background: #022535;}

.galeria {
    width: 100%;
    padding: 20px;
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 16px;
    border: 1px solid rgba(8,89,165,0.2);
    border-radius: 12px;
    background: #ffffff;
}

.galeria .title-img {
    width: 100%;
    grid-column: 1 / -1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.galeria .title-img h3, .galeria .title-img h4 {
    font-size: 30px;
    padding: 20px 0;
    color: #0859a5 !important;
    font-weight: 700;
    border-bottom: 2px solid #0859a5;
    margin: 10px auto 10px;
}

.galeria .title-img:hover h3 {
    filter: brightness(0.9);
}

.galeria .title-img::after{
    content: "▾";
    color: #0859a5;
    font-size: 22px;
    margin-left: 12px;
    transition: transform .2s ease;
}

.galeria.open .title-img::after{
    transform: rotate(180deg);
}

.galeria .title-img h4 {
    font-size: 20px;
}

.galeria .box-img {
    width: 100%;
    margin: 0;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(8,89,165,0.12), 0 4px 10px rgba(8,89,165,0.12);
    overflow: hidden;
    background: #ffffff;
    display: none; /* colapsadas por defecto */
}

.galeria.open .box-img.matches{
    display: block; /* mostrar solo las que coinciden al abrir */
}

.galeria .box-img img {
	width: 100%;
	vertical-align: top;
	cursor: pointer;
	transition: all .5s ease;
}

.galeria .box-img img:hover {
	transform: scale(1.2);
}

.galeria br {
    display: none;
}

.active {
    border-bottom: 4px solid #0859a5;
}



.wrapper_cotizador {
    width: 90%;
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background-color: #fff;
    border: 1px solid #d2d0d0;
    border-radius: 10px;
}

.wrapper_cotizador h1 {
    color: #0859a5!important;
    font-weight: 600;
    font-size: 42px;
    text-align: center;
    margin-bottom: 40px;
}

.wrapper_selectores{
    width: 100%;
    text-align: center;
    max-width: 98%; /* Aumentar el ancho para dos selectores y asegurar visibilidad del texto */
    margin: 20px auto;
    display: flex;
    flex-direction: row; /* Alineación horizontal */
    gap: 15px; /* Espacio entre selectores */
}

.selector-container {
    flex: 1; /* Cada selector ocupa el mismo espacio */
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#select_department, #select_city {
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 1.05rem;
    text-align: center;
    border: 2px solid #0859a5;
    color: #0859a5;
    background-color: #ffffff;
    font-family: 'Lato',Helvetica,Arial,Lucida,sans-serif;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230859a5'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* Sutil sombra para dar profundidad */
    transition: all 0.2s ease-in-out; /* Transición suave para efectos */
}

#select_department:disabled, #select_city:disabled {
    opacity: 0.7;
    background-color: #f5f5f5;
    cursor: not-allowed;
    border-color: rgba(8,89,165,0.15);
    color: rgba(8,89,165,0.5);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='rgba(8,89,165,0.5)'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); /* Flecha SVG más clara para disabled */
}

#select_department:focus, #select_city:focus {
    outline: 3px solid rgba(8,89,165,0.25);
    border-color: #0859a5;
}

#select_department:hover, #select_city:hover {
    border-color: #0859a5; /* Mantener el color del borde en hover */
    box-shadow: 0 0 0 2px rgba(8,89,165,0.1); /* Sutil sombra al pasar el ratón */
}



/* Estilos para los separadores de departamentos */
.selectores select option[value="#"] {
    background-color: #f5f5f5;
    color: #666;
    font-weight: 600;
    font-style: italic;
    cursor: default;
    padding: 8px 16px;
}

.selectores select option[value="#"]:hover {
    background-color: #f5f5f5;
}



.campo {
    
}

.campo h3 {
    color: #0859a5;
    text-align: center;
}

.planes_disp {
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
}

.wrapper_cotizador h2{
    width: 100%;
    color: #0859a5!important;
    font-weight: 600;
    font-size: 30px;
    text-align: center;
    margin-bottom: 0px;
    margin-top: 50px;
}

.campo .subtit{
    width: 100%;
    text-align: center;
    font-size: 18px;
    margin-bottom: 30px;
}

.campo .columna_planes {
    width: 50%;
}

input#megas_plan {
    padding: 5px 5px;
    border-color: #8a9ce1 !important;
    border-radius: 5px;
    background-color: #fff;
    border: 1px solid;
}

b.label_select {
    color: #0859a5; /* Cambiado a color primario */
    font-weight: 600;
    width: 100%;
    text-align: left; /* Alineación a la izquierda */
    margin: 0; /* Margen reseteado */
}

.selectorcity {
    width: 100%;
}

p.boton_select_city {
    width: 100%;
}

p.boton_select_city input {
    max-width: 300px;
}

p.label_megas {
    color: #0859a5;
    font-weight: 600;
    margin-bottom: 7px;
}

.wrapper_button {
    width: 100%;
    max-width: 320px; /* Coincide con el ancho de los selectores */
    margin: 20px auto; /* Centra el botón y añade margen superior */
}

input#btn-menu {
    color: #ffffff!important;
    background-color: #0859a5;
    border: none;
    border-radius: 10px;
    letter-spacing: 0.5px;
    font-size: 15px;
    font-family: 'Lato',Helvetica,Arial,Lucida,sans-serif!important;
    font-weight: 700!important;
    text-transform: none;
    display: block;
    margin-top: 19px; /* Eliminado el margen automático */
    padding: 12px 18px;
    cursor: pointer;
}

input#btn-menu:hover {
    filter: brightness(1.05);
}

input#btn-menu:focus {
    outline: 3px solid rgba(8,89,165,0.25);
}

#resumen_cotizacion{
    text-align: center;
}

#total_plan{
    display: flex;
    justify-content: center;
}

#total_plan h3 {
    border-radius: 5px;
    padding: 15px;
    display: initial;
    margin: 10px auto;
    background-color: #0959a5;
    color: #fff;
}



/* Mensajes de estado */
.feedback{
    width: 100%;
    max-width: 600px;
    margin: 0 auto 10px;
    text-align: center;
    color: #0859a5;
    font-weight: 600;
}

.notice{
    width: calc(100% - 40px);
    margin: 10px auto 0;
    background: rgba(8,89,165,0.06);
    border: 1px solid rgba(8,89,165,0.2);
    color: #0859a5;
    padding: 12px 14px;
    border-radius: 10px;
}

@media only screen and (max-width: 600px){
    .galeria {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 12px;
    }
}

/* Responsivo: tablets y móviles */
@media (max-width: 900px){
    .explorer{
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .explorer__sidebar{
        position: static;
        top: auto;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid rgba(8,89,165,0.15);
        padding-right: 0;
        padding-bottom: 8px;
        overflow-x: auto;
        overflow-y: hidden;
    }
    .explorer__list{
        flex-direction: row;
        gap: 8px;
        padding-bottom: 6px;
        min-width: max-content;
    }
    .explorer__item{
        min-width: 150px;
        white-space: nowrap;
    }
    .explorer__content{
        min-height: 0;
    }
    .category-grid{
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 480px){
    .app-header h1{
        font-size: 22px;
    }
    .wrapper_selectores {
        flex-direction: column;
        padding: 0 20px;
        max-width: none; /* Allow it to take full width on small screens */
    }
    .wrapper_button {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #fff;
        padding: 15px;
        margin: 0;
        max-width: none;
        box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
        z-index: 10;
    }
    input#btn-menu{
        max-width: none;
        margin-top: 0;
    }
    .container {
        margin-bottom: 100px;
    }
    .explorer__title{
        font-size: 18px;
        margin-top: 10px;
    }
    .explorer__tools{
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .explorer__tools input[type="search"]{
        max-width: none;
        width: 100%;
    }
    .category-grid{
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }
}

/* Estilo para la barra de scroll en la parrilla de canales */
.category-grid::-webkit-scrollbar{
    width: 10px;
}
.category-grid::-webkit-scrollbar-thumb{
    background: rgba(8,89,165,0.25);
    border-radius: 10px;
}