/* RESET Y GENERAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #050505;
    color: #ffffff;
    line-height: 1.5;
    overflow-x: hidden;
}

/* NAVBAR FLOTANTE */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 24px;
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.nav-logo-img {
    height: 30px;
    width: auto;
    object-fit: contain;
    display: block;
}

.brand-text {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* SELECTOR IDIOMA CUSTOM */
.lang-custom-dropdown { position: relative; }

.lang-trigger-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 8px 14px;
    border-radius: 9999px;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.lang-trigger-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.lang-trigger-btn .arrow-icon {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.lang-custom-dropdown.active .arrow-icon { transform: rotate(180deg); }

.lang-glass-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 80px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.95);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 99;
}

.lang-custom-dropdown.active .lang-glass-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.lang-glass-menu button {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.lang-glass-menu button:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* BOTONES NAV */
.menu-trigger-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background 0.2s ease;
}

.menu-trigger-btn:hover { background: rgba(255, 255, 255, 0.15); }

.btn-login {
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 8px 20px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn-login:hover {
    background: #e6e6e6;
    transform: scale(1.02);
}

/* PANTALLAS */
.pantalla { display: none; min-height: 100vh; }
.pantalla.activa { display: block; animation: fadeIn 0.4s ease-out; }

/* INICIO Y HERO */
#pantalla-inicio { display: none; flex-direction: column; min-height: 100vh; }
#pantalla-inicio.activa { display: flex; }

.hero-bg {
    min-height: 100vh;
    width: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(5,5,5,1) 100%), url('./hero.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 20px 60px 20px;
}

.hero-content { max-width: 800px; margin: 0 auto; }
.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.hero-content p {
    font-size: 1.25rem;
    color: #cccccc;
    margin-bottom: 35px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

/* FOOTER */
.footer {
    background-color: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 40px;
    width: 100%;
    margin-top: auto;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.footer-section h4 { color: #ffffff; font-size: 1.1rem; margin-bottom: 15px; font-weight: 700; }
.footer-section p, .footer-section a { color: #888888; text-decoration: none; display: block; margin-bottom: 10px; font-size: 0.95rem; }
.footer-section a:hover { color: #ffffff; }

.social-icons { display: flex; justify-content: center; gap: 20px; font-size: 1.5rem; }
.social-icons a { color: #ffffff; opacity: 0.7; }
.social-icons a:hover { opacity: 1; }

/* AUTHENTICATION */
.pantalla-full-black {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.pantalla-full-black.activa { display: flex; animation: fadeIn 0.3s ease-out; }
.auth-container { width: 100%; max-width: 400px; padding: 20px; text-align: center; }
.btn-volver-auth { background: none; border: none; color: #666; cursor: pointer; margin-bottom: 40px; font-size: 1rem; }
.btn-volver-auth:hover { color: #fff; }
.auth-box h2 { font-size: 2.5rem; margin-bottom: 10px; font-weight: 800; }
.auth-box p { color: #666; margin-bottom: 30px; }
.form-group-auth { text-align: left; margin-bottom: 20px; }
.form-group-auth label { display: block; color: #888; margin-bottom: 8px; font-size: 0.9rem; }
.form-group-auth input { width: 100%; background: #0a0a0a; border: 1px solid #1a1a1a; padding: 15px; color: #fff; border-radius: 12px; }
.form-group-auth input:focus { border-color: #fff; outline: none; }
.btn-auth-principal { width: 100%; padding: 15px; background: #fff; color: #000; border: none; border-radius: 12px; font-weight: bold; cursor: pointer; margin-top: 10px; }
.auth-switch { margin-top: 25px; color: #666; font-size: 0.9rem; }
.auth-switch button { background: none; border: none; color: #fff; font-weight: bold; cursor: pointer; margin-left: 5px; }

/* MENÚ OVERLAY FULLSCREEN */
.glass-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
}

.glass-overlay.active { display: flex; }

.close-glass-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
}

.glass-menu-content { text-align: center; }

.glass-menu-content a {
    display: block;
    color: #fff;
    font-size: 2.2rem;
    text-decoration: none;
    margin: 20px 0;
    font-weight: 700;
    opacity: 0.8;
}

.glass-menu-content a:hover { opacity: 1; }

/* MINIATURAS Y ESTRUCTURA */
.container { max-width: 1000px; margin: 0 auto; padding: 140px 20px 60px 20px; }
.subnav-tabs { display: flex; justify-content: center; gap: 15px; margin-bottom: 40px; }
.tab-btn { background: #111; border: 1px solid #222; color: #888; padding: 12px 28px; border-radius: 9999px; font-weight: 700; cursor: pointer; }
.tab-btn.active { background: #fff; color: #000; }
.subtab-content { display: none; }
.subtab-content.active { display: block; }

.grid-planes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }

/* MUESTRAS */
.grid-muestras { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.muestra { 
    aspect-ratio: 16 / 9;
    background-color: #0f0f0f; 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 12px; 
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.muestra:hover { transform: scale(1.03); border-color: rgba(255, 255, 255, 0.3); }
.muestra img { width: 100%; height: 100%; object-fit: cover; display: block; }

.plan-card { 
    background-color: #0d0d0d; 
    border: 1px solid #222; 
    padding: 28px; 
    border-radius: 16px; 
    display: flex;
    flex-direction: column;
}
.plan-card.destacado { border-color: #ffffff; }
.precio { font-size: 1.8rem; font-weight: 800; margin: 10px 0; }

.group-heading { font-size: 1.3rem; font-weight: 800; margin-bottom: 15px; color: #fff; }

.btn-primary { background-color: #1a1a1a; color: #fff; border: 1px solid #333; padding: 12px 24px; cursor: pointer; font-weight: 700; border-radius: 9999px; width: 100%; margin-top: auto; }
.btn-invertido { background-color: #fff; color: #000; border: none; padding: 12px 24px; cursor: pointer; font-weight: 700; border-radius: 9999px; width: 100%; margin-top: auto; }

/* INFORMACIÓN PACKS Y TARJETAS */
.info-desc-text { font-size: 1.1rem; color: #cccccc; max-width: 800px; margin: 15px 0 35px 0; line-height: 1.6; }
.info-packs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 50px; }

.info-pack-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 28px;
    position: relative;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.info-pack-card:hover { transform: translateY(-5px); border-color: rgba(255, 255, 255, 0.2); }
.info-pack-card.destacado { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.25); }
.info-pack-card.destacado-top { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.5); box-shadow: 0 10px 30px rgba(255, 255, 255, 0.05); }

.pack-badge { display: inline-block; padding: 4px 12px; border-radius: 9999px; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; background: rgba(255, 255, 255, 0.08); color: #888888; border: 1px solid rgba(255, 255, 255, 0.12); margin-bottom: 12px; }
.pack-badge.pack-basic { background: rgba(255, 255, 255, 0.2); color: #e0e0e0; border: 1px solid rgba(255, 255, 255, 0.3); }
.pack-badge.pack-advanced { background: #ffffff; color: #000000; border: 1px solid #ffffff; }

.info-pack-card h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 6px; }
.price-range { font-size: 1.8rem; font-weight: 800; color: #fff; margin-bottom: 10px; }
.price-range span { font-size: 0.9rem; color: #888; font-weight: 500; }
.pack-target { font-size: 0.9rem; color: #aaa; margin-bottom: 20px; }

.pack-features { list-style: none; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 15px; }
.pack-features li { font-size: 0.9rem; color: #ddd; display: flex; align-items: center; gap: 10px; }
.pack-features li i { color: #fff; font-size: 0.8rem; }

.grid-muestras-header { margin-bottom: 20px; }
.grid-muestras-header h3 { font-size: 1.3rem; font-weight: 700; }

/* SECCIÓN VALORACIONES */
.reviews-header { margin-bottom: 30px; }
.reviews-header h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 8px; }
.reviews-header p { color: #aaaaaa; font-size: 1.05rem; }

.review-form-card { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 20px; padding: 30px; margin-bottom: 40px; }
.review-form-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.review-form-info { font-size: 0.88rem; color: #888888; margin-bottom: 20px; }
.rating-picker { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; font-weight: 600; }
.stars-selector { display: flex; gap: 8px; }
.star-btn { font-size: 1.4rem; color: #333333; cursor: pointer; transition: color 0.2s ease, transform 0.1s ease; }
.star-btn.active, .star-btn:hover { color: #ffc107; }
.star-btn:hover { transform: scale(1.15); }

.form-group-review { margin-bottom: 20px; }
.form-group-review textarea { width: 100%; background: #0d0d0d; border: 1px solid #222222; color: #ffffff; padding: 16px; border-radius: 12px; font-size: 0.95rem; resize: vertical; }
.form-group-review textarea:focus { border-color: #ffffff; outline: none; }

.reviews-list-container { display: flex; flex-direction: column; gap: 20px; }
.no-reviews-msg { text-align: center; color: #666666; font-size: 0.95rem; padding: 40px 0; }

.review-item-card { background: #0d0d0d; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px; padding: 24px; transition: border-color 0.2s ease; }
.review-item-card:hover { border-color: rgba(255, 255, 255, 0.2); }
.review-item-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.review-author { font-weight: 700; font-size: 1rem; color: #ffffff; }
.review-date { font-size: 0.8rem; color: #666666; }
.review-stars { color: #ffc107; font-size: 0.95rem; margin-bottom: 10px; }
.review-text { color: #cccccc; font-size: 0.95rem; line-height: 1.5; }

/* SISTEMA DE CHAT TIPO APP */
#pantalla-chat .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 120px 20px 40px 20px;
}

.chat-wrapper {
    display: flex;
    height: 70vh;
    min-height: 520px;
    background: #0d0d0e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.chat-sidebar {
    width: 300px;
    background: #121214;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.chat-sidebar.active {
    display: flex;
}

.chat-sidebar-header {
    padding: 18px 20px 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-sidebar-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.chat-search-box {
    margin: 0 16px 12px 16px;
    position: relative;
}

.chat-search-box .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 0.85rem;
}

.chat-search-box input {
    width: 100%;
    padding: 8px 12px 8px 34px;
    background: #1c1c1e;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: #fff;
    font-size: 0.85rem;
    outline: none;
}

.chat-users-list {
    flex: 1;
    overflow-y: auto;
}

.user-item {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    cursor: pointer;
    font-size: 0.9rem;
    color: #aaa;
    transition: background 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-item:hover, .user-item.active {
    background: #1c1c1e;
    color: #fff;
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #08080a;
}

.chat-header {
    padding: 14px 20px;
    background: #121214;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #252528;
    overflow: hidden;
    flex-shrink: 0;
}

.chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-target-meta h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.user-status-text {
    font-size: 0.75rem;
    color: #8e8e93;
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-dot {
    font-size: 0.4rem;
    color: #30d158;
}

.icon-action-btn {
    background: transparent;
    border: none;
    color: #8e8e93;
    font-size: 1rem;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: color 0.2s;
}

.icon-action-btn:hover {
    color: #fff;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.msg-bubble {
    max-width: 65%;
    padding: 10px 16px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.4;
    word-break: break-word;
}

.msg-bubble.sent {
    align-self: flex-end;
    background: #007aff;
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

.msg-bubble.received {
    align-self: flex-start;
    background: #1c1c1e;
    color: #f2f2f7;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom-left-radius: 4px;
}

.chat-input-area {
    padding: 12px 16px;
    background: #121214;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.btn-chat-tool {
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: #8e8e93;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.btn-chat-tool:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.chat-input-area input[type="text"] {
    flex: 1;
    background: #1c1c1e;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 16px;
    border-radius: 20px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
}

.chat-input-area input[type="text"]:focus {
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-chat-send {
    background: #007aff;
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, background 0.2s ease;
}

.btn-chat-send:hover {
    background: #0063cc;
    transform: scale(1.05);
}

.emoji-picker-container {
    position: absolute;
    bottom: 60px;
    left: 16px;
    background: #1c1c1e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 12px;
    display: none;
    gap: 10px;
    z-index: 20;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.emoji-picker-container.active {
    display: flex;
}

.emoji-picker-container span {
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.1s;
}

.emoji-picker-container span:hover {
    transform: scale(1.2);
}

/* FORMULARIO Y ANIMACIÓN */
.pantalla-oscura { background-color: #000000; }
.progress-container { width: 100%; height: 4px; background-color: #1a1a1a; position: fixed; top: 0; left: 0; z-index: 999; }
.progress-bar { height: 100%; width: 0%; background-color: #ffffff; transition: width 0.3s ease; }
.form-container { max-width: 600px; margin: 120px auto 40px auto; padding: 20px; }
.btn-volver { background: none; border: none; color: #717171; cursor: pointer; margin-bottom: 20px; font-size: 0.95rem; }
.form-group { margin-bottom: 25px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; }
.form-group input, .form-group textarea { width: 100%; background-color: #0d0d0d; border: 1px solid #222; color: #fff; padding: 14px; border-radius: 10px; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }