/* ========================================
   HERO SECTION RESPONSIVE STYLES
   ======================================== */

/* Hero Section Base Styles */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: float 20s ease-in-out infinite;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Dashboard Preview Styles */
.dashboard-preview {
    transition: all 0.3s ease;
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Extra small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    .hero-section {
        min-height: 75vh !important;
        padding: 1.5rem 0;
    }
    
    .hero-section .display-5 {
        font-size: 1.5rem !important;
        line-height: 1.2;
    }
    
    .hero-section .lead {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-section .btn-lg {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
        min-height: 44px;
    }
    
    .hero-section .badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .hero-section .display-5 {
        font-size: 1.7rem !important;
    }
    
    .hero-section .btn-lg {
        font-size: 1.05rem;
        padding: 0.9rem 1.75rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        min-height: 85vh;
        padding: 1.5rem 0;
    }
    
    /* Dashboard preview más pequeño en tablet */
    .dashboard-preview .bg-white {
        transform: scale(0.85) perspective(1000px) rotateY(-5deg) rotateX(5deg) !important;
    }
    
    .dashboard-preview .p-4 {
        padding: 1rem !important;
    }
    
    .dashboard-preview .fs-2 {
        font-size: 1.5rem !important;
    }
    
    /* Títulos en tablet */
    .hero-section .display-4 {
        font-size: 2.8rem;
    }
    
    .hero-section .display-5 {
        font-size: 2.2rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-section {
        min-height: 100vh;
    }
    
    /* Efectos hover dashboard */
    .dashboard-preview .bg-white {
        transition: transform 0.3s ease;
    }
    
    .dashboard-preview:hover .bg-white {
        transform: perspective(1000px) rotateY(-3deg) rotateX(3deg) scale(1.02) !important;
    }
    
    /* Botones desktop con mejor hover */
    .hero-section .btn-lg:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-section {
        min-height: 95vh;
    }
    
    .dashboard-preview .bg-white {
        transform: scale(1.05) perspective(1000px) rotateY(-5deg) rotateX(5deg) !important;
    }
}

/* XXL devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
    .hero-section {
        min-height: 90vh;
    }
    
    .dashboard-preview .bg-white {
        transform: scale(1.1) perspective(1000px) rotateY(-5deg) rotateX(5deg) !important;
    }
}

/* ========================================
   MOBILE-SPECIFIC OPTIMIZATIONS
   ======================================== */

/* Mobile-first approach for phones */
@media (max-width: 768px) {
    /* Hero Section específico */
    .hero-section {
        min-height: 80vh !important;
        padding: 2rem 0;
    }
    
    /* Dashboard preview oculto en móvil */
    .dashboard-preview {
        display: none !important;
    }
    
    /* Botones en móvil más grandes y accesibles */
    .hero-section .btn-lg {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        min-height: 48px; /* Accesibilidad táctil */
        border-radius: 8px;
        font-weight: 600;
    }
    
    /* Títulos móvil optimizados */
    .hero-section .display-4 {
        font-size: 2.2rem !important;
        line-height: 1.2;
    }

    .hero-section .display-5 {
        font-size: 1.8rem !important;
        line-height: 1.3;
    }
    
    /* Texto líder más legible */
    .hero-section .lead {
        font-size: 1.1rem !important;
        line-height: 1.5;
        margin-bottom: 2rem !important;
    }
    
    /* Badges de features móvil */
    .hero-section .badge {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        border-radius: 6px;
    }
    
    /* Espacio entre elementos */
    .hero-section .gap-3 {
        gap: 1rem !important;
    }
    
    /* Contenedor del hero más compacto */
    .hero-section .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */

/* Focus states for better accessibility */
.hero-section .btn:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero-section {
        background: #000;
        color: #fff;
    }
    
    .hero-section .text-warning {
        color: #ffff00 !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .hero-section {
        animation: none;
    }
    
    .hero-section::before {
        animation: none;
    }
    
    .dashboard-preview .bg-white {
        transition: none;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .hero-section {
        background: none !important;
        color: black !important;
        min-height: auto !important;
        page-break-inside: avoid;
    }
    
    .hero-section::before {
        display: none;
    }
    
    .dashboard-preview {
        display: none !important;
    }
}

/* Hero Section Responsive Styles */

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh !important;
        padding: 2rem 0;
    }
    
    .dashboard-preview {
        display: none !important;
    }
    
    .hero-section .btn-lg {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        min-height: 48px;
    }
    
    .hero-section .display-5 {
        font-size: 1.8rem !important;
        line-height: 1.3;
    }
    
    .hero-section .lead {
        font-size: 1.1rem !important;
        line-height: 1.5;
    }
}

/* Tablet optimizations */
@media (min-width: 769px) and (max-width: 992px) {
    .hero-section {
        min-height: 85vh;
    }
    
    .dashboard-preview .bg-white {
        transform: scale(0.85) perspective(1000px) rotateY(-5deg) rotateX(5deg) !important;
    }
}

/* Desktop optimizations */
@media (min-width: 993px) {
    .dashboard-preview:hover .bg-white {
        transform: perspective(1000px) rotateY(-3deg) rotateX(3deg) scale(1.02) !important;
    }
} 