/* ============================================
   MODERN HOME STYLES - KiuMaestro
   Design System: Glassmorphism + Animated Gradients
   ============================================ */

/* Global Animations */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0) scale(1); }
    25% { transform: translateY(-100px) translateX(50px) scale(1.1); }
    50% { transform: translateY(-50px) translateX(-50px) scale(0.9); }
    75% { transform: translateY(-150px) translateX(30px) scale(1.05); }
}

/* Utility Classes */
.py-6 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

.min-vh-70 {
    min-height: 70vh;
}

.min-vh-90 {
    min-height: 90vh;
}

/* Glass Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Gradient Backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.bg-gradient-info {
    background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.bg-gradient-danger {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.bg-gradient-soft {
    background: linear-gradient(180deg, #0A2330 0%, #122D3C 100%);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-light {
    background: linear-gradient(135deg, #ffd89b 0%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section Titles */
.section-title-modern {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #FFFFFF;
}

.section-subtitle-modern {
    font-size: 1.2rem;
    color: #B0C4CE;
}

/* Buttons */
.btn-modern-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 50px;
    padding: 12px 30px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-modern-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.6);
    color: white;
}

.btn-modern-glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 600;
    border-radius: 50px;
    padding: 12px 30px;
    transition: all 0.3s ease;
}

.btn-modern-glass:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    color: white;
}

/* Badge Pills */
.badge-pill-modern {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.feature-badge-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    color: white;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Animated Gradient Backgrounds */
.animated-gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0A2330 0%, #1A3A4B 30%, #122D3C 60%, #0A2330 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: 0;
}

.animated-gradient-bg-alt {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 25%, #43e97b 50%, #38f9d7 75%, #667eea 100%);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
}

/* Floating Particles */
.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    animation: float 20s ease-in-out infinite;
}

/* Card Styles */
.card-modern {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

/* Hero Section Styles */
.hero-section-modern {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 0 120px;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

.hero-title-modern {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    color: white;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.hero-subtitle-modern {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
}

.hero-stats-modern {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-card-modern {
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    color: white;
    min-width: 140px;
}

.stat-card-modern .stat-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.stat-card-modern h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.stat-card-modern p {
    font-size: 0.85rem;
    margin: 5px 0 0;
    opacity: 0.9;
}

.hero-image-container {
    position: relative;
    height: 500px;
}

.floating-card {
    position: absolute;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    min-width: 150px;
}

.floating-card.card-1 {
    top: 10%;
    left: 10%;
    animation: float 15s ease-in-out infinite;
}

.floating-card.card-2 {
    top: 40%;
    right: 10%;
    animation: float 18s ease-in-out infinite 2s;
}

.floating-card.card-3 {
    bottom: 20%;
    left: 30%;
    animation: float 20s ease-in-out infinite 4s;
}

.hero-center-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Legal Pages Styles */
.privacy-hero {
    padding: 100px 0 60px;
    background: linear-gradient(135deg, #0A2330 0%, #122D3C 100%);
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

.legal-hero-title {
    color: #FFFFFF !important;
    text-shadow: 0 4px 30px rgba(0, 188, 212, 0.5), 0 2px 10px rgba(0, 0, 0, 0.3);
    font-weight: 800 !important;
    letter-spacing: -0.5px;
}

.legal-hero-subtitle {
    color: #B0C4CE !important;
    opacity: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-weight: 500 !important;
}

.badge-pill-modern {
    background: rgba(0, 188, 212, 0.2) !important;
    color: #00E6FF !important;
    border: 1px solid rgba(0, 188, 212, 0.4);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.2);
}

.legal-content {
    background: #0A2330;
}

.privacy-content {
    background: #0A2330;
}

.legal-nav-sticky {
    position: sticky;
    top: 100px;
}

.legal-nav-sticky .nav-link,
.privacy-nav-sticky .nav-link {
    color: #B0C4CE;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.95rem;
}

.legal-nav-sticky .nav-link:hover,
.legal-nav-sticky .nav-link.active,
.privacy-nav-sticky .nav-link:hover,
.privacy-nav-sticky .nav-link.active {
    background: rgba(0, 188, 212, 0.15);
    color: #00BCD4;
    transform: translateX(5px);
}

.legal-section,
.privacy-section {
    background: #122D3C;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
    border: 1px solid rgba(0, 188, 212, 0.1);
}

.legal-section h2,
.privacy-section h2 {
    color: #FFFFFF;
    font-weight: 700;
    margin-bottom: 20px;
}

.legal-section h3,
.privacy-section h3 {
    color: #00BCD4;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 15px;
}

.legal-section p,
.legal-section li,
.privacy-section p,
.privacy-section li {
    color: #B0C4CE;
    line-height: 1.8;
}

.legal-section strong,
.privacy-section strong {
    color: #FFFFFF;
}

.legal-section ul,
.privacy-section ul {
    padding-left: 1.5rem;
}

/* Formularios en páginas legales y reportes */
.py-5 {
    background: #0A2330;
}

.py-6 {
    background: #0A2330;
}

.glass-effect h5,
.glass-effect label,
.glass-effect .form-label {
    color: #FFFFFF !important;
}

.glass-effect p,
.glass-effect small,
.glass-effect a:not(.btn) {
    color: #B0C4CE !important;
}

.glass-effect .form-control,
.glass-effect .form-select {
    background: #1A3A4B;
    border: 1px solid rgba(0, 188, 212, 0.2);
    color: #FFFFFF;
}

.glass-effect .form-control:focus,
.glass-effect .form-select:focus {
    background: #122D3C;
    border-color: #00BCD4;
    box-shadow: 0 0 0 0.2rem rgba(0, 188, 212, 0.15);
    color: #FFFFFF;
}

.glass-effect .form-control::placeholder {
    color: #7A8E9A;
}

.alert-info {
    background: rgba(0, 188, 212, 0.15);
    border: 1px solid rgba(0, 188, 212, 0.3);
    color: #B0C4CE;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.15);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #FFD54F;
}

.alert-success {
    background: rgba(0, 230, 118, 0.15);
    border: 1px solid rgba(0, 230, 118, 0.3);
    color: #69F0AE;
}

.alert-danger {
    background: rgba(255, 82, 82, 0.15);
    border: 1px solid rgba(255, 82, 82, 0.3);
    color: #FF8A80;
}

/* FAQ accordion styling */
.accordion-item {
    background: #122D3C;
    border: 1px solid rgba(0, 188, 212, 0.1);
    margin-bottom: 1rem;
}

.accordion-button {
    background: #122D3C;
    color: #FFFFFF;
    border: none;
}

.accordion-button:not(.collapsed) {
    background: rgba(0, 188, 212, 0.1);
    color: #00BCD4;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 188, 212, 0.15);
}

.accordion-body {
    background: #1A3A4B;
    color: #B0C4CE;
}

.accordion-body strong {
    color: #FFFFFF;
}

.accordion-body ul {
    color: #B0C4CE;
}

.accordion-body .alert {
    margin-bottom: 0;
}

/* Privacy sticky nav */
.privacy-nav-sticky {
    position: sticky;
    top: 100px;
}

.privacy-nav-sticky .nav-link {
    color: #B0C4CE;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.95rem;
}

.privacy-nav-sticky .nav-link:hover,
.privacy-nav-sticky .nav-link.active {
    background: rgba(0, 188, 212, 0.15);
    color: #00BCD4;
    transform: translateX(5px);
}

.privacy-nav-sticky h6 {
    color: #7A8E9A !important;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(90deg, #00BCD4 0%, #2962FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section icons */
.section-icon {
    display: inline-block;
}

/* Responsive */
@media (max-width: 992px) {
    .legal-nav-sticky {
        position: relative;
        top: 0;
        margin-bottom: 30px;
    }
    
    .hero-image-container {
        height: 300px;
    }
    
    .floating-card {
        min-width: 120px;
        padding: 15px;
    }
    
    .hero-center-circle {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .section-title-modern {
        font-size: 2rem;
    }
    
    .section-subtitle-modern {
        font-size: 1rem;
    }
    
    .btn-modern-primary,
    .btn-modern-glass {
        padding: 10px 24px;
        font-size: 0.95rem;
    }
    
    .hero-section-modern {
        padding: 60px 0 80px;
        min-height: auto;
    }
    
    .hero-stats-modern {
        justify-content: center;
    }
    
    .stat-card-modern {
        min-width: 100px;
        padding: 15px;
    }
    
    .stat-card-modern h3 {
        font-size: 1.5rem;
    }
    
    .hero-image-container {
        display: none;
    }
    
    .legal-section {
        padding: 25px;
    }
}
