/* ===========================
   Variables CSS
   =========================== */
:root {
    --primary-color: #d32f2f;
    --secondary-color: #383535;
    --text-color: #333;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

/* ===========================
   Reset y Base
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

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

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

ul {
    list-style: none;
}

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

/* ===========================
   Header
   =========================== */
.main-header {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo img {
    height: 60px;
    width: auto;
    transition: var(--transition);
}

.logo a:hover img {
    opacity: 0.8;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: bold;
}

.logo a:hover h1 {
    opacity: 0.8;
}

/* Navegación */
.main-nav ul {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: var(--white);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: var(--transition);
}

/* ===========================
   Hero / Slider
   =========================== */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
    background-color: #000;
}

.slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
}

.slide-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.slide-content p {
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    font-size: 3rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.slider-nav:hover {
    background-color: rgba(211, 47, 47, 0.8);
}

.slider-nav.prev {
    left: 1rem;
}

.slider-nav.next {
    right: 1rem;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* ===========================
   Page Header (Internal Pages)
   =========================== */
.page-header {
    position: relative;
    background-image: url('../images/collaGran.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.85) 0%, rgba(56, 53, 53, 0.9) 100%);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 6rem 20px;
}

.page-header h1 {
    font-size: 4rem;
    color: var(--white);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0;
    text-shadow:
        3px 3px 6px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(211, 47, 47, 0.4);
    animation: fadeInUp 0.8s ease-out;
}

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

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--white));
    z-index: 2;
}

/* ===========================
   Main Content
   =========================== */
main {
    padding: 4rem 0;
}

section {
    margin-bottom: 4rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
    text-align: center;
}

/* Intro Section */
.intro {
    text-align: center;
    max-width: 800px;
}

.intro p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Button */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 6px rgba(211, 47, 47, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background-color: #b71c1c;
    border-color: #b71c1c;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(211, 47, 47, 0.3),
                0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.2);
}

/* Highlights Section */
.highlights {
    background-color: var(--light-bg);
    padding: 4rem 0;
}

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

.card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(211, 47, 47, 0.2);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12),
                0 4px 8px rgba(211, 47, 47, 0.1);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card h3 {
    font-size: 1.5rem;
    margin: 1.5rem 1rem 1rem;
    color: var(--primary-color);
}

.card p {
    padding: 0 1rem 1.5rem;
    color: #666;
}

/* Events Section */
.events-list {
    max-width: 800px;
    margin: 0 auto;
}

.event {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    background-color: var(--white);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.event:hover {
    transform: translateX(8px);
    border-left-width: 6px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1),
                0 2px 4px rgba(211, 47, 47, 0.08);
    background-color: #fafafa;
}

.event-date {
    text-align: center;
    min-width: 80px;
}

.event-date .day {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
}

.event-date .month {
    display: block;
    font-size: 1rem;
    color: #666;
    text-transform: uppercase;
}

.event-info h3 {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.event-info p {
    color: #666;
}

/* ===========================
   Footer
   =========================== */
.main-footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

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

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    text-align: left;
}

.footer-section p {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 900px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 300px;
        background-color: var(--secondary-color);
        flex-direction: column;
        padding: 5rem 2rem;
        transition: var(--transition);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 1.5rem;
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

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

    .slide-content h2 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1.2rem;
    }

    .slider-nav {
        font-size: 2rem;
        padding: 0.5rem 1rem;
    }

    .page-header {
        min-height: 300px;
        background-attachment: scroll;
    }

    .page-header h1 {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .page-header .container {
        padding: 4rem 20px;
    }
}

@media (max-width: 600px) {
    .header-content {
        gap: 1rem;
    }

    .logo img {
        height: 45px;
    }

    .social-icons {
        display: none;
    }

    h2 {
        font-size: 2rem;
    }

    .slide-content h2 {
        font-size: 1.5rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .event {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        min-height: 250px;
    }

    .page-header h1 {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    .page-header .container {
        padding: 3rem 20px;
    }

    .page-header::after {
        height: 60px;
    }
}

/* Content Section */
.content-section {
    max-width: 900px;
    margin: 0 auto 3rem;
    padding: 2.5rem;
    background-color: var(--white);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease;
}

.content-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.content-section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: left;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(211, 47, 47, 0.2);
}

.content-section h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.content-section p:last-child {
    margin-bottom: 0;
}

.content-section img {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-section img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.content-section ul {
    list-style: disc;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.content-section ul li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 0.5rem;
}
