/* Estilos compartidos para todas las páginas REDBO */
@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,500,600,700');

/* ========================================
   ESTILOS DE IMÁGENES HOVER
   ======================================== */
.hover-zoom img {
    transition: transform 0.2s ease-out;
}

.hover-zoom:hover img {
    transform: scale(1.05);
}

/* ========================================
   ESTILOS DE MODAL
   ======================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1001;
}

.modal-content.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 30px;
}

.modal-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 25px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.modal-description {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
    text-align: left;
}

.modal-description p {
    margin-bottom: 15px;
}

.modal-features {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    margin-top: 20px;
}

.modal-features h3 {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    text-align: left;
}

.modal-features ul {
    list-style: none;
    padding: 0;
}

.modal-features li {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
}

.modal-features li:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-title {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
}

/* ========================================
   ESTILOS DE PAGINACIÓN (CARRUSEL)
   ======================================== */
.pagination-carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 30px;
    position: relative;
}

.pagination-carousel-container {
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 100%;
    max-width: 600px;
    position: relative;
}

.pagination-carousel {
    display: flex;
    transition: transform 0.3s ease-in-out;
    width: 100%;
}

.pagination-group {
    justify-content: center;
    min-width: 100%;
    padding: 0 20px;
}

.page-item {
    margin: 0 3px;
}

.page-link,
.active-page {
    display: inline-block;
    min-width: 40px;
    height: 40px;
    padding: 0;
    text-align: center;
    line-height: 40px;
    text-decoration: none;
    color: #333;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'Source Sans Pro', sans-serif;
}

.page-link:hover {
    background-color: #005487;
    color: white;
    border-color: #005487;
}

.active-page {
    background-color: #B2B2B2;
    color: white;
    border-color: #B2B2B2;
    cursor: default;
}

.carousel-nav-btn {
    background-color: #B2B2B2;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 10px;
    font-size: 25px;
    font-weight: bold;
}

.carousel-nav-btn:hover {
    background-color: #005487;
    transform: scale(1.1);
}

.carousel-nav-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    transform: none;
    opacity: 0.5;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    gap: 8px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #dee2e6;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background-color: #005487;
}

/* Responsivo para móviles */
@media (max-width: 768px) {
    .page-link,
    .active-page {
        min-width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 12px;
        margin: 0 2px;
    }
    
    .carousel-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
        margin: 0 5px;
    }
    
    .pagination-carousel-container {
        max-width: 100%;
    }
    
    .pagination-carousel-wrapper {
        margin-top: 20px;
    }
    
    .pagination-group {
        padding: 0 10px;
    }
}

/* ========================================
   ESTILOS DEL MENÚ DE PRODUCTOS
   ======================================== */
.portfolio-menu button:hover {
    background-color: #005487;
    color: white;
    border-color: #005487;
}

.portfolio-menu .button {
    position: relative;
}

/* Dropdown de submenú */
.submenu-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 5px;
}

.submenu-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu-item {
    display: block;
    padding: 0.3rem 1.2rem;
    color: #212931;
    text-decoration: none;
    font-size: 0.85rem;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    cursor: pointer;
}

.submenu-item:hover {
    background-color: #f8f9fa;
    color: #005487;
}

.submenu-item:last-child {
    border-bottom: none;
}

.submenu-item-wrapper {
    position: relative;
}

/* Tercer nivel de menú */
.third-level-dropdown {
    position: absolute;
    left: 100%;
    top: 0;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    margin-left: 5px;
}

.third-level-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.third-level-item {
    display: block;
    padding: 0.3rem 1rem;
    color: #212931;
    text-decoration: none;
    font-size: 0.8rem;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.2s ease;
}

.third-level-item:hover {
    background-color: #f0f7ff;
    color: #005487;
}

.third-level-item:last-child {
    border-bottom: none;
}

/* Menú de navegación (accordion) */
.accordion-menu .submenu {
    display: none;
    margin-left: 15px;
}

.accordion-menu .submenu-btn {
    cursor: pointer;
    display: block;
}

/* Responsive para menús */
@media (max-width: 768px) {
    .portfolio-menu {
        text-align: center;
    }
    
    .portfolio-menu button {
        display: block;
        width: 100%;
        max-width: 200px;
        margin: 0.3rem auto;
    }
    
    .submenu-dropdown {
        position: static;
        margin-top: 0;
        box-shadow: none;
        border: none;
        background-color: #f8f9fa;
        transform: none;
    }
    
    .third-level-dropdown {
        position: static;
        margin-left: 0;
        box-shadow: none;
        border: none;
        background-color: #e9ecef;
        transform: none;
    }
}

/* ========================================
   ESTILOS ADICIONALES
   ======================================== */

/* Menú segundo-nivel */
.segundo-nivel {
    text-align: center;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.segundo-nivel button {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 15px;
    padding: 6px 15px;
    border: none;
    background: none;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
    box-shadow: 0 0;
}

.segundo-nivel button:hover {
    color: #005487;
}

.segundo-nivel .MMA-static {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 20px;
    color: #005487;
    background-color: transparent;
    border: none;
    cursor: default;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 0;
    transition: none;
}

.segundo-nivel a {
    text-decoration: none;
}

@media (max-width: 768px) {
    .segundo-nivel {
        margin: 10px 0;
        padding: 0 10px;
    }
    
    .segundo-nivel button {
        margin: 2px;
    }
}

/* Modal para asistente */
.assistant-modal img {
    width: 85% !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
}
