/* ============================================
   KUALI AI - CUSTOM STYLES
   Replicación exacta del diseño de kuali.ai
   ============================================ */

/* === ROOT VARIABLES === */
:root {
    /* Colores Primarios */
    --primary-color: #e33b8d;
    --primary-light: #ff5ea0;
    --primary-dark: #c02f75;

    /* Colores Secundarios */
    --secondary-color: #00de6f;
    --secondary-light: #00de6f14;

    /* Colores de Texto */
    --text-dark: #1a1a1a;
    --text-muted: #6c757d;
    --text-light: #999999;

    /* Colores de Fondo */
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #212529;

    /* Fuentes */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
    --font-tertiary: 'Lato', sans-serif;

    /* Espaciados */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;

    /* Border Radius */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 30px;

    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
}

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition-normal);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* === NAVIGATION === */
.navbar {
    padding: 1rem 0;
    transition: var(--transition-normal);
}

.navbar-brand img {
    height: 40px;
    transition: var(--transition-fast);
}

.navbar-nav .nav-link {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    transition: var(--transition-normal);
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: white;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: white;
    transition: var(--transition-normal);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

.navbar-nav .nav-link.active {
    color: white;
    font-weight: 600;
}

.navbar-nav .nav-link.active::after {
    width: 80%;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-md);
    border-radius: var(--border-radius-md);
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    border-radius: var(--border-radius-sm);
    padding: 0.75rem 1rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--secondary-light);
    color: var(--primary-color);
}

/* === BUTTONS === */
.btn {
    font-family: var(--font-primary);
    font-weight: 600;
    border-radius: var(--border-radius-lg);
    padding: 0.75rem 2rem;
    transition: var(--transition-normal);
    border: 2px solid transparent;
    text-transform: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

/* === MAIN CONTENT === */
.main-content {
    padding-top: 80px;
    min-height: calc(100vh - 400px);
}

/* === HERO SECTION === */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* === CARDS === */
.card {
    border-radius: var(--border-radius-md);
    border: none;
    transition: var(--transition-normal);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.card-text {
    color: var(--text-muted);
    line-height: 1.7;
}

/* === SECTIONS === */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* === CLIENT LOGOS === */
.client-logo {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition-normal);
    max-height: 60px;
    object-fit: contain;
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* === SOLUTIONS GRID === */
.solutions-section .card {
    height: 100%;
    border: 1px solid #f0f0f0;
}

.solutions-section .card-img-top {
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
    height: 200px;
    object-fit: cover;
}

/* === FEATURES === */
.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--secondary-light);
}

.feature-icon i {
    color: var(--primary-color);
}

/* === TESTIMONIALS === */
.testimonials-section .card {
    transition: var(--transition-normal);
}

.testimonials-section .card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

/* === CTA SECTION === */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.3;
}

/* === FORMS === */
.form-control, .form-select {
    border-radius: var(--border-radius-sm);
    border: 2px solid #e0e0e0;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(227, 59, 141, 0.15);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* === FOOTER === */
.footer {
    background: var(--bg-dark);
    color: white;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-normal);
}

.footer a:hover {
    color: white;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition-normal);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

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

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

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section .lead {
        font-size: 1.1rem;
    }

    h2 {
        font-size: 2rem;
    }

    .btn-lg {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }

    section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 0;
    }
}

/* === UTILITIES === */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

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

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

/* === LOADING STATES === */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* === ALERTS === */
.alert {
    border-radius: var(--border-radius-md);
    border: none;
    padding: 1rem 1.5rem;
}

/* === BOOTSTRAP OVERRIDES === */
/* Sobrescribir color primary de Bootstrap con el de Kuali */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Iconos con color primario */
.fa.text-primary,
.fas.text-primary,
.far.text-primary,
.fab.text-primary {
    color: var(--primary-color) !important;
}

/* Feature icons */
.feature-icon i {
    color: var(--primary-color) !important;
}

/* === FOOTER SOCIAL ICONS === */
.social-links .btn {
    transition: all 0.3s ease;
}

.social-links .btn:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* === CONTACT PAGE SOCIAL LINKS === */
.hover-primary {
    transition: all 0.3s ease;
}

.hover-primary:hover {
    color: var(--primary-color) !important;
    transform: translateX(5px);
}

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