/* ============ NAV BAR ============ */
nav.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .7rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* LOGO TUFFYPET */
.tuffy {
    font-family: 'Pacifico', cursive !important;
    color: var(--color-primary) !important;
    font-size: 35px !important;
    font-weight: lighter;
}

.pet {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: bolder !important;
    color: var(--color-secondary) !important;
    font-size: 35px !important;
}

@media (max-width: 768px) {
    .tuffy, 
    .pet {
        /* Bajamos de 35px a 22px para ganar espacio */
        font-size: 22px !important;         
    }
    
    /* Opcional: Ajustar márgenes si el logo tiene */
    .logo a { 
        display: flex;
        align-items: left;
    }
}

/* CUENTA Y DROPDOWN */
.account-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-login {
    background: linear-gradient(135deg, var(--color-primary), var(--azul-tuffyB));
    color: var(--blanco);
    padding: 0.65rem 1.2rem;
    font-weight: 700;
    border-radius: var(--radius);
}
   .btn-login:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
        }


.account-dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    background: var(--blanco);
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: none;
    min-width: 190px;
    z-index: 999;
}

.account-container.open .account-dropdown {
    display: flex;
    flex-direction: column;
}

#logout-btn {
    border-top: 1px solid var(--gris-piedra);
    font-weight: 800;
    color: black;
    padding-left: 20%;
    text-align: left;
}

/* RESPONSIVE NAV */
@media (max-width: 992px) {
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 4px;
        width: 30px;
    }

    .menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 70%;
        height: 100vh;
        background: var(--crema-claro);
        transform: translateX(-100%);
        transition: 0.3s;
    }

    .menu.open {
        transform: translateX(0);
    }
}
/* BOTONES (Consolidados) */
.btn {
    border: 0;
    border-radius: var(--radius);
    padding: .85rem 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s ease;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--azul-petroleo));
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--color-secondary), #ffd56a);
    color: #3b2b00;
}

/* NAV BAR Y LOGO */
nav.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(8px);
}

.logo .tuffy {
    font-family: 'Pacifico', cursive;
    color: var(--color-primary);
    font-size: 35px;
}

.logo .pet {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: var(--color-secondary);
    font-size: 35px;
}

/* CUENTA Y DROPDOWN */
.fa-solid{
    padding-right: 5px;
}
.account-container.logged-in .btn-login {
    background: none;
    color: var(--azul-petroleo);
    border-bottom: 2.5px solid var(--amarillo-mostaza);
    width: 160px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;    
}

.account-dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    background: white;
    box-shadow: var(--shadow);
    border-radius: 12px;
    display: none;
    min-width: 190px;
}

.account-container.open .account-dropdown {
    display: flex;
    flex-direction: column;
}

/* FLOATING BUTTONS */
.waf {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    background: #25D366;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    z-index: 60;
    color: white;
}

.to-top {
    position: fixed;
    right: 1rem;
    bottom: 4.5rem;
    background: var(--rojo);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    z-index: 70;
    color: white;
}
footer {
    background: #0E1B25;
    color: #cbd5e1;
    padding: .5rem 0;
}

.foot {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
}

/* Botones Flotantes */
.waf {
    position: fixed;
    right: 1.5rem; bottom: 1.5rem;
    background: #25D366;
    width: 56px; height: 56px;
    border-radius: 50%;
    display: grid; place-items: center;
    z-index: 100;
}

.to-top {
    position: fixed;
    right: 1.5rem; bottom: 5.5rem;
    background: var(--rojo);
    width: 48px; height: 48px;
    border-radius: 50%;
    z-index: 100;
}

 /* ==================================== */
        /* 🏥 TUFFY MODAL CUSTOM STYLES */
        /* ==================================== */
        .tuffy-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(15, 23, 42, 0.8);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            backdrop-filter: blur(4px);
        }

        .tuffy-modal {
            background: var(--blanco);
            width: 90%;
            max-width: 400px;
            padding: 2.5rem;
            border-radius: var(--radius);
            text-align: center;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
            animation: tuffyPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .tuffy-modal i {
            font-size: 3.5rem;
            margin-bottom: 1.5rem;
        }

        .icon-info {
            color: var(--azul-tuffy);
        }

        .icon-success {
            color: #10B981;
        }

        .icon-error {
            color: #EF4444;
        }

        .tuffy-modal h3 {
            margin: 0 0 12px;
            color: var(--negro);
            font-size: 1.6rem;
            font-weight: 700;
        }

        .tuffy-modal p {
            color: var(--text-muted);
            font-size: 1rem;
            margin-bottom: 25px;
            line-height: 1.5;
        }

        .tuffy-modal-actions {
            display: flex;
            gap: 12px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .tuffy-btn-modal {
            padding: 12px 24px;
            border: none;
            border-radius: 10px;
            font-weight: 700;
            cursor: pointer;
            transition: 0.2s;
            font-family: 'Poppins', sans-serif;
            font-size: 0.95rem;
        }

        .tuffy-btn-primary {
            background: var(--azul-tuffy);
            color: white;
        }

        .tuffy-btn-primary:hover {
            background: var(--azul-petroleo);
        }

        .tuffy-btn-secondary {
            background: var(--gris-piedra);
            color: var(--negro);
        }

        .tuffy-btn-secondary:hover {
            background: #ccc;
        }

        @keyframes tuffyPop {
            from {
                opacity: 0;
                transform: scale(0.85);
            }

            to {
                opacity: 1;
                transform: scale(1);
            }
        }



/* ==========================================================================
   2. HEADER DE BÚSQUEDA (DENTRO DEL NAV)
   ========================================================================== */
.search-mode .nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    height: 70px;
}

.header-search-container {
    flex: 1;
    max-width: 600px;
}

.search-input-wrapper {
    display: flex;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 50px;
    padding: 5px 5px 5px 20px;
    align-items: center;
}

.search-input-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.9rem;
    color: #334155;
}

.header-search-btn {
    background: #3e8ecd;
    color: white;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   3. BARRA AZUL DE FILTROS (STICKY)
   ========================================================================== */
.filters-bar {
    background-color: #3e8ecd !important;
    padding: 12px 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 12px;
    position: sticky;
    top: 70px; /* Se pega debajo del header */
    z-index: 99;
    min-height: 55px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.filter-select {
    background: #ffffff !important;
    color: #333333 !important;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* ==========================================================================
   4. LAYOUT DE RESULTADOS (GRID)
   ========================================================================== */
.results-layout {
    margin-top: 30px;
}

.results-content {
    display: grid;
    grid-template-columns: 1fr 300px; /* Lista de cards y Sidebar */
    gap: 30px;
    margin-top: 20px;
}

@media (max-width: 992px) {
    .results-content { grid-template-columns: 1fr; }
    .results-sidebar { display: none; }
}

/* ==========================================================================
   5. EXPERT CARDS (ESTILO DOCTORALIA)
   ========================================================================== */
.expert-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: grid;
    /* Foto, Info, Calendario, Precio */
    grid-template-columns: 180px 1fr 280px 180px;
    margin-bottom: 25px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.expert-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* Columna Perfil */
.col-profile {
    padding: 20px;
    text-align: center;
    border-right: 1px solid #f1f5f9;
}

.img-container {
    width: 90px;
    height: 90px;
    margin: 0 auto 10px;
    border-radius: 50%;
    border: 3px solid #3e8ecd;
    overflow: hidden;
}

.img-container img { width: 100%; height: 100%; object-fit: cover; }
.rating-box { color: #f59e0b; font-weight: 700; font-size: 1.1rem; }
.reviews-count { font-size: 0.8rem; color: #64748b; text-decoration: none; }

/* Columna Info Central */
.col-info { padding: 20px; }
.expert-name { font-size: 1.3rem; margin-bottom: 8px; color: #1e293b; }
.expert-name i { color: #3e8ecd; font-size: 1rem; }

.specialty-tag {
    background: #e11d48; /* Rojo distintivo */
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
}

.location-text { margin-top: 15px; color: #64748b; font-size: 0.9rem; }

/* Columna Calendario */
.col-calendar {
    padding: 15px;
    background: #fcfcfc;
    border-left: 1px solid #f1f5f9;
    border-right: 1px solid #f1f5f9;
}

.calendar-header {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #334155;
    text-transform: uppercase;
}

.grid-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.day {
    padding: 8px 0;
    text-align: center;
    font-size: 0.75rem;
    color: #cbd5e1;
    border-radius: 4px;
}

.day.available {
    background: #86efac;
    color: #166534;
    font-weight: 700;
    cursor: pointer;
}

/* Columna Extra/Servicios */
.col-extra {
    padding: 20px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.svc-pill {
    background: #1e293b;
    color: #fff;
    font-size: 0.75rem;
    padding: 8px;
    border-radius: 8px;
    text-align: center;
}

.promo-tag {
    background: linear-gradient(90deg, #ef4444, #f87171);
    color: white;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: 800;
    font-size: 0.8rem;
}