:root {
    --color-fondo: #ffffff;
    --color-boton: #FFC4A3;
    --color-boton-hover: #ff9a60;
    --color-texto: #000000;
    --color-textoO: #000000;
    --color-panel: rgba(0, 0, 0, 0.6);
    --color-panelO: rgba(255, 255, 255, 0.301);
    --color-botonX: #fcb891;
    --color-botoX-hover: rgb(245, 185, 133);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: url("https://i.pinimg.com/originals/91/50/c9/9150c9ecbddc7864ce20ec62e52ce182.jpg") no-repeat center center fixed;
    background-size: cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-texto);
    z-index: -1;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("https://i.pinimg.com/originals/91/50/c9/9150c9ecbddc7864ce20ec62e52ce182.jpg") no-repeat center center fixed;
    background-size: cover;
    filter: blur(2px);
    z-index: -1;
}

.contenedor-principal {
    display: flex;
    justify-content: space-between;
    width: 80%;
    max-width: 1100px;
    overflow: hidden;
    transition: transform 0.5s ease-in-out;
    position: relative;
}

/* Sección de Bienvenida */
.bienvenida {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-right: 2rem;
    color: var(--color-texto);
}

#boton-Registrarse {
    background-color: var(--color-boton);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    color: #000000;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
    margin-right: 2rem;
}

#boton-Registrarse:hover {
    background-color: var(--color-boton-hover);
}

#boton-iniciar-sesion {
    background-color: var(--color-boton);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    color: var(--color-texto);
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

#boton-iniciar-sesion:hover {
    background-color: var(--color-boton-hover);
}

/* Panel de inicio */
.inicio {
    flex: 1;
    background: var(--color-panel);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(6px);
    transition: all 0.3s ease;
    color: var(--color-texto);
}

.inicio h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.inicio .redes-sociales {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.inicio .redes-sociales a {
    color: var(--color-texto);
    font-size: 1.5rem;
    text-decoration: none;
}

.inicio .uno {
    color: var(--color-texto);
}

.inicio h5 {
    margin: 0;
    font-size: 1rem;
    color: var(--color-texto);
}

.inicio .input {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: none;
    border-bottom: 2px solid #ccc;
    background: transparent;
    color: var(--color-texto);
    outline: none;
}

.inicio #boton-login {
    width: 100%;
    background-color: var(--color-boton);
    border: none;
    padding: 0.8rem;
    border-radius: 25px;
    color: var(--color-texto);
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.inicio #boton-login:hover {
    background-color: var(--color-boton-hover);
}

.inicio .invitado {
    text-decoration: none;
    color: var(--color-texto);
    display: block;
    text-align: right;
}

/* Panel de registro */
.registro {
    flex: 1;
    background: var(--color-panel);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(6px);
    transition: all 0.3s ease;
    color: var(--color-texto);
}

.registro h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.redes-sociales {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.redes-sociales a {
    color: var(--color-texto);
    font-size: 1.5rem;
    text-decoration: none;
}

.registro input {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: none;
    border-bottom: 2px solid #ccc;
    background-color: transparent !important;
    color: var(--color-texto);
}

.registro input:hover {
    outline: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.registro #boton-registrar {
    width: 100%;
    background-color: var(--color-boton);
    border: none;
    padding: 0.8rem;
    border-radius: 25px;
    color: var(--color-texto);
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.registro #boton-registrar:hover {
    background-color: var(--color-boton-hover);
}

/*Modal*/
.modalRecuperar {
    display: none;
    color: #ffffff;
    font-family: "Segoe UI", sans-serif;
}

.modalRecuperar .backdrop {
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
}

.modalRecuperar .cabecera {
    text-align: center;
}

.modalRecuperar .contenido {
    position: fixed;
    z-index: 1005;
    background: #1a1a1f;
    width: 90vw;
    max-width: 450px;
    padding: 25px 35px;
    border-radius: 15px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6),
        0 0 20px #FFC4A3;
    text-align: left;
    animation: fadeIn 0.4s ease;
}

.modalRecuperar p {
    font-size: 14px;
    color: #dcdcdc;
    margin-bottom: 20px;
}

.modalRecuperar input {
    width: 100%;
    padding: 12px;
    margin: 10px 0 20px;
    border: none;
    border-radius: 8px;
    outline: none;
    font-size: 15px;
}

.modalRecuperar .btnEnviar {
    width: 100%;
    padding: 12px;
    background: var(--color-boton);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.modalRecuperar .btnEnviar:hover {
    background: var(--color-boton-hover);
}

.modalRecuperar .btnCerrar {
    margin-top: 12px;
    background: transparent;
    border: 1px solid #666;
    padding: 10px;
    width: 100%;
    border-radius: 8px;
    font-size: 15px;
    color: var(--color-botonX);
    cursor: pointer;
    transition: 0.3s;
}

.modalRecuperar .btnCerrar:hover {
    border-color: var(--color-botoX-hover);
    color: var(--color-botonX);
}

.oscuro-claro {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 1000;
}

#modeToggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background-color: #f0f0f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#modeToggle:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#modeToggle i {
    color: #333;
    transition: color 0.3s ease;
}

/* Estilos para modo oscuro */
body.modo-oscuro {
    background: linear-gradient(rgba(1, 0, 0, 0.712), rgba(0.6, 0, 0, 0.6)), url("https://i.pinimg.com/originals/91/50/c9/9150c9ecbddc7864ce20ec62e52ce182.jpg") no-repeat center center fixed;
    background-size: cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-texto);
    background-color: #1a1a1a;
    color: #ffffff;
}

body.modo-oscuro::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 0, 0, 0.199);
    backdrop-filter: blur(2px);
    z-index: -1;
}

body.modo-oscuro .inicio,
body.modo-oscuro .registro {
    background: var(--color-panelO);
}

body.modo-oscuro #modeToggle {
    background-color: #333;
}

body.modo-oscuro #modeToggle i {
    color: #ffe600;
}

/* Estilos para modo claro */
body.modo-claro {
    background-color: #ffffff;
    color: #333;
}

body.modo-claro #modeToggle {
    background-color: #f0f0f0;
}

body.modo-claro #modeToggle i {
    color: #09024b;
}

.inicio .modo-oscuro {
    flex: 1;
    background: var(--color-panelO);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(6px);
}

@media (max-width: 1024px) {
    .contenedor-principal {
        width: 95%;
        gap: 1.5rem;
    }
}

/* Celulares grandes (máx 768px) */
@media (max-width: 768px) {

    body {
        margin: 7px;
        padding: 20px;
        height: auto;
    }

    .contenedor-principal {
        margin: 7px;
        flex-direction: column;
        width: 100%;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }

    .bienvenida {
        margin: 3px;
        width: 100%;
    }

    .inicio,
    .registro {
        width: 95%;
    }

    .inicio form,
    .registro form {
        width: 100%;
    }

    #boton-Registrarse,
    #boton-iniciar-sesion,
    #boton-login,
    #boton-registrar {
        width: 100%;
        font-size: 1rem;
    }

    .redes-sociales {
        justify-content: center;
    }

    .oscuro-claro {
        bottom: 20px;
        right: 20px;
    }
}

/* Celulares pequeños (máx 480px) */
@media (max-width: 480px) {

    h1,
    h2 {
        font-size: 1.4rem;
    }

    .inicio,
    .registro {
        padding: 1.5rem;
    }

    .input {
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    #modeToggle {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    /* Modal en pantallas pequeñas */
    .modalRecuperar .contenido {
        width: 90%;
        padding: 20px;
    }
}