/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
    background: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input {
    font-family: inherit;
}


/* =========================================
   BARRA SUPERIOR
========================================= */

.top-bar {
    width: 100%;
    min-height: 42px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 45px;

    background: #1eb2f529;;

    font-size: 13px;
}

.top-left,
.top-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.top-left {
    height: 100%;
}

.top-link,
.top-right a {
    color: #0066cc;
    text-shadow: 0.25px 0 currentColor;
    transition: 0.2s ease;
}

.top-icon a::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 6px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
}
.top-right > a:not(.online-button)::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 5px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
}

.top-right .promociones::before {
    background-image: url("images/promociones.webp");
}

.top-right .clasificados::before {
    background-image: url("images/clasificados.webp");
}

.top-right .ayudamos::before {
    background-image: url("images/ayudamos.webp");
}

.top-right .cuenta::before {
    background-image: url("images/cuenta.webp");
}

.top-link.active {
    font-weight: 700;
    color: #005bbb;
}

.country-selector {
    border: none;
    background: transparent;

    display: flex;
    align-items: center;
    gap: 7px;

    cursor: pointer;

    color: #333;
}

.flag {
    font-size: 17px;
}

.arrow {
    font-size: 15px;
}

.online-button {
  
    background: #0064c8;
    color: white !important;

    padding: 12px 23px;

    font-weight: 700;

    border-radius: 3px;

    transition: 0.2s ease;
}

.online-button:hover {
    background: #004f9e;
}


/* =========================================
   NAVEGACIÓN
========================================= */

.main-nav {
    height: 83px;

    display: flex;
    align-items: center;

    padding: 0 45px;

    background: white;

    border-bottom: 1px solid #eeeeee;
}

.nav-logo {
    width: 190px;

    display: flex;
    align-items: center;
}

.nav-logo img {
    width: 180px;
    height: auto;

    display: block;

    object-fit: contain;
}

.nav-menu {
    position: relative;
    left: 96px;
    display: flex;
    align-items: center;

    gap: 34px;

    height: 100%;
}

.nav-menu a {
    display: flex;
    align-items: center;
    gap: 6px;

    color: #0564c4;

    font-size: 15px;

    white-space: nowrap;

    transition: 0.2s ease;
}

.nav-menu a:hover {
    color: #0064c8;
}

.nav-menu span {
    font-size: 13px;
}

.menu-button {
    display: none;

    margin-left: auto;

    border: none;
    background: none;

    font-size: 27px;

    cursor: pointer;
}


/* =========================================
   HERO
========================================= */

.hero-blue {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-blue img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.hero-content {
    position: relative;
    z-index: 3;

    width: 70%;

    color: white;
}

.hero-small {
    display: block;

    margin-bottom: 14px;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 1.5px;

    opacity: 0.9;
}

.hero-content h1 {
    font-size: clamp(42px, 4.5vw, 66px);

    line-height: 1.05;

    font-weight: 700;

    margin-bottom: 20px;
}

.hero-content p {
    max-width: 450px;

    font-size: 18px;

    line-height: 1.5;

    margin-bottom: 30px;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 145px;

    padding: 13px 25px;

    background: white;

    color: #0064c8;

    font-size: 15px;
    font-weight: 700;

    border-radius: 4px;

    transition: 0.2s ease;
}

.hero-button:hover {
    transform: translateY(-2px);

    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.15);
}


/* =========================================
   DECORACIONES HERO
========================================= */

.hero-decoration {
    position: absolute;

    border: 1px solid rgba(255,255,255,0.18);

    transform: rotate(45deg);
}

.decoration-one {
    width: 280px;
    height: 280px;

    left: -120px;
    bottom: -100px;
}

.decoration-two {
    width: 170px;
    height: 170px;

    right: 80px;
    top: -70px;
}


/* =========================================
   IMAGEN HERO
========================================= */

.hero-image {
    position: relative;

    width: 48%;
    height: 100%;

    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}

.hero-badge {
    position: absolute;

    right: 35px;
    bottom: 25px;

    width: 75px;
    height: 75px;

    border-radius: 50%;

    background: white;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.hero-badge span {
    font-size: 35px;
    color: #0064c8;
}


/* =========================================
   SECCIÓN AYUDA
========================================= */

.help-section {
    background: #f5f7f9;

    padding: 75px 45px 19px;
}

.help-container {
    max-width: 1450px;

    margin: auto;

    display: flex;

    gap: 60px;
}


/* =========================================
   INTRO AYUDA
========================================= */

.help-intro {
    width: 26%;

    padding-top: 10px;
}

.help-intro h2 {
    color: #005bbb;

    font-size: 46px;

    line-height: 1.05;

    margin-bottom: 18px;
}

.help-intro p {
    color: #555;

    font-size: 16px;

    line-height: 1.5;

    margin-bottom: 30px;
}


/* =========================================
   BUSCADOR
========================================= */

.search-box {
    width: 100%;

    height: 52px;

    display: flex;
    align-items: center;

    background: white;

    border: 1px solid #d7d7d7;

    border-radius: 4px;

    overflow: hidden;
}

.search-box input {
    flex: 1;

    width: 100%;

    height: 100%;

    padding: 0 16px;

    border: none;
    outline: none;

    font-size: 14px;
    text-align: center;

}

.search-box button {
    width: 55px;
    height: 100%;

    border: none;

    background: white;

    cursor: pointer;

    font-size: 18px;
}


/* =========================================
   TARJETAS
========================================= */

.cards-container {
    width: 84%;
height: 223px;
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}

.help-card {
    background: white;

    border-radius: 8px;

    overflow: hidden;

    box-shadow: 0 2px 12px rgba(0,0,0,0.06);

    transition: 0.25s ease;
}

.help-card:hover {
    transform: translateY(-5px);

    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card-image {
      width: 100%;
    height: 233px;

    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition: 0.3s ease;
}

.help-card:hover .card-image img {
    transform: scale(1.04);
}

.card-content {
    padding: 22px 20px 24px;
}

.card-content h3 {
    color: #005bbb;

    font-size: 21px;

    margin-bottom: 10px;
}

.card-content p {
    min-height: 55px;

    color: #666;

    font-size: 14px;

    line-height: 1.45;

    margin-bottom: 20px;
}

.card-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 120px;

    padding: 9px 18px;

    border: 1px solid #0064c8;

    border-radius: 4px;

    color: #0064c8;

    font-size: 13px;

    font-weight: 700;

    transition: 0.2s ease;
}

.card-button:hover {
    background: #0064c8;
    color: white;
}


/* =========================================
   FOOTER
========================================= */

.footer {
    min-height: 150px;

    background: #79ebd41b;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 15px;

    color: #777;

    font-size:19px;
}

.footer-logo {
    color: #0064c8;

    font-size: 22px;

    font-weight: 800;
}

.mobile-online-button,
.mobile-bottom-bar {
    display: none;
}
.mobile-segment {
    display: none;
}
.online-popup {
    position: fixed;

    top: 50px;
    right: 45px;

    width: 280px;
    height:170px;
    padding: 18px;

    background: #0064c8;
    border-radius: 4px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.22);

    display: none;

    z-index: 99999;
}

.online-popup.active {
    display: block;
}

.online-popup.active {
    display: block;
}

.online-popup-row {
    display: flex;

    align-items: center;

    gap: 8px;
}

.popup-lock {
    color: white;

    font-size: 17px;

    flex-shrink: 0;
}

.online-popup-row input {
   width: 50px;

    flex: 1;

    height: 40px;

    padding: 0 12px;

    border: none;

    border-radius: 3px;

    outline: none;

    font-size: 14px;
}

.popup-login {

    width:74px;

    height: 40px;

    border: none;

    border-radius: 3px;

    background: #f28c28;

    color: white;

    font-size: 11px;

    font-weight: 700;

    cursor: pointer;
}

.popup-links {
    margin-top: 14px;

    display: grid;

    align-items: center;

    justify-content: center;

    flex-wrap: wrap;

    gap: 6px;

    color: white;

    font-size: 15px;
}

.popup-links a {
    color: white;

    text-decoration: none;
}

.popup-links a:hover {
    text-decoration: underline;
}

.popup-links span {
    color: #f28c28;

    font-size: 18px;

    line-height: 10px;
}

.user-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 20px;
}

.username {
    display: block;
    text-align: center;
    width: 100%;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 1100px) {

    .top-bar {
        padding: 0 20px;
    }

    .top-left,
    .top-right {
        gap: 14px;
    }

    .main-nav {
        padding: 0 25px;
    }

    .nav-logo {
        width: 140px;
    }

    .nav-menu {
        gap: 18px;
    }

    .nav-menu a {
        font-size: 13px;
    }

    .hero-content {
        width: 75%;
    }

    .hero-content h1 {
        font-size: 45px;
    }

    .help-container {
        flex-direction: column;
    }

    .help-intro,
    .cards-container {
        width: 100%;
    }

    .cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================================
   MOBILE
========================================= */
/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    /* =========================================
       TOP BAR DESKTOP
       SE OCULTA COMPLETAMENTE
    ========================================= */

    .top-bar {
        display: none;
    }


    /* =========================================
       NAV MOBILE
    ========================================= */

    .main-nav {
        position: relative;

        width: 100%;
        height: 70px;

        padding: 0 15px;

        display: flex;
        align-items: center;
        justify-content: center;

        background: #fff;

        border-bottom: 1px solid #eeeeee;
    }


    /* =========================================
       HAMBURGUESA
       IZQUIERDA
    ========================================= */

    .menu-button {
        position: absolute;

        left: 12px;
        top: 50%;

        transform: translateY(-50%);

        display: flex;

        align-items: center;
        justify-content: center;

        width: 40px;
        height: 40px;

        margin: 0;
        padding: 0;

        border: none;
        background: transparent;

        color: #0064c8;

        font-size: 27px;

        line-height: 1;

        cursor: pointer;

        z-index: 5;
    }


    /* =========================================
       LOGO MOBILE
       CENTRO
    ========================================= */

    .nav-logo {
        width: auto;

        display: flex;

        align-items: center;
        justify-content: center;

        margin: 0 auto;
    }

    .nav-logo picture {
        display: flex;

        align-items: center;
        justify-content: center;
    }

    .nav-logo img {
        width: auto;

        height: 38px;

        display: block;

        object-fit: contain;
    }


    /* =========================================
       OCULTAR MENU DESKTOP
    ========================================= */

    .nav-menu {
        display: none;
    }


    /* =========================================
       BANCA EN LÍNEA
       ESQUINA SUPERIOR DERECHA
    ========================================= */

    .mobile-online-button {
        position: absolute;

        right: 10px;
        top: 50%;

        transform: translateY(-50%);

        display: inline-flex;

        align-items: center;
        justify-content: center;

        gap: 6px;

        padding: 9px 11px;

        background: #0064c8;

        color: #fff !important;

        border-radius: 3px;

        font-size: 11px;

        font-weight: 700;

        white-space: nowrap;

        z-index: 5;
    }

    .mobile-online-button i {
        font-size: 13px;
    }


    /* =========================================
       HERO MOBILE
    ========================================= */

    .hero-blue {
        width: 100%;

        min-height: 0;
        height: auto;

        display: block;

        position: relative;

        overflow: hidden;
    }

    .hero-blue picture {
        display: block;

        width: 100%;
    }

    .hero-blue picture img {
        display: block;

        width: 100%;
        height: auto;

        object-fit: contain;
        object-position: center;
    }


    /* =========================================
       BOTÓN +
    ========================================= */

    .hero-badge {
        width: 55px;
        height: 55px;

        right: 20px;
        bottom: 20px;
    }

    .hero-badge span {
        font-size: 28px;
    }


    /* =========================================
       OCULTAR ELEMENTOS HERO ANTIGUOS
    ========================================= */

    .hero-content,
    .hero-image {
        display: none;
    }


    /* =========================================
       FRANJA AZUL INFERIOR
    ========================================= */

    .mobile-bottom-bar {
        width: 100%;

        min-height: 68px;

        padding: 8px 5px;

        display: flex;

        align-items: center;
        justify-content: space-between;

        background: #0064c8;

        overflow: hidden;
    }


    /* =========================================
       ELEMENTOS DE LA FRANJA
    ========================================= */

    .mobile-bottom-bar > a {
        flex: 1;

        min-width: 0;

        display: flex;

        flex-direction: column;

        align-items: center;
        justify-content: center;

        gap: 4px;

        color: #fff !important;

        font-size: 10px;

        font-weight: 600;

        line-height: 1.1;

        text-align: center;

        white-space: nowrap;
    }


    /* =========================================
       ICONOS
    ========================================= */

    .mobile-bar-icon {
        display: block;

        width: 23px;
        height: 23px;

        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }


    /* =========================================
       ICONOS INDIVIDUALES
    ========================================= */

    .mobile-bottom-bar .promociones .mobile-bar-icon {
        background-image: url("images/promociones.webp");
    }

    .mobile-bottom-bar .clasificados .mobile-bar-icon {
        background-image: url("images/clasificados.webp");
    }

    .mobile-bottom-bar .ayudamos .mobile-bar-icon {
        background-image: url("images/ayudamos.webp");
    }

    .mobile-bottom-bar .cuenta .mobile-bar-icon {
        background-image: url("images/cuenta.webp");
    }


    /* =========================================
       AYUDA
    ========================================= */

    .help-section {
        padding: 50px 20px 65px;
    }

    .help-container {
        display: flex;

        flex-direction: column;

        gap: 35px;
    }

    .help-intro {
        width: 100%;

        padding-top: 0;
    }

    .help-intro h2 {
        font-size: 38px;
    }

    .help-intro p {
        font-size: 16px;
    }


    /* =========================================
       BUSCADOR
    ========================================= */

    .search-box {
        width: 100%;
        height: 48px;
    }


    /* =========================================
       TARJETAS
    ========================================= */

    .cards-container {
        width: 100%;

        height: auto;

        display: grid;

        grid-template-columns: 1fr;

        gap: 18px;
    }

    .card-image {
        height: 210px;
    }
    /* =========================================
   SEGMENTO MOBILE
========================================= */

.mobile-segment {
    position: absolute;

    left: 10px;
    top: 50%;

    transform: translateY(-50%);

    display: flex;
    align-items: center;

    gap: 2px;

    z-index: 10;
}


/* =========================================
   HAMBURGUESA
========================================= */

.mobile-segment .menu-button {
    position: static;

    transform: none;

    width: 34px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin: 0;
    padding: 0;

    border: none;

    background: transparent;

    color: #0064c8;

    font-size: 25px;

    line-height: 1;

    cursor: pointer;
}


/* =========================================
   SELECT PERSONAS / PYME / EMPRESAS
========================================= */

.segment-select {
    appearance: none;
    -webkit-appearance: none;

    border: none;

    background: transparent;

    color: #0064c8;

    font-size: 12px;

    font-weight: 700;

    padding: 5px 16px 5px 2px;

    margin: 0;

    outline: none;

    cursor: pointer;

    background-image:
        linear-gradient(45deg, transparent 50%, #0064c8 50%),
        linear-gradient(135deg, #0064c8 50%, transparent 50%);

    background-position:
        calc(100% - 8px) 50%,
        calc(100% - 4px) 50%;

    background-size:
        4px 4px,
        4px 4px;

    background-repeat: no-repeat;
}

.segment-select option {
    color: #222;

    background: white;

    font-size: 13px;
}

}