:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --accent-hover: #2980b9;
    --text-dark: #2c3e50;
    --text-light: #ecf0f1;
    --text-muted: #666;
    --bg-body: #f4f6f9;
    --card-bg: #ffffff;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

header {
    background: linear-gradient(120deg, var(--primary-color), #3a6073);
    color: var(--text-light);
    padding: 2rem 0;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

header h1 {
    margin-bottom: 1rem;
    font-size: 2.2rem;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.nav {

    padding: 10px;
}
.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}
.nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav a:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

main {
    max-width: 1100px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.intro {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem;
    background-color: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.intro h2 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
}

.intro p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.ciclos-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.ciclos-container a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.ciclo-card {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.ciclo-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}

.ciclo-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.ciclo-card ul {
    margin-top: 1rem;
    list-style: none;
    margin-bottom: 2rem;
}

.ciclo-card ul li {
    margin-bottom: 0.8rem;
    padding-left: 1.8rem;
    position: relative;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.ciclo-card ul li::before {
    content: "✓";
    color: var(--accent-color);
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
}

.ciclo-card::after {
    content: "Ver detalles →";
    display: inline-block;
    margin-top: auto;
    font-weight: 600;
    color: var(--accent-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s ease;
    align-self: flex-start;
}

.ciclo-card:hover::after {
    transform: translateX(10px);
    color: var(--primary-color);
}

footer {
    text-align: center;
    padding: 3rem 0;
    background-color: var(--primary-color);
    color: rgba(255,255,255,0.7);
    margin-top: 5rem;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .ciclos-container {
        grid-template-columns: repeat(2, 1fr);
    }
}


@keyframes entradaChula {
    from {
        opacity: 0; 
        transform: translateY(50px); 
    }
    to {
        opacity: 1; 
        transform: translateY(0); 
    }
}

header, .intro, .ciclos-container a, footer {
    opacity: 0; 
    animation: entradaChula 0.8s ease-out forwards; 
}

header {
    animation-delay: 0.1s; 
}

.intro {
    animation-delay: 0.3s; 
}

.ciclos-container a:nth-child(1) {
    animation-delay: 0.5s;
}

.ciclos-container a:nth-child(2) {
    animation-delay: 0.7s;
}

footer {
    animation-delay: 0.9s;
}


/* Estilos generales */






/* Botón hamburguesa */
.menu-btn {
    display: none;
    font-size: 24px;
    background: none;
    color: white;
    border: none;
    cursor: pointer;
}

/* MÓVIL */
@media (max-width: 768px) {
     .menu-btn {
        display: block;
        margin: 0 auto;
    }

    .nav ul {
        display: none;              /* oculto por defecto */
        flex-direction: column;
        align-items: left;
        gap: 1rem;
    }

    .nav ul.show {
        display: flex;              /* AQUÍ actúa la clase show */
    }

    .nav a {
        width: 100%;
        text-align: center;
    }
}