/* 
 * Universidad del Rosario - Modern Theme 
 * Based on Brand Guidelines 
 */

:root {
    /* Brand Colors */
    --ur-red: #DA0921;
    --ur-red-dark: #A50618;
    --ur-red-light: rgba(218, 9, 33, 0.1);
    
    --ur-blue: #3100A0;
    --ur-blue-light: rgba(49, 0, 160, 0.1);
    
    --ur-dark: #242839;
    --ur-dark-light: #364057;
    
    /* Typography */
    --font-bebas: 'Bebas Neue', sans-serif;
    --font-roboto: 'Roboto', sans-serif;
}

body {
    font-family: var(--font-roboto);
    color: #4a4a4a;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* Typography Classes */
.font-bebas {
    font-family: var(--font-bebas);
    letter-spacing: 1px;
}

.text-ur-red { color: var(--ur-red) !important; }
.text-ur-blue { color: var(--ur-blue) !important; }
.text-ur-dark { color: var(--ur-dark) !important; }

.bg-ur-red { background-color: var(--ur-red) !important; }
.bg-ur-red-light { background-color: var(--ur-red-light) !important; }
.bg-ur-blue { background-color: var(--ur-blue) !important; }
.bg-ur-blue-light { background-color: var(--ur-blue-light) !important; }
.ur-bg-dark { background-color: var(--ur-dark) !important; }

/* Buttons */
.btn-ur-primary {
    background-color: var(--ur-red);
    color: white;
    border: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(218, 9, 33, 0.3);
}

.btn-ur-primary:hover {
    background-color: var(--ur-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(49, 0, 160, 0.3);
}

.btn-outline-ur-red {
    color: var(--ur-red);
    border: 2px solid var(--ur-red);
    background: transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-outline-ur-red:hover {
    background-color: var(--ur-red);
    color: white;
}

.btn-outline-ur-blue {
    color: var(--ur-blue);
    border: 2px solid var(--ur-blue);
    background: transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-outline-ur-blue:hover {
    background-color: var(--ur-blue);
    color: white;
}

/* Navbar */
.ur-navbar {
    background: rgba(36, 40, 57, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    padding: 15px 0;
}

.ur-navbar.scrolled {
    background: rgba(36, 40, 57, 0.98);
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.ur-logo {
    height: 45px;
    transition: transform 0.3s ease;
}

.ur-navbar .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    text-transform: uppercase;
    margin: 0 10px;
    position: relative;
    transition: color 0.3s ease;
}

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

.ur-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--ur-red);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.custom-toggler {
    border-color: rgba(255,255,255,0.5);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: url('../img/rosario.png') center center / cover no-repeat; /* Fallback */
    /* Use a nice gradient for modern feel since we don't have a big hero image */
    background: linear-gradient(135deg, var(--ur-dark) 0%, var(--ur-blue) 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="2" fill="rgba(255,255,255,0.05)"/></svg>');
}

.shadow-text {
    text-shadow: 2px 4px 8px rgba(0,0,0,0.3);
}

/* Elements */
.floating-img {
    animation: floating 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.3));
}

.floating-img-alt {
    animation: floatingAlt 8s ease-in-out infinite;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.4));
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes floatingAlt {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* Cards */
.ur-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: white;
}

.ur-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ur-card:hover .icon-wrapper {
    transform: scale(1.1);
}

/* Utils */
.ur-divider {
    width: 60px;
    height: 4px;
    background: var(--ur-red);
    border-radius: 2px;
}

.ur-pattern-bg {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(218, 9, 33, 0.05) 0%, transparent 60%);
    z-index: 1;
}

.ur-img-hover {
    transition: all 0.5s ease;
}

.ur-img-hover:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2) !important;
}

/* Stats */
.stat-box {
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.stat-box:hover {
    background: rgba(255,255,255,0.2) !important;
    transform: translateY(-5px);
}

/* Footer */
.ur-footer {
    background-color: var(--ur-dark);
    position: relative;
    overflow: hidden;
}

.ur-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--ur-red) 0%, var(--ur-blue) 100%);
}

.ur-form .form-control {
    background: rgba(255,255,255,0.9);
}

.ur-form .form-control:focus {
    box-shadow: none;
    background: white;
}

#myBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--ur-red);
    color: white;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

#myBtn:hover {
    background-color: var(--ur-blue);
    transform: translateY(-3px);
}

.tracking-wider { letter-spacing: 1px; }
