/* ==========================================
   EPMT-G Custom Styles — Basado en Crafto
   ========================================== */

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HEADER: top-bar + navbar unificados
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Barra superior de contacto — light */
.epmt-topbar {
    background-color: #f5f5f5;
    height: 38px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
.epmt-topbar .text-white {
    color: #555555 !important;
}
.epmt-topbar a.text-white {
    color: #555555 !important;
    text-decoration: none;
}
.epmt-topbar a.text-white:hover {
    color: #FF8C00 !important;
    opacity: 1 !important;
}
.epmt-topbar .opacity-6,
.epmt-topbar .opacity-7 {
    opacity: 0.9 !important;
}

/* Navbar principal: clara, con separador naranja-negro */
header nav.epmt-navbar {
    background-color: #ffffff !important;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #FF8C00 0%, #ffffff 100%) 1;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Al hacer scroll (sticky-active), sombra sutil */
header.sticky.sticky-active nav.epmt-navbar {
    background-color: #ffffff !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

/* Links del nav — texto oscuro */
header nav.epmt-navbar .navbar-nav .nav-link {
    color: #2d2d2d !important;
    font-weight: 500;
    transition: color 0.2s ease;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap;
}
header nav.epmt-navbar .navbar-nav .nav-link i {
    font-size: 13px;
    flex-shrink: 0;
    display: inline-block !important;
    line-height: 1;
    vertical-align: middle;
}
header nav.epmt-navbar .navbar-nav .nav-link:hover,
header nav.epmt-navbar .navbar-nav .nav-item:hover > .nav-link {
    color: #FF8C00 !important;
    opacity: 1 !important;
}

/* Dropdown */
header nav.epmt-navbar .dropdown-menu {
    border-top: 2px solid #FF8C00;
}

/* Toggler lines (móvil) */
header nav.epmt-navbar .navbar-toggler-line {
    background-color: #333333 !important;
}

/* ── Botón "Iniciar sesión" en el navbar ── */
.epmt-nav-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    background: linear-gradient(90deg, #FF8C00 0%, #ffffff 100%);
    color: #333333 !important;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: opacity 0.2s, box-shadow 0.2s, transform 0.15s;
    box-shadow: 0 4px 14px rgba(255,140,0,0.40);
    border: none;
}
.epmt-nav-login-btn:hover {
    opacity: 0.88;
    box-shadow: 0 6px 20px rgba(255,140,0,0.55);
    transform: translateY(-1px);
    color: #111111 !important;
}
/* Versión móvil dentro del collapse */
header nav.epmt-navbar .navbar-collapse .epmt-nav-login-btn {
    display: inline-flex;
    margin: 8px 0 4px 0;
    font-size: 14px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PAGE HERO — banner de título interior
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Overlay oscuro con gradiente sobre la imagen de fondo */
section.cover-background.ipad-top-space-margin {
    min-height: 340px;
    position: relative;
}
section.cover-background.ipad-top-space-margin::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 12, 28, 0.72) 0%, rgba(10, 12, 28, 0.55) 100%);
    z-index: 0;
}
/* El container y la ola SVG deben quedar sobre el overlay */
section.cover-background.ipad-top-space-margin .container,
section.cover-background.ipad-top-space-margin .shape-image-animation {
    position: relative;
    z-index: 1;
}

/* Columna del contenido: centrado flexible */
.epmt-page-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* Pill / badge superior */
.epmt-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    border-radius: 100px;
    padding: 6px 20px;
    margin-bottom: 18px;
}

/* Título principal del banner */
.epmt-hero-title {
    font-size: clamp(26px, 5vw, 46px);
    line-height: 1.18;
    letter-spacing: -1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65), 0 4px 32px rgba(0, 0, 0, 0.55);
    margin-bottom: 22px !important;
}

/* Línea decorativa gradiente bajo el título */
.epmt-hero-divider {
    width: 64px;
    height: 4px;
    background: linear-gradient(90deg, #FF8C00, #ffffff);
    border-radius: 2px;
    margin: 0 auto;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   GRADIENTES (reutilizables)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.bg-gradient-purple-pink {
    background: linear-gradient(135deg, #FF8C00 0%, #ffffff 100%);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CTA STRIP — franja de llamada a acción
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
section.bg-gradient-purple-pink .btn-white {
    color: #FF8C00 !important;
    background-color: #fff !important;
    border: none;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}
section.bg-gradient-purple-pink .btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.25);
    color: #cc7000 !important;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   BLOG / NOTICIAS — tarjetas de igual altura
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.blog-grid .grid-item .card {
    height: 390px;
    display: flex;
    flex-direction: column;
}
.blog-grid .grid-item .card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.blog-grid .grid-item .card .card-body .author {
    margin-top: auto;
}
.blog-grid .grid-item .card .card-body p {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SERVICE CARDS hover
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.transition-all {
    transition: all 0.3s ease;
}
.box-shadow-extra-large-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12) !important;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   STATS COUNTER
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.counter-style-02 .counter-number {
    min-height: 54px; /* evita salto de layout mientras anima */
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FOOTER — light theme
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Fondo general del footer */
footer.footer-dark,
footer.footer-dark.bg-dark-gray {
    background-color: #f5f5f7 !important;
}

/* Franja superior del footer (logo + redes) */
footer.footer-dark > div.bg-dark-gray {
    background-color: #ececec !important;
}

/* Todos los textos blancos → oscuros */
footer.footer-dark .text-white {
    color: #2d2d2d !important;
}
footer.footer-dark .text-white.opacity-6,
footer.footer-dark span.text-white.opacity-6,
footer.footer-dark a.text-white.opacity-6 {
    color: #555555 !important;
    opacity: 1 !important;
}
footer.footer-dark .text-white.opacity-5,
footer.footer-dark p.text-white.opacity-5 {
    color: #888888 !important;
    opacity: 1 !important;
}
footer.footer-dark span.text-white.opacity-3 {
    color: #cccccc !important;
    opacity: 1 !important;
}

/* Bordes: de transparente-blanco → transparente-gris */
footer.footer-dark .border-color-transparent-white-light {
    border-color: rgba(0,0,0,0.10) !important;
}

/* Links del footer */
.footer-dark .footer-link-hover {
    color: #555555 !important;
    opacity: 1 !important;
    transition: color 0.2s ease, opacity 0.2s ease;
}
.footer-dark .footer-link-hover:hover {
    color: #FF8C00 !important;
    opacity: 1 !important;
    text-decoration: none;
}

/* Redes sociales en footer */
.epmt-footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0,0,0,0.07);
    color: #555555 !important;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, transform 0.15s;
}
.epmt-footer-social:hover {
    background: #FF8C00;
    color: #fff !important;
    transform: translateY(-2px);
}
footer.footer-dark a.text-white.opacity-6 {
    color: #666666 !important;
    opacity: 1 !important;
}
footer.footer-dark a.text-white.opacity-6:hover {
    color: #FF8C00 !important;
    opacity: 1 !important;
}

/* Copyright links */
footer.footer-dark a.text-white.opacity-5 {
    color: #888888 !important;
    opacity: 1 !important;
}
footer.footer-dark a.text-white.opacity-5:hover {
    color: #FF8C00 !important;
}

/* Separador naranja en la parte superior del footer */
footer.footer-dark {
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, #FF8C00 0%, #ffffff 100%) 1;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   LOTAIP — árbol año → mes → documentos
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Sidebar panel */
.lotaip-sidebar {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    overflow: hidden;
    position: sticky;
    top: 90px;
}
.lotaip-sidebar-header {
    background: #1a1d3a;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    padding: 14px 20px;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #FF8C00, #ffffff) 1;
}
.lotaip-literal-list {
    list-style: none;
    margin: 0;
    padding: 10px 0;
    max-height: 72vh;
    overflow-y: auto;
}
.lotaip-literal-list::-webkit-scrollbar { width: 4px; }
.lotaip-literal-list::-webkit-scrollbar-thumb { background: #d0d4f0; border-radius: 2px; }

.lotaip-literal-link {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 18px;
    text-decoration: none;
    color: #555;
    font-size: 13px;
    line-height: 1.45;
    border-left: 3px solid transparent;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
    cursor: pointer;
}
.lotaip-literal-link:hover {
    background: #fff3e0;
    color: #FF8C00;
    border-left-color: #FF8C00;
}
.lotaip-literal-link.active {
    background: #ffe5b4;
    color: #cc7000;
    border-left-color: #FF8C00;
    font-weight: 600;
}
.lotaip-literal-abbr {
    flex-shrink: 0;
    background: #FF8C00;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
    padding: 2px 7px;
    white-space: nowrap;
    margin-top: 1px;
}
.lotaip-literal-link.active .lotaip-literal-abbr {
    background: #cc7000;
}
.lotaip-literal-text {
    flex: 1;
}

/* Right panel header */
.lotaip-panel-header {
    background: #fff;
    border-radius: 10px;
    border-left: 4px solid #FF8C00;
    padding: 18px 22px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* Year accordion */
.lotaip-year-item {
    margin-bottom: 8px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.lotaip-year-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1a1d3a;
    color: #fff;
    border: none;
    padding: 14px 20px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
    text-align: left;
}
.lotaip-year-btn:hover,
.lotaip-year-btn:not(.collapsed) {
    background: #FF8C00;
}
.lotaip-year-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}
.lotaip-year-count {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.7;
}
.lotaip-chevron {
    transition: transform 0.25s ease;
    flex-shrink: 0;
}
.lotaip-year-btn:not(.collapsed) .lotaip-chevron {
    transform: rotate(180deg);
}

/* Year body */
.lotaip-year-body {
    background: #f8f8ff;
    padding: 12px 14px;
    border: 1px solid #e5e2f5;
    border-top: none;
    border-radius: 0 0 10px 10px;
}

/* Month accordion */
.lotaip-month-item {
    margin-bottom: 6px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0ddf5;
    background: #fff;
}
.lotaip-month-btn {
    width: 100%;
    display: flex;
    align-items: center;
    background: #fff;
    border: none;
    padding: 11px 16px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: background 0.18s;
    text-align: left;
}
.lotaip-month-btn:hover {
    background: #fff3e0;
    color: #FF8C00;
}
.lotaip-month-btn:not(.collapsed) {
    background: #ffe5b4;
    color: #cc7000;
}
.lotaip-badge {
    background: #FF8C00;
    color: #fff;
    font-size: 10px;
    border-radius: 20px;
    padding: 2px 8px;
}
.lotaip-chevron-sm {
    font-size: 12px;
    transition: transform 0.22s ease;
    flex-shrink: 0;
    color: #999;
}
.lotaip-month-btn:not(.collapsed) .lotaip-chevron-sm {
    transform: rotate(180deg);
    color: #FF8C00;
}

/* Documents list */
.lotaip-doc-list {
    list-style: none;
    margin: 0;
    padding: 4px 14px 10px 14px;
    background: #fff;
}
.lotaip-doc-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 6px;
    border-bottom: 1px dashed #eee;
    font-size: 13.5px;
}
.lotaip-doc-item:last-child { border-bottom: none; }
.lotaip-doc-name {
    flex: 1;
    color: #444;
    line-height: 1.4;
}
.lotaip-doc-link {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: #FF8C00;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.18s;
}
.lotaip-doc-link:hover {
    background: #e07a00;
    color: #fff;
}

/* Responsive */
@media (max-width: 991px) {
    .lotaip-sidebar {
        position: static;
    }
    .lotaip-literal-list {
        max-height: 45vh;
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ACCORDION TRÁMITES
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.accordion-style-06 .accordion-arrow {
    transition: transform 0.3s ease;
}
.accordion-style-06 .accordion-item .accordion-header a[aria-expanded="true"] .accordion-arrow {
    transform: rotate(180deg);
}
.accordion-style-06 .accordion-item {
    border-radius: 8px !important;
    margin-bottom: 10px;
    overflow: hidden;
    border: 1px solid #eee;
}
.accordion-style-06 .accordion-item.active-accordion {
    background-image: linear-gradient(to top, #e8effc, #f5f8ff, #ffffff);
    border-color: #d0daf5;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ── Tablet / menú colapsado (< 992 px) ── */
@media (max-width: 991px) {
    header nav.epmt-navbar {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    /* Menú hamburguesa: fondo claro al desplegarse */
    header nav.epmt-navbar .navbar-collapse {
        background-color: #ffffff;
        border-radius: 8px;
        padding: 10px 15px 15px;
        margin-top: 8px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
        border: 1px solid #eeeeee;
    }
    header nav.epmt-navbar .navbar-collapse .nav-link {
        color: #2d2d2d !important;
        padding: 12px 8px !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        white-space: nowrap;
    }
    header nav.epmt-navbar .navbar-collapse .nav-link:hover {
        color: #FF8C00 !important;
    }
    header nav.epmt-navbar .navbar-collapse .nav-link i {
        font-size: 18px;
        flex-shrink: 0;
        display: inline-block !important;
        width: 22px;
        text-align: center;
        vertical-align: middle;
    }
    header nav.epmt-navbar .navbar-collapse .nav-item:last-child .nav-link {
        border-bottom: none;
    }
    /* Botón login en menú móvil — no extender a full width */
    header nav.epmt-navbar .navbar-collapse .epmt-nav-login-btn {
        display: inline-flex !important;
        width: auto !important;
        max-width: fit-content;
        margin-top: 10px;
        padding: 8px 20px !important;
        border-bottom: none !important;
    }

    /* Menú full-screen de Crafto: anular override de color oscuro para que Crafto use fondo oscuro nativo */
    .navbar-full-screen-menu-inner .navbar-nav .nav-link {
        color: #ffffff !important;
    }
    .navbar-full-screen-menu-inner .navbar-nav .nav-link:hover {
        color: #FF8C00 !important;
    }
    .navbar-full-screen-menu-inner .navbar-nav .dropdown-menu a {
        color: rgba(255,255,255,0.75) !important;
    }
    .navbar-full-screen-menu-inner .navbar-nav .dropdown-menu a:hover {
        color: #FF8C00 !important;
        opacity: 1 !important;
    }

    /* Contador: fuente menor en tablet */
    .counter-number.fs-45 {
        font-size: 32px !important;
        line-height: 38px !important;
    }

    /* Cards de servicio: padding reducido en tablet */
    .feature-box.p-30px {
        padding: 22px !important;
    }
}

/* ── Móvil (< 768 px) ── */
@media (max-width: 767px) {
    /* Cards misión/visión: padding reducido */
    .bg-very-light-gray.p-45px {
        padding: 24px !important;
    }

    /* Icono de servicio: tamaño reducido */
    .feature-box-icon.w-60px.h-60px {
        width: 46px !important;
        height: 46px !important;
        min-width: 46px;
        flex-shrink: 0;
    }
    .feature-box-icon.w-60px.h-60px i {
        font-size: 18px !important;
    }

    /* Cards: padding y fuentes más compactos */
    .feature-box.p-30px {
        padding: 16px !important;
    }
    .feature-box-content span.fs-17 {
        font-size: 15px !important;
    }

    /* Contador */
    .counter-number.fs-45 {
        font-size: 26px !important;
        line-height: 32px !important;
    }

    /* CTA: texto más pequeño */
    section.bg-gradient-purple-pink .fs-18 {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }
    section.bg-gradient-purple-pink {
        padding-top: 28px !important;
        padding-bottom: 28px !important;
    }

    /* Footer: columna única ocupa bien el espacio */
    footer .col {
        padding-left: 5px;
        padding-right: 5px;
    }
}

/* ── Teléfonos pequeños (< 576 px) ── */
@media (max-width: 575px) {
    /* Botón CTA: ancho completo */
    section.bg-gradient-purple-pink .btn-white {
        width: 100%;
        text-align: center;
        margin-top: 15px;
    }

    /* Grid de noticias: forzar 1 columna (override isotope) */
    .blog-grid.xs-grid-1col {
        height: auto !important;
    }
    .blog-grid.xs-grid-1col .grid-item {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        width: 100% !important;
        margin-bottom: 24px;
    }
    .blog-grid.xs-grid-1col .grid-sizer {
        display: none;
    }

    /* Stats: quitar borde derecho sobrante en 2 columnas */
    .bg-dark-gray .col.border-end {
        border-right: none !important;
    }
    .bg-dark-gray .row > .col {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .bg-dark-gray .row > .col:last-child {
        border-bottom: none;
    }

    /* Altura del slider: reducir en móvil */
    .swiper-slide[style*="height: 700px"] {
        height: 420px !important;
    }
}
