/* Variables */
:root {
    --primary-color: #161f22;
    --secondary-color: #00BCD4;
    --background-color: #f9f9f9;
    --text-color: #333;
    --white: #fff;
    --accent-color: #FCA03E; /* Color principal de la web */
}

/* Global */
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif; /* Añadido para consistencia */
}

/* Contenedor principal */
.container-custom {
    max-width: 2400px;
    margin: 0 auto;
    padding: 0 15px; /* Añadido padding para mejor responsividad */
}

/* Alertas */
.alertaConf {
    position: fixed; /* Cambiado a fixed para asegurar que siempre sea visible */
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0; /* Ajustado para un espaciado adecuado */
    color: var(--primary-color);
    text-align: center;
    background-color: rgba(255, 255, 255, 0.9); /* Fondo semi-transparente */
    z-index: 1000;
}

/* Sección principal .s004 */
.s004 {
    width: 100%;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra verticalmente el contenido */
    align-items: center; /* Centra horizontalmente el contenido */
    background-color: #d9d9d9; /* Un color similar a la imagen */
    background: url("/assets/images/BANNERVERIFICADO_wide.webp") center center / cover no-repeat;
    margin-top: 30px; /* Ajusta según la altura de la barra de navegación */
    position: relative;
    padding: 20px 0;
}

/* Título dentro de .s004 */
.s004 h1 {
    font-weight: bold;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 20px; /* Espaciado entre el título y el buscador */
    font-size: 2.5rem;
    margin-left: 20px;
    margin-right: 20px;
}

@media (max-width: 1024px) {
    .s004 h1 {
        font-size: 1.75rem;
        margin-left: 30px;
        margin-right: 30px;
    }
}

@media (max-width: 768px) {
    .s004 h1 {
        font-size: 1.5rem;
        margin-left: 25px;
        margin-right: 25px;
    }
}

@media (max-width: 480px) {
    .s004 h1 {
        font-size: 1.2rem;
        margin-left: 20px;
        margin-right: 20px;
    }
}

/* Botón básico */
button {
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 8px;
}

button:hover {
    background-color: #0288d1; /* Color oscuro de la secundaria */
}

/* Contenedor de teclas */
#desktop-posts {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap; /* Evita que las teclas se apilen */
    padding: 20px;
    gap: 10px;
    perspective: 800px; /* Añade perspectiva 3D */
    position: relative;
    top: -50px; /* Posiciona las teclas más arriba, superponiéndose al banner */
}

.tecla {
    position: relative;
    width: 220px;
    flex-shrink: 0; /* Evita que las teclas se reduzcan por debajo de su ancho */
    margin: 10px;
    transform-style: preserve-3d;
    transform-origin: top;
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1), width 0.3s ease;
}

.tecla img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.5));
}

/* Efectos de Hover solo en dispositivos con capacidad de hover */
@media (hover: hover) and (pointer: fine) {
    .tecla1:hover .tecla-image {
        content: url('../images/TECLAACTIVA_comofunciona.png');
    }

    .tecla2:hover .tecla-image {
        content: url('../images/TECLAACTIVA_soypianista.png');
    }

    .tecla3:hover .tecla-image {
        content: url('../images/TECLAACTIVA_verificado.png');
    }

    .tecla:hover {
        transform: translateZ(-20px) scale(0.98);
    }
}

/* Responsividad de las teclas */
@media (max-width: 1200px) {
    .tecla {
        width: 200px;
    }
}

@media (max-width: 1024px) {
    .tecla {
        width: 180px;
    }
}

@media (max-width: 768px) {
    #desktop-posts {
        gap: 5px;
        transform: translateY(0);
        padding: 0 20px; /* Añadido margen lateral */
        top: 0; /* Ajustar la posición vertical */
        margin-top: -20px; /* Añadir margen superior para separar del buscador */
    }
    .tecla {
        width: calc((100% - 60px) / 3); /* Ajusta el ancho para que entren las tres teclas con márgenes */
        margin: 0 10px; /* Márgenes laterales para cada tecla */
    }
}

@media (max-width: 480px) {
    #desktop-posts {
        gap: 3px;
        transform: translateY(0);
        padding: 0 15px; /* Márgenes laterales más amplios en móviles */
        margin-top: -20px; /* Añadir margen superior para separar del buscador */
    }
    .tecla {
        width: calc((100% - 60px) / 3); /* Ajusta el ancho para que entren las tres teclas con márgenes */
        margin: 0 10px; /* Márgenes laterales para cada tecla */
    }
}

/* Asegurar que las teclas siempre estén en una fila */
@media (max-width: 480px) {
    #desktop-posts {
        flex-wrap: nowrap;
    }
    .tecla {
        flex-shrink: 1;
    }
}

/* Barra de búsqueda */
.searcher-div {
    display: flex;
    flex-wrap: nowrap;
    background: var(--white);
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    align-items: stretch;
    margin: 20px 10px;
    overflow: hidden;
    margin-left: 20px;
    margin-right: 20px;
}

.searcher-div input[type="text"],
.searcher-div select {
    flex: 1;
    outline: none;
    border: none;
    padding: 10px;
    font-size: 15px;
    background-color: var(--white);
    color: var(--text-color);
}

.searcher-div input[type="text"]:focus,
.searcher-div select:focus {
    background-color: var(--white);
    color: var(--text-color);
}

.searcher-div select option:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-custom {
    background-color: #161f22;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-custom:hover {
    background-color: #FCA03E;
    color: white;
}


.btn-search {
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 0 20px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: 0 50px 50px 0;
    transition: background-color 0.3s ease;
}

.btn-search:hover {
    background-color: #e68a00; /* Color oscuro del acento */
}

.btn-search img {
    margin-left: 10px;
    width: 35px;
    height: 35px;
}

@media (max-width: 900px) {
    .searcher-div {
        flex-direction: column;
        border-radius: 10px;
        margin-left: 30px;
        margin-right: 30px;
    }

    .searcher-div input[type="text"],
    .searcher-div select,
    .btn-search {
        width: 100%;
        margin-right: 0;
        border-radius: 0;
    }

    .btn-search {
        border-radius: 0 0 10px 10px;
        margin-top: 20px;
    }
}

/* Error Messages */
.error {
    padding-top: 50px;
    color: var(--primary-color);
}

.error-message {
    background-color: #ffe6e6; /* Fondo suave para resaltar el error */
    padding: 15px;
    border-radius: 5px;
    display: inline-block;
}

/* Sección de Contador Dinámico */
.dynamic-counter-section {
    position: relative;
    background-image: url('/assets/images/seccionianistas4kwebp.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: white;
    padding: 100px 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 300px;
    margin-top: 50px;
}

.dynamic-counter-section .container {
    max-width: 80%;
    margin: 0 auto;
    text-align: right;
    position: relative;
    z-index: 1;
}

.counter-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
}

.counter-item {
    display: flex;
    align-items: center;
}

.counter-label {
    font-size: 2em;
    margin-right: 10px;
    font-weight: bold;
    width: 200px;
}

.counter {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--accent-color);
    transition: color 0.3s ease;
    width: 100px;
    text-align: center;
}

.counter:hover {
    color: #FFFACD; /* Cambio de color al pasar el cursor */
}

@media (max-width: 1200px) {
    .dynamic-counter-section .container {
        max-width: 90%;
    }
    .counter-label {
        font-size: 1.8em;
        width: 180px;
    }
    .counter {
        font-size: 2.2em;
        width: 90px;
    }
}

@media (max-width: 992px) {
    .dynamic-counter-section {
        padding: 80px 0;
        justify-content: center;
        text-align: center;
    }
    .counter-content {
        align-items: center;
    }
    .counter-label {
        font-size: 1.5em;
        width: 160px;
    }
    .counter {
        font-size: 2em;
        width: 80px;
    }
}

@media (max-width: 768px) {
    .dynamic-counter-section {
        padding: 60px 0;
        min-height: 250px;
    }
    .counter-label {
        font-size: 1.3em;
        width: 140px;
    }
    .counter {
        font-size: 1.8em;
        width: 70px;
    }
}

@media (max-width: 480px) {
    .dynamic-counter-section {
        padding: 40px 0;
        min-height: 200px;
    }
    .counter-label {
        font-size: 1em;
        width: 120px;
    }
    .counter {
        font-size: 1.5em;
        width: 60px;
    }
}

/* Textos */
.textos {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.texto {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 700px;
    text-align: center;
    margin: 20px 0;
}

.texto img {
    max-width: 100px;
    height: auto;
    margin-bottom: 10px;
}

.imagenConcierto {
    object-fit: contain;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 1000px) {
    .imagenConcierto {
        margin-left: 0;
    }
}

@media (max-width: 600px) {
    .texto {
        flex-direction: column;
    }
    .imagenConcierto {
        max-width: 360px;
    }
}

/* Modal */
.modal-header.bg-light {
    background-color: #f8f9fa !important;
}

.modal-body.text-center {
    text-align: center;
}

.modal-footer {
    display: flex;
    justify-content: center;
}

/* Cards */
.card {
    box-shadow: none !important;
    transition: box-shadow 0.3s ease;
    max-height: 300px;
    height: 300px;
    overflow: hidden;
    padding: 10px;
    margin: 10px;
}

.card:hover {
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px !important;
}

.location-input-container {
    position: relative;
}

.location-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    border: 1px solid #ccc;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
}

.suggestion-item {
    padding: 8px;
    cursor: pointer;
}

.suggestion-item:hover {
    background-color: #f0f0f0;
}

