html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333333;
    background-color: #f4f4f9;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

header {
    background-color: #000000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffffff;
}

nav ul {
    display: flex;
    flex-direction: row; 
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px;
}

nav ul li {
    display: inline-block;
    list-style-type: none;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: bold;
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block;
}

nav ul li a:hover {
    transform: scale(1.05);
}

nav ul li a.active {
    font-weight: bold;
    border-bottom: 2px solid #ffffff;
    border-radius: 0;
}

h1 {
    font-size: 2.5rem;
    color: #000000;
    text-align: center;
    margin-top: 30px;
    letter-spacing: -1px;
    font-family: 'Poppins', Arial, sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    transition: text-shadow 0.3s ease;
}

h1:hover, h2:hover {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

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

.bloque h3 {
    font-size: 1.3rem;
    margin-top: 0;
}

.descripcion-principal {
    text-align: center;
    font-size: 18px;
    color: #555555;
    max-width: 700px;
    margin: 20px auto;
    line-height: 1.8;
}

.bloque {
    background-color: #ffffff;
    padding: 25px;
    margin: 20px 0;
    border-left: 5px solid #000000;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: left;
}

.bloque:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.bloque ul {
    padding-left: 25px;
    text-align: left;
    margin: 10px 0;
}

.bloque ul li {
    margin-bottom: 8px;
    text-align: left;
}

.bloque a {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.container-resumen { 
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.informacion-inicial {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.tarjeta-info {
    background: #ffffff;
    width: 300px;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(30px);
}

.tarjeta-info.mostrar {
    animation: aparecer 1s ease forwards;
}

main img {
    display: block;
    width: 100%;
    border-radius: 15px;
    margin: 20px auto;
    max-width: 600px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.imagen-inferior {
    width: 50%;
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.imagen-animada, .bloque-animado {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.imagen-animada.visible, .bloque-animado.visible {
    opacity: 1;
    transform: translateY(0);
}

.imagen-animada.max-600 { max-width: 600px; }
.imagen-animada.max-400 { max-width: 400px; }

.seccion-info {
    animation: fadeIn 1.5s ease-in-out;
}

.oculto { display: none; }

.mostrar-animado {
    display: block;
    animation: aparecerAbajo 0.8s ease-out forwards;
}


@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes aparecer {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes aparecerAbajo {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

#intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: radial-gradient(circle at center, #0c0c0c, #000000);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#intro h1 {
    font-family: "Archivo Black", sans-serif;
    font-size: 4rem;
    color: #ffffff;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.creado {
    color: #bdbdbd;
    margin: 20px 0;
    font-size: 16px;
}

.creadores {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin-bottom: 30px;
}

.persona {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.persona img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.persona img:hover {
    transform: scale(1.08);
    box-shadow: 0 0 25px #ffffff;
}

.persona span {
    color: #ffffff;
    margin-top: 10px;
    font-size: 16px;
}

#start {
    margin-top: 30px;
    padding: 15px 40px;
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

#start:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px #5900ff;
}

#start:active {
    transform: scale(0.95);
}


.seccion-mitos {
    width: 100%;
    margin: 30px 0;
}

.mitos-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.mitoscarta {
    background-color: transparent;
    width: 280px;
    height: 180px;
    perspective: 1000px;
    cursor: pointer;
}

.carta-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.mitoscarta.flipped .carta-inner {
    transform: rotateY(180deg);
}

.carta-front, .carta-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 12px;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.carta-front {
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #e0e0e0;
}

.carta-back {
    background-color: #1a1a1a;
    color: #ffffff;
    transform: rotateY(180deg);
}


footer {
    text-align: center;
    padding: 20px;
    background-color: #0d0d0d;
    color: #888888;
    font-size: 0.85rem;
    margin-top: 40px;
}


.circulo-respiracion-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    margin-top: 20px;
}

.circulo-respiracion {
    width: 110px;
    height: 110px;
    background-color: #000000;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    animation: respirar 8s infinite ease-in-out;
}

@keyframes respirar {
    0%, 100% {
        transform: scale(1);
        background-color: #000000;
    }
    50% {
        transform: scale(1.65);
        background-color: #222222;
    }
}


@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    h1 {
        font-size: 2rem;
    }

    .creadores {
        gap: 20px;
    }

    .imagen-inferior {
        width: 90%;
    }
}

body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-mode .bloque, 
body.dark-mode .tarjeta-info, 
body.dark-mode .carta-front {
    background-color: #1e1e1e;
    color: #ffffff;
    border-color: #333333;
}

body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3 {
    color: #ffffff;
}

body.dark-mode .descripcion-principal {
    color: #bbbbbb;
}

body.dark-mode #textoConsejo {
    color: #e0e0e0 !important;
}

body.dark-mode footer {
    background-color: #050505;
    color: #666666;
}