/* ==========================================================================
   RESPONSIVE.CSS - EUROFREETOUR
   --------------------------------------------------------------------------
   Ajustes móviles y tablets.
   Este archivo complementa main.css sin reemplazar la estructura principal.
   ========================================================================== */


/* ==========================================================================
   1. TABLET HORIZONTAL / LAPTOP PEQUEÑO
   ========================================================================== */

@media (max-width: 1024px) {
    .eft-header {
        padding: 28px 22px 0;
    }

    .eft-header__bar {
        min-height: 84px;
        padding: 0 24px 0 38px;
        gap: 24px;
    }

    .eft-header__nav {
        gap: 22px;
    }

    .eft-header__login,
    .eft-header__cta {
        font-size: 1.1rem;
    }

    .eft-header__cta {
        min-width: 200px;
        min-height: 54px;
    }
}


/* ==========================================================================
   2. TABLET VERTICAL
   ========================================================================== */

@media (max-width: 820px) {
    .eft-header {
        padding: 22px 18px 0;
    }

    .eft-header__bar {
        min-height: 76px;
        padding: 0 20px 0 28px;
    }

    .eft-header__logo {
        font-size: 1.35rem;
    }

    .eft-header__login {
        font-size: 0.98rem;
        gap: 6px;
    }

    .eft-header__login-icon {
        font-size: 1rem;
    }

    .eft-header__cta {
        min-width: 160px;
        min-height: 48px;
        padding: 0 22px;
        font-size: 0.98rem;
    }
}


/* ==========================================================================
   3. HEADER MÓVIL CON HAMBURGUESA
   --------------------------------------------------------------------------
   En móviles el header queda compacto:
   logo a la izquierda, botón hamburguesa a la derecha.
   El menú entra desde la derecha con transición suave.
   ========================================================================== */

@media (max-width: 760px) {
    /* ==========================================================================
       1. CONTENEDORES BASE MÓVIL
       ========================================================================== */
    .eft-header {
        padding: 14px 14px 0; /* Padding original tipo pastilla */
        position: fixed !important; 
        top: 0;
        left: 0;
        width: 100%;
        box-sizing: border-box;
        z-index: 1400;
        background: transparent !important;
        /* La misma transición premium del escritorio */
        transition: padding 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    }

    .eft-header__bar {
        min-height: 72px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0 18px 0 22px;
        border-radius: 28px; /* Borde redondo original */
        position: relative;
        background: #ffffff;
        /* Transición fluida para que se deforme a rectángulo */
        transition: 
            border-radius 0.35s cubic-bezier(0.25, 1, 0.5, 1),
            min-height 0.35s cubic-bezier(0.25, 1, 0.5, 1),
            background-color 0.3s ease,
            box-shadow 0.3s ease;
    }

    /* ==========================================================================
       2. EFECTO STICKY AL HACER SCROLL (MÓVIL)
       ========================================================================== */
    
    /* El header pierde los bordes exteriores para pegarse arriba */
    .eft-header.is-scrolled {
        padding: 0; 
    }

    /* La pastilla se estira, se hace un poco más delgada y toma el Glassmorphism */
    .eft-header.is-scrolled .eft-header__bar {
        border-radius: 0; 
        min-height: 64px; /* Más compacta en móvil para no robar espacio */
        
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        
        box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08); 
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    }

    .eft-header__logo {
        font-size: 1rem;
        z-index: 1402;
        color: #f4254f; /* 2. Cambiamos el texto del logo a rojo */
    }
    
     .eft-header__logo-image {
        height: 36px;
        max-width: 160px;
    }

    .eft-header__toggle {
        width: 44px;
        height: 44px;
        /* 3. Cambiamos el borde a un rojo semitransparente para que combine */
        border: 1px solid rgba(244, 37, 79, 0.3); 
        border-radius: 999px;
        background: transparent;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        cursor: pointer;
        z-index: 1501;
    }

   .eft-header__toggle span {
        width: 18px;
        height: 2px;
        border-radius: 999px;
        background: #f4254f; /* 4. Cambiamos las 3 rayitas de la hamburguesa a rojo */
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    body.eft-menu-open .eft-header__toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    body.eft-menu-open .eft-header__toggle span:nth-child(2) {
        opacity: 0;
    }

    body.eft-menu-open .eft-header__toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

   .eft-header__nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(82vw, 330px);
    height: 100dvh;
    padding: 120px 22px 28px;
    background: #ffffff; /* <--- AQUÍ: Cambiamos a fondo blanco */

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    gap: 16px;

    transform: translateX(105%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        transform 0.35s ease,
        opacity 0.25s ease,
        visibility 0.25s ease;

    z-index: 1450;
    box-shadow: -24px 0 60px rgba(16, 24, 40, 0.22);
}

    body.eft-menu-open .eft-header__nav {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

.eft-header__login,
.eft-header__cta {
    width: 100%;
    max-width: 240px;
    min-height: 52px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 0.95rem;
    text-align: center;
}

.eft-header__login {
    border-radius: 999px;
    color: #f4254f; /* <--- Texto rojo para que se vea */
}

/* Si tu ícono de login está separado, asegúrate de que también sea rojo */
.eft-header__login-icon, 
.eft-header__login-icon svg {
    color: #f4254f; 
}

.eft-header__cta {
    min-width: 0;
    margin-top: 2px;
    color: #f4254f;             /* Texto rojo */
    border: 2px solid #f4254f;  /* Borde rojo */
}

/* Efecto al tocar/presionar el botón */
.eft-header__cta:hover, 
.eft-header__cta:active {
    background: #f4254f;
    color: #ffffff;
}

    body.eft-menu-open {
        overflow: hidden;
    }
    
}


/* ==========================================================================
   4. MÓVIL PEQUEÑO
   ========================================================================== */

@media (max-width: 420px) {
    .eft-header {
        padding: 12px 10px 0;
    }

    .eft-header__bar {
        min-height: 68px;
        padding: 0 14px 0 18px;
        border-radius: 24px;
    }

    .eft-header__logo {
        font-size: 0.98rem;
    }

    .eft-header__toggle {
        width: 40px;
        height: 40px;
    }

    .eft-header__nav {
        width: 86vw;
        padding: 104px 20px 28px;
    }

    .eft-header__login,
    .eft-header__cta {
        min-height: 50px;
        font-size: 0.95rem;
    }

}


/* ==========================================================================
   5. MÓVIL MUY ANGOSTO
   ========================================================================== */

@media (max-width: 340px) {
    .eft-header__logo {
        font-size: 0.9rem;
    }

    .eft-header__bar {
        padding-left: 14px;
    }

    .eft-header__nav {
        width: 90vw;
    }
}


@media (max-width: 992px) {
    .eft-tour-card {
        /* Muestra 2 tarjetas en tablet */
        flex: 0 0 calc(50% - 10px); 
    }
}

@media (max-width: 760px) {

    .eft-published-tours {
        padding: 0 0 60px;
    }

    .eft-published-tours__container {
        width: 100%;
        max-width: none;
        padding-right: 16px;
        padding-left: 16px;
    }

    .eft-published-tours__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
    }

    .eft-published-tours__nav {
        align-self: flex-end;
    }

    .eft-published-tours__track {
        gap: 16px;
        padding: 12px 0 28px;
    }

    .eft-tour-card {
        width: 92%;
        min-width: 92%;
        max-width: 92%;

        height: 620px;
        min-height: 500px;

        flex: 0 0 92%;
    }

    .eft-tour-card__content {
        padding:
            28px
            22px
            24px;
    }

    .eft-tour-card__title {
        font-size: 1.65rem;
        line-height: 1.12;
    }

    .eft-tour-card__features {
        gap:
            12px
            14px;

        margin:
            12px
            0
            20px;
    }

    .eft-tour-card__btn {
        min-height: 60px;
        font-size: 1.05rem;
    }
}


