/* ==============================
   HEADER PERSONALIZADO TIENDA DE MASCOTAS
   ============================== */

/* Estilos base del header */
.pet-store-header {
    background: linear-gradient(135deg, #4ecdc4 0%, #44b3a0 50%, #2c8675 100%);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid #f39c12;
}

/* Patrón de fondo sutil */
.pet-store-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
}

/* Contenedor principal */
.header-container {
    max-width: none !important;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    gap: 2rem;
}

/* Sección del logo */
.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.logo-section img {
    max-height: 60px;
    width: auto;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.logo-section img:hover {
    transform: scale(1.1);
    border-color: rgba(255,255,255,0.6);
}

/* Texto de la marca */
.brand-text {
    color: white;
    font-family: 'Comic Sans MS', cursive, sans-serif;
}

.brand-text h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, #fff, #f39c12);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-text .tagline {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
    font-style: italic;
}

/* Navegación principal */
.main-navigation {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Botones de navegación */
.nav-button {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    font-family: 'Arial', sans-serif;
}

.nav-button:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    color: white;
    text-decoration: none;
}

/* Estilos especiales para botones */
.nav-button.bone-shape {
    border-radius: 15px 5px 15px 5px;
    background: rgba(243, 156, 18, 0.3);
    border-color: rgba(243, 156, 18, 0.5);
}

.nav-button.bone-shape:hover {
    background: rgba(243, 156, 18, 0.5);
    border-color: rgba(243, 156, 18, 0.7);
}

.nav-button.paw-button {
    position: relative;
    background: rgba(231, 76, 60, 0.3);
    border-color: rgba(231, 76, 60, 0.5);
}

.nav-button.paw-button:hover {
    background: rgba(231, 76, 60, 0.5);
    border-color: rgba(231, 76, 60, 0.7);
}

/* Barra de búsqueda */
.search-container {
    display: flex;
    align-items: center;
    position: relative;
}

.search-box {
    background: rgba(255,255,255,0.95);
    border: 2px solid rgba(255,255,255,0.5);
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    border-radius: 25px;
    width: 250px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-box:focus {
    outline: none;
    background: white;
    border-color: #f39c12;
    box-shadow: 0 0 15px rgba(243, 156, 18, 0.3);
    width: 280px;
}

.search-box::placeholder {
    color: #666;
    font-style: italic;
}

.search-icon {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1.1rem;
}

/* Sección del carrito */
.cart-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-button {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
    font-size: 1rem;
}

.cart-button:hover {
    background: linear-gradient(45deg, #e67e22, #d35400);
    transform: scale(1.05);
    color: white;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

.cart-count {
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -8px;
    right: -8px;
    border: 2px solid white;
    font-weight: bold;
}

/* Efectos de animación */
@keyframes pawPrint {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(-5deg); }
    75% { transform: scale(1.1) rotate(5deg); }
}

.paw-animation {
    animation: pawPrint 3s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.cart-button:hover {
    animation: bounce 0.6s;
}

/* Efectos de hover para botones */
.nav-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    z-index: -1;
}

.nav-button:hover::after {
    width: 120%;
    height: 120%;
}

/* Diseño responsivo */
@media (max-width: 992px) {
    .header-container {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .main-navigation {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    
    .search-box {
        width: 200px;
    }
    
    .search-box:focus {
        width: 220px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
    }
    
    .logo-section {
        gap: 0.5rem;
    }
    
    .brand-text h1 {
        font-size: 1.5rem;
    }
    
    .nav-button {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .search-box {
        width: 150px;
        padding: 0.6rem 0.8rem 0.6rem 2rem;
    }
    
    .search-box:focus {
        width: 170px;
    }
    
    .cart-button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .pet-store-header {
        padding: 0.5rem 0;
    }
    
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    .main-navigation {
        gap: 0.3rem;
    }
    
    .nav-button {
        padding: 0.5rem 0.8rem;
        font-size: 0.7rem;
    }
    
    .brand-text h1 {
        font-size: 1.2rem;
    }
    
    .search-box {
        width: 200px;
        margin: 0.5rem 0;
    }
}

/* Elementos decorativos adicionales */
.pet-store-header::after {
    content: '🐾 🦴 🐾';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #f39c12;
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Hover effect for the whole header */
.pet-store-header:hover::before {
    animation: pawPrint 4s infinite;
}