** {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    line-height: 1.6;
    width: 100%;
    overflow-x: hidden;
}

header {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background: #fff;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    max-width: 150px;
    height: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

#hero {
    padding: 4rem 1rem;
    min-height: 80vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0,0,0,0.5)), url('img/portada.jpeg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

#hero h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}

.cta-button {
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    font-size: 1.2rem;
    margin-top: 2rem;
    display: inline-block;
    transition: background 0.3s;
}

.cta-button:hover {
    background-color: #fa5a5a;
}

#Eventos {
    padding: 4rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

#Eventos h2 {
    text-align: center;
    margin-bottom: 2rem;
}

/* Grid de Eventos */
.eventos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.eventos-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

/* Imagen completa sin recortar */
.eventos-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background-color: #000;
    display: block;
}

.eventos-card h3 {
    padding: 1rem 1rem 0.5rem 1rem;
    color: #333;
}

.inscripcion {
    color: #ff6b6b;
    font-weight: bold;
    padding: 0 1rem;
}

.ubicacion {
    padding: .5rem 1rem;
    color: #666;   
}

/* --- ESTILO PARA HORA DE ARRANQUE --- */
.arranque {
    background-color: #fff5f5;
    border-left: 4px solid #ff6b6b;
    padding: 0.75rem 1rem;
    margin: 0.5rem 1rem 1rem 1rem;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
}

.arranque strong {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
}

.arranque span {
    font-size: 1.3rem;
    font-weight: bold;
    color: #ff6b6b;
    margin-top: 2px;
}

/* Alineación de Botones */
.eventos-card button,
.eventos-card .cta-button {
    margin: 1rem;
    margin-top: auto;
    text-align: center;
}

.eventos-card button {
    padding: .8rem 1rem;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.eventos-card button:hover {
    background-color: #000000;
}

/* Sección Contacto */
#Contacto {
    background-color: #f9f9f9;
    padding: 4rem 1.5rem;
}

#Contacto h2 {
    text-align: center;
    margin-bottom: 2rem;
}

form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input, textarea, select, button {
    font-family: inherit;
}

input, textarea, select {
    width: 100%;
    padding: .8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

textarea {
    height: 150px;
    resize: vertical;
}

form button {
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

form button:hover {
    background-color: #ff5555;
}

/* Inscripción */
#Insripcioncarrera {
    padding: 3rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

#Insripcioncarrera form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,.15);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#Insripcioncarrera h2 {
    text-align: center;
    color: #333;
    margin-bottom: 1rem;
}

#Insripcioncarrera h3 {
    margin-top: 1.5rem;
    color: #ff6b6b;
    border-bottom: 2px solid #ff6b6b;
    padding-bottom: .5rem;
}

#Insripcioncarrera label {
    font-weight: bold;
    color: #333;
    margin-top: .5rem;
}

#Insripcioncarrera input:focus,
#Insripcioncarrera select:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 5px rgba(255,107,107,.5);
}

#Insripcioncarrera input[type="submit"] {
    margin-top: 1.5rem;
    background: #ff6b6b;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: .3s;
}

#Insripcioncarrera input[type="submit"]:hover {
    background: #fa5a5a;
}

#Insripcioncarrera h3:last-of-type {
    margin-top: 2rem;
    color: #d63031;
    border-bottom: 2px solid #d63031;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1.5rem 1rem;
}

/* --- MEDIA QUERIES PARA CELULAR Y TABLET --- */
@media screen and (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        font-size: 0.95rem;
    }

    #hero h1 {
        font-size: 2rem;
    }

    #Insripcioncarrera form {
        padding: 1.2rem;
    }
}