/*!
 * Frontend Consolidated Styles
 * All CSS for frontend components consolidated here
 * Make sure to remove inline styles from components after implementing
 */

/* ==========================================
 * 1. HEADER COMPONENT STYLES  
 * ========================================== */

/* ==========================================
 * SELECT2 CUSTOM STYLES FOR FRONTEND
 * ========================================== */
.select2-container .select2-selection--single {
    background: rgba(255,255,255,0.9) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    color: #374151 !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    height: auto !important;
    padding: 12px 16px !important;
    border-radius: 12px !important;
    font-weight: 500 !important;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    color: #374151 !important;
    padding: 0 !important;
    font-weight: 500 !important;
}

.select2-container .select2-selection--single .select2-selection__arrow {
    height: auto !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.select2-container .select2-selection--single:focus,
.select2-container--open .select2-selection--single {
    background: rgba(255,255,255,1) !important;
    border-color: #22c55e !important;
    box-shadow: 0 0 0 0.2rem rgba(34, 197, 94, 0.25), 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.select2-dropdown {
    background: rgba(255,255,255,0.95) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.select2-results__option {
    color: #374151 !important;
    padding: 8px 16px !important;
    font-weight: 500 !important;
}

.select2-results__option--highlighted {
    background: #22c55e !important;
    color: white !important;
}

/* ==========================================
 * BREED TOGGLE BUTTONS OVERRIDE STYLES
 * ========================================== */
.breed-toggle-btn {
    background: rgba(255,255,255,0.9) !important;
    backdrop-filter: blur(10px) !important;
    color: #374151 !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.breed-toggle-btn:hover {
    background: rgba(255,255,255,1) !important;
    transform: scale(1.05) !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.1) !important;
}

.breed-toggle-btn.active {
    background: linear-gradient(45deg, #ef4444, #dc2626) !important;
    color: white !important;
    transform: scale(1.05) !important;
    box-shadow: 0 10px 25px -5px rgba(239, 68, 68, 0.25) !important;
    border: 1px solid rgba(239, 68, 68, 0.5) !important;
}

/* Override any inline styles that might conflict */
.breed-toggle-btn.active {
    background: linear-gradient(45deg, #ef4444, #dc2626) !important;
    color: white !important;
}

.breed-toggle-btn:not(.active) {
    background: rgba(255,255,255,0.9) !important;
    color: #374151 !important;
}
/* Reset y base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}

/* Header principal */
.modern-header {
    background-color: white;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

/* Logo */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 2rem;
    width: auto;
}

/* Navegación principal (desktop) */
.main-nav {
    display: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #374151;
    padding: 0.5rem 0;
    font-weight: 500;
    position: relative;
    transition: color 0.2s ease;
    border-bottom: 2px solid transparent;
}

.nav-link:hover {
    color: #059669;
}

.nav-link.active {
    color: #059669;
    border-bottom-color: #059669;
}

/* Header actions container */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Watch List Button */
.watchlist-btn {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 0.375rem;
    text-decoration: none;
    color: #6b7280;
    transition: all 0.2s ease;
    position: relative;
}

.watchlist-btn:hover {
    background-color: #f3f4f6;
    color: #059669;
}

.eye-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.watchlist-count {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    background-color: #dc2626;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Menú de usuario */
.user-menu {
    position: relative;
}

.user-menu-trigger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #374151;
    font-weight: 500;
}

.user-menu-trigger:hover {
    background-color: #f3f4f6;
}

.user-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #6b7280;
}

.user-name {
    font-size: 0.875rem;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chevron-icon {
    width: 1rem;
    height: 1rem;
    color: #6b7280;
    transition: transform 0.2s ease;
}

.user-menu-trigger:hover .chevron-icon {
    transform: rotate(180deg);
}

.user-menu-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    min-width: 12rem;
    z-index: 50;
    display: none;
}

.user-menu-dropdown.show {
    display: block;
}

.user-menu-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background-color 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.user-menu-item:hover {
    background-color: #f3f4f6;
}

.user-menu-item:first-child {
    border-radius: 0.5rem 0.5rem 0 0;
}

.user-menu-item:last-child {
    border-radius: 0 0 0.5rem 0.5rem;
}

.login-btn {
    background-color: #059669;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
}

.login-btn:hover {
    background-color: #047857;
}

/* Botón de menú móvil */
.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s ease;
}

.mobile-menu-btn:hover {
    background-color: #f3f4f6;
}

.hamburger {
    width: 1.5rem;
    height: 1.5rem;
    color: #6b7280;
}

/* Navegación móvil */
.mobile-nav {
    display: block;
    border-top: 1px solid #e5e7eb;
    background: white;
}

.mobile-nav-content {
    padding: 0.5rem 1rem;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem;
    border-radius: 0.375rem;
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    transition: all 0.2s ease;
}

.mobile-nav-link:hover {
    color: #059669;
    background-color: #f3f4f6;
}

.mobile-nav-link.active {
    color: #059669;
    background-color: #ecfdf5;
}

.mobile-nav.hidden {
    display: none;
}

/* ==========================================
 * PRIVACY POLICY & TERMS OF USE STYLES
 * ========================================== */
.legal-page {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    min-height: 100vh;
    padding: 2rem 0;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.legal-card {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.legal-header {
    background: linear-gradient(135deg, #059669 0%, #047857 50%, #2563eb 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.legal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    background-size: 20px 20px;
    opacity: 0.3;
}

.legal-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.legal-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.legal-content {
    padding: 3rem 2rem;
    line-height: 1.7;
}

.legal-content h2 {
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    color: #4b5563;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.legal-content a {
    color: #059669;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.legal-content a:hover {
    color: #047857;
    text-decoration: underline;
}

.legal-effective-date {
    background: #f3f4f6;
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid #059669;
    margin-bottom: 2rem;
}

/* ==========================================
 * WISHLIST STYLES
 * ========================================== */
.wishlist-page {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    min-height: 100vh;
    padding: 2rem 0;
}

.wishlist-header {
    background: linear-gradient(135deg, #059669 0%, #047857 50%, #2563eb 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.wishlist-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    background-size: 20px 20px;
    opacity: 0.3;
}

.wishlist-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    position: relative;
    z-index: 1;
}

.wishlist-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ==========================================
 * RESPONSIVE VIDEO CARDS STYLES
 * ========================================== */
.video-card-youtube {
    background: white;
    border-radius: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid #333;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.video-card-youtube:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.video-thumbnail-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f3f4f6;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card-youtube:hover .video-thumbnail {
    transform: scale(1.05);
}

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;            /* ❌ quitar el fondo negro */
    border-radius: 0;            /* ❌ quitar el círculo */
    width: auto;                 /* ❌ que no tenga tamaño fijo */
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-card-youtube:hover .video-play-overlay {
    transform: translate(-50%, -50%) scale(1.1); /* sin fondo extra */
}

.video-play-icon {
    width: 40px;   /* puedes ajustar este tamaño */
    height: 40px;
    color: red;    /* ✅ ahora el ícono será rojo */
}


.video-stats-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 1rem 0.75rem 0.75rem;
    font-size: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.video-card-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.video-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-card-description {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.video-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.btn-video-action {
    flex: 1;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-video-primary {
    background-color: #059669;
    color: white;
}

.btn-video-primary:hover {
    background-color: #047857;
    color: white;
    text-decoration: none;
}

.btn-video-secondary {
    background-color: #f3f4f6;
    color: #374151;
    border-color: #d1d5db;
}

.btn-video-secondary:hover {
    background-color: #e5e7eb;
    color: #1f2937;
    text-decoration: none;
}

.btn-video-danger {
    background-color: #dc2626;
    color: white;
}

.btn-video-danger:hover {
    background-color: #b91c1c;
    color: white;
    text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .video-thumbnail-container {
        height: 180px;
    }
    
    .video-card-title {
        font-size: 0.9rem;
    }
    
    .video-card-description {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }
    
    .btn-video-action {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* ==========================================
 * 2. ANIMATIONS FOR ALL FRONTEND PAGES
 * ========================================== */
/* Fade In Animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation Classes */
.animate-fade-in {
    animation: fade-in 0.8s ease-out;
}

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out;
}

.animate-slide-in-left {
    animation: slide-in-left 0.8s ease-out;
}

.animate-scale-in {
    animation: scale-in 0.6s ease-out;
}

.animate-delay-1 {
    animation-delay: 0.2s;
}

.animate-delay-2 {
    animation-delay: 0.4s;
}

.animate-delay-3 {
    animation-delay: 0.6s;
}

/* Page enter animations */
.page-enter {
    animation: fade-in-up 0.8s ease-out;
}

.page-enter-delayed {
    animation: fade-in-up 0.8s ease-out;
    animation-delay: 0.2s;
    animation-fill-mode: both;
    opacity: 0;
}

/* Estilos personalizados */
.hero-section {
    background: linear-gradient(135deg, #059669 0%, #047857 50%, #2563eb 100%);
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
}

.hero-content {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 64rem;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.btn-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.btn-primary {
    background: white;
    color: #059669;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: inline-block;
    transform: scale(1);
}

.btn-primary:hover {
    background: #f3f4f6;
    color: #059669;
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.btn-secondary {
    border: 2px solid white;
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: inline-block;
    transform: scale(1);
    background: transparent;
}

.btn-secondary:hover {
    background: white;
    color: #059669;
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.hero-bottom-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5rem;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.2), transparent);
}

.quality-section {
    padding: 4rem 0;
    background: white;
    position: relative;
    overflow: hidden;
}

.quality-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #f9fafb 0%, white 100%);
}

.quality-content {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.quality-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 1.5rem;
    text-align: center;
}

.quality-text {
    font-size: 1.25rem;
    color: #4b5563;
    max-width: 64rem;
    margin: 0 auto;
    line-height: 1.6;
    text-align: center;
}

.simple-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f9fafb 0%, white 100%);
}

.simple-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.simple-title {
    font-size: 1.875rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 1rem;
    text-align: center;
}

.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.card {
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    transform: translateY(0);
}

.card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-0.5rem);
}

.card-buyers {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.card-sellers {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
}

.card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.card:hover .card-icon {
    transform: scale(1.1);
}

.icon-buyers {
    background: #2563eb;
    color: white;
}

.icon-sellers {
    background: #059669;
    color: white;
}

.card-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.card-title-buyers {
    color: #1e40af;
}

.card-title-sellers {
    color: #047857;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    animation: fade-in 0.8s ease-out;
}

.feature-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    margin-right: 0.75rem;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.dot-buyers {
    background: #2563eb;
}

.dot-sellers {
    background: #059669;
}

.feature-text {
    color: #374151;
    line-height: 1.5;
}

/* ==========================================
 * 3. SEARCH PAGE STYLES
 * ========================================== */
/* Futuristic Grid Pattern */
.bg-grid-pattern {
    background-image: 
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Animated background orbs */
.animated-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    mix-blend-mode: multiply;
    animation: float 6s ease-in-out infinite;
}

.orb-1 {
    width: 288px;
    height: 288px;
    background: linear-gradient(45deg, #4ade80, #22c55e);
    top: 0;
    left: 0;
    animation-delay: 0s;
}

.orb-2 {
    width: 288px;
    height: 288px;
    background: linear-gradient(45deg, #3b82f6, #1d4ed8);
    top: 0;
    right: 0;
    animation-delay: 1s;
}

.orb-3 {
    width: 288px;
    height: 288px;
    background: linear-gradient(45deg, #8b5cf6, #7c3aed);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); opacity: 0.1; }
    50% { transform: translateY(-20px) scale(1.05); opacity: 0.15; }
}

/* Main header section */
.futuristic-header {
    position: relative;
    background: linear-gradient(135deg, #1e293b 0%, #1e40af 50%, #4338ca 100%);
    padding: 4rem 0;
    overflow: hidden;
    min-height: 60vh;
}

/* Futuristic title styling */
.futuristic-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
    letter-spacing: -0.025em;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.gradient-text {
    background: linear-gradient(45deg, #4ade80, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.futuristic-subtitle {
    font-size: 1.25rem;
    color: #d1d5db;
    max-width: 48rem;
    margin: 0 auto;
    line-height: 1.6;
}

/* Search controls container */
.search-controls {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    margin-top: 3rem;
}

/* Form labels */
.form-label-futuristic {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.form-label-futuristic i {
    color: #4ade80;
    font-size: 1.25rem;
}

/* Form controls */
.form-control-futuristic {
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 0.75rem !important;
    color: white !important;
    font-weight: 500;
    padding: 0.875rem 1rem !important;
    font-size: 1rem;
    transition: all 0.3s ease !important;
}

.form-control-futuristic:focus {
    ring: 2px solid #10b981 !important;
    border-color: #10b981 !important;
    background: rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2) !important;
}

.form-control-futuristic:hover {
    background: rgba(255, 255, 255, 0.25) !important;
}

/* Search button */
.btn-search-futuristic {
    background: linear-gradient(45deg, #10b981, #059669);
    border: none;
    border-radius: 0.75rem;
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
    padding: 0.875rem 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    width: 100%;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-search-futuristic:hover {
    background: linear-gradient(45deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    color: white;
}

.btn-search-futuristic:active {
    transform: translateY(0);
}

/* Results section */
.results-section {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    min-height: 40vh;
}

.results-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 0;
    border-radius: 1.5rem;
    overflow: hidden;
}

.results-header {
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    color: white;
    padding: 1.5rem;
}

/* Futuristic card */
.futuristic-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(229, 231, 235, 0.8);
    transition: all 0.3s ease;
}

.futuristic-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 35px 60px -12px rgba(0, 0, 0, 0.15);
}

/* Card header with gradient */
.card-header-gradient-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    padding: 1.5rem;
    color: white;
}

.card-title-futuristic {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.card-title-futuristic i {
    font-size: 1.25rem;
}

/* Results badge */
.results-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

/* Results container */
.results-container {
    padding: 2rem;
    min-height: 250px;
    max-height: 2400px;
    overflow-y: auto;
    padding-right: 10px;
}

/* ==========================================
 * FILTERS TRAITS STYLES - IMPROVED DESIGN
 * ========================================== */
.traits-marketplace {
    background: white;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    max-width: 100%;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.marketplace-header {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    padding: 1.5rem 2rem;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

.marketplace-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.marketplace-title i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.breed-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.traits-list {
    padding: 1.5rem;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.trait-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.trait-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #059669, #047857);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.trait-item:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: #059669;
    transform: translateY(-2px);
}

.trait-item:hover::before {
    opacity: 1;
}

.trait-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    align-items: center;
}

.trait-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.trait-name {
    font-weight: 700;
    color: #1f2937;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trait-name i {
    color: #059669;
    font-size: 1.1rem;
}

.trait-average {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    width: fit-content;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.trait-controls {
    display: grid;
    grid-template-columns: 80px 1fr 80px;
    gap: 1rem;
    align-items: center;
}

.trait-input input {
    width: 100%;
    padding: 0.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    background: #f9fafb;
    color: #374151;
    transition: all 0.2s ease;
}

.trait-input input:focus {
    outline: none;
    border-color: #059669;
    background: white;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.trait-slider {
    position: relative;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.range-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Ion Range Slider Custom Styles */
.irs {
    height: 40px !important;
}

.irs--flat {
    height: 40px;
}

.irs--flat .irs-line {
    background: #e5e7eb;
    height: 6px;
    border-radius: 3px;
    top: 25px;
}

.irs--flat .irs-bar {
    background: linear-gradient(to right, #059669, #047857);
    height: 6px;
    border-radius: 3px;
    top: 25px;
}

.irs--flat .irs-handle {
    background: white;
    border: 3px solid #059669;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    top: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.irs--flat .irs-handle:hover {
    border-color: #047857;
    transform: scale(1.1);
}

.irs--flat .irs-from,
.irs--flat .irs-to,
.irs--flat .irs-single {
    background: #059669;
    color: white;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    top: 0;
}

.irs--flat .irs-min,
.irs--flat .irs-max {
    background: #f1f5f9;
    color: #64748b;
    border-radius: 4px;
    font-size: 10px;
    padding: 1px 4px;
    top: 0;
}

/* Enhanced responsive card styles */
.filters-card {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.filters-card .results-content {
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding: 0;
}

/* Better trait cards responsive layout */
.trait-item {
    margin-bottom: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.trait-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

/* Improved trait controls for better responsiveness */
.trait-controls {
    display: grid;
    grid-template-columns: 70px 1fr 70px;
    gap: 0.75rem;
    align-items: center;
    min-height: 50px;
}

.trait-input input {
    width: 100%;
    padding: 0.5rem 0.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    background: #f9fafb;
    color: #374151;
    transition: all 0.2s ease;
}

.trait-slider {
    position: relative;
    min-height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 8px;
}

/* Enhanced Ion Range Slider responsive styles */
.irs {
    height: 40px !important;
    width: 100% !important;
}

.irs--flat .irs-line {
    background: #e5e7eb;
    height: 4px;
    border-radius: 2px;
    top: 22px;
}

.irs--flat .irs-bar {
    background: linear-gradient(to right, #059669, #047857);
    height: 4px;
    border-radius: 2px;
    top: 22px;
}

.irs--flat .irs-handle {
    background: white;
    border: 2px solid #059669;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    top: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

/* Mobile responsive */
@media (max-width: 1200px) {
    .trait-controls {
        grid-template-columns: 60px 1fr 60px;
        gap: 0.5rem;
    }
    
    .trait-item {
        padding: 1.25rem;
    }
}

@media (max-width: 992px) {
    .filters-card {
        position: static;
        max-height: none;
    }
    
    .filters-card .results-content {
        max-height: 500px;
    }
    
    .trait-controls {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        text-align: center;
    }
    
    .trait-inputs-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .trait-slider {
        order: 3;
        margin-top: 1rem;
        padding: 0 12px;
    }
}

@media (max-width: 768px) {
    .marketplace-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1.25rem 1rem;
    }

    .trait-row {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }

    .trait-controls {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .trait-inputs-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .trait-slider {
        order: 3;
        margin-top: 1rem;
        padding: 0 16px;
    }

    .traits-list {
        padding: 0.75rem;
    }

    .trait-item {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .irs--flat .irs-handle {
        width: 24px;
        height: 24px;
        top: 14px;
    }
    
    .irs--flat .irs-line,
    .irs--flat .irs-bar {
        height: 6px;
        top: 21px;
    }
}

@media (max-width: 480px) {
    .marketplace-header {
        padding: 1rem;
    }

    .traits-list {
        padding: 0.75rem;
    }

    .trait-item {
        padding: 1rem;
    }

    .trait-inputs-row {
        gap: 0.75rem;
    }
}

/* Loading animation for trait items */
.trait-item.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.trait-item.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 1.5rem;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    border: 3px solid #e5e7eb;
    border-top: 3px solid #059669;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Results card improvements */
.results-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.results-header {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-bottom: none;
}

.results-header h4 {
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.results-header h4 i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.results-content {
    padding: 0;
    background: #f8fafc;
    min-height: 400px;
}

/* Empty state for filters */
#filter:empty::after {
    content: 'Select breed and breed type to view filters';
    display: block;
    text-align: center;
    color: #6b7280;
    font-style: italic;
    padding: 3rem 2rem;
    background: white;
    border-radius: 12px;
    margin: 1.5rem;
    border: 2px dashed #d1d5db;
}

/* ==========================================
 * 4. CONTACT PAGE STYLES
 * ========================================== */
.contact-header {
    background: linear-gradient(135deg, #059669 0%, #2563eb 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.contact-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.contact-subtitle {
    font-size: 1.25rem;
    max-width: 48rem;
    margin: 0 auto;
    opacity: 0.9;
}

.contact-section {
    padding: 4rem 0;
    background: white;
}

.contact-container {
    max-width: 64rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.contact-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.contact-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-0.25rem);
}

.contact-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.contact-card-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.contact-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #059669;
}

.contact-card-content {
    color: #4b5563;
    line-height: 1.6;
}

.contact-link {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.contact-form {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    border: 1px solid #e5e7eb;
}

.contact-form h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.2);
}

.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
}

.form-select:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.2);
}

.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
    resize: vertical;
    min-height: 6rem;
}

.form-textarea:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.2);
}

.contact-btn {
    background: #059669;
    color: white;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.contact-btn:hover {
    background: #047857;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-faq-card {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 1px solid #3b82f6;
}

.contact-faq-card .contact-icon {
    color: #2563eb;
}

.faq-btn {
    background: white;
    color: #2563eb;
    padding: 0.5rem 1rem;
    border: 1px solid #2563eb;
    border-radius: 0.375rem;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-block;
    transition: all 0.2s ease;
    margin-top: 1rem;
}

.faq-btn:hover {
    background: #2563eb;
    color: white;
    text-decoration: none;
}

/* ==========================================
 * 5. RESPONSIVE DESIGN
 * ========================================== */
/* Media queries para responsive */
@media (min-width: 640px) {
    .btn-group {
        flex-direction: row;
    }
    
    .hero-title {
        font-size: 3.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }

    .contact-title {
        font-size: 4rem;
    }

    .contact-subtitle {
        font-size: 1.5rem;
    }
}

@media (min-width: 768px) {
    .header-container {
        padding: 0 1.5rem;
    }

    .main-nav {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
    }

    .mobile-nav {
        display: none;
    }

    .user-name {
        display: block;
    }

    .cards-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .quality-title {
        font-size: 3rem;
    }

    .futuristic-title {
        font-size: 2.5rem;
    }
    
    .search-controls {
        padding: 1.5rem;
    }
    
    .btn-search-futuristic {
        margin-top: 1rem;
    }

    .contact-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 767px) {
    .user-name {
        display: none;
    }

    .header-actions {
        gap: 0.5rem;
    }

    .watchlist-btn {
        padding: 0.375rem;
    }

    .user-menu-trigger {
        padding: 0.375rem;
    }

    .futuristic-title {
        font-size: 2.5rem;
    }
    
    .search-controls {
        padding: 1.5rem;
    }
    
    .btn-search-futuristic {
        margin-top: 1rem;
    }
}

@media (min-width: 1024px) {
    .header-container {
        padding: 0 2rem;
    }

    .hero-content {
        padding: 0 2rem;
    }
    
    .quality-content {
        padding: 0 2rem;
    }

    .contact-container {
        padding: 0 2rem;
    }
}

/* ==========================================
 * 6. UTILITIES
 * ========================================== */
.hidden {
    display: none;
}

/* Enhanced animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading state */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.5rem;
    z-index: 10;
}

.loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 3px solid #e5e7eb;
    border-top: 3px solid #10b981;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* prueba git */
