/* ==========================================
   GLOBAL STYLES & VARIABLES
   ========================================== */

:root {
    --primary-color: #2c3e50;
    --primary-light: #34495e;
    --primary-dark: #1a252f;
    --accent-color: #e74c3c;
    --accent-light: #ec7063;
    --success-color: #27ae60;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #ecf0f1;
    --bg-white: #ffffff;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

h3 {
    font-size: 1.3rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

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

a:hover {
    color: var(--accent-light);
    text-decoration: underline;
}

strong {
    font-weight: 600;
    color: var(--primary-color);
}

em {
    font-style: italic;
}

/* ==========================================
   LAYOUT & SPACING
   ========================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    scroll-margin-top: 70px;
}

/* ==========================================
   NAVIGATION
   ========================================== */

.navbar {
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.2rem;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    color: var(--bg-white);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--bg-white);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--bg-white);
    margin: 5px 0;
    border-radius: 2px;
    transition: var(--transition);
}

/* ==========================================
   RESPONSIVE NAVIGATION
   ========================================== */

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(10px, 10px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .nav-menu {
        position: absolute;
        left: 0;
        top: 100%;
        flex-direction: column;
        background-color: var(--primary-dark);
        width: 100%;
        text-align: center;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-menu.active {
        max-height: 400px;
    }

    .nav-menu li {
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu a::after {
        display: none;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    background-attachment: fixed;
    color: var(--bg-white);
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background-image: url('UNLP_Logo.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.08;
    z-index: 1;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background-color: rgba(231, 76, 60, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    z-index: 1;
}

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

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    color: #ffffff;
    font-weight: 700;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 1.5rem auto 2rem;
    color: #ffffff;
    font-weight: 400;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--bg-white);
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    margin-top: 1rem;
}

.cta-button:hover {
    background-color: var(--accent-light);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.3);
    text-decoration: none;
}

/* ==========================================
   SECTIONS
   ========================================== */

.section {
    padding: 80px 0;
}

.section.bg-light {
    background-color: var(--bg-light);
}

.section.bg-dark {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.section.bg-dark h2 {
    color: var(--bg-white);
}

.section.bg-dark h2::after {
    background-color: var(--accent-color);
}

.section-intro {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 800px;
    line-height: 1.8;
}

.section-note {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: rgba(231, 76, 60, 0.1);
    border-left: 4px solid var(--accent-color);
    border-radius: var(--border-radius);
    font-style: italic;
}

.content-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* ==========================================
   AUTHORITIES SECTION
   ========================================== */

.authorities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.authority-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

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

.authority-card h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.authority-card p {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

/* ==========================================
   OBJECTIVES LIST
   ========================================== */

.objectives-list {
    list-style: none;
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.objectives-list li {
    padding: 1.5rem;
    padding-left: 2.5rem;
    position: relative;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    line-height: 1.8;
    transition: var(--transition);
}

.objectives-list li:hover {
    background: rgba(231, 76, 60, 0.1);
    transform: translateX(5px);
}

.objectives-list li::before {
    content: '✓';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.3rem;
}

/* ==========================================
   AUDIENCE GRID
   ========================================== */

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.audience-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    border-top: 4px solid var(--accent-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

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

.audience-card h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.audience-card p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.7;
}

/* ==========================================
   ACTIVITIES LIST
   ========================================== */

.activities-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.activity-item {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border-left: 4px solid var(--accent-color);
}

.activity-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.activity-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.activity-item p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.7;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */

.contact-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
}

.contact-intro {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.email-link {
    display: inline-block;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent-color);
    padding: 1rem 2rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    transition: var(--transition);
    margin-bottom: 1.5rem;
}

.email-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    text-decoration: none;
}

.contact-description {
    margin-top: 1.5rem;
    opacity: 0.95;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.social-link {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--bg-white);
    padding: 0.75rem 1.5rem;
    background-color: var(--accent-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    background-color: var(--accent-light);
    transform: scale(1.05);
    text-decoration: none;
}

.linkedin-link {
    background-color: #0077b5;
}

.linkedin-link:hover {
    background-color: #005a87;
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    background-color: var(--primary-dark);
    color: var(--bg-white);
    text-align: center;
    padding: 3rem 0;
    border-top: 3px solid var(--accent-color);
}

.footer-quote {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--accent-light);
}

.footer-text {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 768px) {
    .section {
        padding: 50px 0;
    }

    .hero {
        padding: 80px 0;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-intro {
        font-size: 1rem;
    }

    .objectives-list li,
    .audience-card,
    .activity-item,
    .authority-card {
        padding: 1.5rem;
    }

    .audience-grid,
    .activities-list,
    .authorities {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .hero {
        padding: 60px 0;
    }

    .section {
        padding: 40px 0;
    }

    .nav-menu {
        gap: 0;
    }

    .email-link {
        font-size: 1.1rem;
        padding: 0.8rem 1.5rem;
    }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}
