/* RESET GENERAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========================= */
/* BODY GLOBAL CON FONDO     */
/* ========================= */

body {
    background: url('/img/fondo.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #e5e5e5;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* ELIMINAR CUALQUIER OVERLAY GLOBAL */
body::before {
    display: none !important;
}

/* ========================= */
/* CONTENEDORES GENERALES    */
/* ========================= */

section {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 10px;
}

/* ========================= */
/* TITULARES                 */
/* ========================= */

h1, h2, h3 {
    font-weight: bold;
    color: #4fc3f7;
}

.section-desc {
    color: #b5b5b5;
    margin-bottom: 25px;
}
/* === MENU VISUAL PREMIUM DIGITO === */

.menu-visual-section {
    background: rgba(0,0,0,0.45) !important;
    border: 2px solid rgba(30,167,255,0.35) !important;
    border-radius: 1rem !important;
    backdrop-filter: blur(6px) !important;
    box-shadow:
        0 0 18px rgba(30,167,255,0.45),
        0 0 28px rgba(30,167,255,0.25) !important;
    padding: 2rem !important;
    overflow-x: hidden;
}

.menu-visual {
    display: flex;
    justify-content: center;
    gap: 35px;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.menu-item {
    width: 320px;
    text-align: center;
    padding: 1.5rem;
    background: rgba(0,0,0,0.35);
    border: 2px solid rgba(30,167,255,0.35);
    border-radius: 1rem;
    backdrop-filter: blur(6px);
    transition: 0.25s ease;
    box-shadow:
        0 0 12px rgba(30,167,255,0.35),
        0 0 22px rgba(30,167,255,0.25);
}

.menu-item:hover {
    border-color: rgba(30,167,255,0.85);
    box-shadow:
        0 0 18px rgba(30,167,255,0.85),
        0 0 28px rgba(30,167,255,0.55);
    transform: translateY(-4px);
}

.menu-visual-img {
    width: 300px;
    height: auto;
    display: block;
    margin: 0 auto 1rem auto;
    border-radius: 0.6rem;
    box-shadow:
        0 0 12px rgba(30,167,255,0.35),
        0 0 18px rgba(30,167,255,0.25);
}

.menu-item h3 {
    color: #4fc3f7;
    margin-bottom: 0.5rem;
    text-shadow:
        0 0 6px rgba(30,167,255,0.6),
        0 0 12px rgba(30,167,255,0.35);
}

.menu-item a {
    display: inline-block;
    margin-top: 0.8rem;
    padding: 10px 20px;
    background: #0A84FF;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.25s ease;
    box-shadow: 0 0 14px rgba(30,167,255,0.6);
}

.menu-item a:hover {
    background: #0066cc;
    box-shadow: 0 0 22px rgba(30,167,255,1);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .menu-item {
        width: 100%;
        max-width: 320px;
    }

    .menu-visual-img {
        width: 260px;
    }
}

/* ========================= */
/* BOTONES GENERALES         */
/* ========================= */

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 14px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    margin: 10px 0;
    width: 100%;
    max-width: 260px;
    text-align: center;
}

.btn-primary {
    background: #0A84FF;
    color: #fff;
}

.btn-primary:hover {
    background: #0066cc;
}

.btn-secondary {
    background: #333;
    color: #fff;
    border: 1px solid #555;
}

.btn-secondary:hover {
    background: #444;
}

/* ========================= */
/* CABECERA DIGITO (HERO)   */
/* ========================= */

.hero-digito {
    position: relative;
    width: 100%;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 60px 20px 40px;
    background: none;
}

@media (min-width: 768px) {
    .hero-digito {
        min-height: 600px;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 520px;
}

.hero-logo {
    width: 350px;
    max-width: 90%;
    margin-bottom: 25px;
}

.hero-title {
    display: none;
}

.hero-claim {
    font-size: 18px;
    margin-bottom: 30px;
}

.hero-btn {
    background: #0A84FF;
    color: white;
    padding: 16px 32px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    width: 100%;
    max-width: 280px;
    font-size: 18px;
}

/* ========================= */
/* FOOTER                    */
/* ========================= */

footer {
    background: rgba(0, 0, 0, 0.75);
    padding: 40px 20px;
    margin-top: 60px;
    border-top: 1px solid #1f1f1f;
    border-radius: 10px;
}

footer h3 {
    color: #4fc3f7;
    margin-bottom: 10px;
}

footer p,
footer a {
    color: #b5b5b5;
    text-decoration: none;
}

footer a:hover {
    color: #4fc3f7;
}

/* ========================= */
/* FOOTER PAYMENT BANNER FIX */
/* ========================= */

footer .payment-banner {
    width: 100% !important;
    max-width: 420px !important;
    margin: 1.5rem auto !important;
    padding: 10px !important;
    background: transparent !important;
    box-shadow: none !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1.2rem !important;
    border-radius: 0 !important;
}

footer .payment-banner img {
    height: 32px !important;
    width: auto !important;
    opacity: 1 !important;
    background: transparent !important;
}

@media (max-width: 768px) {
    footer .payment-banner {
        max-width: 300px !important;
        gap: 0.8rem !important;
    }

    footer .payment-banner img {
        height: 26px !important;
    }
}

/* ========================= */
/* SERVICIOS PROFESIONALES   */
/* ========================= */

.servicio-box {
    background: none !important; /* FONDO DINÁMICO RESTAURADO */
    border: 2px solid rgba(30,167,255,0.35) !important;
    border-radius: 1rem !important;
    padding: 1.8rem !important;
    margin-bottom: 2rem !important;
    backdrop-filter: blur(6px) !important;
    transition: 0.25s ease !important;
    box-shadow:
        0 0 12px rgba(30,167,255,0.45),
        0 0 22px rgba(30,167,255,0.25) !important;
}

.servicio-box:hover {
    border-color: rgba(30,167,255,0.85) !important;
    box-shadow:
        0 0 18px rgba(30,167,255,0.85),
        0 0 28px rgba(30,167,255,0.55) !important;
    transform: translateY(-3px);
}

.servicio-box h3 {
    font-size: 1.4rem !important;
    font-weight: bold !important;
    color: #ffffff !important;
    text-shadow:
        0 0 8px rgba(255,255,255,0.8),
        0 0 14px rgba(30,167,255,0.4) !important;
    margin-bottom: 0.5rem !important;
}

.servicio-box h3 a {
    color: inherit !important;
    text-decoration: none !important;
}

/* ========================= */
/* BOTONES QUE DESAPARECÍAN  */
/* ========================= */

.btn-buscador-pro {
    display: inline-block !important;
    padding: 14px 26px !important;
    background: #0A84FF !important;
    color: #fff !important;
    border-radius: 10px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    transition: 0.25s ease !important;
    box-shadow: 0 0 14px rgba(30, 167, 255, 0.6) !important;
    font-size: 1.1rem !important;
    margin-top: 1rem !important;
    position: relative !important;
    z-index: 9999 !important;
}

.btn-buscador-pro:hover {
    background: #0066cc !important;
    box-shadow: 0 0 22px rgba(30, 167, 255, 1) !important;
    transform: translateY(-2px) !important;
}

.panel .btn-buscador-pro {
    width: 100% !important;
    margin-top: 0.8rem !important;
    text-align: center !important;
}

/* ========================= */
/* HEADER PREMIUM DIGITO     */
/* ========================= */

.header-digito {
    width: 100%;
    padding: 1.2rem 0;
    background: rgba(0,0,0,0.35) !important;
    border-bottom: 2px solid rgba(30,167,255,0.35) !important;
    backdrop-filter: blur(8px) !important;
    box-shadow: 0 0 18px rgba(30,167,255,0.35) !important;
    position: relative;
    z-index: 999;
}

.header-inner {
    max-width: 1200px !important;
    margin: 0 auto !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

.nav-left, .nav-right {
    display: flex;
    gap: 1.8rem;
}

.header-digito a {
    color: #fff !important;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
}

.header-digito a:hover {
    color: #1ea7ff !important;
}

/* ========================= */
/* RESPONSIVE GENERAL        */
/* ========================= */

@media (max-width: 768px) {

    body {
        background-size: cover;
        padding: 0;
        margin: 0;
    }

    .header-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .nav-left, .nav-right {
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .header-search .search-input {
        width: 90%;
        max-width: 350px;
    }

    .logo-block {
        padding: 2rem 1rem;
        margin: 1rem;
    }

    .logo-block img {
        width: 200px;
    }

    .panel {
        position: static !important;
        width: 100% !important;
        margin: 1rem 0;
    }

    .bloques-wrapper {
        width: 100%;
        padding: 0 1rem;
    }

    .center-block {
        width: 100%;
        padding: 1rem;
        box-sizing: border-box;
    }

    .ecosistema-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    footer .payment-banner img {
        width: 60px;
    }

    .footer-social {
        display: flex;
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
    }
}
/* === CENTRAR COMPLETAMENTE EL BLOQUE "DIGITO · Redes & Pagos" === */

/* Centrar el título */
footer.center-block h2 {
    text-align: center !important;
    width: 100%;
}

/* Centrar el banner de pagos */
footer .payment-banner {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}

/* Centrar los iconos de redes sociales */
footer .footer-social {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1.5rem;
    margin-top: 1.5rem;
    width: 100%;
}

/* Asegurar que cada icono está centrado */
footer .footer-social a {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
}
/* === RESTAURAR FOOTER HORIZONTAL TIPO AMAZON === */

.footer-horizontal {
    background: rgba(0, 0, 0, 0.75) !important;
    padding: 40px 20px !important;
    border-top: 1px solid #1f1f1f !important;
    border-radius: 10px !important;
    margin-top: 40px !important;
}

.footer-horizontal .footer-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    flex-wrap: wrap !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    gap: 2rem !important;
}

.footer-horizontal .footer-col {
    width: 100% !important;
    max-width: 260px !important;
}

.footer-horizontal .footer-col h4 {
    color: #4fc3f7 !important;
    margin-bottom: 12px !important;
}

.footer-horizontal .footer-col ul {
    list-style: none !important;
    padding: 0 !important;
}

.footer-horizontal .footer-col ul li {
    margin: 6px 0 !important;
}

.footer-horizontal .footer-col ul li a {
    color: #b5b5b5 !important;
    text-decoration: none !important;
}

.footer-horizontal .footer-col ul li a:hover {
    color: #4fc3f7 !important;
}

/* Centrar el copy final */
.footer-copy {
    text-align: center !important;
    margin-top: 30px !important;
    padding-top: 20px !important;
    border-top: 1px solid #1f1f1f !important;
    color: #777 !important;
}
/* === FOOTER HORIZONTAL PREMIUM DIGITO (tipo Amazon) === */

.footer-horizontal {
    background: rgba(0, 0, 0, 0.65) !important;
    padding: 50px 20px !important;
    border-top: 2px solid rgba(30,167,255,0.35) !important;
    border-radius: 12px !important;
    margin-top: 60px !important;
    box-shadow:
        0 0 18px rgba(30,167,255,0.35),
        0 0 28px rgba(30,167,255,0.25) !important;
    backdrop-filter: blur(6px) !important;
}

/* Contenedor de columnas */
.footer-horizontal .footer-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    flex-wrap: wrap !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    gap: 2.5rem !important;
}

/* Columnas */
.footer-horizontal .footer-col {
    width: 100% !important;
    max-width: 260px !important;
}

/* Títulos con glow suave */
.footer-horizontal .footer-col h4 {
    font-size: 1.2rem !important;
    margin-bottom: 14px !important;
    color: #4fc3f7 !important;
    text-shadow:
        0 0 6px rgba(30,167,255,0.6),
        0 0 12px rgba(30,167,255,0.35) !important;
}

/* Listas */
.footer-horizontal .footer-col ul {
    list-style: none !important;
    padding: 0 !important;
}

.footer-horizontal .footer-col ul li {
    margin: 8px 0 !important;
}

/* Enlaces premium */
.footer-horizontal .footer-col ul li a {
    color: #d0d0d0 !important;
    text-decoration: none !important;
    transition: 0.25s ease !important;
}

.footer-horizontal .footer-col ul li a:hover {
    color: #4fc3f7 !important;
    text-shadow:
        0 0 6px rgba(30,167,255,0.6),
        0 0 12px rgba(30,167,255,0.35) !important;
    transform: translateX(3px);
}

/* Copy final */
.footer-copy {
    text-align: center !important;
    margin-top: 40px !important;
    padding-top: 20px !important;
    border-top: 1px solid rgba(255,255,255,0.15) !important;
    color: #999 !important;
    font-size: 0.9rem !important;
}
/* === FIX: Centrar bloque Ecosistema DIGITO en móvil === */
@media (max-width: 768px) {

    /* Centrar el texto del bloque */
    .center-block h2,
    .center-block p {
        text-align: center !important;
    }

    /* Centrar los botones del ecosistema */
    .ecosistema-buttons {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        gap: 1rem !important;
        margin: 0 auto !important;
        text-align: center !important;
    }

    .ecosistema-buttons a {
        width: 100% !important;
        max-width: 260px !important;
        text-align: center !important;
    }
}
.matrix {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.matrix-item {
    width: 200px; /* un poco más que la imagen */
    text-align: center;
}
/* === MENU VISUAL (3 imágenes en un bloque) === */

.menu-visual {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    width: 50%;
    margin-top: 20px;
}

.menu-item {
    width: 320px;
    text-align: center;
}

.menu-visual-img {
    width: 300px;
    height: auto;
    display: block;
    margin: 0 auto 1rem auto;
}

/* Evitar scroll horizontal */
.menu-visual-section {
    overflow-x: hidden;
}
/* === MENU VISUAL PREMIUM DIGITO — 3 BLOQUES EN HORIZONTAL === */

.menu-visual-section {
    background: rgba(0,0,0,0.45) !important;
    border: 2px solid rgba(30,167,255,0.35) !important;
    border-radius: 1rem !important;
    backdrop-filter: blur(6px) !important;
    box-shadow:
        0 0 18px rgba(30,167,255,0.45),
        0 0 28px rgba(30,167,255,0.25) !important;
    padding: 2rem !important;
    overflow-x: hidden;
}

/* CONTENEDOR: fuerza alineación horizontal */
.menu-visual {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 25px;
    width: 100%;
    flex-wrap: nowrap; /* ← CLAVE: NO PERMITIR SALTOS */
    overflow-x: auto;  /* ← evita scroll lateral del body */
    padding-bottom: 10px;
}

/* BLOQUES: más estrechos para que quepan los 3 */
.menu-item {
    width: 260px; /* ← antes 320px, ahora caben los 3 */
    text-align: center;
    padding: 1.2rem;
    background: rgba(0,0,0,0.35);
    border: 2px solid rgba(30,167,255,0.35);
    border-radius: 1rem;
    backdrop-filter: blur(6px);
    transition: 0.25s ease;
    box-shadow:
        0 0 12px rgba(30,167,255,0.35),
        0 0 22px rgba(30,167,255,0.25);
}

.menu-item:hover {
    border-color: rgba(30,167,255,0.85);
    box-shadow:
        0 0 18px rgba(30,167,255,0.85),
        0 0 28px rgba(30,167,255,0.55);
    transform: translateY(-4px);
}

/* IMÁGENES: ajustadas a 240px para encajar */
.menu-visual-img {
    width: 240px;
    height: auto;
    display: block;
    margin: 0 auto 1rem auto;
    border-radius: 0.6rem;
    box-shadow:
        0 0 12px rgba(30,167,255,0.35),
        0 0 18px rgba(30,167,255,0.25);
}

.menu-item h3 {
    color: #4fc3f7;
    margin-bottom: 0.5rem;
    text-shadow:
        0 0 6px rgba(30,167,255,0.6),
        0 0 12px rgba(30,167,255,0.35);
}

.menu-item a {
    display: inline-block;
    margin-top: 0.8rem;
    padding: 10px 20px;
    background: #0A84FF;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.25s ease;
    box-shadow: 0 0 14px rgba(30,167,255,0.6);
}

.menu-item a:hover {
    background: #0066cc;
    box-shadow: 0 0 22px rgba(30,167,255,1);
    transform: translateY(-2px);
}

/* RESPONSIVE: en móvil sí se apilan */
@media (max-width: 768px) {
    .menu-visual {
        flex-wrap: wrap;
        overflow-x: hidden;
    }

    .menu-item {
        width: 100%;
        max-width: 300px;
    }

    .menu-visual-img {
        width: 220px;
    }
}
/* === GRID PERFECTO: BLOQUES PEGADOS AL HERO === */
@media (min-width: 901px) {

    /* Contenedor principal en 3 columnas */
    .bloques-wrapper {
        display: grid;
        grid-template-columns: 1fr 600px 1fr;
        gap: 20px;
        max-width: 1400px;
        margin: 0 auto;
        padding-top: 0 !important;   /* elimina hueco arriba */
        align-items: start;          /* alinea verticalmente */
    }

    /* HERO centrado */
    .logo-block {
        grid-column: 2;
        max-width: 600px !important;
        width: 100%;
        margin: 0 auto !important;
        padding-top: 0 !important;
    }

    /* Paneles izquierdos */
    .panel-left {
        grid-column: 1;
        position: relative !important;
        margin-top: 0 !important;   /* se pega al HERO */
    }

    /* Paneles derechos */
    .panel-right {
        grid-column: 3;
        position: relative !important;
        margin-top: 0 !important;   /* se pega al HERO */
    }

    /* Eliminar restos de posiciones absolutas */
    .panel {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Móvil sigue igual */
@media (max-width: 900px) {
    .bloques-wrapper {
        display: block;
    }
}
