* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    scroll-behavior: smooth;
}

body {
    background: #f1eeee;
    color: #836a6a;
}

/* HEADER */
header {
    background: linear-gradient(90deg, #0d8d2d, #2ccc7c);
    color: rgb(255, 255, 255);
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(179, 173, 173, 0.3);
    animation: aparecer 1s ease;
}

.logo-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgb(228, 219, 219);
    transition: transform 0.4s ease;
}

.logo:hover {
    transform: rotate(10deg) scale(1.1);
}

.titulo {
    text-align: center;
}

.titulo h1 {
    font-size: 35px;
}

.titulo h2 {
    font-size: 35px;
}

.titulo p {
    font-style: italic;
    margin-top: 10px;
}

/* INICIO */
.inicio {
    background: url('https://images.unsplash.com/photo-1507035895480-2b3156c31fc8?q=80&w=1600&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    color: rgb(238, 233, 233);
    animation: zoom 15s infinite alternate;
}

.overlay {
    background: rgba(94, 91, 91, 0.6);
    padding: 100px 20px;
    text-align: center;
}

.overlay h2 {
    font-size: 50px;
    margin-bottom: 20px;
    animation: bajar 1s ease;
}

.overlay p {
    font-size: 20px;
    max-width: 900px;
    margin: auto;
}

/* GRIDS */
.cards,
.grid,
.agenda-grid,
.ponentes-grid,
.aliados-grid,
.galeria-grid {
    display: grid;
    gap: 20px;
    margin-top: 30px;
}

.cards {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* TARJETAS */
.card,
.item,
.agenda-card,
.ponente-card,
.pregunta,
.bloque {
    background: white;
    color: rgb(73, 72, 72);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 10px rgba(173, 168, 168, 0.2);
    transition: all 0.4s ease;
}

/* EFECTO GENERAL */
.card:hover,
.item:hover,
.agenda-card:hover,
.ponente-card:hover,
.bloque:hover,
.pregunta:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 25px rgba(173, 169, 169, 0.3);
}

/* SECCIONES */
section {
    padding: 60px 20px;
    animation: aparecer 1s ease;
}

h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #0f0f0f;
    font-size: 40px;
    position: relative;
}

h2::after {
    content: "";
    width: 100px;
    height: 4px;
    background: #30bd77;
    display: block;
    margin: 10px auto;
    border-radius: 10px;
}

/* FORMULARIOS */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: auto;
}

input,
textarea,
select {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ccc;
    transition: 0.3s;
}

input:focus,
textarea:focus,
select:focus {
    border: 2px solid #1cc26f;
    outline: none;
    box-shadow: 0 0 10px rgba(28,194,111,0.5);
}

/* BOTONES */
button {
    background: #0b7a35;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 16px;
    font-weight: bold;
}

button:hover {
    background: #095c29;
    transform: scale(1.05);
}

.btn-formulario {
    display: inline-block;
    background: #ffffff;
    color: #0b7a35;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-formulario:hover {
    background: #d9f5e3;
    transform: scale(1.05);
}

/* GALERÍA */
.galeria-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.galeria-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    transition: 0.4s;
}

.galeria-grid img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* VIDEO */
.video-container {
    margin-top: 40px;
    text-align: center;
}

video {
    width: 80%;
    border-radius: 15px;
    transition: 0.4s;
}

video:hover {
    transform: scale(1.02);
}

/* FOOTER */
footer {
    background: black;
    color: white;
    text-align: center;
    padding: 35px;
    margin-top: 50px;
}

/* ANIMACIONES */
@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bajar {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoom {
    from {
        background-size: 100%;
    }
    to {
        background-size: 110%;
    }
}

/* FORMULARIO DE INSCRIPCIONES */

.formulario-container {
    max-width: 800px;
    margin: 0 auto;
}

.formulario-container label {
    font-weight: bold;
    color: #0b7a35;
    margin-top: 10px;
}

.formulario-container input,
.formulario-container select,
.formulario-container textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 16px;
}

.formulario-container textarea {
    resize: vertical;
    min-height: 120px;
}

.inscripciones {
    background: #ffffff;
}

.inscripciones h2 {
    color: #0b7a35;
}

.formulario-container button {
    margin-top: 36px;
    background: #0b7a35;
    color: white;
    font-size: 18px;
    font-weight: bold;
}

.formulario-container button:hover {
    background: #095c29;
}

/* FORMULARIO DE INSCRIPCIONES */

.inscripciones {
    background: #ffffff;
    padding: 60px 20px;
}

.inscripciones h2 {
    text-align: center;
    color: #0b7a35;
    margin-bottom: 26px;
}

.formulario-container {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.formulario-container form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.formulario-container label {
    font-weight: bold;
    color: #0b7a35;
    margin-top: 10px;
}

.formulario-container input,
.formulario-container select,
.formulario-container textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 15px;
    transition: 0.3s;
}

.formulario-container input:focus,
.formulario-container select:focus,
.formulario-container textarea:focus {
    border: 2px solid #1cc26f;
    outline: none;
    box-shadow: 0 0 10px rgba(28,194,111,0.5);
}

.formulario-container textarea {
    resize: vertical;
    min-height: 120px;
}

.formulario-container button {
    background: #0b7a35;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: 0.3s;
}

.formulario-container button:hover {
    background: #095c29;
    transform: scale(1.03);
}