/* ===== HERO BUSCADOR ===== */

.glp-search-hero {
    position: relative;
    overflow: hidden;
    padding: 0;
    min-height: calc(100vh - 70px); /* header fijo */
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.glp-search-hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #ffffff;
}

.glp-search-hero-background::before,
.glp-search-hero-background::after {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    will-change: transform;
}

.glp-search-hero-background::before {
    background: rgba(215, 71, 9, 0.25);
    top: -200px;
    left: -200px;
    animation: glp-search-nebula 25s infinite alternate ease-in-out;
}

.glp-search-hero-background::after {
    background: rgba(1, 125, 250, 0.25);
    bottom: -300px;
    right: -300px;
    animation: glp-search-nebula 20s infinite alternate-reverse ease-in-out;
}

@keyframes glp-search-nebula {
    0%   { transform: scale(1)   translate(0, 0)        rotate(0deg); }
    100% { transform: scale(1.3) translate(150px, -100px) rotate(180deg); }
}

.glp-search-hero canvas.glp-search-hero-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.6;
    mix-blend-mode: multiply;
}

.glp-search-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.glp-search-logo-wrapper {
    margin-bottom: 10px; /* logo pegado a la barra */
}

.glp-search-logo {
    height: 40px;
    width: auto;
    display: block;
}

/* ===== BARRA DE BÚSQUEDA (600px) ===== */

.home-search-wrapper {
    position: relative;
    z-index: 2;
    margin: 0 auto 18px auto;
    max-width: 800px; /* MODIFICADO: Ancho fijo de 600px en Desktop */
    width: 800px;
    padding: 0 24px;
    box-sizing: border-box;
}

.dog-search-container-home {
    display: flex;
    font-family: "Plus Jakarta Sans", sans-serif;
    position: relative;
    z-index: 2;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e5e5;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dog-search-container-home:focus-within {
    border-color: #D74709;
    box-shadow: 0 0 0 3px rgba(215, 71, 9, 0.08);
}

.dog-search-container-home input {
    flex: 1;
    padding: 14px 20px;
    font-size: 16px;
    border: none;
    border-radius: 10px 0 0 10px;
    background-color: transparent;
    color: #111111;
    box-sizing: border-box;
    font-family: "Plus Jakarta Sans", sans-serif;
    outline: none;
}

.dog-search-container-home input::placeholder {
    color: #b3b3b3;
}

.dog-search-container-home input:focus {
    outline: none;
    box-shadow: none;
}

.dog-search-container-home button {
    padding: 14px 28px;
    font-size: 15px;
    border-radius: 0 10px 10px 0;
    background-color: transparent;
    color: #111111;
    border: none;
    border-left: 1px solid #e5e5e5;
    cursor: pointer;
    font-weight: 600;
    font-family: "Plus Jakarta Sans", sans-serif;
    transition: background-color 0.15s ease, color 0.15s ease;
    box-sizing: border-box;
    white-space: nowrap;
}

.dog-search-container-home button:hover {
    background-color: #f5f5f5;
    color: #D74709;
}

/* ===== CÍRCULOS DESTACADOS ===== */

.home-featured-dogs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 6px;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.featured-dog-circle {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    background-color: #ffffff;
    overflow: hidden;
}

.featured-dog-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.featured-dog-circle:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

/* Círculo "..." */
.featured-dog-circle.add-new {
    background-color: #f4f4f4;
    border: 2px solid #e0e0e0;
    color: #777777;
}

.featured-dog-circle.add-new .featured-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    padding: 0;
    line-height: 38px;
    letter-spacing: 1px;
    text-align: center;
}

.featured-dog-circle.add-new:hover {
    background-color: #ffffff;
    color: #D74709;
    border-color: #D74709;
}

/* ===== POPUP RESULTADOS ===== */

.dog-search-results-popup-home {
    position: absolute;
    top: 100%;
    left: 24px;
    right: 24px;
    margin-top: 10px;
    z-index: 3;
}

.dog-search-results-popup-home .dog-search-results-popup {
    background: #ffffff;
    border: 1px solid #e1e1e1;
    max-height: 400px;
    overflow-y: auto;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    font-family: "Plus Jakarta Sans", sans-serif;
}

.dog-search-results-popup-home h4.search-category-title {
    padding: 10px 16px 6px 16px;
    margin: 5px 0 0 0;
    font-size: 12px;
    font-weight: 600;
    color: #777;
    text-transform: uppercase;
    border-bottom: 1px solid #f3f3f3;
}

.dog-search-results-popup-home .dog-search-result {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f3f3f3;
}

.dog-search-results-popup-home .dog-search-result:last-child {
    border-bottom: none;
}

.dog-search-results-popup-home .dog-search-result img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
}

.dog-search-results-popup-home .dog-search-result a {
    color: #111111;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}

.dog-search-results-popup-home .dog-search-result span {
    display: block;
    color: #666666;
    font-size: 13px;
}

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

/* --- Tablet (900px) --- */
@media (max-width: 900px) {
    .glp-search-hero {
        position: relative;
        min-height: calc(100vh - 70px);
        display: inherit;
        padding-top: 200px;
    }
    .home-search-wrapper {
        position: relative;
        z-index: 2;
        margin: 0 auto 18px auto;
        max-width: 800px;
        width: 100%;
        padding: 0 24px;
        box-sizing: border-box;
    }
    .dog-search-results-popup-home {
        left: 16px;
        right: 16px;
    }
}

/* --- Móvil (768px) --- */
@media (max-width: 768px) {
    /* --- INICIO MEJORAS MÓVIL --- */

    .glp-search-logo-wrapper {
        margin-bottom: 16px;
    }
    .glp-search-logo {
        height: 34px;
    }

    .dog-search-container-home {
        flex-direction: column;
        border-radius: 12px;
    }
    .dog-search-container-home input {
        border-radius: 12px 12px 0 0;
        padding: 14px 18px;
        font-size: 15px;
        text-align: center;
    }
    .dog-search-container-home button {
        border-radius: 0 0 12px 12px;
        border-left: none;
        border-top: 1px solid #e5e5e5;
        width: 100%;
        padding: 14px 18px;
        font-size: 15px;
    }
    .home-featured-dogs {
        margin-top: 16px;
        gap: 10px;
    }
    .featured-dog-circle {
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }
    .featured-dog-circle.add-new .featured-dots {
        width: 34px;
        height: 34px;
        font-size: 14px;
        line-height: 34px;
    }

    /* --- FIN MEJORAS MÓVIL --- */
}
