/* Custom styles for XactSupport */

/* Font settings */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
input,
button,
.service-option,
.countdown .single-count-content .text,
.countdown .single-count-content .count {
    font-family: "Poppins", sans-serif;
}

/* Estilos del formulario */
#contact-form {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-option {
    background-color: #ffffff;
    border: 2px solid rgba(37, 63, 153, 0.3);
    border-radius: 30px;
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.service-option i {
    margin-right: 8px;
    font-size: 16px;
}

.service-option:hover {
    border-color: #253f99;
    background-color: rgba(37, 63, 153, 0.05);
}

.service-option.active {
    background-color: #253f99;
    color: #ffffff;
    border-color: #253f99;
}

/* Botón principal */
.common-btn {
    background-color: #253f99 !important;
    color: #ffffff !important;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 70%;
    margin: 0 auto;
    display: block;
    padding: 15px 25px;
    font-size: 16px;
    letter-spacing: 0.5px;
    border-radius: 30px !important;
}

.common-btn:hover {
    background-color: #1a2f75 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 63, 153, 0.3);
}

.button-container {
    text-align: center;
    margin-top: 20px;
}

/* Mensajes de feedback */
#form-message {
    display: none;
    text-align: center;
    padding: 15px;
    margin-top: 20px;
    border-radius: 10px;
}

#form-message.success {
    background-color: rgba(40, 167, 69, 0.1);
    border: 1px solid #28a745;
    color: #28a745;
}

#form-message.error {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid #dc3545;
    color: #dc3545;
}

/* Spinner */
.spinner {
    display: none;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s ease-in-out infinite;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Selector de idiomas */
.language-selector {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
}

.language-btn {
    background-color: transparent;
    border: 2px solid #253f99;
    color: #253f99;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    padding: 5px 15px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-btn.active {
    background-color: #253f99;
    color: white;
}

.language-btn:hover:not(.active) {
    background-color: rgba(37, 63, 153, 0.1);
}

/* Categorías de servicios */
.categories-section {
    margin-top: 30px;
    margin-bottom: 30px;
}

.section-title {
    font-size: 22px;
    font-weight: 600;
    color: #253f99;
    margin-bottom: 20px;
    text-align: center;
}

.categories-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.category-item {
    flex: 1;
    min-width: 280px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.category-item:hover {
    box-shadow: 0 8px 20px rgba(37, 63, 153, 0.1);
    transform: translateY(-2px);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(37, 63, 153, 0.1);
}

.category-header i {
    font-size: 24px;
    color: #253f99;
}

.category-header h4 {
    font-size: 18px;
    font-weight: 600;
    color: #253f99;
    margin: 0;
}

.subcategories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

/* Estilos específicos para los botones de opción */
.categories-section .service-option {
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    height: 100%;
    min-height: 80px;
}

.categories-section .service-option i {
    font-size: 20px;
    margin-right: 0;
    margin-bottom: 5px;
}

/* Círculo azul de fondo */
main .main-wrapper.demo-03 .shape.shape-2 {
    background: #253f99;
}

/* Estilos generales para móviles */
@media only screen and (max-width: 767px) {
    /* Contenido centrado */
    .content-wrapper {
        text-align: center;
    }

    /* Categorías y servicios */
    .mobile-view {
        display: none;
    }

    .desktop-view {
        display: block !important;
    }

    .categories-row {
        flex-direction: column;
        align-items: center;
    }

    .category-item {
        width: 100%;
        max-width: 320px; /* Limitar el ancho máximo en móvil */
        margin: 0 auto 15px auto;
        padding: 12px;
    }

    /* Mejorar layout de servicios */
    .categories-section .service-option {
        min-height: auto;
        padding: 10px 15px;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        text-align: left;
        height: auto;
    }

    .categories-section .service-option i {
        margin-right: 10px;
        margin-bottom: 0;
        font-size: 18px;
    }

    /* Ajustar espacio vertical */
    .subcategories {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    /* Hacer que los elementos de categoría sean más compactos */
    .category-header {
        margin-bottom: 10px;
        padding-bottom: 8px;
    }

    /* Ajustar márgenes generales */
    .categories-section {
        margin-top: 20px;
        margin-bottom: 20px;
    }

    /* Menos espacio entre título y contenido */
    .section-title {
        margin-bottom: 15px;
        font-size: 20px;
    }

    /* Imagen centrada */
    .img-wrapper {
        display: block !important;
        margin: 30px auto;
        text-align: center;
        max-width: 90%;
    }

    .img-wrapper img {
        max-width: 100%;
        height: auto;
        margin: 0 auto;
    }

    /* Títulos y textos */
    main .main-wrapper.demo-03 .content-wrapper h1 {
        font-size: 32px;
        text-align: center;
    }

    main .main-wrapper.demo-03 {
        padding-top: 20px;
        padding-bottom: 40px;
    }

    main .main-wrapper.demo-03 .content-wrapper p {
        text-align: center;
        font-size: 14px;
        line-height: 1.6;
        max-width: 90%;
        margin: 0 auto 20px auto;
    }

    /* Botones y formulario */
    .service-option {
        width: 100%;
        justify-content: flex-start;
    }

    .common-btn {
        width: 90%;
        margin: 0 auto;
        padding: 12px 20px;
    }

    /* Selector de idioma */
    .language-selector {
        top: 15px;
        right: 15px;
    }

    .language-btn {
        padding: 5px 12px;
        font-size: 14px;
    }

    /* Formulario */
    #contact-form {
        padding: 15px;
        max-width: 90%;
        margin: 0 auto;
    }

    /* Formulario más compacto */
    #contact-form .form-group {
        margin-bottom: 10px;
        text-align: left;
    }

    #contact-form label {
        margin-left: 5px;
    }

    /* Menos espacio entre secciones */
    .categories-section + #contact-form {
        margin-top: 20px;
    }

    /* Countdown */
    .countdown {
        justify-content: center;
        margin: 25px auto;
        padding: 15px 0;
    }

    .countdown .single-count-content {
        padding: 0 10px;
        text-align: center;
    }

    .countdown .single-count-content .count {
        font-size: 24px;
    }

    .countdown .single-count-content .text {
        font-size: 12px;
    }
}

/* Media queries para tablets */
@media only screen and (min-width: 768px) and (max-width: 991px) {
    .img-wrapper {
        display: block !important;
        margin-top: 40px;
    }

    .row.align-items-center {
        flex-direction: column;
    }

    .col-xl-6,
    .col-lg-6 {
        width: 100%;
        max-width: 100%;
    }

    .categories-row {
        flex-direction: column;
    }

    .subcategories {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Ajustes adicionales para mejorar la responsividad */
@media only screen and (max-width: 767px) {
    .img-wrapper {
        display: block !important; /* Anula el display: none de style.css */
    }
}
