/* Variables CSS para temas en blanco y negro */
:root {
    --primary-color: #000000;
    /* Negro puro */
    --text-color: #000000;
    /* Negro puro */
    --bg-color: #eee;
    /* Blanco puro */
    --card-bg: #eee;
    --input-bg: #fefefe;
    --toggle-bg: #666;
    --toggle-bg-hover: #eee;
    /* Blanco puro */
    --nav-bg: #ffffff;
    /* Blanco puro */
    --border-color: #e0e0e0;
    /* Gris muy claro para bordes */
    --shadow-color: rgba(0, 0, 0, 0.1);
    /* Sombra sutil */

    --error-color: #000000;
    /* Negro para errores */
    --success-color: #000000;
    /* Negro para éxito */
    --warning-color: #000000;
    /* Negro para advertencias */
    --info-color: #000000;
    /* Negro para información */

    /* Efecto glitch en blanco y negro */
    --glitch-color1: #000000;
    /* Negro */
    --glitch-color2: #ffffff;
    /* Blanco */
}

/* Tema oscuro en blanco y negro */
[data-theme="dark"] {
    --primary-color: #ffffff;
    /* Blanco puro */
    --text-color: #ffffff;
    /* Blanco puro */
    --bg-color: #111111;
    /* Negro puro */
    --card-bg: #111;
    --input-bg: #333;
    --toggle-bg: #666;
    --toggle-bg-hover: #eee;
    /* Negro puro */
    --nav-bg: #000000;
    /* Negro puro */
    --border-color: #333333;
    /* Gris oscuro para bordes */
    --shadow-color: rgba(255, 255, 255, 0.1);
    /* Sombra sutil blanca */
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s, color 0.3s;
}

html, body {
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

body {
    font-family: 'Barlow', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin-bottom: 10rem;
}

html.login-html,
body.login-body {
    height: 100%;
}

.login-card {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 148px);
}

.container {
    width: 100%;
}

.serror {
    margin-bottom: 1rem;
    color: #f90;
}

.ssuccess {
    margin-bottom: 1rem;
    color: var(--success-color-color);
}

.main {
    text-align: center;
}

.main h1 {
    text-align: center;
    margin-top: 5rem;
    position: relative;
}

/* Barra de navegación */
.barra {
    position: fixed;
    bottom: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: none;
    border-radius: 0;
    padding: 0 20px;
    z-index: 999;
    padding-bottom: env(safe-area-inset-bottom);
    transition: transform 0.3s ease;
}

.navbar {
    background-color: #141414;
    width: 100%;
    max-width: 800px;
    z-index: 1000;
    padding: 13px;
    padding-left: 20px;
    padding-bottom: 8px;
    border-radius: 27px;
    border: solid 1px #333;
    box-shadow: 0 -5px 100px #444;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ddd;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo img {
    height: 33px;
}

[data-theme="dark"] .like-button img,
[data-theme="dark"] .reply-button img,
[data-theme="dark"] .report-btn img,
[data-theme="dark"] .edit-button img,
[data-theme="dark"] .delete-button img,
[data-theme="dark"] .vote-button img,
[data-theme="dark"] #photo_edit_close img,
[data-theme="dark"] #config_close img {
    filter: invert(1);
}

.search-form {
    display: flex;
    flex-grow: 1;
    max-width: 200px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 5px;
}

.search-form input {
    flex-grow: 1;
    padding: 10px 15px;
    border: 0;
    border-radius: 25px 0 0 25px;
    background-color: var(--card-bg);
    color: var(--text-color);
    font-size: 1rem;
}

.search-form button {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: black;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
}

.search-form button:hover {
    background-color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #ddd;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 11px;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-links a:hover img {
    transform: scale(1.1);
}

.nav-links img {
    height: 24px;
}

img.round {
    height: 33px;
    border-radius: 50%;
}

/* Menú móvil */
.menu-icon {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
}

.menu-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s;
}

/* Estilos para el tema principal */
.home {
    padding: 40px 0;
    flex-grow: 1;
}

#home-title {
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 40px;
    padding: 0 1rem;
    animation: fadeIn 1s ease-in-out;
}

#home-title h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    /* color: var(--primary-color); */
}

#home-title h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    font-weight: 400;
}

#home-title h3 {
    font-size: 1.5rem;
    /* font-weight: 300; */
    margin-bottom: 20px;
}

#home-title p {
    margin-top: 20px;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 20px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.register {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color));
}

/* Sección de mensajes */
#message-section {
    margin-top: 40px;
}

#message-section h2 {
    max-width: 800px;
    font-size: 2rem;
    margin: 20px auto;
    color: var(--primary-color);
    background: var(--accent-color);
    position: relative;
    text-align: center;
}

/*
#message-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-color));
    border-radius: 2px;
}
*/
#messages-list {
    /* display: grid; */
    /* grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); */
    gap: 20px;
    margin-bottom: 30px;
    max-width: 450px;
    margin: 0 auto;
    padding: 0 1rem;
    column-gap: 20px;
}

.message-card {
    min-width: 50%;
    max-width: 100%;
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 0 6px var(--shadow-color);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    padding-bottom: 0px;
    break-inside: avoid;
    margin-bottom: 20px;
}

.message-card:hover {
    transform: translateY(-5px);
}

.message-card p {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 10px;
    color: var(--text-color);
}

.message-card span {
    display: block;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 15px;
}

/* Efecto glitch en hover para las tarjetas */
/*
.message-card:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            transparent 0%,
            var(--glitch-color1) 20%,
            transparent 40%,
            var(--glitch-color2) 60%,
            transparent 80%,
            var(--glitch-color1) 100%);
    background-size: 200% 200%;
    animation: glitch 0.5s linear infinite;
    opacity: 0.3;
    z-index: -1;
}

@keyframes glitch {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 100% 100%;
    }
}
*/
/* Estilos para las tarjetas de usuario */
.player_card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 7px;
    border-top: 1px solid var(--border-color);
}

.photo_card {
    position: relative;
}

.photo_card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    /* border: 2px solid var(--text-color); */
}

player {
    /* position: absolute; */
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    color: var(--bg-color);
    width: 80%;
    height: 20px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    margin: 0 auto;
    transform: translateX(-50%);
}

.text-card {
    flex-grow: 1;
    margin: 0 15px;
    text-align: right;
}

.text-card a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
}

.text-card p {
    font-size: 0.8rem;
    color: #888;
}

.like-section {
    display: flex;
    align-items: center;
    gap: 3px;
    color: var(--primary-color);
    margin-right: 1rem;
}

.like-section strong {
    color: #888;
    font-weight: normal;
}

.like-button,
.reply-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.like-button img,
.reply-button img,
.report-btn img {
    width: 23px;
    height: 23px;
    transition: transform 0.2s;
}

.like-button:hover img,
.reply-button:hover img,
.report-btn:hover img {
    transform: scale(1.2);
}

/* Botón de puntos */
.point-button {
    position: absolute;
    top: 5px;
    right: 15px;
    background: none;
    border: none;
    color: #888;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
}

.report {
    position: absolute;
    top: 45px;
    right: 15px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow-color);
    z-index: 10;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: 0.6s cubic-bezier(0.25, 1.3, 0.5, 1), opacity 0.4s ease;
    transform: translateY(-10px);
}

/* Cuando está visible */
.report.show {
    max-height: 100px;
    /* o lo que necesites */
    opacity: 1;
    transform: translateY(0);
}

.report-button {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 10px;
}

.report-button img {
    width: 16px;
    height: 16px;
}

/* Botón de cargar más */
#load-more-message {
    display: block;
    margin: 30px auto;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--border-color);
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

#load-more-message:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
}

/* Footer */
.footer {
    background-color: var(--nav-bg);
    padding: 30px 0;
    box-shadow: 0 -2px 10px var(--shadow-color);
    display: none;
    position: fixed;
    border: solid var(--border-color);
    top: 60px;
    left: 70px;
    min-width: 320px;
    max-width: 320px;
    box-shadow: 0 0 5px rgba(0, 0, 0, .1);
    border-radius: 15px;
    transform: translate(-100%, +40px);
    z-index: 1002;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-links img {
    width: 16px;
    height: 16px;
}

.footer p {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

/* Progress circle */
.flow {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.circular-progress {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: conic-gradient(var(--primary-color) 0.3%, var(--border-color) 0%);
}

.circular-progress::before {
    content: "";
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--bg-color);
}

.progress-value {
    position: relative;
    z-index: 1;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

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

weare {
    font-size: 2rem;
    color: var(--primary-color);
}

aim {
    font-size: 0.8rem;
    color: var(--text-color);
    opacity: 0.7;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modo responsive */
@media (max-width: 768px) {

    .logo img {
        height: 35px;
        margin-right: 5px;
    }

    .logo span {
        font-size: 1.5rem;
    }


    .nav-logo {
        /* flex-direction: column; */
        gap: 10px;
        align-items: flex-start;
    }

    .search-form {
        width: 100%;
    }

    .nav-links.active {
        left: 0;
    }

    #home-title h1 {
        font-size: 2.5rem;
    }

    #home-title h2 {
        font-size: 1.4rem;
    }

    #home-title h3 {
        font-size: 1.2rem;
    }

}

.theme-toggle {
    --toggle-size: 1.8rem;
    --thumb-size: calc(var(--toggle-size) - 6px);
    --track-width: calc(var(--toggle-size) * 1.75);
    --track-height: var(--toggle-size);

    position: relative;
    width: var(--track-width);
    height: var(--track-height);
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.toggle-track {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 100px;
    background-color: var(--toggle-bg);
    position: relative;
    transition: background-color 0.3s ease;
}

.theme-toggle:hover .toggle-track {
    background-color: var(--toggle-bg-hover);
    box-shadow: 0 0 5px var(--accent-color);
}

.toggle-thumb {
    position: absolute;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    width: var(--thumb-size);
    height: var(--thumb-size);
    border-radius: 50%;
    background-color: var(--card-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 2px 4px var(--shadow-color);
    overflow: hidden;
}

[data-theme="dark"] .toggle-thumb {
    transform: translate(calc(var(--track-width) - var(--thumb-size) - 6px), -50%);
}

.sun-icon,
.moon-icon {
    position: absolute;
    width: 60%;
    height: 60%;
    stroke-width: 2;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.sun-icon {
    color: var(--primary-color);
    opacity: 1;
}

.moon-icon {
    color: var(--primary-color);
    opacity: 0;
    transform: rotate(-30deg);
}

[data-theme="dark"] .sun-icon {
    opacity: 0;
    transform: rotate(60deg);
}

[data-theme="dark"] .moon-icon {
    opacity: 1;
    transform: rotate(0);
}

/* Efecto de hover y focus */
.theme-toggle:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Efecto de activación */
.theme-toggle:active .toggle-thumb {
    transform: translateY(-50%) scale(0.9);
}

[data-theme="dark"] .theme-toggle:active .toggle-thumb {
    transform: translate(calc(var(--track-width) - var(--thumb-size) - 6px), -50%) scale(0.9);
}

/* Estilos para el botón de nueva idea */
#new_message {
    position: relative;
    overflow: hidden;
}

#new_message::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right,
            transparent 45%,
            var(--accent-color),
            transparent 55%);
    transform: rotate(30deg);
    opacity: 0;
    transition: opacity 0.3s;
}

#new_message:hover::after {
    opacity: 0.5;
    animation: shine 1.5s infinite;
}

@keyframes shine {
    0% {
        left: -50%;
    }

    100% {
        left: 150%;
    }
}

/* Estilos para la sección de profesionales */
#pro-section {
    margin-top: 60px;
    padding: 30px 0;
    background-color: var(--bg-color);
    border-radius: 16px;
}

#pro-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--primary-color);
    position: relative;
    text-align: center;
    padding-bottom: 10px;
}

#pro-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-color));
    border-radius: 2px;
}

#professionals-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.professional-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: all 0.3s ease;
    gap: 20px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.pro-life {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.professional-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 198, 167, 0.2);
}

/* Efecto glitch en hover */
.professional-card:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            transparent 0%,
            var(--glitch-color1) 20%,
            transparent 40%,
            var(--glitch-color2) 60%,
            transparent 80%,
            var(--glitch-color1) 100%);
    background-size: 200% 200%;
    animation: glitch 0.8s linear infinite;
    opacity: 0.2;
    z-index: 0;
}

.professional-card .photo_card {
    flex: 0 0 auto;
    transition: transform 0.3s;
}

.professional-card .photo_card img {
    width: 80px;
    height: 80px;
}

.photo_card:hover {
    transform: scale(1.1);
}

.pro-message {
    flex: 0 0 auto;
    width: 100%;
    font-size: 1.3rem;
    margin: 1rem .5rem;
}

.professional-card player {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: var(--primary-color);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    border: 2px solid var(--card-bg);
    z-index: 2;
}

.professional-card h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-color);
    position: relative;
    z-index: 1;
}

.pro_profile {
    flex: 1 1 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.pro_profile>div {
    flex-grow: 1;
}

.user_link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
    font-size: 1.1rem;
}

.user_link:hover {
    color: var(--primary-color);
}

.pro_profile p {
    font-size: 0.85rem;
    color: #888;
    margin: 5px 0;
}

.pro_profile span {
    font-size: 0.75rem;
    color: #aaa;
    display: block;
}

/* Botón de seguir */
.followButton {
    flex: 0 0 auto;
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: black;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.followButton:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.followButton::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    transition: left 0.7s;
    z-index: -1;
}

.followButton:hover::before {
    left: 100%;
}

/* Estado "Siguiendo" */
.followButton[data-following="true"] {
    background-color: var(--primary-color);
}

/* Botón de cargar más */
#load-more {
    display: block;
    margin: 40px auto 0;
    padding: 12px 35px;
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

#load-more:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 198, 167, 0.3);
}

#load-more::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

#load-more:hover::after {
    transform: translateX(100%);
}

/* Efectos especiales para la sección */
#pro-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%,
            rgba(0, 198, 167, 0.05) 0%,
            transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Responsive */
@media (max-width: 768px) {

    .theme-toggle {
        --toggle-size: 1.7rem;
    }

    #professionals-list {
        grid-template-columns: 1fr;
    }

    .professional-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .pro_profile {
        flex-direction: column;
    }

    .professional-card .photo_card {
        margin-bottom: 15px;
    }
}

/* Animación de aparición */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.professional-card {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}

.professional-card:nth-child(1) {
    animation-delay: 0.1s;
}

.professional-card:nth-child(2) {
    animation-delay: 0.2s;
}

.professional-card:nth-child(3) {
    animation-delay: 0.3s;
}

.professional-card:nth-child(4) {
    animation-delay: 0.4s;
}

.professional-card:nth-child(5) {
    animation-delay: 0.5s;
}

.professional-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* Estilos generales para la página de perfil */
.profile_display {
    display: flex;
    flex-direction: column;
    padding: 30px 0;
    position: relative;
    justify-content: flex-start;
    align-items: center;
}

#left {
    width: 100%;
    flex: 0 0 auto;
    position: sticky;
    top: 0;
    height: fit-content;
    /* background: var(--bg-color); */
    z-index: 999;
    display: flex;
    align-items: center;
    flex-direction: column;
    /* border-bottom: 1px solid #ccc; */
    /* border-image: linear-gradient(to left, transparent, #888, transparent) 1; */
}

#right {
    flex: 1;
    width: 100%;
    margin-top: 25px;
}

/* Sección de foto de perfil */
#config_photo {
    display: flex;
    align-items: center;
    position: relative;
    margin: 1rem;
}

#config_photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s;
}

#config_photo img:hover {
    transform: scale(1.1);
}

.profile_display player {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid var(--bg-color);
    text-align: center;
    min-width: 75%;
    width: max-content;
    height: 40px;
    font-size: 1.5em;
    border-radius: 100px;
    padding: 5px;
    background-color: var(--primary-color);
    color: var(--bg-color);
    /* position: absolute; */
    bottom: -10%;
    left: 50%;
    transform: translate(-50%, 5px);
}

#config_btn a#btn_photo_edit {
    padding: 5px;
    background-color: #000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    border: 2px solid var(--bg-color);
}

#btn_photo_edit:hover img {
    transform: scale(1.1);
}

#btn_photo_edit img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Información del usuario */
#left h1 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 5px;
    color: var(--primary-color);
    position: relative;
}

#left h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-color));
}

.ocupa {
    margin: 0;
    font-size: 1.1rem;
    color: #888;
}

/* Sección de estadísticas */
#social-section {
    display: flex;
    justify-content: space-around;
    padding: 14px 24px;
    background-color: var(--primary-color);
    color: var(--bg-color);
    border-radius: 12px;
    gap: 24px;
}

#social-section div {
    text-align: center;
    cursor: default;
    transition: transform 0.3s;
}

#social-section div:hover {
    transform: translateY(-3px);
}

#social-section h3 {
    font-size: 1.5rem;
    color: var(--border-color);
    margin-bottom: 5px;
}

/* Botones de configuración */
#config_btn {
    display: flex;
    gap: 25px;
}

#config_btn a {
    padding: 5px 0;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    color: var(--primary-color);
}

#config_btn a:hover {
    text-decoration: underline;
}

/* Formulario para publicar */
#submit_area {
    width: fit-content;
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 10px var(--shadow-color);

    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
}

#submit_area textarea {
    width: 100%;
    min-height: 50px;
    padding: 15px;
    font-size: 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    resize: vertical;
    font-family: inherit;
    background-color: var(--bg-color);
    color: var(--text-color);
}

#submit_area textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 198, 167, 0.2);
}

#submit_area div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

#submit_area button {
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

#submit_area button:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

#submit_area span {
    font-size: 0.8rem;
    color: #888;
}

/* Sección de seguidores/seguidos */
.follow-section {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px var(--shadow-color);
}

.follow-section h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.follow-list {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.follow-list:last-child {
    border-bottom: none;
}

.follow-list img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.follow-list a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.follow-list a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Paneles de edición (ocultos inicialmente) */
#edit_photo,
#panel_edit {
    background-color: var(--card-bg);
    border: solid 1px #333;
    padding: 20px;
    border-radius: 24px;
    box-shadow: 0 5px 100px #444;
    z-index: 10000;
    width: 320px;
    overflow-y: auto;
}

#edit_photo h2,
#panel_edit h2 {
    color: var(--primary-color);
    margin: 10px;
    text-align: left;
}

#panel_edit h2:first-child {
    margin: 0;
    margin-bottom: 5px;
    margin-left: 10px;
}

.file-input-button {
    display: block;
    padding: 10px 15px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    width: max-content;
    margin: 0 auto;
}

.file-input-button:hover {
    background-color: var(--primary-color);
}

#panel_edit form,
#edit_photo form {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

#panel_edit label,
#edit_photo label {
    font-weight: 500;
    color: #888;
    margin-left: 10px;
}

#panel_edit input[type="text"],
#panel_edit input[type="password"],
#panel_edit textarea {
    padding: 7px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--input-bg);
    color: var(--text-color);
    margin-bottom: 5px;
}

#panel_edit textarea {
    min-height: 60px;
    resize: vertical;
}

textarea:focus {
    outline: none;
}

#panel_edit button,
#edit_photo button {
    padding: 12px;
    background-color: var(--primary-color);
    color: var(--bg-color);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

#panel_edit button:hover,
#edit_photo button:hover {
    background-color: var(--primary-color);
}

#photo_edit_close,
#config_close {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
}

#photo_edit_close img,
#config_close img {
    width: 20px;
    height: 20px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

#photo_edit_close:hover img,
#config_close:hover img {
    opacity: 1;
}

/* Sección de publicaciones del usuario */
#right h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

#right li {
    position: relative;
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 24px;
    margin-bottom: 1rem;
    box-shadow: 0 5px 100px #999;
    transition: transform 0.3s;
}

#right li:hover {
    transform: translateY(-3px);
}

#right h3 {
    font-weight: 400;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.actions small {
    color: #888;
    font-size: 0.85rem;
}

.actions div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.edit-button,
.delete-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    opacity: 0.7;
    transition: opacity 0.2s;
    z-index: 0;
}

.edit-button:hover,
.delete-button:hover {
    opacity: 1;
}

.edit-button img,
.delete-button img {
    width: 18px;
    height: 18px;
}

/* Modales */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    border-radius: 100px;
    width: 100%;
    transition: all .3s cubic-bezier(0.21, 1.06, 0.83, 1.13);
}

.modal-content.baja {
    opacity: 0;
    transform: translateY(50px) scale(.9);
}

.modal-content.sube {
    opacity: 1;
    transform: translateY(0) scale(1);
}


#editModal .modal-content,
#deleteModal .modal-content {
    background-color: var(--card-bg);
    border: solid 1px #333;
    border-radius: 24px;
    padding: 15px;
    max-width: 320px;
    box-shadow: 0 5px 100px #444;
}

#newMessageModal.fijado {
    position: fixed;
    bottom: 67px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0;
    border-radius: 100px;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.modal-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-buttons .confirm {
    background-color: var(--primary-color);
    color: var(--bg-color);
}

.modal-buttons .confirm:hover {
    transform: scale(1.07);
}

.modal-buttons .cancel {
    background-color: var(--primary-color);
    color: var(--border-color);
}

.modal-buttons .cancel:hover {
    transform: scale(0.9);
}

#editMessageInput {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    border: 0;
    border-radius: 3px;
    resize: vertical;
    font-family: inherit;
    background: none;
    color: var(--text-color);
    font-size: 1.4rem;
}

/* Paginación */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
}

.pagination a {
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 8px;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.pagination a:hover {
    transform: scale(1.1);
}

.pagination a.active {
    background-color: var(--primary-color);
    color: var(--bg-color);
    border-color: var(--border-color);
}

/* Responsive */
@media (max-width: 900px) {
    .profile_display {
        flex-direction: column;
    }

    #left {
        max-width: 100%;
        position: static;
    }

    #edit_photo,
    #panel_edit {
        width: 95%;
    }
}

/* Efectos glitch para elementos interactivos */
#submit_area button:hover,
.like-button:hover,
.edit-button:hover {
    position: relative;
    overflow: hidden;
}

#submit_area button:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            transparent 0%,
            var(--glitch-color1) 20%,
            transparent 40%,
            var(--glitch-color2) 60%,
            transparent 80%,
            var(--glitch-color1) 100%);
    background-size: 200% 200%;
    animation: glitch 0.5s linear infinite;
    opacity: 0.2;
    z-index: -1;
}

/* Estilos para el contenedor del login */
.container.log {
    max-width: 320px;
    margin: 50px auto;
    padding: 40px;
    background-color: var(--card-bg);
    border-radius: 33px;
    /* box-shadow: 0 0 30px var(--shadow-color); */
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Efecto glitch sutil de fondo */
.container.log::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right,
            transparent 45%,
            rgba(0, 198, 167, 0.05),
            transparent 55%);
    transform: rotate(30deg);
    animation: glitch-bg 8s linear infinite;
    z-index: -1;
}

@keyframes glitch-bg {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Título del login */
.container.log h1 {
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

/* Formulario de login */
#formLogin {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#formLogin input {
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    background-color: var(--input-bg);
    color: var(--text-color);
    transition: all 0.3s;
}

#formLogin input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 198, 167, 0.2);
}

/* Efecto glitch en los inputs al focus */
#formLogin input:focus {
    position: relative;
    overflow: hidden;
}

#formLogin input:focus::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            transparent 0%,
            var(--glitch-color1) 20%,
            transparent 40%,
            var(--glitch-color2) 60%,
            transparent 80%,
            var(--glitch-color1) 100%);
    background-size: 200% 200%;
    animation: glitch 0.8s linear infinite;
    opacity: 0.1;
    z-index: -1;
}

/* Botón de login */
#buttonLogin {
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

#buttonLogin:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 198, 167, 0.3);
}

#buttonLogin::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transition: left 0.7s;
}

#buttonLogin:hover::before {
    left: 100%;
}

/* Efecto glitch más intenso al hacer hover en el botón */
#buttonLogin:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            transparent 0%,
            var(--glitch-color1) 20%,
            transparent 40%,
            var(--glitch-color2) 60%,
            transparent 80%,
            var(--glitch-color1) 100%);
    background-size: 200% 200%;
    animation: glitch 0.5s linear infinite;
    opacity: 0.2;
    z-index: -1;
}

/* Enlaces de registro y recuperación */
.logreg {
    color: var(--text-color);
}

.logreg.two {
    background-color: var(--bg-color);
    padding: 1rem;
    border-radius: 14px;
    box-shadow: 0 0 var(--shadow-color);
}

.logreg.tree {
    margin: 2rem;
    margin-bottom: 15rem;
}

.logreg a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: color 0.3s;
}

.logreg a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.logreg a:hover {
    color: var(--primary-color);
}

.logreg a:hover::after {
    width: 100%;
}

/* Responsive design */
@media (max-width: 500px) {
    .container.log {
        padding: 30px 20px;
        margin: 30px 20px;
    }

    .container.log h1 {
        font-size: 1.8rem;
    }

    #formLogin input,
    #buttonLogin {
        padding: 12px;
    }
}

/* Animación de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container.log {
    animation: fadeInUp 0.6s ease-out;
}

#formLogin {
    animation: fadeInUp 0.8s ease-out;
}

.logreg {
    animation: fadeInUp 1s ease-out;
}

/* Estilos base del formulario */
#registerForm {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 320px;
    margin: 0 auto;
    padding: 10px;
    background-color: var(--card-bg);
    border-radius: 33px;
    /* box-shadow: 0 0 50px var(--shadow-color); */
    position: relative;
    overflow: hidden;
}

/* Efecto glitch de fondo */
#registerForm::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right,
            transparent 45%,
            rgba(0, 198, 167, 0.05),
            transparent 55%);
    transform: rotate(30deg);
    animation: glitch-bg 8s linear infinite;
    z-index: -1;
}

/* Estilos para los campos de entrada */
#registerForm input[type="text"],
#registerForm input[type="email"],
#registerForm input[type="password"],
#registerForm input[type="date"],
#registerForm textarea {
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 100px;
    font-size: 1rem;
    background-color: var(--input-bg);
    color: var(--text-color);
    transition: all 0.3s;
    width: 100%;
}

#registerForm textarea {
    min-height: 100px;
    resize: vertical;
    border-radius: 10px;
}

#registerForm input:focus,
#registerForm textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 198, 167, 0.2);
}

/* Efecto glitch en los inputs al focus */
#registerForm input:focus,
#registerForm textarea:focus {
    position: relative;
}

#registerForm input:focus::after,
#registerForm textarea:focus::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            transparent 0%,
            var(--glitch-color1) 20%,
            transparent 40%,
            var(--glitch-color2) 60%,
            transparent 80%,
            var(--glitch-color1) 100%);
    background-size: 200% 200%;
    animation: glitch 0.8s linear infinite;
    opacity: 0.1;
    z-index: -1;
    border-radius: 8px;
}

/* Sección de verificación de email */
.verification-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: -15px;
}

.verification-container>div {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.verification-container input {
    flex: 1;
    min-width: 150px;
}

.verification-container button {
    padding: 0 15px;
}

.verification-message {
    padding: 10px;
    border-radius: 8px;
    margin-top: -5px;
    font-size: 0.9rem;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.verification-message.success {
    background-color: rgba(9, 195, 114, 0.2);
    color: var(--success-color);
}

.verification-message.error {
    background-color: rgba(255, 56, 96, 0.9);
    color: var(--error-color);
}

/* Estilos para el input de archivo */
.file-input-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border: solid 1px #888;
}

#edit_photo label.file-input-button {
    background-color: #888;
    color: var(--bg-color);
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s;
    margin: 0 auto;
}

.file-input-button:hover {
    background-color: var(--primary-color);
}

#profilePhotoInput {
    display: none;
}

.image-preview {
    margin-top: 15px;
    display: none;
}

.image-preview img {
    max-width: 150px;
    max-height: 150px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

/* Área de recorte de imagen */
#imageCropper {
    display: none;
    margin: 0 auto;
    max-height: 400px;
    overflow: hidden;
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

#imageCropper img {
    max-width: 100%;
    display: block;
}

#edit_photo button#cropButton {
    display: none;
    padding: 12px 20px;
    background-color: rgb(0 198 167);
    color: #333;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin: 0 auto;
    transition: all 0.3s;
}

#edit_photo button#cropButton:hover {
    background-color: rgb(29, 226, 197);
    transform: translateY(-2px);
}

/* Vista previa recortada */
#croppedPreview {
    display: none;
    margin: 0 auto;
    text-align: center;
    margin-top: 20px;
}

#croppedPreview img {
    max-width: 150px;
    max-height: 150px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 198, 167, 0.3);
}

/* Botón de submit */
#submitButton {
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

#submitButton:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 198, 167, 0.3);
}

#submitButton::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transition: left 0.7s;
}

#submitButton:hover::before {
    left: 100%;
}

/* Efecto glitch al hacer hover en el botón */
#submitButton:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            transparent 0%,
            var(--glitch-color1) 20%,
            transparent 40%,
            var(--glitch-color2) 60%,
            transparent 80%,
            var(--glitch-color1) 100%);
    background-size: 200% 200%;
    animation: glitch 0.5s linear infinite;
    opacity: 0.2;
    z-index: -1;
}

.submit-btn {
    width: 100%;
    background: #666;
    font-size: large;
    color: white;
    border: none;
    padding: 0;
    border-radius: 100px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn img {
    transition: .2s;
}

.submit-btn:hover img {
    transform: translateY(-3px);
}

.submit-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Texto de términos */
#registerForm p {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
    text-align: center;
    margin-top: 10px;
}

#registerForm p a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

#registerForm p a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Botones de verificación */
#verifyCodeButton,
#resendCodeButton {
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

#verifyCodeButton {
    background-color: var(--primary-color);
    color: white;
}

#verifyCodeButton:hover {
    background-color: var(--primary-color);
}

#resendCodeButton {
    background-color: var(--border-color);
    color: var(--text-color);
}

#resendCodeButton:hover {
    background-color: #d0d0d0;
}

/* Responsive design */
@media (max-width: 650px) {
    #registerForm {
        padding: 25px 20px;
    }

    #registerForm input[type="text"],
    #registerForm input[type="email"],
    #registerForm input[type="password"],
    #registerForm textarea {
        padding: 12px;
    }

    .verification-container>div {
        flex-direction: column;
    }

    .verification-container button {
        width: 100%;
        padding: 12px;
    }
}

/* Animaciones */
@keyframes glitch-bg {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#registerForm {
    animation: fadeIn 0.6s ease-out;
}

/* Estilos para el estado de carga */
#registerForm.loading {
    position: relative;
}

#registerForm.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: bold;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    display: none;
}

.close-modal:hover {
    color: black;
}

#messageForm {
    display: flex;
    gap: 10px;
    align-items: center;
    border-radius: 24px;
}

.textareaDiv {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}

#messageForm {
    transition: border-color 0.3s, box-shadow 0.3s;
}

#messageForm:focus-within {
    border-color: #ccc;
}

#messageInput {
    max-height: 262px;
    width: 100%;
    padding: 5px 0;
    border: 0;
    resize: none;
    font-family: inherit;
    font-size: 1.1rem;
    background: none;
    color: #fff;
}

#messageInput:focus {
    outline: none !important;
}

.form-footer {
    width: 100px;
    display: flex;
    justify-content: center;
    align-items: stretch;
    height: 40px;
    align-self: flex-start;
}

.char-counter {
    position: absolute;
    bottom: 0;
    right: 0;
    color: #9c9c9c;
    font-size: 0.8em;
}

.form-alerts {
    position: absolute;
    bottom: 160%;
    right: 0;
    max-width: 320px;
}

#formError,
#formSuccess {
    position: relative;
    background: var(--primary-color);
    border-radius: 20px;
    padding: 10px 15px;
    width: fit-content;
    max-width: 190px;
    font-family: sans-serif;
    text-align: left;
    font-size: 16px;
    color: var(--bg-color);
    box-shadow: 2px 2px 30px rgba(75, 75, 75, 0.5);
}

#formError::before,
#formSuccess::before {
    content: "";
    position: absolute;
    bottom: -10px;
    /* distancia hacia abajo */
    right: 50px;
    /* ajusta posición horizontal */
    border-width: 10px 10px 0 10px;
    /* triángulo hacia abajo */
    border-style: solid;
    border-color: var(--primary-color) transparent transparent transparent;
    /* triángulo blanco */
    display: block;
    width: 0;
    height: 0;
}

#formSuccess {
    background-color: var(--success-color);
}

.container.play {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 0;
}

.newMessageText {
    flex: 1 1 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    bottom: 50px;
    gap: 10px;
}

.floating-btn {
    background-color: var(--primary-color);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.floating-btn img {
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {

    #config_photo {
        flex-flow: row wrap;
    }

    #config_photo #social-section {
        flex: 0 0 auto;
        width: 100%;
        font-size: .8rem;
        padding: 14px;
        margin-top: 1rem;
    }

    .floating-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* Estilo para el mensaje de error */
.error-message {
    color: #d32f2f;
    background-color: #ffebee;
    padding: 10px;
    border-radius: 4px;
    border-left: 4px solid #f44336;
}

/* Estilo cuando hay error */
input[type="date"].error {
    border-color: #f44336;
}

label[for='birthdate'] {
    font-weight: bold;
    font-size: 1.2rem;
    color: #888;
}

/* Estilos para el sistema de respuestas */
.replies-container {
    position: relative;
    transition: .5s;
}

.replies-list {
    transition: .5s;
}

/*
.replies-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -3px;
    height: 100%;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
}
*/
.reply-form {
    border: 1px solid var(--border-color);
    background-color: var(--input-bg);
    border-radius: 9px;
    margin: 10px 0;
    padding: 5px;
    display: flex;
    flex-direction: row;
    gap: 5px;
}

.reply-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    resize: vertical;
    /* min-height: 80px; */
    background-color: var(--bg-color);
    color: var(--text-color);
}

.reply-textarea:focus {
    outline: none;
    /*border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 198, 167, 0.2);*/
}

.submit-reply,
.cancel-reply {
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-reply {
    background-color: black;
    border: none;
}

.submit-btn img {
    width: 24px;
    height: auto;
    filter: brightness(0.9);
}

.submit-reply img {
    width: 24px;
    height: auto;
    transition: .2s ease;
}

.cancel-reply {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.cancel-reply:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.reply-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    margin-bottom: 10px;
    transition: .5s;
    padding: 5px;
}

.reply-card p {
    margin-bottom: 8px;
}

.reply-card span {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0;
}

.reply-player {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.reply-player img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.reply-player a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.reply-player a:hover {
    text-decoration: underline;
}

.reply-button {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

/* Mostrar/ocultar respuestas */
.show-replies {
    display: block;
    margin-top: 10px;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.9rem;
}

.show-replies:hover {
    text-decoration: underline;
}

/* Estilos para respuestas */

.reply-form textarea {
    width: 100%;
    height: 100%;
    padding: 5px;
    border-radius: 7px;
    border: 0;
    background-color: var(--input-bg);
    color: var(--text-color);
    resize: none;
    font-family: inherit;
}

.reply-form button {
    padding: 5px;
    border-radius: 7px;
    cursor: pointer;
    border: none;
    font-weight: bold;
}

.reply-form .submit-reply {
    flex: 0 0 auto;
    align-self: center;
    height: 40px;
    width: 40px;
    border-radius: 50%;
}

.reply-form .submit-reply:hover img {
    transform: translateY(-2px);
}

.reply-form .cancel-reply {
    background-color: var(--border-color);
    color: var(--text-color);
}

.reply-content p {
    margin: 0 0 5px 0;
    color: var(--text-color);
    line-height: 1.5;
    font-size: 1rem;
}

.reply-content span {
    font-size: 0.8em;
    color: #888;
}

.reply-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 5px;
}

.vote-button {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.2s;
}

.vote-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.vote-button img {
    width: 20px;
    height: 20px;
}

.like-reply {
    color: var(--success-color);
}

.dislike-reply {
    color: var(--error-color);
}

.reply-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
}

.reply-author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(270deg,
            var(--glitch-color1),
            var(--glitch-color2),
            var(--glitch-color1));
    background-size: 200% 100%;
    animation: waveMotion 2s infinite ease-in-out;
    z-index: 1999;
}

@keyframes waveMotion {
    0% {
        background-position: 200% 0;
    }

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

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

.terms-privacy a,
.terms-privacy span {
    margin: .5rem;
    display: inline-block;
    text-decoration: none;
    color: #888;
    font-size: .8rem;
}

#privacy_terms>.container a {
    color: var(--primary-color);
    text-decoration: none;
}

#privacy_terms>.container {
    max-width: 720px;
    margin: 10px auto;
    padding: 0 2rem;
}

#privacy_terms h1,
#privacy_terms h2,
#privacy_terms h3,
#privacy_terms>.container ul {
    margin: 1rem 0;
}

#privacy_terms>.container ul {
    max-width: 90%;
}

#privacy_terms>.container li {
    margin: 1rem 0;
    padding: 1rem;
    background-color: var(--card-bg);
    box-shadow: 0 0 10px var(--shadow-color);
    border: solid 1px var(--border-color);
    border-radius: 14px;
    list-style: none;
}

/* Estilos del modal */
.report-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.report-modal-content {
    background-color: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    padding: 20px;
    position: relative;
    box-shadow: 0 4px 20px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
}

/* Estilos del formulario de reporte */
.report-container {
    font-family: 'Roboto', Arial, sans-serif;
    color: #333;
}

.report-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.report-description {
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: #333;
}

.report-options {
    margin-bottom: 20px;
}

.report-option {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.report-option input[type="radio"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: #000;
}

.report-option label {
    font-size: 0.95rem;
    cursor: pointer;
}

.report-divider {
    height: 1px;
    background-color: #ccc;
    margin: 20px 0;
}

.report-next-btn,
.report-submit-btn {
    float: right;
    padding: 8px 16px;
    background-color: #333;
    color: #ddd;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.report-next-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.report-next-btn:not(:disabled):hover {
    background-color: #000;
}

/* Botón de reportar en las publicaciones */
.report-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 5px;
}

.report-btn:hover {
    text-decoration: underline;
}

/* Estilos adicionales para el sistema de pasos */
.report-step {
    display: none;
}

.report-step.active {
    display: block;
}

.report-nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.report-cancel-btn,
.report-back-btn {
    padding: 8px 16px;
    background-color: transparent;
    color: #333;
    border: 2px solid #999;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.report-cancel-btn:hover,
.report-back-btn:hover {
    background-color: #eee;
}

.report-description-box {
    position: relative;
    margin: 20px 0;
}

.report-description-box textarea {
    width: 100%;
    height: 120px;
    padding: 12px;
    border-radius: 8px;
    resize: none;
    font-family: inherit;
    background-color: #eee;
    color: #333;
    border: 0;
}

.report-description-box textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 198, 167, 0.2);
}

.report-container .char-counter {
    text-align: right;
    font-size: 0.8rem;
    color: #888;
    opacity: 0.7;
    right: 10px;
    bottom: 10px;
    text-align: right;
}

/* Estilo para el paso completado */
.report-option input[type="radio"]:checked+label {
    font-weight: bold;
    color: #000;
}

/* Notificaciones */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 300px;
    z-index: 9999;
}

.notification {
    position: fixed;
    top: 10px;
    right: 10px;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    opacity: 0;
    animation: slideIn 0.3s forwards, fadeOut 0.5s forwards 3s;
    display: flex;
    align-items: center;
    z-index: 2000;
}

.notification.success {
    background-color: #4CAF50;
    border-left: 5px solid #388E3C;
}

.notification.error {
    background-color: #F44336;
    border-left: 5px solid #D32F2F;
}

.notification.warning {
    background-color: #FF9800;
    border-left: 5px solid #F57C00;
}

.notification-icon {
    margin-right: 10px;
    font-size: 20px;
}

@keyframes slideIn {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.btn,
.search-form button,
.followButton,
#buttonLogin,
#submitButton {
    background-color: var(--primary-color);
    color: var(--bg-color);
}

.btn:hover,
.search-form button:hover,
.followButton:hover,
#buttonLogin:hover,
#submitButton:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
}

.message-card,
.professional-card,
.footer,
.report-modal-content {
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 100px #444;
}

input,
textarea,
select {
    background-color: var(--input-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-photo-edit {
    position: absolute;
    bottom: 25%;
    left: 50%;
    transform: translate(-50%, 50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, .8);
    padding: 5px;
    border-radius: 50%;
}

.info {
    margin: 0 1rem;
    margin-right: 3rem;
}

@media (max-width: 768px) {
    .info {
        margin-right: 0;
    }
}

.profile-photo {
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    width: 109px;
    height: 109px;
}

/* Contenedor */
.vhs-container {
    display: flex;
    align-items: center;
}

/* Imagen con vibración RGB */
.vhs-img {
    height: 30px;
    margin-right: 10px;
    filter: invert(.89) drop-shadow(-1px 0 red) drop-shadow(1px 0 cyan);
    animation: beatVibrate 1s infinite ease-in-out;
}

/* Texto principal */
.vhs-text {
    position: relative;
    /* font-size: 1.5rem; */
    font-weight: bold;
    /* text-transform: uppercase; */
}

/* Clones RGB */
.vhs-text::before,
.vhs-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0.9;
}

.vhs-text::before {
    color: red;
    animation: vibrateLeft .5s infinite ease-in-out;
}

.vhs-text::after {
    color: cyan;
    animation: vibrateRight .5s infinite ease-in-out;
}

/* Vibración tipo audio beat */
@keyframes beatVibrate {
    0% {
        transform: translateX(0) scale(1) rotate(0);
    }

    25% {
        transform: translateX(-1px) scale(1.02) rotate(-0.2deg);
    }

    50% {
        transform: translateX(1px) scale(1.01) rotate(0.2deg);
    }

    75% {
        transform: translateX(-1px) scale(1.015) rotate(-0.1deg);
    }

    100% {
        transform: translateX(0) scale(1) rotate(0);
    }
}

@keyframes vibrateLeft {

    0%,
    100% {
        transform: translate(-1.5px, 0);
    }

    50% {
        transform: translate(-1px, -0.5px);
    }
}

@keyframes vibrateRight {

    0%,
    100% {
        transform: translate(1.5px, 0);
    }

    50% {
        transform: translate(1px, 0.5px);
    }
}

.grid-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.grid-gallery li:hover {
    transform: scale(1.05);
}

@media (max-width: 500px) {

    .terms-privacy {
        /* position: fixed; */
        bottom: 0;
    }

    body {
        /* margin-bottom: 1rem; */
        /* margin-top: 10rem; */
    }

    .barra {
        padding: 0;
        /* top: 0; */
        /* bottom: auto; */
        /* flex-direction: column-reverse; */
        margin: 0 1rem;
        width: calc(100% - 2rem);
    }

    .navbar {
        /* display: flex; */
        /* flex-direction: column-reverse; */
        padding-top: 8px;
    }

    .nav-links a span {
        display: none;
    }

    .nav-links {
        width: 100%;
        justify-content: space-between;
        margin-left: 40px;
    }

    .nav-links a {
        flex-direction: column;
        gap: 0;
        font-size: .8rem;
        padding: 0;
    }

    .form-footer {
        width: 40px;
        aspect-ratio: 1;
    }

    .submit-btn img {
        width: 27px;
    }
}

#privacy_terms {
    margin-bottom: 15rem;
}

/* Para Android específicamente 
@media (hover: none) and (pointer: coarse) {
    .barra {
        position: absolute;
        bottom: env(safe-area-inset-bottom, 0px);
    }

    body.keyboard-visible .barra {
        bottom: var(--keyboard-height, 300px);
    }
}*/