/* CSS DE HOMEPAGE */
body {
    margin: 0;
    padding: 0;
    background-color: #DDEECC;
    height: 300vh;
    overflow: hidden;
}

/* Clase que se añade cuando se debe permitir el scroll */
body.scroll-enabled {
    overflow: auto;
}

/* Ocultar barras de scroll */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

html,
body {
    -ms-overflow-style: none !important;  /* Internet Explorer 10+ */
    scrollbar-width: none !important;  /* Firefox */
    overflow: -moz-scrollbars-none !important;  /* Firefox legacy */
}

/* Para todos los elementos */
*::-webkit-scrollbar {
    display: none !important;
}

.centro {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: relative;
}

.centroizq {
    position: relative;
    z-index: 1;
    overflow: hidden;
    width: 50vw;
    transform: skew(-10deg);
}

.centroizq p {
    color: #2F4F2F;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0;
    margin-top: 0;
    margin-right: 1rem;
    padding: 0;
    font-family: "Oswald", sans-serif;
    font-size: 1.5rem;
    transform: translateX(110%) skew(10deg);
    animation: slide-from-right 1.5s ease-in-out 3.2s forwards;
}

.centroder {
    position: relative;
    z-index: 1;
    overflow: hidden;
    width: 50vw;
    transform: skew(-10deg);
}

.centroder p {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 0;
    margin-top: 0;
    margin-left: 1rem;
    padding: 0;
    font-size: 1.1rem;
    font-family: sans-serif;
    transform: translateX(-110%) skew(10deg);
    animation: slide-from-left 1.5s ease-in-out 3.2s forwards;
}

.vline {
    border-left: 3px solid #333;
    height: 5rem;
    width: 0;
    position: relative;
    z-index: 5;
    animation: mover 3s ease-in-out forwards;
}

.centroizq::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 1px;
    height: 100vh;
    background: transparent;
    z-index: 10;
}

.centroder::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 100vh;
    background: transparent;
    z-index: 10;
}

.back-transicion {
    position: fixed;
    width: 100vw;
    bottom: 0;
    height: 0vh;
    background-color: rgb(51, 161, 78);
    z-index: 11;
    animation: 1.5s cambiar-fondo ease-in-out 6.2s forwards;
}

.intro-page {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100vh;
    color: white;
    font-size: 2vw;
    opacity: 0;
    animation: aparecer-texto 1s ease-in-out 8s forwards;
    position: relative;
}

.intro-page-right {
    animation: estado-reposo 2s ease-in-out 9.7s infinite;
}

.intro-page-left {
    animation: estado-reposo 2s ease-in-out 10.0s infinite;
}

.expansion-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 15;
    pointer-events: none;
}

.obj-transicion {
    height: 30vh;
    width: 30vw;
    animation-name: estado-reposo, expandirScroll;
    animation-duration: 2s, 1s;
    animation-delay: 9.4s, none;
    animation-timing-function: ease-in-out, linear;
    animation-iteration-count: infinite, 1;
    animation-timeline: auto, scroll(root);
    animation-range: normal, entry 0% exit 100%;
    animation-fill-mode: none, none;
    object-fit: contain;
}

.obj-transicion.reset {
    animation: none;
}

.obj-transicion.reset.reactivate {
    animation-name: estado-reposo, expandirScroll;
    animation-duration: 2s, 1s;
    animation-delay: 9.4s, none;
    animation-timing-function: ease-in-out, linear;
    animation-iteration-count: infinite, 1;
    animation-timeline: auto, scroll(root);
    animation-range: normal, entry 0% exit 100%;
    animation-fill-mode: none, none;
}

.color-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #cecece;
    opacity: 0;
    z-index: 19;
    animation: revelar-fondo 1s ease-out 0s 1 both;
    animation-timeline: scroll(root);
    animation-range: entry 50% exit 100%;
}

.content-after-expand {
    background-color: transparent;
    color: rgb(255, 255, 255);
    opacity: 0;
    z-index: 20;
    position: fixed;
    top: 45vh;
    left: 5vw;
    transform: translateY(-50%);
    transition: all 1s ease-out;
}

.content-after-expand.show {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.content-after-expand.hide {
    opacity: 0 !important;
    transform: translateY(50px) !important;
}

.content-after-expand h1, h2 {
    margin: 0;
    font-size: 3.5vw;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold; 
    text-align: left;
}


.content-after-expand p {
    margin: 0;
    font-size: 1.8vw;
    text-align: left;
}
.back_af_expand {
    display: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #467746;
    position: fixed;
    z-index: 19;
    animation: revelar-fondo 1s ease-out 0s 1 both;
    animation-timeline: scroll(root);
    animation-range: entry 70% exit 100%;
}

.back_af_expand img{
    position: absolute;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.navigation-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 7%;
    background: #375f37;
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 21;
    opacity: 0;
    transform: translateY(-100px);
    transition: all 1s ease-out;
}

.navigation-bar.show {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.navigation-bar.hide {
    opacity: 0 !important;
    transform: translateY(-100px) !important;
}

.linc_deco {
    position: fixed;
    left: 10%;
    background-color: white;
    border-radius: 1rem;
    opacity: 0.7;
}

.linc_deco img {
    height: 6vh;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    opacity: 0;
    transform: translateY(30px);
    animation: nav-link-appear 0.8s ease-out forwards;
}

.nav-links li:nth-child(1) { animation-delay: 0.2s; }
.nav-links li:nth-child(2) { animation-delay: 0.4s; }
.nav-links li:nth-child(3) { animation-delay: 0.6s; }
.nav-links li:nth-child(4) { animation-delay: 0.8s; }
.nav-links li:nth-child(5) { animation-delay: 1.0s; }

.nav-links a {
    color: rgb(255, 255, 255);
    text-decoration: none;
    font-family: "Oswald", sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    padding: 10px 20px;
    transition: transform 0.3s ease;
}

.nav-links a:hover {
    transform: translateY(-5px);
}

.navigation-bar.show .nav-links li {
    opacity: 1 !important;
    transform: translateY(0) !important;
    animation: none !important;
}

#central {
    padding-left: 2px;
    padding-right: 2px;
    padding-bottom: 0;
    border-bottom: 0.2rem solid white;
}



.intro-page-right div:nth-child(1) {
    opacity: 0;
    animation: texto-ola 0.8s ease-out 8.5s forwards;
}

.intro-page-right div:nth-child(2) {
    opacity: 0;
    animation: texto-ola 0.8s ease-out 8.8s forwards;
}

.intro-page-left div:nth-child(1) {
    opacity: 0;
    animation: texto-ola 0.8s ease-out 9.1s forwards;
}

.intro-page-left div:nth-child(2) {
    opacity: 0;
    animation: texto-ola 0.8s ease-out 9.4s forwards;
}

.caja_HP {
    
    height: 70%;
    position: fixed;
    top: 20%;
    left: 70%;
    gap: 5rem;
    z-index: 20;
    animation: revelar-fondo 1s ease-out 0s 1 both;
    animation-timeline: scroll(root);
    animation-range: entry 70% exit 100%;
    
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.caja_HP_child {
    height: 25rem;
    width: 25rem;
    border-radius: 2rem;
    font-size: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;
    text-align: center; 
    padding: 1rem;
    box-sizing: border-box;
    background-size: cover;
    background-position: center; 
    background-repeat: no-repeat;
    position: relative;
}

/* Sive parea Mejora la legibilidad del texto */
.caja_HP_child::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 2rem;
    z-index: 1;
}


.caja_HP_child p {
    position: relative;
    z-index: 2;
    color: white;
}

/* Clases específicas para cada imagen de fondo */
.caja_HP_child.dicaprio {
    background-image: url('./Images/dicaprio.jpg');
}

.caja_HP_child.wangari {
    background-image: url('./Images/wangari.jpg');
}

.caja_HP_child:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease-in-out;
}

@keyframes expandirScroll {
    from { 
        scale: 1; 
        opacity: 1;
    }
    50% {
        scale: 15;
        opacity: 0.8;
    }
    to { 
        scale: 25; 
        opacity: 0;
    }
}

@keyframes revelar-fondo {
    from { 
        opacity: 0; 
        transform: scale(1);
    }
    to { 
        opacity: 1; 
        transform: scale(1);
    }
}

@keyframes aparecer-contenido {
    from { 
        opacity: 0; 
        transform: translateY(100px) scale(0.9);
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1);
    }
}

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

@keyframes aparecer-texto {
    from { transform: translateY(20%); }
    to {
        transform: translateY(0%);
        opacity: 1;
    }
}

@keyframes cambiar-fondo {
    0% { height: 0vh; }
    to { height: 100vh; }
}

@keyframes mover {
    from { transform: translateX(-100vw) rotate(0deg); }
    to { transform: translateX(0) rotate(3610deg); }
}

@keyframes slide-from-right {
    from { transform: translateX(150%) skew(10deg); }
    to { transform: translateX(0) skew(10deg); }
}

@keyframes slide-from-left {
    from { transform: translateX(-150%) skew(10deg); }
    to { transform: translateX(0) skew(10deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; transform: translateX(-50%) translateY(0); }
    50% { opacity: 1; transform: translateX(-50%) translateY(-5px); }
}

@keyframes nav-link-appear {
    from { 
        opacity: 0; 
        transform: translateY(30px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

@keyframes estado-reposo {
    0% { transform: translateY(0rem); }
    50% { transform: translateY(-1rem); }
    100% { transform: translateY(0rem); }
}

@keyframes texto-ola {
    0% { 
        opacity: 0; 
        transform: translateY(30px);
    }
    100% { 
        opacity: 1; 
        transform: translateY(0);
    }
}
@keyframes pulse {
    0%, 100% { opacity: 0.7; transform: translateX(-50%) translateY(0); }
    50% { opacity: 1; transform: translateX(-50%) translateY(-5px); }
}

/* Estilos del formulario de registro y login */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-form {
    background: linear-gradient(135deg, #4a7c59 0%, #2d5a3d 100%);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 90%;
    transform: translateY(50px) scale(0.9);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.modal.show .modal-form {
    transform: translateY(0) scale(1);
}

.modal-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #66d9ef, #a6e22e, #f92672, #fd971f);
    background-size: 400% 400%;
    animation: gradient-flow 3s ease infinite;
}

@keyframes gradient-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
    color: white;
}

.form-header h2 {
    margin: 0;
    font-size: 2.2rem;
    font-family: "Oswald", sans-serif;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    color: white;
    font-family: "Oswald", sans-serif;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #a6e22e;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 10px rgba(166, 226, 46, 0.3);
}

.form-group select option {
    background: #2d5a3d;
    color: white;
}

.form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-family: "Oswald", sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #a6e22e 0%, #66d9ef 100%);
    color: #2d5a3d;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(166, 226, 46, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #f92672 0%, #e91e63 100%);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 38, 114, 0.3);
}

.success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #a6e22e 0%, #66d9ef 100%);
    color: #2d5a3d;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-family: "Oswald", sans-serif;
    font-weight: 500;
    z-index: 1001;
    transform: translateX(400px);
    transition: transform 0.5s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.success-message.show {
    transform: translateX(0);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-btn:hover {
    transform: rotate(90deg);
}

.form-group.error input {
    border-color: #f92672;
    background: rgba(249, 38, 114, 0.1);
}

.error-message {
    color: #f92672;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

/* Panel de administración */
.admin-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    overflow-y: auto;
    padding: 2rem;
    box-sizing: border-box;
}

.admin-panel.show {
    opacity: 1;
    visibility: visible;
}

.admin-content {
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(135deg, #2d5a3d 0%, #1a3a2a 100%);
    border-radius: 20px;
    padding: 2rem;
    color: white;
}

.admin-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 1rem;
    position: relative;
}

.admin-header h2 {
    font-family: "Oswald", sans-serif;
    font-size: 2.5rem;
    margin: 0;
    color: #a6e22e;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #a6e22e;
    display: block;
}

.stat-label {
    opacity: 0.8;
    margin-top: 0.5rem;
}

.users-list {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1rem;
}

.user-card {
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #a6e22e;
    transition: all 0.3s ease;
}

.user-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.user-card:last-child {
    margin-bottom: 0;
}

.user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: #66d9ef;
    margin-bottom: 0.5rem;
}

.user-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.user-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.9rem;
    min-width: auto;
    flex: none;
}

/* Botón de login en la navegación */
.login-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    cursor: pointer;
    font-family: "Oswald", sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Estilos de estado de usuario mejorados */
.user-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Colores específicos para cada rol */
.status-superadmin {
    background: linear-gradient(135deg, #f92672 0%, #e91e63 100%);
    color: white;
    border: 2px solid #f92672;
    animation: superadmin-glow 2s ease-in-out infinite alternate;
}

.status-admin {
    background: linear-gradient(135deg, #fd971f 0%, #f39c12 100%);
    color: white;
    border: 2px solid #fd971f;
}

.status-user {
    background: linear-gradient(135deg, #66d9ef 0%, #4a90e2 100%);
    color: white;
    border: 2px solid #66d9ef;
}

/* Animación especial para Superadmin */
@keyframes superadmin-glow {
    from {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 10px rgba(249, 38, 114, 0.3);
    }
    to {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 20px rgba(249, 38, 114, 0.6);
    }
}

/* Form switch buttons */
.form-switch {
    text-align: center;
    margin-bottom: 1rem;
}

.switch-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 0.9rem;
    margin: 0 1rem;
    padding: 0.5rem;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.switch-btn.active {
    color: #a6e22e;
    border-bottom-color: #a6e22e;
}

.switch-btn:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* Estilos para botones de acción mejorados */
.btn-promote {
    background: linear-gradient(135deg, #a6e22e 0%, #66d9ef 100%);
    color: #2d5a3d;
}

.btn-promote:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(166, 226, 46, 0.3);
}

.btn-demote {
    background: linear-gradient(135deg, #fd971f 0%, #f39c12 100%);
    color: white;
}

.btn-demote:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(253, 151, 31, 0.3);
}

/* Indicadores especiales para el Superadmin */
.superadmin-indicator {
    background: linear-gradient(135deg, #f92672 0%, #e91e63 100%);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-left: 0.5rem;
    animation: superadmin-pulse 2s ease-in-out infinite;
}

@keyframes superadmin-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .modal-form {
        padding: 2rem;
        margin: 1rem;
    }

    .form-header h2 {
        font-size: 1.8rem;
    }

    .form-buttons {
        flex-direction: column;
    }

    .admin-content {
        padding: 1rem;
        margin: 1rem;
    }

    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .user-header {
        flex-direction: column;
        align-items: stretch;
    }

    .user-actions {
        justify-content: center;
    }

    .stat-card {
        padding: 1rem;
    }

    .user-card {
        padding: 1rem;
    }

    .user-details {
        grid-template-columns: 1fr;
    }
}