/* ===== ALYSA CLOUD - ESTILOS PRINCIPALES ===== */
/* Estilos corregidos para evitar elementos que desaparezcan */

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --warning-color: #f97316;
    --danger-color: #ef4444;
    --success-color: #22c55e;
    --info-color: #06b6d4;
    --purple-color: #8b5cf6;
    --pink-color: #ec4899;
    
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    --white: #ffffff;
    --black: #000000;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
    --border-radius-xl: 1.5rem;
    
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s ease;
}

/* ===== RESET Y BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white);
    overflow-x: hidden;
}

/* ===== TIPOGRAFÍA ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-color) !important;
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-weight: 800;
    line-height: 1.1;
    color: var(--dark-color) !important;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--gray-600) !important;
}

p {
    color: var(--gray-600) !important;
}

/* ===== GRADIENTES ===== */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--purple-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-bg {
    background: linear-gradient(135deg, var(--primary-color), var(--purple-color));
}

.gradient-bg-secondary {
    background: linear-gradient(135deg, var(--secondary-color), var(--info-color));
}

.gradient-bg-accent {
    background: linear-gradient(135deg, var(--accent-color), var(--warning-color));
}

/* ===== HEADER Y NAVEGACIÓN ===== */
.navbar {
    transition: var(--transition);
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    font-size: 1.75rem;
    color: var(--primary-color) !important;
    text-decoration: none;
}

.navbar-brand i {
    color: var(--primary-color);
}

.nav-link {
    font-weight: 500;
    color: var(--gray-700) !important;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: var(--shadow-lg);
}

/* ===== BOTONES ===== */
.btn {
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white) !important;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white) !important;
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-success {
    background: linear-gradient(135deg, var(--secondary-color), var(--success-color));
    color: var(--white) !important;
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, var(--success-color), var(--secondary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white) !important;
}

.btn-warning {
    background: linear-gradient(135deg, var(--accent-color), var(--warning-color));
    color: var(--white) !important;
    border: none;
}

.btn-warning:hover {
    background: linear-gradient(135deg, var(--warning-color), var(--accent-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white) !important;
}

.btn-light {
    background: var(--white);
    color: var(--primary-color) !important;
    border: none;
}

.btn-light:hover {
    background: var(--gray-100);
    color: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.glow {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.glow:hover {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    padding-bottom: 2rem;
}

.hero-section::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"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    color: var(--white) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-section .text-primary {
    color: var(--accent-color) !important;
}

.hero-section p {
    color: var(--white) !important;
}

.hero-section .badge {
    color: var(--dark-color) !important;
    background-color: var(--accent-color) !important;
}

.hero-section .text-white {
    color: var(--white) !important;
}

.hero-image {
    position: relative;
    z-index: 2;
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    animation: float-icon 3s ease-in-out infinite;
    opacity: 0.8;
}

@keyframes float-icon {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

/* ===== FEATURES SECTION ===== */
.feature-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.feature-card h4 {
    color: var(--dark-color) !important;
}

.feature-card p {
    color: var(--gray-600) !important;
}

.icon-wrapper {
    transition: var(--transition);
}

.feature-card:hover .icon-wrapper {
    transform: scale(1.1);
}

/* ===== SOLUTIONS SECTION ===== */
.solution-content {
    padding: 1rem 0;
}

.solution-content h3 {
    color: var(--dark-color) !important;
}

.solution-content p {
    color: var(--gray-600) !important;
}

.solution-badge {
    display: inline-block;
}

.solution-badge .badge {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
}

.solution-image {
    position: relative;
}

.solution-image img {
    transition: var(--transition);
}

.solution-image:hover img {
    transform: scale(1.05);
}

/* ===== ENTERPRISE SECTION ===== */
.enterprise-content {
    padding: 1rem 0;
}

.enterprise-content h2 {
    color: var(--white) !important;
}

.enterprise-content p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.enterprise-content li {
    color: rgba(255, 255, 255, 0.9) !important;
}

.enterprise-badge .badge {
    background: rgba(255, 255, 255, 0.2) !important;
    color: var(--white) !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonial-card {
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    background: var(--white);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.testimonial-card h6 {
    color: var(--dark-color) !important;
}

.testimonial-card p {
    color: var(--gray-600) !important;
}

.testimonial-card small {
    color: var(--gray-500) !important;
}

.stars {
    color: var(--accent-color);
}

.avatar {
    color: var(--gray-400);
}

/* ===== ANIMACIONES ===== */
.slide-in-left {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.8s ease;
}

.slide-in-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.8s ease;
}

.slide-in-right.animate {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-up {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease;
}

.fade-in-up.animate {
    opacity: 1;
    transform: translateY(0);
}

/* ===== ANIMACIONES DE ENTRADA MEJORADAS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== VISIBILIDAD POR DEFECTO ===== */
.feature-card,
.testimonial-card,
.solution-content,
.enterprise-content,
.hero-content,
.hero-image {
    opacity: 1 !important;
    visibility: visible !important;
}

/* ===== ANIMACIONES SUAVES ===== */
.feature-card,
.testimonial-card,
.solution-content,
.enterprise-content {
    animation: fadeInUp 0.6s ease-out;
}

.slide-in-left {
    animation: fadeInLeft 0.6s ease-out;
}

.slide-in-right {
    animation: fadeInRight 0.6s ease-out;
}

/* ===== HOVER EFFECTS ===== */
.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* ===== MODAL ===== */
.modal-content {
    border-radius: var(--border-radius-lg);
    border: none;
    box-shadow: var(--shadow-2xl);
}

.modal-header {
    border-bottom: 1px solid var(--gray-200);
    background: linear-gradient(135deg, var(--primary-color), var(--purple-color));
    color: var(--white);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-title {
    color: var(--white) !important;
}

/* ===== FORMULARIOS ===== */
.form-control, .form-select {
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    transition: var(--transition);
    font-size: 1rem;
    color: var(--dark-color) !important;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--gray-700) !important;
    margin-bottom: 0.5rem;
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
}

footer h5, footer h6 {
    color: var(--white) !important;
}

footer p {
    color: var(--gray-400) !important;
}

footer a {
    color: var(--gray-400) !important;
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: var(--white) !important;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 0.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .solution-content, .enterprise-content {
        padding: 1rem 0;
        text-align: center;
    }
    
    .solution-image {
        margin-top: 2rem;
    }
}

/* ===== COMPACT SPACING ===== */
section {
    margin-bottom: 0;
}

section:last-child {
    margin-bottom: 0;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.mb-5 {
    margin-bottom: 2rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.row.g-4 {
    --bs-gutter-y: 1.5rem;
}

/* ===== SECTION SPACING OPTIMIZATION ===== */
.bg-light {
    background-color: var(--gray-100) !important;
}

.bg-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--purple-color)) !important;
}

.bg-dark {
    background: linear-gradient(135deg, var(--gray-900), var(--gray-800)) !important;
}

/* ===== CONTENT DENSITY ===== */
.lead {
    font-size: 1.1rem !important;
    line-height: 1.5 !important;
}

.display-5 {
    font-size: 2.5rem !important;
    line-height: 1.2 !important;
}

/* ===== SOLUTION CARDS ===== */
.solution-content ul li {
    margin-bottom: 0.75rem !important;
    font-size: 0.95rem !important;
}

.solution-content ul li:last-child {
    margin-bottom: 0 !important;
}

/* ===== FEATURE CARDS ===== */
.feature-card h4 {
    font-size: 1.25rem !important;
    margin-bottom: 0.75rem !important;
}

.feature-card p {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
}

@media (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 2.5rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .floating-elements {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ===== SCROLLBAR PERSONALIZADO ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===== UTILIDADES ===== */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-accent { color: var(--accent-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-info { color: var(--info-color) !important; }
.text-purple { color: var(--purple-color) !important; }
.text-pink { color: var(--pink-color) !important; }

.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-accent { background-color: var(--accent-color) !important; }
.bg-warning { background-color: var(--warning-color) !important; }
.bg-success { background-color: var(--success-color) !important; }
.bg-info { background-color: var(--info-color) !important; }
.bg-purple { background-color: var(--purple-color) !important; }
.bg-pink { background-color: var(--pink-color) !important; }

/* ===== LOADING STATES ===== */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== ALERTAS ===== */
.alert {
    border: none;
    border-radius: var(--border-radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.alert-success {
    background: linear-gradient(135deg, var(--success-color), var(--secondary-color));
    color: var(--white) !important;
}

.alert-danger {
    background: linear-gradient(135deg, var(--danger-color), var(--warning-color));
    color: var(--white) !important;
}

.alert-info {
    background: linear-gradient(135deg, var(--info-color), var(--primary-color));
    color: var(--white) !important;
}

/* ===== BADGES ===== */
.badge {
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
}

/* ===== TRUST BADGES ===== */
.trust-badges .badge {
    background: rgba(255, 255, 255, 0.2) !important;
    color: var(--white) !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--purple-color));
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ===== PARALLAX EFFECT ===== */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* ===== LAZY LOADING ===== */
.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .floating-elements,
    .back-to-top,
    .btn {
        display: none !important;
    }
    
    body {
        color: var(--black);
        background: var(--white);
    }
    
    .hero-section {
        background: var(--white) !important;
        color: var(--black) !important;
    }
    
    .hero-section h1,
    .hero-section p {
        color: var(--black) !important;
    }
}
