* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    background: #fff;
    color: #333;
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-family: 'Montserrat', Arial, sans-serif;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.25rem;
}

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1000;
    min-height: 6rem;
}

nav .logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
}

nav .logo img {
    max-width: 2rem;
    margin-right: 0.5rem;
}

nav ul.nav-links {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
}

nav ul.nav-links li {
    display: flex;
    align-items: center;
    height: 100%;
}

nav ul.nav-links li a {
    display: flex;
    align-items: center;
    color: #333;
    font-family: 'Montserrat', sans-serif;
    height: 100%;
    padding: 0 0.5rem;
    text-decoration: none;
}

nav ul.nav-links li a:hover {
    color: #555;
}

/* Menú de hamburguesa */

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 1.5rem;
    height: 1.25rem;
    cursor: pointer;
}

.hamburger span {
    display: block;
    height: 0.1875rem;
    background: #333;
    border-radius: 2px;
}

/* Switch para cambiar de tema */

.switch label {
    display: flex;
    justify-content: center;
    align-items: center;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.slider {
    position: relative;
    cursor: pointer;
    width: 50px;
    height: 25px;
    background-color: #ccc;
    border-radius: 25px;
    transition: 0.4s;
}

.slider::before {
    content: "";
    position: absolute;
    width: 19px;
    height: 19px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.4s;
}

input:checked+.slider {
    background-color: #13ee13;
}

input:checked+.slider::before {
    transform: translateX(25px);
}

.nav-links li.switch {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 0;
}

/* Título */
.titulo {
    text-align: center;
    margin: 4rem auto;
    padding: 6rem 1rem;
    background: linear-gradient(270deg, #ff7eb3, #ff758c, #7afcff, #feff9c);
    background-size: 800% 800%;
    animation: gradientBG 12s ease infinite;
    color: #fff;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.titulo h1 {
    padding: 1rem 2rem;
    font-size: 3rem;
    margin-bottom: 1.25rem;
}

/* Secciones */
section {
    padding: 4rem 1rem;
    max-width: 70rem;
    margin: auto;
    text-align: center;
}

section h2 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

section p {
    line-height: 1.8;
    letter-spacing: 0.3px;
    font-size: 1rem;
}

/* Cards */
.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 1rem auto;
    padding: 0 1rem;
}

.card {
    flex: 0 1 100%;
    max-width: 16.875rem;
    background: linear-gradient(270deg, #ff7eb3, #ff758c, #7afcff, #feff9c);
    background-size: 800% 800%;
    animation: gradientBG 12s ease infinite;
    color: #000;
    border-radius: 0.75rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
    text-align: center;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card img {
    width: calc(100% - 2rem);
    max-height: 250px;
    margin: 1rem auto;
    display: block;
    object-fit: cover;
    border-radius: 0.5rem;
}

.card h3 {
    margin: 0.75rem 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: #222;
}

.card button {
    font-family: 'Roboto', sans-serif;
    display: block;
    width: 85%;
    margin: 0.625rem auto 1.25rem;
    padding: 0.625rem;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-0.3125rem);
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.15);
}

.card button:hover {
    background: #555;
    transform: translateY(-2px);
}

/* Bitácora */
#bitacora {
    padding: 1rem 1rem;
    max-width: 70rem;
    margin: auto;
    text-align: center;
}

#bitacora h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.bitacora-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.bitacora-card {
    background: #eaeaea;
    border-radius: 0.75rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    flex: 0 1 18rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.bitacora-card h3 {
    color: #ff758c;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.bitacora-card p {
    color: #333333;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.bitacora-card .fecha {
    font-size: 0.8rem;
    color: #888;
    position: absolute;
    bottom: 1rem;
    right: 1rem;
}

.bitacora-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.15);
}

/* Footer */
footer {
    text-align: center;
    padding: 1.25rem;
    margin-top: 2.5rem;
    background: #f5f5f5;
    font-size: 0.875rem;
    color: #555;
}

/* Tema oscuro */
body.dark {
    background: #1e1e1e;
    color: #f5f5f5;
}

body.dark nav {
    background: #2c2c2c;
    border-bottom: 1px solid #555;
}

body.dark nav ul li a {
    color: #f5f5f5;
}

body.dark nav ul li a:hover {
    color: #ddd;
}

body.dark footer {
    background: #2c2c2c;
    font-size: 0.875rem;
    color: #f5f5f5;
}

body.dark .hamburger span {
    background: #f5f5f5;
}

/* Responsive */
@media (min-width: 600px) {
    .card {
        flex: 0 1 16rem;
    }
}

@media (min-width: 768px) {
    .card {
        flex: 0 1 16rem;
    }

    .card img {
        max-height: 224px;
    }
}

@media (min-width: 1200px) {
    .card {
        flex: 0 1 11.875rem;
    }

    .card img {
        max-height: 158px;
    }
}

@media (max-width: 599px) {
    nav {
        flex-direction: column;
    }

    .nav-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.25rem;
        width: 100%;
    }

    nav ul.nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    nav ul.nav-links.show {
        display: flex;
    }

    nav ul li {
        border-bottom: 1px solid #ddd;
        text-align: center;
        padding: 0.9375rem 0;
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav ul li a {
        font-size: 1.125rem;
    }

    .hamburger {
        display: flex;
    }
}

@media (max-width: 768px) {
    .bitacora-card {
        flex: 0 1 100%;
    }
}