
/* =========================
   SECCIONES GENERALES
========================== */

.mp-section {
    padding: 1rem 0;
    background-color: #f0f2f5; /* Slightly darker gray */
}

.mp-section-alt {
    background-color: var(--mp-page-bg); /* Light background */
}

.mp-marquee-section {
    background-color: #e0e2e5; /* Distinct background for marquee section */
}

.mp-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.8rem;
}

.mp-section-title {
    margin: 0;
    font-size: 1.45rem;
}

.mp-section-subtitle {
    margin: 0.2rem 0 0;
    font-size: 0.92rem;
    color: var(--mp-muted);
}

.mp-section-actions {
    font-size: 0.85rem;
}

.mp-pill-soft {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.06);
    color: var(--mp-muted);
    font-size: 0.78rem;
}

.mp-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.3rem;
}

@media (max-width: 991.98px) {
    .mp-section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .mp-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .mp-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Cards */

.mp-card {
    background: #ffffff;
    border-radius: var(--mp-radius-xl);
    border: 1px solid rgba(148, 163, 184, 0.35);
    padding: 1.5rem 1rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative; /* Needed for pseudo-element positioning */
    overflow: hidden; /* Ensures pseudo-element stays within bounds */
    transition: box-shadow 0.3s ease-in-out; /* Smooth transition for shadow */
    cursor: pointer; /* Indicate that the card is clickable */
    min-height: 187px; /* Ensure consistent height for all cards */
}

.mp-card:hover {
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.1); /* Enhanced shadow on hover */
}

.mp-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0; /* Start from left */
    width: 0;
    height: 4px; /* Thickness of the progress bar */
    background-color: var(--mp-primary); /* Use a primary color for the bar */
    transition: width 0.3s ease-in-out; /* Smooth transition for width */
}

.mp-card:hover::after {
    width: 100%; /* Expand to full width on hover */
}

.mp-card-link-wrapper {
    text-decoration: none; /* Remove underline */
    color: inherit; /* Inherit color from parent */
}

.mp-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.7rem;
}

.mp-card-icon {
    width: 80px; /* Doubled size */
    height: 80px; /* Doubled size */
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.mp-card-title {
    font-size: 0.98rem;
    margin: 0;
}

.mp-card-meta {
    font-size: 0.78rem;
    color: var(--mp-muted);
}

.mp-card-body {
    font-size: 0.85rem;
    color: var(--mp-muted);
}

.mp-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.82rem;
}

.mp-card-link {
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Chips, listas */

.mp-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    background: rgba(96, 165, 250, 0.15);
    color: #1d4ed8;
}

.mp-chip-secondary {
    background: rgba(16, 185, 129, 0.1);
    color: #0f766e;
}

.mp-chip-soft {
    background: rgba(148, 163, 184, 0.18);
    color: var(--mp-muted);
}

.mp-chip-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: currentColor;
}

.mp-list {
    list-style: none;
    padding: 0;
    margin: 0.3rem 0 0;
    font-size: 0.84rem;
    color: var(--mp-muted);
}

.mp-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    margin-bottom: 0.2rem;
}

.mp-list li::before {
    content: "•";
    font-size: 0.9rem;
    margin-top: 0.1rem;
    color: var(--mp-primary);
}

/* =========================
   NOTICIAS
========================== */

.mp-news-card {
    background: #ffffff;
    border-radius: var(--mp-radius-xl);
    border: 1px solid rgba(148, 163, 184, 0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mp-news-image {
    height: 150px;
    background-size: cover;
    background-position: center;
}

.mp-news-content {
    padding: 0.9rem 1rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.mp-news-tag {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
}

.mp-news-title {
    font-size: 0.96rem;
    margin: 0;
}

.mp-news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--mp-muted);
}

.mp-button-primary {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--mp-primary); /* Assuming --mp-primary is defined */
    color: #ffffff;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.mp-button-primary:hover {
    color: var(--mp-primary);
    background-color: white; /* Assuming --mp-primary-dark is defined */
}

.mp-button-outline {
    background-color: transparent;
    border: 1px solid var(--mp-primary);
    color: var(--mp-primary);
}

.mp-button-outline:hover {
    background-color: var(--mp-primary);
    color: #ffffff;
}

.mp-hero-app .mp-button-primary svg {
    width: 18px; /* Smaller size for icons in hero app list */
    height: 18px; /* Smaller size for icons in hero app list */
}

.mp-icon-only-button {
    background-color: transparent;
    padding: 0;
    width: 40px; /* Smaller button size */
    height: 40px; /* Smaller button size */
    display: flex;
    align-items: center;
    justify-content: center;
    border: none; /* Remove border */
    color: var(--mp-primary); /* Set icon color */
    border-radius: 50%; /* Make it circular */
    transition: background-color 0.3s ease, color 0.3s ease;
}

.mp-icon-only-button:hover {
    background-color: rgba(var(--mp-primary-rgb), 0.1); /* Light background on hover */
    color: var(--mp-primary-dark); /* Darker icon on hover */
}

.mp-icon-only-button::after {
    /* Remove the progress bar effect for icon-only buttons */
    display: none;
}

.mp-icon-only-button {
    background-color: transparent;
    padding: 0;
    width: 40px; /* Smaller button size */
    height: 40px; /* Smaller button size */
    display: flex;
    align-items: center;
    justify-content: center;
    border: none; /* Remove border */
    color: var(--mp-primary); /* Set icon color */
    border-radius: 50%; /* Make it circular */
    transition: background-color 0.3s ease, color 0.3s ease;
}

.mp-icon-only-button:hover {
    background-color: rgba(var(--mp-primary-rgb), 0.1); /* Light background on hover */
    color: var(--mp-primary-dark); /* Darker icon on hover */
}

.mp-icon-only-button::after {
    /* Remove the progress bar effect for icon-only buttons */
    display: none;
}

.mp-icon-only-button {
    background-color: transparent;
    padding: 0;
    width: 40px; /* Smaller button size */
    height: 40px; /* Smaller button size */
    display: flex;
    align-items: center;
    justify-content: center;
    border: none; /* Remove border */
    color: var(--mp-primary); /* Set icon color */
    border-radius: 50%; /* Make it circular */
    transition: background-color 0.3s ease, color 0.3s ease;
}

.mp-icon-only-button:hover {
    background-color: rgba(var(--mp-primary-rgb), 0.1); /* Light background on hover */
    color: var(--mp-primary-dark); /* Darker icon on hover */
}

.mp-icon-only-button::after {
    /* Remove the progress bar effect for icon-only buttons */
    display: none;
}

.mp-button-transparency {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.mp-button-transparency::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1); /* Darker overlay */
    transform: translateX(-100%); /* Start off-screen to the left */
    transition: transform 0.3s ease-in-out;
    z-index: -1;
}

.mp-button-transparency:hover::after {
    transform: translateX(0); /* Slide in from left on hover */
}

.mp-transparency-card {
    min-height: 250px; /* Adjust as needed for consistent height */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distribute space */
}

.mp-news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* Display 3 cards per row */
}

@media (max-width: 991.98px) {
    .mp-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 cards on medium screens */
    }
}

@media (max-width: 640px) {
    .mp-news-grid {
        grid-template-columns: minmax(0, 1fr); /* 1 card on small screens */
    }
}

/* =========================
   TURISMO
========================== */

.mp-tourism {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 2fr);
    gap: 1.7rem;
    align-items: center;
}

@media (max-width: 900px) {
    .mp-tourism {
        grid-template-columns: minmax(0, 1fr);
    }
}

.mp-tourism-image {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #0f172a;
}

.mp-tourism-body {
    font-size: 0.9rem;
    color: var(--mp-muted);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* =========================
   CONTACTO
========================== */

.mp-contact {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.8fr);
    gap: 1.7rem;
}

@media (max-width: 900px) {
    .mp-contact {
        grid-template-columns: minmax(0, 1fr);
    }
}

.mp-contact-card {
    background: #ffffff;
    border-radius: var(--mp-radius-xl);
    border: 1px solid rgba(148, 163, 184, 0.35);
    padding: 1rem 1.1rem;
    font-size: 0.88rem;
    color: var(--mp-muted);
}

.mp-contact-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.7rem 0.8rem;
}

.mp-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    font-size: 0.82rem;
}

.mp-form-group-full {
    grid-column: 1 / -1;
}

.mp-input,
.mp-textarea {
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    padding: 0.5rem 0.6rem;
    font: inherit;
    resize: vertical;
}

.mp-input:focus,
.mp-textarea:focus {
    outline: none;
    border-color: var(--mp-primary);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
}

.mp-textarea {
    min-height: 90px;
}

.mp-contact-note {
    font-size: 0.75rem;
    color: var(--mp-muted);
    margin-top: 0.4rem;
}

/* =========================
   ACCESOS DIRECTOS
========================== */

.mp-direct-link-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: var(--mp-radius-lg);
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative; /* Needed for pseudo-element positioning */
}

.mp-direct-link-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

.mp-direct-link-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0; /* Start from left */
    width: 0;
    height: 4px; /* Thickness of the progress bar */
    background-color: var(--mp-primary); /* Use a primary color for the bar */
    transition: width 0.3s ease-in-out; /* Smooth transition for width */
}

.mp-direct-link-card:hover::after {
    width: 100%; /* Expand to full width on hover */
}

.mp-direct-link-img {
    width: 100%;
   
    object-fit: cover;
}

.owl-carousel .item img {
    max-width: 100%;
    height: auto;
    object-fit: contain; /* Ensure image fits within its container without cropping */
}

.mp-direct-link-content {
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.mp-direct-link-title {
    font-size: 1.05rem;
    margin: 0 0 0.3rem;
    color: var(--mp-dark);
}

.mp-direct-link-desc {
    font-size: 0.85rem;
    color: var(--mp-muted);
    margin: 0;
    flex-grow: 1;
}

.mp-direct-access-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../public/img/hero2.jpg');
    background-size: cover;
    background-position: center;
    color: #ffffff; /* Ensure text is readable on dark background */
}

.mp-direct-access-section .mp-section-title,
.mp-direct-access-section .mp-section-subtitle {
    color: #ffffff;
}

#direct-links-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)); /* 4 cards per row */
}

@media (max-width: 991.98px) {
    #direct-links-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 cards on medium screens */
    }
}

@media (max-width: 640px) {
    #direct-links-grid {
        grid-template-columns: minmax(0, 1fr); /* 1 card on small screens */
    }
}

/* Owl Carousel Navigation Button Styles */
.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next {
    background-color: var(--mp-primary); /* Use primary color for buttons */
    color: #ffffff; /* White arrow color */
    padding: 0.8rem 1.2rem; /* Increase padding for larger buttons */
    border-radius: 50%; /* Make them circular */
    font-size: 1.5rem; /* Larger arrow icon */
    transition: background-color 0.3s ease;
}

.owl-carousel .owl-nav button.owl-prev:hover,
.owl-carousel .owl-nav button.owl-next:hover {
    background-color: var(--mp-primary-dark); /* Darker on hover */
}

.owl-theme .owl-nav [class*=owl-]:hover {
    background-color: #0284c7; /* Override with specific color */
}

.owl-carousel .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0; /* Remove padding from owl-nav */
    box-sizing: border-box; /* Include padding in width calculation */
}

.owl-carousel .owl-nav button.owl-prev {
    position: absolute;
    left: 0;
    margin: 0; /* Remove negative margin */
}

.owl-carousel .owl-nav button.owl-next {
    position: absolute;
    right: 0;
    margin: 0; /* Remove negative margin */
}

   /* ===== MANUAL CLASIFICADOR DE CARGO (MCC) ===== */

        .mcc-section {
            padding-block: 3rem;
            background: #f9fafb;
        }

        .mcc-layout {
            display: flex;
            gap: 2rem;
            align-items: flex-start;
        }

        /* Columna principal */
        .mcc-main {
            flex: 1 1 60%;
        }

        .mcc-text {
            font-size: 0.98rem;
            line-height: 1.8;
            color: #111827;
            text-align: justify;
            text-justify: inter-word;
            margin-top: 1rem;
            margin-bottom: 1.5rem;
        }

        /* Cards de documentos */
        .mcc-documents {
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
        }

        .mcc-doc-card {
            display: flex;
            gap: 1rem;
            background: #ffffff;
            border-radius: 0.9rem;
            padding: 1.2rem 1.3rem;
            box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
            border: 1px solid rgba(15, 23, 42, 0.06);
        }

        .mcc-doc-icon {
            flex: 0 0 auto;
            width: 48px;
            height: 48px;
            border-radius: 999px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #e5edf7;
            color: #0f4c81;
            font-size: 1.4rem;
        }

        .mcc-doc-body {
            flex: 1 1 auto;
        }

        .mcc-doc-title {
            font-size: 1rem;
            font-weight: 700;
            color: #0f172a;
            margin-bottom: 0.35rem;
        }

        .mcc-doc-text {
            font-size: 0.9rem;
            color: #111827;
            margin-bottom: 0.45rem;
            text-align: justify;
        }

        .mcc-doc-link {
            display: inline-block;
            margin-top: 0.15rem;
            font-size: 0.88rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            padding: 0.4rem 0.8rem;
            border-radius: 999px;
            border: 1px solid #0f4c81;
            color: #0f4c81;
            background: #f1f5f9;
            text-decoration: none;
        }

        .mcc-doc-link i {
            font-size: 0.8rem;
        }

        .mcc-doc-link:hover {
            background: #0f4c81;
            color: #ffffff;
        }

        .mcc-doc-separator {
            height: 1px;
            width: 100%;
            margin: 0.7rem 0 0.6rem;
            background: linear-gradient(to right, rgba(15, 23, 42, 0.2), transparent);
        }

        /* Sidebar */
        .mcc-sidebar {
            flex: 0 0 320px;
            max-width: 360px;
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .mcc-sidebar-card {
            background: #ffffff;
            border-radius: 0.9rem;
            padding: 1rem 1.1rem;
            box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
            border: 1px solid rgba(15, 23, 42, 0.06);
        }

        .mcc-sidebar-title {
            font-size: 0.98rem;
            font-weight: 700;
            margin-bottom: 0.3rem;
            color: #0f172a;
            display: flex;
            align-items: center;
            gap: 0.4rem;
        }

        .mcc-sidebar-icon {
            display: inline-flex;
            width: 24px;
            height: 24px;
            border-radius: 999px;
            align-items: center;
            justify-content: center;
            background: #e5edf7;
            color: #0f4c81;
            font-size: 0.9rem;
        }

        .mcc-sidebar-subtitle {
            font-size: 0.9rem;
            font-weight: 600;
            color: #111827;
            margin-top: 0.6rem;
            margin-bottom: 0.25rem;
        }

        .mcc-sidebar-text {
            font-size: 0.88rem;
            color: #4b5563;
            margin-bottom: 0.1rem;
        }

        /* Responsive */
        @media (max-width: 992px) {
            .mcc-layout {
                flex-direction: column;
            }

            .mcc-sidebar {
                max-width: 100%;
            }
        }