/* Estilos generales mejorados para Rurana */
:root {
    --primary-color: #D4AF37; /* Oro inca */
    --secondary-color: #8B4513; /* Tierra */
    --dark-color: #1A1A1A; /* Fondo oscuro */
    --light-color: #F5F5DC; /* Beige claro */
    --accent-color: #E74C3C; /* Rojo inca */
    --text-color: #333;
    --text-light: #FFF;
    --success-color: #2ECC71;
    --warning-color: #F39C12;
    --info-color: #3498DB;
    --inca-sun: #F1C40F;
    --inca-blue: #2980B9;
    --inca-green: #27AE60;
    --font-main: 'Quicksand', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--light-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Estilos para la pantalla de autenticación */
#auth-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark-color), var(--secondary-color));
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-container {
    display: flex;
    width: 90%;
    max-width: 900px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.forms-container {
    flex: 1;
    padding: 2rem;
    position: relative;
}

.auth-form {
    transition: all 0.5s ease;
}

.auth-form.hidden {
    position: absolute;
    top: 2rem;
    left: 2rem;
    right: 2rem;
    opacity: 0;
    pointer-events: none;
    transform: translateX(50px);
}

.inca-auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.inca-line {
    height: 3px;
    width: 80px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    margin: 0.5rem auto;
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
}

.input-group input,
.input-group textarea,
.input-group select {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border: 2px solid #ddd;
    border-radius: 50px;
    font-family: var(--font-main);
    transition: all 0.3s;
}

.input-group textarea {
    border-radius: 15px;
    min-height: 100px;
    padding: 12px 20px;
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
}

.inca-auth-button {
    background: linear-gradient(to right, var(--secondary-color), var(--dark-color));
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.inca-auth-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-color);
}

.auth-switch a {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
}

.inca-auth-decoration {
    flex: 1;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(139, 69, 19, 0.1));
    position: relative;
    display: none;
}

@media (min-width: 768px) {
    .inca-auth-decoration {
        display: block;
    }
}

.sun-pattern {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--inca-sun) 0%, rgba(241, 196, 15, 0.1) 70%);
    border-radius: 50%;
    opacity: 0.3;
}

.quipu-design {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    height: 40px;
    background: 
        linear-gradient(to right, 
            transparent 20%, 
            var(--primary-color) 20%, 
            var(--primary-color) 30%, 
            transparent 30%,
            transparent 70%,
            var(--primary-color) 70%,
            var(--primary-color) 80%,
            transparent 80%),
        linear-gradient(to right, 
            var(--accent-color) 45%, 
            var(--accent-color) 55%);
    background-repeat: no-repeat;
    background-position: 0 10px, 0 30px;
}

/* Fondo con motivos incas */
.inca-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: var(--light-color);
    overflow: hidden;
}

.geometric-pattern {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, transparent 0%, transparent 45%, var(--primary-color) 45%, var(--primary-color) 55%, transparent 55%, transparent 100%);
    background-size: 30px 30px;
    opacity: 0.1;
}

/* Contenedor principal */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: none;
}

body.unlocked .app-container {
    display: block;
}

/* Header */
.inca-header {
    background: linear-gradient(to right, var(--dark-color), var(--secondary-color));
    color: var(--text-light);
    padding: 1rem 2rem;
    position: relative;
    z-index: 10;
}

.inca-header::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color) 25%, transparent 25%) -50px 0,
                linear-gradient(225deg, var(--primary-color) 25%, transparent 25%) -50px 0,
                linear-gradient(315deg, var(--primary-color) 25%, transparent 25%),
                linear-gradient(45deg, var(--primary-color) 25%, transparent 25%);
    background-size: 100px 100px;
    opacity: 0.8;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-bottom: 1rem;
}

.logo-container h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

.logo {
    width: 80px;
    height: 80px;
    margin-bottom: 0.5rem;
}

.inca-border {
    width: 80%;
    height: 5px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    margin: 0.5rem 0;
}

.inca-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.inca-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.inca-nav a:hover, 
.inca-nav a.active {
    background-color: var(--primary-color);
    color: var(--dark-color);
    transform: translateY(-3px);
}

/* Contenido principal */
.main-content {
    padding: 2rem;
    min-height: calc(100vh - 200px);
}

.content-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Estilos comunes */
h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    margin-bottom: 1rem;
    position: relative;
}

h2::after, 
h3::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Sección de Inicio */
.welcome-banner {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(139, 69, 19, 0.1) 100%);
    border-radius: 10px;
    margin-bottom: 2rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border-top: 5px solid var(--primary-color);
}

.quick-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.inca-button {
    background: linear-gradient(to right, var(--secondary-color), var(--dark-color));
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.inca-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.inca-button-small {
    background: linear-gradient(to right, var(--secondary-color), var(--dark-color));
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.featured-content .content-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.content-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* Sección de Mentorías */
.search-mentors {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.search-mentors input, 
.search-mentors select {
    flex: 1;
    min-width: 200px;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 50px;
}

.mentors-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.mentor-card {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border-left: 5px solid var(--primary-color);
}

.mentor-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.mentor-level {
    position: absolute;
    bottom: -10px;
    right: -10px;
    background-color: var(--primary-color);
    color: var(--dark-color);
    font-weight: bold;
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
}

.mentor-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin: 0.5rem 0;
}

.mentor-rating i {
    color: var(--inca-sun);
}

/* Nuevos estilos para comentarios */
.mentor-comments {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.comment {
    background-color: #f9f9f9;
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.comment p {
    margin-bottom: 0.3rem;
}

.comment span {
    font-size: 0.8rem;
    color: var(--secondary-color);
}

.comment-form {
    margin-top: 1rem;
}

.comment-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: vertical;
    min-height: 80px;
    margin-bottom: 0.5rem;
}

/* Formulario para ser mentor */
#mentor-registration {
    max-width: 600px;
    margin: 0 auto;
    padding: 1.5rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Sección de Recompensas */
.rewards-header {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.user-points, 
.user-level {
    flex: 1;
    min-width: 250px;
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.points-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.level-progress {
    height: 10px;
    background-color: #eee;
    border-radius: 5px;
    margin: 0.5rem 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
}

.badges-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.badge-card {
    background-color: white;
    padding: 1.5rem 1rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.badge-card.earned::after {
    content: "✓";
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background-color: var(--success-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.shop-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Sección de Comunidad */
.community-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.post-comments {
    margin-top: 1rem;
}

.post-comments .comment {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.post-comments .comment img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.post-comments .comment-form {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.post-comments .comment-form img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.post-comments .comment-form textarea {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: vertical;
    min-height: 60px;
}

/* Sección de Perfil */
.profile-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.profile-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.badges-list {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.activity-timeline {
    margin-top: 1rem;
    position: relative;
    padding-left: 30px;
}

.activity-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    left: 15px;
    width: 2px;
    height: 100%;
    background-color: var(--primary-color);
    opacity: 0.3;
}

.activity-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
}
.profile-avatar {
    position: relative;
    width: 120px;
    height: 120px;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.edit-button {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-button:hover {
    background: #45a049;
}

/* Footer */
.inca-footer {
    background: linear-gradient(to right, var(--dark-color), var(--secondary-color));
    color: var(--text-light);
    padding: 2rem;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .inca-nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .profile-header {
        justify-content: center;
        text-align: center;
    }
    
    .mentor-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 1rem;
    }
    
    .content-carousel, 
    .mentors-list, 
    .badges-container, 
    .shop-items {
        grid-template-columns: 1fr;
    }
}