/* ----------------------------------
-------------------------------------
 SERVICIOS AQUI EMPIEZA
-------------------------------------
------------------------------------- */

.s-premium-section {
    padding: 30px 20px;
    background-color: #f8fafc;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

.s-premium-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* GRID ESPECÍFICO */
.s-premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* CARD CON PREFIJO PARA EVITAR MEZCLAS */
.s-premium-card {
    perspective: 1200px;
    height: 400px;
    /* Altura fija en desktop */
    cursor: pointer;
}

.s-premium-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.75s cubic-bezier(.4, .2, .2, 1);
    transform-style: preserve-3d;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
}

/* ✅ HOVER SOLO EN DESKTOP */
@media (hover: hover) and (pointer: fine) {
    .s-premium-card:hover .s-premium-card-inner {
        transform: rotateY(180deg);
    }

    .s-premium-card:hover .s-premium-line {
        width: 100px;
    }

    .s-premium-card:hover .s-premium-back-inner {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ✅ CLICK (móvil + desktop) */
.s-premium-card-inner.rotate {
    transform: rotateY(180deg);
}

.s-premium-card-inner.rotate .s-premium-back-inner {
    transform: translateY(0);
    opacity: 1;
}

/* CARAS FRONT/BACK */
.s-premium-card-front,
.s-premium-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    /* Mantenemos hidden en desktop */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
}

/* FRONTAL */
.s-premium-card-front {
    background-size: cover;
    background-position: center;
    color: white;
}

.s-premium-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 56, 117, 0.95) 0%, rgba(13, 56, 117, 0.2) 60%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.s-premium-content-front {
    position: relative;
    z-index: 2;
}

.s-premium-number {
    font-size: 3rem;
    font-weight: 900;
    opacity: 0.2;
    display: block;
    line-height: 1;
}

.s-premium-card-front h3 {
    font-size: 1.6rem;
    margin: 10px 0;
    font-weight: 700;
}

.s-premium-line {
    width: 50px;
    height: 4px;
    background: #1C7AFF;
    transition: width 0.4s ease;
}

/* TRASERA */
.s-premium-card-back {
    background: #ffffff;
    color: #0d3875;
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 25px 20px;
    /* Reducido ligeramente para que quepa */
    overflow: hidden;
    position: relative;
    border: 1px solid #7D91C9;
    box-shadow: 0 30px 55px rgba(28, 122, 255, 0.28), inset 0 -10px 22px rgba(0, 0, 0, 0.16);
}

/* Formas geométricas */
.s-premium-card-back::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(135deg, #0d3875 0%, #0d3875 100%);
    clip-path: polygon(0 0, 100% 0, 40% 100%, 0% 100%);
    opacity: 0.15;
    z-index: 0;
}

.s-premium-card-back::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: #7D91C9;
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
}

/* CONTENIDO TRASERO */
.s-premium-back-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Icono y Texto */
.s-premium-back-icon {
    width: 45px;
    margin: 0 auto 10px;
    /* Reducido margen */
    color: #0d3875;
}

.s-premium-card-back p {
    font-size: 0.85rem;
    /* Reducido ligeramente */
    line-height: 1.4;
    /* Reducido para ahorrar espacio */
    margin-bottom: 15px;
    /* Reducido */
    color: #475569;
    font-weight: 400;
    max-width: 100%;
}

.s-premium-back-inner p {
    flex-grow: 0;
    /* Cambiado de 1 a 0 para que no empuje */
    margin-bottom: 15px;
}

/* Grupo de botones */
.s-premium-btn-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 5px;
    width: 100%;
}

/* BOTÓN CTA WHATSAPP */
.s-premium-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    /* Reducido de 42px */
    padding: 0 18px;
    /* Reducido */
    border-radius: 50px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
    /* Reducido */
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    white-space: nowrap;
}

.s-premium-cta-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

/* Botón secundario */
.s-premium-secondary-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    /* Reducido de 42px */
    padding: 0 18px;
    /* Reducido */
    border-radius: 50px;
    background: transparent;
    border: 2px solid #0d3875;
    color: #0d3875;
    font-weight: 600;
    font-size: 0.75rem;
    /* Reducido */
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.s-premium-secondary-btn:hover {
    background: #0d3875;
    color: white;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 20px rgba(13, 56, 117, 0.25);
}

.s-premium-btn-group a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    /* Reducido */
    padding: 0 18px;
    /* Reducido */
    border-radius: 50px;
    font-size: 0.75rem;
    /* Reducido */
    font-weight: 600;
    white-space: nowrap;
}

/* anti blur sin alterar el flip */
.s-premium-card-inner {
    will-change: transform;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

.s-premium-card-front,
.s-premium-card-back {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* 🔥 FIX GLOBAL ANTI-BLUR */
.s-premium-card {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.s-premium-card-front,
.s-premium-card-back {
    transform-origin: center;
}

/* ============================================
   MODAL DE EXPERIENCIA (TU DISEÑO ORIGINAL)
   ============================================ */


.survey-box {
    grid-column: 1 / -1;
    /* Ocupa todas las columnas */
    width: 100%;
    max-width: 1000px;
    justify-self: center;
    /* Centrado horizontal */
    position: relative;
    background: #ffffff !important;
    border-radius: 20px !important;
    padding: 35px 20px !important;
    margin: 50px auto 30px !important;
    text-align: center;
    overflow: hidden;
    border: 1px solid #7D91C9;
    box-shadow: 0 15px 35px rgba(28, 122, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
}

.survey-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, #0d3875 0%, #0d3875 100%);
    clip-path: polygon(0 0, 100% 0, 40% 100%, 0% 100%);
    opacity: 0.12;
    z-index: -1;
}

.survey-box h3 {
    color: #0d3875;
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.survey-box .btn-survey {
    padding: 10px 30px;
    font-size: 0.95rem;
    border-radius: 50px;
    border: none;
    margin: 5px;
    cursor: pointer;
}

.btn-survey-yes {
    background: linear-gradient(135deg, #0d3875 0%, #1C7AFF 100%);
    color: white;
    box-shadow: 0 8px 15px rgba(13, 56, 117, 0.2);
}

.btn-survey-no {
    background: #f8fafc;
    color: #0d3875;
    border: 1px solid #7D91C9 !important;
}

.survey-box .btn-survey:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

/* Modal */
#surveyModal .modal-dialog {
    max-width: 400px;
    margin: 1.75rem auto;
    display: flex;
    align-items: center;
    min-height: calc(100% - 3.5rem);
}

#surveyModal .modal-content {
    border: none;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(13, 56, 117, 0.25);
}

#surveyModal .modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 56, 117, 0.05) 0%, transparent 100%);
    clip-path: polygon(0 0, 60% 0, 30% 100%, 0% 100%);
    pointer-events: none;
}

#surveyModal .modal-header {
    background: #0d3875;
    color: white;
    padding: 1.25rem 1.5rem;
    border: none;
}

#surveyModal .modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

#surveyModal .modal-body {
    padding: 2rem 1.5rem 1rem;
}

#surveyQuestion {
    font-weight: 700;
    color: #1e293b;
    font-size: 1.05rem;
    line-height: 1.4;
    margin-bottom: 20px;
}

/* Opciones del modal */
.survey-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
    font-weight: 500;
    background: #f8f9fa;
    margin-bottom: 10px;
}

.survey-option:hover {
    border-color: #0d6efd;
    background: #eef5ff;
}

.survey-option input {
    transform: scale(1.2);
    cursor: pointer;
}

.survey-option input:checked+span {
    color: #0d6efd;
    font-weight: bold;
}

.modal-footer {
    border: none;
    padding: 0 1.5rem 2rem;
    flex-direction: column;
}

#submitSurvey {
    background: linear-gradient(135deg, #0d3875 0%, #1C7AFF 100%);
    border: none;
    padding: 12px;
    border-radius: 14px;
    font-weight: 700;
    width: 100%;
    font-size: 1rem;
    box-shadow: 0 8px 15px rgba(13, 56, 117, 0.2);
    transition: all 0.3s ease;
    color: white;
}

#submitSurvey:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(13, 56, 117, 0.3);
}

.btn-link.sm-text {
    font-size: 0.85rem;
    color: #94a3b8 !important;
    margin-top: 10px;
    text-decoration: none;
}

@media (max-width: 768px) {

    /* Tarjetas más pequeñas en móvil */
    .s-premium-card {
        height: auto;
        /* ← altura automática para que el contenido no desborde */
        min-height: 380px;
        /* altura mínima para que se vea bien */
    }

    .s-premium-card-inner {
        height: 100%;
    }

    .s-premium-card-front,
    .s-premium-card-back {
        height: 100%;
        padding: 20px 16px;
    }

    .s-premium-card-front {
        background-size: cover;
        background-position: center;
        overflow-y: auto;
        /* solo frente puede tener scroll si es necesario */
    }

    /* REVERSO: bloqueo total de scroll táctil */
    .s-premium-card-back {
        overflow-y: hidden !important;
        touch-action: none !important;
        -webkit-overflow-scrolling: auto !important;
        /* anula cualquier scroll suave */
    }

    /* También bloqueamos cualquier elemento interno que pudiera causar scroll */
    .s-premium-card-back * {
        touch-action: none !important;
    }

    /* Ajustes de texto y botones */
    .s-premium-card-back p {
        font-size: 0.82rem;
        line-height: 1.4;
        margin-bottom: 12px;
    }

    .s-premium-card-front h3 {
        font-size: 1.15rem;
    }

    .s-premium-number {
        font-size: 2.1rem;
    }

    .s-premium-cta-btn,
    .s-premium-secondary-btn {
        font-size: 0.75rem;
        padding: 8px 16px;
        height: 38px;
    }

    .s-premium-back-inner {
        opacity: 1 !important;
        transform: none !important;
        touch-action: none !important;
        /* refuerzo */
    }

    .s-premium-btn-group {
        flex-direction: column;
        gap: 8px;
    }

    .s-premium-cta-btn,
    .s-premium-secondary-btn,
    .s-premium-btn-group a {
        width: 100%;
        max-width: 260px;
        height: 38px;
    }

    /* Ajustes Survey Box */
    .survey-box {
        padding: 25px 15px !important;
        margin: 30px auto 20px !important;
    }

    .survey-box h3 {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    .btn-survey {
        padding: 8px 20px;
        font-size: 0.85rem;
    }

    /* Modal responsive */
    #surveyModal .modal-dialog {
        max-width: 90% !important;
        margin: 1rem auto;
    }

    #surveyModal .modal-content {
        border-radius: 18px;
    }

    #surveyModal .modal-header {
        padding: 0.8rem 1rem;
    }

    #surveyModal .modal-title {
        font-size: 0.95rem;
    }

    #surveyModal .modal-body {
        padding: 1.2rem 1rem;
    }

    #surveyQuestion {
        font-size: 0.95rem;
    }

    .survey-option {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    #submitSurvey {
        font-size: 0.9rem;
        padding: 10px;
        border-radius: 10px;
    }

    #surveyComment {
        font-size: 0.9rem;
    }
}

/* ============================================
   FIX PARA TABLETS (769px - 1023px)
   ============================================ */
@media (min-width: 769px) and (max-width: 1199px) {
    .s-premium-card {
        height: 420px;
        /* Un poco más alto para tablets */
    }

    .s-premium-btn-group {
        flex-direction: column;
    }

    .s-premium-cta-btn,
    .s-premium-secondary-btn,
    .s-premium-btn-group a {
        width: 100%;
        max-width: 280px;
    }

    .s-premium-card-inner.rotate {
        transform: rotateY(179.9deg);
    }
}

/* ============================================
   FIX PARA PANTALLAS GRANDES
   ============================================ */
@media (min-width: 1200px) {

    /* Aseguramos que NO haya scroll en desktop */
    .s-premium-card-front,
    .s-premium-card-back {
        overflow: hidden;
    }

    /* Ajustamos textos para que quepan perfectamente */
    .s-premium-card-back p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 15px;
        max-height: 160px;
        /* Controlamos altura máxima */
    }

    .s-premium-cta-btn,
    .s-premium-secondary-btn {
        font-size: 0.8rem;
        padding: 0 20px;
        height: 40px;
    }
}

.descripcion-servicio ul {
    list-style: disc !important;
    padding-left: 20px;
    margin-bottom: 10px;
}

.descripcion-servicio ol {
    list-style: decimal !important;
    padding-left: 20px;
}

.descripcion-servicio li {
    margin-bottom: 6px;
}

.descripcion-servicio u {
    text-decoration: underline;
}

.descripcion-servicio strong {
    font-weight: 600;
}

.descripcion-servicio em {
    font-style: italic;
}

/* ===============================
   TABLA MAS SERVICIOS ADMIN
================================= */

.piasa-table-wrapper {
    padding: 30px;
    background: linear-gradient(135deg, #7D91C9 0%, #363A51 100%);
    min-height: 100vh;
    box-shadow: 0 15px 30px rgba(13, 56, 117, 0.3);
}

/* ===============================
   HEADER DE LA TABLA
================================= */
.table-header {
    background: white;
    border-radius: 20px 20px 0 0;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eef2f6;
}

.table-header h2 {
    color: #0d3875;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.table-header p {
    color: #64748b;
    margin: 0;
    font-size: 0.95rem;
}

/* ===============================
   FILTROS - ESTILO ELEGANTE
================================= */
.table-filters {
    background: white;
    padding: 20px 30px;
    border-bottom: 1px solid #eef2f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.table-filters form {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0d3875;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.filter-label i {
    color: #2F66B4;
    font-size: 1rem;
}

/* SELECT CON ESTILO SUTIL */
.table-filters select {
    padding: 10px 35px 10px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #0d3875;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 220px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230d3875' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
}

.table-filters select:hover {
    border-color: #2F66B4;
    background-color: #f8fafc;
}

.table-filters select:focus {
    outline: none;
    border-color: #2F66B4;
    box-shadow: 0 0 0 3px rgba(47, 102, 180, 0.1);
}

/* Estilo para las opciones del select */
.table-filters select option {
    background: white;
    color: #0d3875;
    font-weight: 500;
    padding: 10px;
}

/* Botón Crear Nuevo */
.btn-create {
    background: linear-gradient(135deg, #363A51, #2F66B4);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(13, 56, 117, 0.2);
    white-space: nowrap;
}

.btn-create:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(13, 56, 117, 0.3);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .table-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .table-filters form {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .table-filters select {
        width: 100%;
        min-width: 100%;
    }

    .btn-create {
        width: 100%;
        justify-content: center;
    }
}

/* ===============================
   CONTENEDOR DE LA TABLA CON SCROLL
================================= */
.table-container {
    background: white;
    border-radius: 0 0 20px 20px;
    padding: 0 0 20px 0;
    overflow-x: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ===============================
   TABLA MEJORADA
================================= */
.piasa-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 1400px;
    /* Forza el scroll horizontal */
    font-family: 'Segoe UI', Roboto, sans-serif;
}

/* Encabezados */
.piasa-table thead th {
    background: linear-gradient(135deg, #2F66B4, #1e4a7a);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 18px 15px;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Celdas */
.piasa-table tbody td {
    padding: 16px 15px;
    border-bottom: 1px solid #eef2f6;
    transition: background-color 0.3s ease;
}

/* Efecto hover en filas */
.piasa-table tbody tr:hover {
    background-color: #f8fafc;
}

.piasa-table tbody tr:hover td {
    background-color: #f8fafc;
}

/* ===============================
   BADGES PARA TIPOS
================================= */
.piasa-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: capitalize;
    white-space: nowrap;
}

.piasa-blindaje {
    background: linear-gradient(135deg, #ff6b6b, #ee5253);
    color: white;
}

.piasa-verificacion {
    background: linear-gradient(135deg, #48dbfb, #0abde3);
    color: white;
}

.piasa-analisis {
    background: linear-gradient(135deg, #1dd1a1, #10ac84);
    color: white;
}

/* ===============================
   KEYWORDS BADGES MEJORADOS
================================= */
.piasa-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 250px;
}

.keyword-badge {
    background: #e2e8f0;
    color: #0d3875;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    display: inline-block;
    border: 1px solid #cbd5e1;
}


/* ===============================
   ESTADOS (ACTIVO/INACTIVO)
================================= */
.piasa-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.piasa-status.active {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.piasa-status.inactive {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

/* ===============================
   BOTONES DE ACCIÓN
================================= */
.piasa-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.piasa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1rem;
    color: white !important;
    /* Forzar color blanco para los iconos */
}

/* Estilo para el icono dentro del botón */
.piasa-btn i {
    font-size: 1rem;
    color: white;
}

/* Botón de editar */
.piasa-btn-edit {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
}

.piasa-btn-edit:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

/* Botón de deshabilitar (cuando está activo) */
.piasa-btn-disable {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
}

/* Botón de habilitar (cuando está inactivo) */
.piasa-btn-enable {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.piasa-btn-disable:hover,
.piasa-btn-enable:hover {
    transform: translateY(-2px) scale(1.05);
}

/* Asegurar que los iconos sean blancos en todos los estados */
.piasa-btn-edit i,
.piasa-btn-disable i,
.piasa-btn-enable i {
    color: white;
}

/* ===============================
   ANCHOS DE COLUMNAS (PARA SCROLL)
================================= */
.col-id {
    min-width: 60px;
    width: 60px;
}

.col-img {
    min-width: 90px;
    width: 90px;
}

.col-tipo {
    min-width: 120px;
    width: 120px;
}

.col-titulo {
    min-width: 180px;
    width: 180px;
}

.col-descripcion {
    min-width: 350px;
    width: 350px;
}

.col-palabras-clave {
    min-width: 200px;
    width: 200px;
}

.col-orden {
    min-width: 70px;
    width: 70px;
}

.col-estado {
    min-width: 100px;
    width: 100px;
}

.col-acciones {
    min-width: 100px;
    width: 100px;
}

/* ===============================
   IMAGEN EN TABLA
================================= */
.piasa-table td img.piasa-img {
    width: 60px !important;
    height: 60px !important;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.piasa-table td img.piasa-img:hover {
    transform: scale(1.1);
}

.piasa-img-placeholder {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
}

/* ===============================
   DESCRIPCIÓN CON SCROLL INTERNO
================================= */
.piasa-descripcion {
    max-height: 80px;
    overflow-y: auto;
    padding-right: 5px;
    font-size: 13px;
    line-height: 1.5;
    color: #334155;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.piasa-descripcion::-webkit-scrollbar {
    width: 4px;
}

.piasa-descripcion::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.piasa-descripcion::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.piasa-descripcion::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ===============================
   PAGINACIÓN MEJORADA - VERSIÓN DELGADA
================================= */
.pagination-container {
    margin-top: 20px;
    /* Reducido de 30px */
    padding: 10px 30px;
    /* Reducido de 20px 30px */
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    gap: 6px;
    /* Reducido de 8px */
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination li a,
.pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    /* Reducido de 40px */
    height: 28px;
    /* Reducido de 40px */
    padding: 0 6px;
    /* Reducido de 0 10px */
    background: white;
    border: 1.5px solid #e2e8f0;
    /* Reducido de 2px (opcional) */
    border-radius: 6px;
    /* Reducido de 10px */
    color: #0d3875;
    font-weight: 500;
    font-size: 0.8rem;
    /* Añadido para texto más pequeño */
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination li a:hover {
    background: #f0f4ff;
    border-color: #1C7AFF;
    transform: translateY(-1px);
    /* Reducido de -2px */
    box-shadow: 0 3px 8px rgba(28, 122, 255, 0.1);
    /* Sombra más sutil */
}

.pagination li.active span {
    background: linear-gradient(135deg, #0d3875, #1C7AFF);
    border-color: #0d3875;
    color: white;
    font-weight: 600;
}

.pagination li.disabled span {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f1f5f9;
}

/* ===============================
   ALERTAS MEJORADAS
================================= */
.alert-success-custom {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    margin: 20px 30px 0 30px;
    font-weight: 500;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
}

/* ===============================
   RESPONSIVE
================================= */
@media (max-width: 768px) {
    .table-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .table-filters select {
        width: 100%;
    }

    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pagination li a,
    .pagination li span {
        min-width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* En móviles */
@media (max-width: 768px) {
    .keyword-badge {
        font-size: 10px;
        padding: 3px 6px;
    }

    .col-palabras-clave {
        width: auto;
    }
}

/* ===============================
   ESTILOS PARA MODAL DE EDICIÓN - VERSIÓN PROFESIONAL
================================= */
.piasa-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    /* Efecto de desenfoque al fondo */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.piasa-modal.active {
    display: flex;
}

.piasa-modal-box {
    background: white;
    border-radius: 24px;
    padding: 35px;
    max-width: 550px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.piasa-close {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: normal;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
}

.piasa-close:hover {
    background: #0d3875;
    color: white;
    transform: rotate(90deg);
}

.piasa-title {
    color: #0d3875;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 25px;
    padding-right: 40px;
    border-bottom: 3px solid #eef2f6;
    padding-bottom: 15px;
    letter-spacing: -0.5px;
}

.piasa-field {
    margin-bottom: 25px;
}

.piasa-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.piasa-field label i {
    color: #2F66B4;
    margin-right: 6px;
    font-size: 0.9rem;
}

.piasa-field input[type="text"],
.piasa-field input[type="number"],
.piasa-field select,
.piasa-field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: #f8fafc;
    color: #0d3875;
    font-weight: 500;
}

.piasa-field input[type="text"]:hover,
.piasa-field input[type="number"]:hover,
.piasa-field select:hover,
.piasa-field textarea:hover {
    border-color: #2F66B4;
    background: white;
}

.piasa-field input[type="text"]:focus,
.piasa-field input[type="number"]:focus,
.piasa-field select:focus,
.piasa-field textarea:focus {
    outline: none;
    border-color: #1C7AFF;
    background: white;
    box-shadow: 0 0 0 4px rgba(28, 122, 255, 0.1);
}

.piasa-field input[type="file"] {
    padding: 12px;
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    width: 100%;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
}

.piasa-field input[type="file"]:hover {
    border-color: #2F66B4;
    background: #f0f4ff;
}

.piasa-field small {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 0.8rem;
    font-style: italic;
}

/* Estilo para el editor Quill */
.editor-box {
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
    margin-bottom: 10px;
}

.editor-box .ql-toolbar {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom: 1px solid #e2e8f0;
    background: white;
}

.editor-box .ql-container {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    background: white;
    min-height: 150px;
    font-size: 0.95rem;
}

.editor-box .ql-editor {
    min-height: 150px;
}

/* Contenedor de imagen actual */
.current-image-container {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 20px;
    border-radius: 16px;
    border: 2px dashed #cbd5e1;
    text-align: center;
    margin-bottom: 15px;
    transition: all 0.2s ease;
}

.current-image-container:hover {
    border-color: #2F66B4;
    background: #f0f4ff;
}

.current-image-container img {
    max-width: 100%;
    max-height: 180px;
    border-radius: 12px;
    border: 4px solid white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.current-image-container img:hover {
    transform: scale(1.02);
}

#noImageText {
    color: #64748b;
    font-style: italic;
    padding: 25px;
    background: white;
    border-radius: 12px;
    margin: 0;
    font-size: 0.95rem;
    border: 2px dashed #e2e8f0;
}

/* Botón guardar */
.piasa-save-btn {
    background: linear-gradient(135deg, #0d3875, #1C7AFF);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 25px rgba(13, 56, 117, 0.3);
    position: relative;
    overflow: hidden;
}

.piasa-save-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.piasa-save-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(13, 56, 117, 0.4);
}

.piasa-save-btn:hover::before {
    left: 100%;
}

/* Scrollbar personalizado para el modal */
.piasa-modal-box::-webkit-scrollbar {
    width: 8px;
}

.piasa-modal-box::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.piasa-modal-box::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
    border: 2px solid #f1f5f9;
}

.piasa-modal-box::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Responsive */
@media (max-width: 768px) {
    .piasa-modal-box {
        padding: 25px;
        width: 95%;
    }

    .piasa-title {
        font-size: 1.3rem;
    }

    .piasaa-field input[type="text"],
    .piasa-field input[type="number"],
    .piasa-field select {
        padding: 10px 14px;
    }

    .piasa-save-btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}

/* ============================================
   MODAL MÁS SERVICIOS - DISEÑO PROFESIONAL
============================================ */
#moreServicesModal .modal-content {
    border: none;
    border-radius: 24px;
    background: white;
    box-shadow: 0 30px 60px rgba(13, 56, 117, 0.3);
    overflow: hidden;
}

#moreServicesModal .modal-header {
    background: linear-gradient(135deg, #0d3875, #1C7AFF);
    color: white;
    padding: 1.2rem 1.5rem;
    border: none;
    position: relative;
}

#moreServicesModal .modal-header::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15));
    transform: skewX(-20deg);
}

#moreServicesModal .modal-title {
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

#moreServicesModal .modal-title i {
    font-size: 1.3rem;
}

/* ============================================
   FIX PARA BOTÓN DE CIERRE - VERSIÓN FUNCIONAL
============================================ */
#moreServicesModal .btn-close {
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
    width: 35px !important;
    height: 35px !important;
    opacity: 1 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3E%3Cpath d='M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8 2.146 2.854z'/%3E%3C/svg%3E") !important;
    background-size: 50% !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    filter: none !important;
    position: relative !important;
    z-index: 10 !important;
}

#moreServicesModal .btn-close:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: rotate(90deg) scale(1.1) !important;
}

/* Asegurar que el header tenga flex correcto */
#moreServicesModal .modal-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

/* Buscador */
#moreServicesModal .px-4.pt-4 {
    background: #f8fafc;
    border-bottom: 1px solid #eef2f6;
}

#moreServicesModal #buscadorServicios {
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

#moreServicesModal #buscadorServicios:focus {
    border-color: #1C7AFF;
    box-shadow: 0 0 0 4px rgba(28, 122, 255, 0.1);
    outline: none;
}

#moreServicesModal #btnLimpiarFiltro {
    border-radius: 50px;
    padding: 12px 24px;
    border: 2px solid #0d3875;
    color: #0d3875;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    background: white;
}

#moreServicesModal #btnLimpiarFiltro:hover {
    background: #0d3875;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 56, 117, 0.2);
}

/* Contenido del modal */
#moreServicesModal .modal-body {
    padding: 1.8rem 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
    background: white;
}

/* Título de la categoría */
#moreServicesModal h6 {
    color: #0d3875;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid #eef2f6;
    position: relative;
}

#moreServicesModal h6 i {
    color: #1C7AFF;
}

#moreServicesModal h6::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #0d3875, #1C7AFF);
    border-radius: 3px;
}

/* Tarjetas de servicios */
.extra-service-card {
    background: #e2e5f082;
    border-radius: 20px;
    padding: 1.2rem;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    border: 1px solid #eef2f6;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.extra-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0d3875, #1C7AFF);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.extra-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(13, 56, 117, 0.1);
    border-color: transparent;
}

.extra-service-card:hover::before {
    opacity: 1;
}

.extra-service-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1rem;
    border: 2px solid rgb(255, 255, 255);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.extra-service-card:hover img {
    transform: scale(1.02);
}

.extra-service-card h6 {
    color: #0d3875;
    font-size: 1rem;
    font-weight: 700;
    margin: 0.3rem 0 0.8rem;
    border: none;
    padding: 0;
    line-height: 1.4;
    min-height: 45px;
}

.extra-service-card h6::after {
    display: none;
}

.extra-service-card .descripcion-servicio {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.5;
    flex-grow: 1;
}

.extra-service-card .descripcion-servicio ul,
.extra-service-card .descripcion-servicio ol {
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;
}

.extra-service-card .descripcion-servicio li {
    margin-bottom: 0.2rem;
    color: #475569;
}

.extra-service-card .descripcion-servicio strong {
    color: #0d3875;
    font-weight: 700;
}

.extra-service-card .descripcion-servicio em {
    color: #2F66B4;
    font-style: italic;
}

/* Scrollbar personalizado */
#moreServicesModal .modal-body::-webkit-scrollbar {
    width: 8px;
}

#moreServicesModal .modal-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

#moreServicesModal .modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 15px;
    border: 2px solid #f1f5f9;
}

#moreServicesModal .modal-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Responsive */
@media (max-width: 768px) {
    #moreServicesModal .modal-header {
        padding: 1rem;
    }

    #moreServicesModal .modal-title {
        font-size: 1.2rem;
    }

    #moreServicesModal .btn-close {
        width: 30px;
        height: 30px;
    }

    #moreServicesModal .d-flex.gap-2 {
        flex-direction: column;
    }

    #moreServicesModal #buscadorServicios {
        width: 100%;
    }

    #moreServicesModal #btnLimpiarFiltro {
        width: 100%;
    }

    #moreServicesModal .modal-body {
        padding: 1.2rem;
    }

    .extra-service-card {
        padding: 1rem;
    }

    .extra-service-card img {
        height: 120px;
    }

    .extra-service-card h6 {
        font-size: 0.95rem;
        min-height: auto;
    }
}


/* ============================================
   MEGA MENÚ SERVICIOS - ESTILO CORPORATIVO SH
   ============================================ */

/* Grupo del menú */
.group:hover .group-hover\:visible {
    visibility: visible !important;
}

.group:hover .group-hover\:opacity-100 {
    opacity: 1 !important;
}

/* Transiciones */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.duration-300 {
    transition-duration: 300ms;
}

/* Rotación de la flecha */
.group:hover .group-hover\:rotate-180 {
    transform: rotate(180deg);
}

/* Estilos del mega menú */
.mega-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0.5rem;
    width: 800px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 50;
}

.group:hover .mega-menu {
    opacity: 1;
    visibility: visible;
}

.mega-menu-content {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

/* Header del menú */
.mega-menu-header {
    background: linear-gradient(to right, #0A5ED6, #1C7AFF);
    padding: 1rem 1.5rem;
}

.mega-menu-header h3 {
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

/* Grid de 3 columnas */
.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.mega-menu-column {
    padding: 1.25rem;
}

.mega-menu-column:not(:last-child) {
    border-right: 1px solid #e5e7eb;
}

/* Títulos de las columnas */
.mega-menu-column h4 {
    color: #363A51;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid #bfdbfe;
    padding-bottom: 0.5rem;
}

/* ============================================
   VIÑETAS ELEGANTES - VERSIÓN MEJORADA
   ============================================ */

/* Lista de servicios */
.mega-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-list li {
    margin-bottom: 0.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.mega-menu-list li a {
    display: block;
    font-size: 0.875rem;
    color: #374151;
    text-decoration: none;
    transition: all 0.3s ease;
    padding-left: 1.8rem !important;
    line-height: 1.4;
    position: relative;
}

/* Flecha animada con gradiente */
.mega-menu-list li a::before {
    content: '➨';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #0d3875;
    font-weight: bold;
    font-size: 1rem;
    opacity: 0.5;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Efecto hover - flecha se mueve y cambia color */
.mega-menu-list li a:hover::before {
    opacity: 1;
    color: #1C7AFF;
    transform: translateY(-50%) translateX(5px);
}

.mega-menu-list li a:hover {
    color: #1C7AFF;
    padding-left: 2.2rem !important;
}

/* Línea decorativa inferior */
.mega-menu-list li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 1.8rem;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #1C7AFF, #0d3875, transparent);
    transition: width 0.3s ease;
}

.mega-menu-list li a:hover::after {
    width: calc(100% - 1.8rem);
}

/* Footer del menú */
.mega-menu-footer {
    background: #f9fafb;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mega-menu-contact {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mega-menu-contact-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: #4b5563;
}

.mega-menu-contact-item svg {
    width: 1rem;
    height: 1rem;
}

.mega-menu-footer a {
    font-size: 0.875rem;
    color: #7D91C9;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.3s ease;
    position: relative;
    padding-right: 1.2rem;
}

.mega-menu-footer a::after {
    content: '→';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.mega-menu-footer a:hover {
    color: #1C7AFF;
    padding-right: 1.8rem;
}

.mega-menu-footer a:hover::after {
    opacity: 1;
    right: -2px;
}

.mega-menu-footer a svg {
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s;
}

.mega-menu-footer a:hover svg {
    transform: translateX(5px);
}

/* Flecha del menú principal */
.nav-link svg {
    transition: transform 0.3s;
}

/* Responsive */
@media (max-width: 1024px) {
    .mega-menu {
        display: none;
    }
}

/* Estilizar el scrollbar del mega menú */
.grid.grid-cols-3.max-h-\[70vh\].overflow-y-auto::-webkit-scrollbar {
    width: 8px;
}

.grid.grid-cols-3.max-h-\[70vh\].overflow-y-auto::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.grid.grid-cols-3.max-h-\[70vh\].overflow-y-auto::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
    border: 2px solid #f1f5f9;
}

.grid.grid-cols-3.max-h-\[70vh\].overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Animación de entrada del menú */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}


.close-menu-link:active+*,
.close-menu-link:active~* {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Restaurar después de la interacción */
.group:active #mega-menu {
    transition-delay: 0.2s;
}

/* Asegurar que el hover siga funcionando */
.group:hover #mega-menu {
    opacity: 1 !important;
    visibility: visible !important;
}