/* ==========================================
   borrarfondo.online - Estilos principales
   Diseño inspirado en remove.bg
   ========================================== */

:root {
    --primary-color: #FFD84D;
    --dark-color: #1A1A1A;
    --light-gray: #F8F9FA;
    --border-color: #E0E0E0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark-color);
    background: #fff;
}

/* Navbar */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark-color) !important;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #FAFAFA 0%, #F0F0F0 100%);
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--dark-color);
}

/* Upload Area */
.upload-area {
    max-width: 600px;
    min-height: 350px;
    background: white;
    border: 3px dashed var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.upload-area:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.upload-area svg {
    color: var(--primary-color);
}

.upload-area h3 {
    font-weight: 700;
    color: var(--dark-color);
}

.upload-content {
    display: block;
}

.upload-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

/* Buttons */
.btn-warning {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--dark-color);
    font-weight: 600;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background-color: #F5C940;
    border-color: #F5C940;
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 216, 77, 0.4);
}

.btn-dark {
    background-color: var(--dark-color);
    border-color: var(--dark-color);
    font-weight: 600;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
}

.btn-dark:hover {
    background-color: #000;
    transform: scale(1.05);
}

/* Examples Section */
.examples-section {
    background-color: var(--light-gray);
}

.example-card {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.example-card:hover {
    transform: scale(1.05);
}

.example-card img {
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.example-card:hover img {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Quality Section */
.quality-section {
    padding: 5rem 0;
}

.quality-section h2,
.quality-section h3 {
    font-weight: 800;
}

.image-comparison {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

/* Category Tabs */
.category-tab {
    border-radius: 25px !important;
    padding: 0.5rem 1.5rem !important;
    margin: 0 0.25rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6 !important;
}

.category-tab.active {
    background-color: #f8f9fa !important;
    color: #495057 !important;
    border-color: #f8f9fa !important;
}

.category-tab:hover {
    background-color: #f8f9fa !important;
    color: #495057 !important;
}

/* Carousel Container */
.carousel-container {
    max-width: 800px;
    margin: 0 auto;
}

.carousel-image-container {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    position: relative;
}

.image-split-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background-image: 
        linear-gradient(45deg, #f5f5f5 25%, transparent 25%),
        linear-gradient(-45deg, #f5f5f5 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #f5f5f5 75%),
        linear-gradient(-45deg, transparent 75%, #f5f5f5 75%);
    background-size: 12px 12px;
    background-position: 0 0, 0 6px, 6px -6px, -6px 0px;
}

.image-half {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.image-before {
    z-index: 1;
    width: 100%;
}

.image-after {
    z-index: 2;
    width: 100%;
    background-color: transparent;
    clip-path: inset(0 50% 0 0);
}

.image-half img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Slider Line */
.slider-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        var(--primary-color) 20%, 
        var(--primary-color) 80%, 
        transparent 100%);
    box-shadow: 0 0 15px var(--primary-color);
    transform: translateX(-50%);
    z-index: 10;
    cursor: ew-resize;
}

.slider-line::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border: 2px solid white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Carousel Navigation Buttons */
.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #007bff;
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background-color: #0056b3;
    transform: scale(1.1);
}

.carousel-btn-prev {
    left: -25px;
}

.carousel-btn-next {
    right: -25px;
}

/* Decorative Elements */
.decorative-3 {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-color);
    opacity: 0.1;
    z-index: -1;
    transform: rotate(-15deg);
}

.decorative-circle {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0.1;
    z-index: -1;
}

/* Pricing Cards */
.pricing-card {
    border: 2px solid var(--border-color);
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.pricing-card-popular {
    border-color: var(--primary-color) !important;
    box-shadow: 0 10px 40px rgba(255, 216, 77, 0.3);
}

.pricing-card .card-title {
    font-size: 1.5rem;
    font-weight: 800;
}

.pricing-card .price {
    margin: 1.5rem 0;
}

.pricing-card ul li {
    padding: 0.5rem 0;
    color: #666;
}

/* Result Page */
.result-section {
    min-height: 80vh;
}

.image-result-container .card {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

/* Image Comparison Animation */
.image-comparison-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #ffffff;
}

.original-layer {
    position: relative;
    width: 100%;
    display: block;
    background-color: #ffffff;
}

.original-layer img {
    display: block;
    width: 100%;
    height: auto;
    background-color: #ffffff;
}

.result-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: inset(0 100% 0 0);
    animation: wipeReveal 2.5s ease-in-out forwards;
    animation-delay: 0.5s;
    background-image: 
        linear-gradient(45deg, #e0e0e0 25%, transparent 25%),
        linear-gradient(-45deg, #e0e0e0 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #e0e0e0 75%),
        linear-gradient(-45deg, transparent 75%, #e0e0e0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    background-color: #f5f5f5;
}

.result-layer img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.wipe-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        var(--primary-color) 20%, 
        var(--primary-color) 80%, 
        transparent 100%);
    box-shadow: 0 0 15px var(--primary-color);
    animation: wipeLine 2.5s ease-in-out forwards;
    animation-delay: 0.5s;
    z-index: 10;
}

@keyframes wipeReveal {
    0% {
        clip-path: inset(0 100% 0 0);
    }
    100% {
        clip-path: inset(0 0 0 0);
    }
}

@keyframes wipeLine {
    0% {
        left: 0;
    }
    100% {
        left: 100%;
    }
}

.checkerboard-bg {
    /* Ya no se usa aquí, está en el contenedor */
}

.download-option {
    transition: all 0.3s ease;
}

.download-option:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Footer */
.footer {
    margin-top: 5rem;
}

.footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-color) !important;
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-color);
}

.cta-section h2 {
    font-weight: 800;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .upload-area {
        padding: 2rem;
        min-height: 300px;
    }
    
    .pricing-card {
        margin-bottom: 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease;
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Admin Panel */
.admin-sidebar {
    background-color: var(--dark-color);
    min-height: 100vh;
    color: white;
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.7);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: var(--dark-color);
}

.stat-card {
    border-radius: 15px;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 800;
}

/* MercadoPago Button Styles */
.btn-mercadopago {
    background-color: #50b4e9 !important;
    border-color: #50b4e9 !important;
    color: white !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-mercadopago:hover {
    background-color: #3a9fd1 !important;
    border-color: #3a9fd1 !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(80, 180, 233, 0.3);
}

.btn-mercadopago:active {
    background-color: #2e8bc0 !important;
    border-color: #2e8bc0 !important;
    transform: translateY(0);
}

.btn-mercadopago:focus {
    box-shadow: 0 0 0 0.2rem rgba(80, 180, 233, 0.25) !important;
}

/* Edit Button - Fixed Position */
#openEditor {
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

#openEditor:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

