/* Variables de colores UPM */
:root {
    --upm-blue: #265788;
    --upm-dark-blue: #1a3f5f;
    --upm-light-blue: #4788b8;
    --upm-white: #FFFFFF;
    --upm-gray: #f5f5f5;
    --upm-dark-gray: #333333;
    --upm-accent: #b89e79;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--upm-dark-gray);
    scroll-behavior: smooth;
}

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

/* Navegación */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(38, 87, 136, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo span {
    color: var(--upm-white);
    font-size: 1.5rem;
    font-weight: bold;
}

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

.nav-link {
    color: var(--upm-white);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--upm-accent);
}

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

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

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

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

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

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

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

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--upm-blue);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-logo {
    color: var(--upm-white);
    font-size: 1.5rem;
    font-weight: bold;
}

.close-menu {
    width: 30px;
    height: 30px;
    position: relative;
    cursor: pointer;
    padding: 5px;
}

.close-menu span {
    position: absolute;
    width: 20px;
    height: 3px;
    background: var(--upm-white);
    border-radius: 2px;
    top: 50%;
    left: 50%;
    transition: 0.3s;
}

.close-menu span:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
}

.close-menu span:nth-child(2) {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-nav-menu {
    list-style: none;
    padding: 2rem 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.mobile-nav-link {
    color: var(--upm-white);
    text-decoration: none;
    font-size: 2rem;
    font-weight: bold;
    transition: all 0.3s ease;
    padding: 1rem 2rem;
    border-radius: 10px;
}

.mobile-nav-link:hover {
    color: var(--upm-accent);
    background: rgba(255, 255, 255, 0.1);
}

/* Sección Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--upm-blue);
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    z-index: 1;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.carousel-image.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: rgba(38, 87, 136, 0.6);
    z-index: 2;
}

.hero-divider {
    position: absolute;
    top: 0;
    left: 60%;
    width: 50px;
    height: 100%;
    background: var(--upm-blue);
    z-index: 3;
    clip-path: polygon(
        0% 0%,
        100% 0%,
        85% 10%,
        95% 20%,
        80% 30%,
        90% 40%,
        75% 50%,
        85% 60%,
        70% 70%,
        80% 80%,
        65% 90%,
        75% 100%,
        0% 100%
    );
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.1)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 4;
    padding: 0 2rem;
}

.hero-left-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60%;
    height: 100%;
    position: relative;
    z-index: 5;
}

.hero-right-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 40%;
    height: 100%;
    padding-left: 3rem;
    color: var(--upm-white);
}

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

.hero-image img {
    width: 250px;
    height: 320px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    transition: transform 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.8);
}

.hero-image img:hover {
    transform: scale(1.05);
}

.hero-text {
    width: 100%;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-text h2 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.eslogan {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--upm-accent);
    color: var(--upm-white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: #a68a68;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--upm-white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--upm-accent);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    right: 5rem;
    color: var(--upm-white);
    font-size: 2rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 5;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Sección Programa */
.programa {
    padding: 5rem 0;
    background: var(--upm-gray);
}

.programa h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--upm-blue);
    margin-bottom: 3rem;
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--upm-white);
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: var(--shadow-hover);
}

.accordion-header {
    padding: 1.5rem;
    background: var(--upm-blue);
    color: var(--upm-white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: var(--upm-dark-blue);
}

.accordion-header h3 {
    font-size: 1.3rem;
    margin: 0;
}

.accordion-header i {
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.accordion-item.active .accordion-content {
    padding: 1.5rem;
    max-height: 2000px;
}

.accordion-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--upm-dark-gray);
}

/* Sección Eventos */
.eventos {
    padding: 5rem 0;
    background: var(--upm-white);
}

.eventos h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--upm-blue);
    margin-bottom: 1rem;
}

.campaign-period {
    text-align: center;
    font-size: 1.2rem;
    color: var(--upm-accent);
    font-weight: 600;
    margin-bottom: 3rem;
}

.calendar-container {
    background: var(--upm-gray);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.calendar-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.calendar-header h3 {
    color: var(--upm-blue);
    font-size: 1.8rem;
    margin: 0;
}

.calendar {
    max-width: 400px;
    margin: 0 auto;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.weekday {
    text-align: center;
    font-weight: 600;
    color: var(--upm-blue);
    padding: 10px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    background: var(--upm-white);
}

.day:hover:not(.disabled) {
    transform: scale(1.1);
    box-shadow: var(--shadow);
}

.day.disabled {
    color: #ccc;
    cursor: not-allowed;
    background: #f8f9fa;
}

.day.campaign-start {
    background: var(--upm-blue);
    color: var(--upm-white);
    font-weight: bold;
}

.day.event-day {
    background: var(--upm-accent);
    color: var(--upm-white);
    font-weight: bold;
}

.day.voting-day {
    background: #dc3545;
    color: var(--upm-white);
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.events-list {
    margin-top: 3rem;
}

.events-list h3 {
    color: var(--upm-blue);
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.event-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--upm-blue);
    background: var(--upm-white);
    color: var(--upm-blue);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn:hover {
    background: var(--upm-blue);
    color: var(--upm-white);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--upm-accent);
    color: var(--upm-white);
    border-color: var(--upm-accent);
}

.event-items {
    display: grid;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.event-item {
    display: flex;
    background: var(--upm-gray);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--upm-accent);
}

.event-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.event-item.voting {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #fff 0%, #fff5f5 100%);
}

.event-date {
    min-width: 100px;
    text-align: center;
    font-weight: bold;
    color: var(--upm-blue);
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--upm-white);
    border-radius: 8px;
    margin-right: 1.5rem;
    padding: 10px;
    line-height: 1.3;
}

.event-time {
    font-size: 0.9rem;
    color: var(--upm-accent);
    font-weight: 600;
    margin-top: 2px;
}

.event-content h4 {
    color: var(--upm-blue);
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
}

.event-audience {
    color: var(--upm-accent);
    font-weight: 600;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.event-location {
    color: var(--upm-blue);
    font-weight: 500;
    margin: 0.3rem 0;
    font-size: 0.85rem;
}

.event-location i {
    margin-right: 0.3rem;
}

.event-content p:last-child {
    color: var(--upm-dark-gray);
    margin: 0;
    line-height: 1.5;
}

/* Sección Sugerencias */
.sugerencias {
    height: calc(100vh - 65px);
    background: var(--upm-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.sugerencias::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 33.33%;
    height: 100%;
    background-image: url('juana_1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.6;
    z-index: 1;
}

.sugerencias::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 33.33%;
    height: 100%;
    background: linear-gradient(90deg, var(--upm-blue) 0%, rgba(38, 87, 136, 0.7) 40%, rgba(38, 87, 136, 0.4) 100%);
    z-index: 2;
}

.sugerencias-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 3;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.sugerencias-text {
    flex: 1;
    color: var(--upm-white);
    max-width: 60%;
}

.sugerencias-text h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.sugerencias-text h2 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.sugerencias-text .eslogan {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.sugerencias-buttons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.contact-description {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 500px;
}

/* Footer */
.footer {
    background: transparent;
    color: var(--upm-white);
    text-align: center;
    padding: 1rem 0;
    margin-top: 0;
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 4;
}

.footer p {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-carousel {
        width: 100%;
    }
    
    .hero-overlay {
        width: 100%;
    }
    
    .hero-divider {
        display: none;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 2rem;
    }
    
    .hero-left-content,
    .hero-right-content {
        width: 100%;
        padding-left: 0;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text h2 {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .scroll-indicator {
        right: 50%;
        transform: translateX(50%);
    }
    
    .calendar-container {
        padding: 1rem;
    }
    
    .calendar {
        max-width: 100%;
    }
    
    .event-item {
        flex-direction: column;
        text-align: center;
    }
    
    .event-date {
        margin-right: 0;
        margin-bottom: 1rem;
        min-width: 120px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .sugerencias-content {
        padding: 2rem;
        text-align: center;
    }
    
    .sugerencias-text {
        max-width: 100%;
    }
    
    .sugerencias-text h1 {
        font-size: 2.5rem;
    }
    
    .sugerencias-text h2 {
        font-size: 1.5rem;
    }
    
    .sugerencias-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }
    
    .sugerencias::before,
    .sugerencias::after {
        display: none;
    }
    
    .accordion-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-image img {
        width: 250px;
        height: 300px;
    }
    
    .hero-carousel {
        min-width: 100%;
        min-height: 100%;
    }
    
    .container {
        padding: 0 15px;
    }
} 