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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    scroll-behavior: smooth;
}

/* Variables CSS para la paleta de colores */
:root {
    --primary-red: #C20E1A;
    --dark-red: #841F1C;
    --medium-red: #9B1D1C;
    --very-dark-red: #3F1517;
    --orange: #DC911B;
    --lime-green: #A2C037;
    --forest-green: #599876;
    --turquoise: #42A8BF;
    --blue: #3D5AA2;
    --purple: #532888;
    --magenta: #AA087C;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --dark-gray: #343a40;
    
    /* Colores extraídos de la flor de loto */
    --lotus-green: #4CAF50;
    --lotus-blue: #2196F3;
    --lotus-teal: #009688;
    --lotus-red: #F44336;
    --lotus-yellow: #FFC107;
    --lotus-orange: #FF9800;
    --lotus-purple: #9C27B0;
}

/* Fixed Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
    height: 70px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.3rem;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
    flex-shrink: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 0.8rem;
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    font-size: 0.8rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    min-width: fit-content;
    height: 40px;
    box-sizing: border-box;
}

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

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    background: var(--primary-red);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(194, 14, 26, 0.3);
}

.nav-link.active {
    background: var(--primary-red);
    color: white;
    box-shadow: 0 4px 15px rgba(194, 14, 26, 0.2);
}

.nav-icon {
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.nav-icon-img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    filter: brightness(0.7);
    transition: filter 0.3s ease;
}

.nav-link:hover .nav-icon-img,
.nav-link.active .nav-icon-img {
    filter: brightness(1) invert(1);
}

.nav-text {
    font-size: 0.75rem;
    font-weight: 600;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: absolute;
    right: 2rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-red);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Responsive navigation */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
        height: 60px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 2rem 0;
        transition: left 0.3s ease;
        gap: 1rem;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        width: 90%;
        max-width: 300px;
        justify-content: center;
        padding: 1rem;
        font-size: 1rem;
    }
    
    .nav-text {
        font-size: 0.9rem;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/* Hero Banner - Nuevo diseño con título a la izquierda */
.hero-banner {
    min-height: 100vh;
    max-height: 1080px;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)), url('campus-background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(103, 126, 234, 0.3);
    backdrop-filter: blur(2px);
    z-index: 1;
}

.hero-container {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    padding: 0 2rem;
    min-height: calc(100vh - 80px);
    max-height: calc(1080px - 80px);
    position: relative;
    z-index: 2;
}

/* Left Side - Title and Lotus Flower */
.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
    color: var(--white);
    animation: fadeInLeft 1s ease-out;
}

.lotus-container {
    position: relative;
    animation: fadeInLeft 1.2s ease-out;
}

.lotus-flower {
    position: relative;
    width: 350px;
    height: 350px;
    animation: floatAnimation 6s ease-in-out infinite;
}

.lotus-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

/* Right Side - Challenge Titles */
.hero-right {
    color: var(--white);
    animation: fadeInRight 1s ease-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.challenges-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
    max-height: 600px;
    overflow-y: auto;
}

.challenge-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 0.8s ease-out forwards;
    min-height: 50px;
}

.challenge-item:nth-child(1) { animation-delay: 0.2s; }
.challenge-item:nth-child(2) { animation-delay: 0.3s; }
.challenge-item:nth-child(3) { animation-delay: 0.4s; }
.challenge-item:nth-child(4) { animation-delay: 0.5s; }
.challenge-item:nth-child(5) { animation-delay: 0.6s; }
.challenge-item:nth-child(6) { animation-delay: 0.7s; }
.challenge-item:nth-child(7) { animation-delay: 0.8s; }

.challenge-item::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.6s ease;
}

.challenge-item:hover::before {
    left: 100%;
}

.challenge-item:hover {
    transform: translateX(8px) scale(1.02);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.challenge-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    opacity: 0.8;
    min-width: 35px;
    text-align: center;
}

.challenge-content {
    flex: 1;
    position: relative;
}

.hero-challenge-title {
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
    color: #ffffff;
    line-height: 1.2;
}

.challenge-indicator {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--white);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.challenge-item:hover .challenge-indicator {
    opacity: 1;
    transform: translateY(-50%) scale(1.5);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

/* Colores específicos para cada desafío */
.challenge-item[data-challenge="1"]:hover {
    border-left: 3px solid #4CAF50;
}

.challenge-item[data-challenge="2"]:hover {
    border-left: 3px solid #2196F3;
}

.challenge-item[data-challenge="3"]:hover {
    border-left: 3px solid #009688;
}

.challenge-item[data-challenge="4"]:hover {
    border-left: 3px solid #F44336;
}

.challenge-item[data-challenge="5"]:hover {
    border-left: 3px solid #FF9800;
}

.challenge-item[data-challenge="6"]:hover {
    border-left: 3px solid #FFC107;
}

.challenge-item[data-challenge="7"]:hover {
    border-left: 3px solid #9C27B0;
}

/* Scroll Indicator */
.scroll-indicator {
    margin-top: 2rem;
    text-align: center;
    animation: fadeInUp 1s ease-out 1s both;
}

.scroll-indicator p {
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    color: var(--white);
}

.scroll-arrow {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    color: var(--white);
}

/* Animaciones */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Scroll Indicator */
.scroll-indicator {
    margin-top: 1rem;
    text-align: center;
    opacity: 0.8;
}

.scroll-indicator p {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.scroll-arrow {
    font-size: 1.2rem;
    animation: bounce 2s infinite;
    color: var(--white);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-banner {
        max-height: none;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
        max-height: none;
    }
    
    .hero-left {
        order: 1;
    }
    
    .hero-right {
        order: 2;
    }
    
    .lotus-flower {
        width: 280px;
        height: 280px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .challenge-item {
        padding: 0.5rem 0.7rem;
        gap: 0.7rem;
        min-height: 45px;
    }
    
    .challenge-number {
        font-size: 1rem;
        min-width: 30px;
    }
    
    .challenge-title {
        font-size: 0.7rem;
    }
    
    .challenges-list {
        max-height: 400px;
        gap: 0.3rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        gap: 0.2rem;
    }
    
    .nav-link {
        padding: 0.5rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .nav-icon-img {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 768px) {
    .hero-container {
        padding: 0 1rem;
        gap: 1rem;
    }
    
    .lotus-flower {
        width: 220px;
        height: 220px;
    }
    
    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }
    
    .challenge-item {
        padding: 0.4rem 0.6rem;
        gap: 0.6rem;
        min-height: 40px;
    }
    
    .challenge-number {
        font-size: 0.9rem;
        min-width: 25px;
    }
    
    .challenge-title {
        font-size: 0.65rem;
    }
    
    .challenges-list {
        max-height: 350px;
        gap: 0.25rem;
    }
    
    .nav-container {
        padding: 0 1rem;
        height: 60px;
    }
    
    .nav-menu {
        gap: 0.1rem;
    }
    
    .nav-link {
        padding: 0.4rem 0.5rem;
        font-size: 0.65rem;
    }
    
    .nav-text {
        font-size: 0.65rem;
    }
    
    .nav-icon-img {
        width: 12px;
        height: 12px;
    }
    
    .scroll-indicator p {
        font-size: 0.7rem;
    }
    
    .scroll-arrow {
        font-size: 1rem;
    }
}

/* Challenge Sections */
.challenge-section {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.challenge-section:nth-child(even) {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.challenge-section:nth-child(odd) {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

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

.challenge-header {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    gap: 2rem;
}

.challenge-icon {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: var(--white);
}

.challenge-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.challenge-info {
    flex: 1;
}

.challenge-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-gray);
    line-height: 1.2;
}

.challenge-description {
    font-size: 1.1rem;
    color: var(--medium-gray);
    line-height: 1.6;
}

/* Strategies Grid */
.strategies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.strategy-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.strategy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--orange));
}

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

.strategy-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.strategy-excerpt {
    font-size: 1rem;
    color: var(--medium-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.strategy-btn {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: var(--white);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: lowercase;
}

.strategy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(194, 14, 26, 0.3);
}

/* Color variations for each challenge */
.challenge-1 .challenge-icon {
    background: linear-gradient(135deg, var(--lotus-green), #45a049);
}

.challenge-1 .strategy-card::before {
    background: var(--lotus-green);
}

.challenge-1 .strategy-btn {
    background: linear-gradient(135deg, var(--lotus-green), #45a049);
}

.challenge-2 .challenge-icon {
    background: linear-gradient(135deg, var(--lotus-blue), #1976D2);
}

.challenge-2 .strategy-card::before {
    background: var(--lotus-blue);
}

.challenge-2 .strategy-btn {
    background: linear-gradient(135deg, var(--lotus-blue), #1976D2);
}

.challenge-3 .challenge-icon {
    background: linear-gradient(135deg, var(--lotus-teal), #00796B);
}

.challenge-3 .strategy-card::before {
    background: var(--lotus-teal);
}

.challenge-3 .strategy-btn {
    background: linear-gradient(135deg, var(--lotus-teal), #00796B);
}

.challenge-4 .challenge-icon {
    background: linear-gradient(135deg, var(--lotus-red), #D32F2F);
}

.challenge-4 .strategy-card::before {
    background: var(--lotus-red);
}

.challenge-4 .strategy-btn {
    background: linear-gradient(135deg, var(--lotus-red), #D32F2F);
}

.challenge-5 .challenge-icon {
    background: linear-gradient(135deg, var(--lotus-orange), #F57C00);
}

.challenge-5 .strategy-card::before {
    background: var(--lotus-orange);
}

.challenge-5 .strategy-btn {
    background: linear-gradient(135deg, var(--lotus-orange), #F57C00);
}

.challenge-6 .challenge-icon {
    background: linear-gradient(135deg, var(--lotus-yellow), #FFA000);
}

.challenge-6 .strategy-card::before {
    background: var(--lotus-yellow);
}

.challenge-6 .strategy-btn {
    background: linear-gradient(135deg, var(--lotus-yellow), #FFA000);
    color: var(--dark-gray);
}

.challenge-7 .challenge-icon {
    background: linear-gradient(135deg, var(--lotus-purple), #7B1FA2);
}

.challenge-7 .strategy-card::before {
    background: var(--lotus-purple);
}

.challenge-7 .strategy-btn {
    background: linear-gradient(135deg, var(--lotus-purple), #7B1FA2);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: var(--medium-gray);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--primary-red);
}

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

@keyframes petalAppear {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .lotus-flower {
        width: 500px;
        height: 500px;
    }

    .petal {
        width: 140px;
        height: 140px;
    }

    .petal-icon {
        width: 40px;
        height: 40px;
    }

    .petal-title-container {
        max-width: 150px;
        padding: 8px 12px;
    }

    .petal-title {
        font-size: 0.9rem;
    }

    .challenge-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .challenge-title {
        font-size: 2rem;
    }

    .strategies-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .challenge-section {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    .lotus-flower {
        width: 350px;
        height: 350px;
    }

    .petal {
        width: 100px;
        height: 100px;
    }

    .petal-icon {
        width: 30px;
        height: 30px;
    }

    .petal-title-container {
        max-width: 120px;
        padding: 6px 10px;
    }

    .petal-title {
        font-size: 0.8rem;
    }

    .hero-title {
        font-size: 2rem;
    }

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

    .challenge-title {
        font-size: 1.8rem;
    }
}

