@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;800&display=swap');

:root {
    --primary: #ff6b00;
    --primary-dark: #e55a00;
    --secondary: #003366;
    --secondary-light: #0055aa;
    --accent: #00d9ff;
    --dark: #1a1a1a;
    --light: #ffffff;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { 
    font-family: 'Montserrat', sans-serif; 
    background: var(--light); 
    color: var(--dark); 
    overflow-x: hidden; 
    line-height: 1.6;
}

/* ========== WHATSAPP FLOTANTE ========== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    animation: pulse 2s infinite;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ========== NAVBAR ========== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: rgba(0, 51, 102, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-img {
    width: 40px;
    filter: drop-shadow(0 2px 5px rgba(255, 255, 255, 0.3));
}
.logo-text {
    color: white;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 1px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}
.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.95rem;
    position: relative;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--primary);
    transition: all 0.3s;
    transform: translateX(-50%);
}
.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}
.siu-link {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 8px 20px;
    border-radius: 25px;
    color: white !important;
    font-size: 0.9rem !important;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}
.siu-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
}
.siu-link::after { display: none; }

/* ========== SOCIAL SIDEBAR ========== */
.social-sidebar {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.social-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.3s;
}
.sb-fb { background: #3b5998; }
.sb-ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.sb-wa { background: #25d366; }
.social-btn:hover {
    width: 65px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* ========== FULLPAGE SECTIONS ========== */
.fullpage-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 5% 60px;
    position: relative;
}

/* ========== HERO SECTION ========== */
.hero-section {
    background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
    flex-direction: row;
    align-items: center;
    gap: 60px;
    overflow: hidden;
}
.hero-content {
    max-width: 550px;
    z-index: 2;
    animation: slideInLeft 0.8s ease-out;
}
.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--secondary);
    font-weight: 900;
}
.highlight {
    background: linear-gradient(135deg, var(--primary) 0%, #ff8c42 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 35px;
    color: #555;
    line-height: 1.7;
}
.cta-btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.3);
    transition: all 0.3s;
}
.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 0, 0.4);
}
.astro-container {
    width: 400px;
    height: 400px;
    z-index: 5;
    transform: rotate(-10deg);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 6px solid var(--primary);
    background: black;
    animation: float 3s ease-in-out infinite;
}
.astro-container:hover {
    transform: rotate(0deg) scale(1.05);
}
.astro-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes float {
    0%, 100% { transform: rotate(-10deg) translateY(0); }
    50% { transform: rotate(-10deg) translateY(-10px); }
}

/* ========== CONSOLIDACIÓN ACADÉMICA (OFERTA) ========== */
.oferta-section {
    background: linear-gradient(135deg, #f4f6f8 0%, #e8eef5 100%);
    align-items: stretch;
    justify-content: flex-start;
}
.oferta-layout {
    display: flex;
    gap: 40px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}
.oferta-sidebar {
    flex: 0 0 340px;
    position: sticky;
    top: 120px;
    height: fit-content;
}
.oferta-grid-area {
    flex: 1;
}
.form-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-top: 5px solid var(--primary);
}
input, select {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: inherit;
    background: #f9f9f9;
    transition: all 0.3s;
}
input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
}
.submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.3);
}
.grid-carreras {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.career-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}
.career-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.2);
}
.career-icon-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
    transition: all 0.3s;
}
.career-card:hover .career-icon-img {
    transform: scale(1.1);
}
.career-card h3 {
    color: var(--secondary);
    font-size: 1rem;
    margin: 0;
    line-height: 1.4;
    font-weight: 700;
}
.badge-new {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, #ff8c42 100%);
    color: white;
    font-size: 0.65rem;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(255, 107, 0, 0.3);
}

/* ========== VALUES SECTION (POR QUÉ SOMOS UCIC) ========== */
.values-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}
.values-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.value-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 35px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}
.value-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}
.value-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--accent);
}
.value-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 800;
}
.value-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}
.values-banner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.value-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}
.value-item:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.2);
}
.value-item h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--accent);
    font-weight: 800;
}
.value-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

/* ========== TEAM SECTION ========== */
.team-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}
.team-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}
.team-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-bottom: 4px solid var(--primary);
    transition: all 0.3s;
}
.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}
.team-photo {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: top;
}
.team-info {
    padding: 15px;
}
.team-name {
    font-weight: 700;
    color: var(--secondary);
    font-size: 1rem;
    margin-bottom: 5px;
}
.team-role {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

/* ========== CAMPUS SECTION ========== */
.campus-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
}
.campus-address-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.campus-address-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 15px;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s;
}
.campus-address-card.active, .campus-address-card:hover {
    border-color: var(--primary);
    background: rgba(255, 107, 0, 0.15);
    transform: translateY(-3px);
}
.campus-address-card h3 {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 1.2rem;
    font-weight: 700;
}
.campus-address-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}
.campus-details-container {
    display: none;
    margin-top: 30px;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.campus-details-container.active {
    display: block;
    animation: fadeIn 0.5s;
}
.campus-split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.campus-gallery-8 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 120px);
    gap: 12px;
}
.campus-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    background-color: #333;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    cursor: pointer;
}
.campus-thumb:hover {
    transform: scale(1.08);
    border-color: var(--primary);
    z-index: 2;
    box-shadow: 0 5px 20px rgba(255, 107, 0, 0.5);
}
.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 280px;
    border-radius: 15px;
    border: none;
}

/* ========== COMMON STYLES ========== */
.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--secondary);
    font-weight: 800;
}
.values-section .section-title,
.campus-section .section-title {
    color: white;
}

/* ========== FOOTER ========== */
footer {
    background: #0a0a0a;
    color: white;
    text-align: center;
    padding: 30px;
    font-size: 0.95rem;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== RESPONSIVE ========== */
@media(max-width: 1024px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }
    .hero-content {
        max-width: 100%;
    }
    .hero-content h1 {
        font-size: 3rem;
    }
    .astro-container {
        width: 300px;
        height: 300px;
    }
    .oferta-layout {
        flex-direction: column;
    }
    .oferta-sidebar {
        position: relative;
        top: 0;
        width: 100%;
        max-width: 100%;
    }
    .campus-split-layout {
        grid-template-columns: 1fr;
    }
    .values-container {
        grid-template-columns: 1fr;
    }
}

@media(max-width: 768px) {
    .nav-links {
        gap: 15px;
    }
    .nav-links a {
        font-size: 0.85rem;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
    .grid-carreras {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    .values-banner {
        grid-template-columns: 1fr;
    }
}