/* Contenedor Principal PC */
.pc-header-section {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 80px; /* Aumenté a 80px para más aire */
    background: #FFFFFF;
    border-bottom: 1px solid #F0F0F0;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 40px; box-sizing: border-box;
    z-index: 5000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    font-family: 'light'; /* Asegura una fuente limpia */
}

/* --- 1. LOGO (CORREGIDO) --- */
.pc-brand-link {
    display: flex; align-items: center; gap: 15px;
    text-decoration: none;
    /* CORRECCIÓN: Quitamos width 100% y max-width. Ahora se ajusta al contenido */
    flex-shrink: 0; 
}

.pc-brand-img {
    height: 40px; /* Controlamos altura en vez de ancho para que no se deforme */
    width: auto;
    object-fit: contain;
}

.pc-logo-divider {
    height: 30px;
    width: 10px;
    border-left: #2D2D2D 1px solid;
    display: block;
}


/* --- 2. NAVEGACIÓN --- */
.pc-nav-bar { display: flex; gap: 30px; height: 100%; align-items: center; }

.pc-menu-link {
    font-size: 0.95rem; font-weight: 600; color: #555;
    text-decoration: none; cursor: pointer; transition: 0.2s;
    display: flex; align-items: center; gap: 5px; height: 100%;
}
.pc-menu-link:hover { color: var(--pc-purple-main); }
.pc-arrow-icon { font-size: 0.7rem; transition: transform 0.2s; }


/* --- DROPDOWNS GENERALES (Ventures & Idioma) --- */

/* Estilo Base Dropdown Ventures */
.pc-menu-item-dropdown { position: relative; height: 100%; display: flex; align-items: center; }

.pc-menu-item-dropdown:hover .pc-dropdown-content {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.pc-menu-item-dropdown:hover .pc-arrow-icon { transform: rotate(180deg); }

.pc-dropdown-content {
    position: absolute; top: 80px; left: -80%; transform: translateX(-50%);
    width: 240px; background: white;
    border: 1px solid #eee; border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    opacity: 0; visibility: hidden; transition: all 0.2s ease;
    display: flex; flex-direction: column; padding: 10px;
}

/* Links dentro del dropdown */
.pc-drop-link {
    padding: 12px; border-radius: 8px;
    font-size: 0.9rem; font-weight: 600; color: #444;
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; transition: 0.2s;
}
.pc-drop-link:hover { background: #F8F9FA; color: var(--pc-purple-main); }
.pc-drop-link i { color: #999; width: 20px; text-align: center; }
.pc-drop-link:hover i { color: var(--pc-purple-main); }

.pc-divider { height: 1px; background: #eee; margin: 5px 0; }
.pc-highlight { color: var(--pc-purple-main); }


/* --- 3. DERECHA: ACCIONES E IDIOMA (NUEVO) --- */
.pc-right-actions { display: flex; align-items: center; gap: 20px; }

/* Contenedor del Idioma */
.pc-lang-container {
    position: relative;
    height: 40px; /* Altura para centrado */
    display: flex; align-items: center;
    cursor: pointer;
}

.pc-lang-trigger {
    display: flex; align-items: center; gap: 6px;
    color: #666; font-weight: 600; font-size: 0.9rem;
    padding: 8px 12px; border-radius: 50px;
    transition: 0.2s;
}
.pc-lang-trigger:hover { background: #f5f5f5; color: var(--pc-purple-main); }

/* El Menú Desplegable de Idioma */
.pc-lang-dropdown {
    position: absolute;
    top: 50px; right: 0; /* Alineado a la derecha para que no se salga */
    width: 180px;
    background: white;
    border: 1px solid #eee; border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all 0.2s ease;
    padding: 8px; display: flex; flex-direction: column; gap: 2px;
}

/* Mostrar al Hover */
.pc-lang-container:hover .pc-lang-dropdown {
    opacity: 1; visibility: visible; transform: translateY(0);
}

.pc-lang-title {
    font-size: 0.75rem; color: #999; font-weight: 700;
    padding: 8px 12px; text-transform: uppercase;
}

.pc-lang-item {
    padding: 10px 12px; border-radius: 8px;
    font-size: 0.9rem; font-weight: 600; color: #444;
    text-decoration: none; display: flex; align-items: center; gap: 10px;
    transition: 0.2s;
}
.pc-lang-item:hover { background: #F8F9FA; color: var(--pc-purple-main); }
.pc-lang-item.active { background: #F4F0FF; color: var(--pc-purple-main); }


/* Botón CTA */
.pc-cta-button {
    border: 1px solid var(--pc-purple-main);
    color: var(--pc-purple-main);
    padding: 9px 24px; border-radius: 50px;
    text-decoration: none; font-weight: 700; font-size: 0.9rem;
    transition: 0.3s;
}
.pc-cta-button:hover { background: var(--pc-purple-main); color: white; }

/* Variables (Asegúrate de tenerlas definidas en :root) */
:root {
    --pc-text: #333;
    --pc-purple-main: #6200EA;
}

/* Ocultar en celular */
@media (max-width: 899px) {
    .pc-header-section { display: none !important; }
}













/* --- ESTILOS VISUALES MOBBILEE --- */
  .nav_mob {
    display: none;
  }
  @media (max-width:960px) {
    .nav_mob {
      display: block;
    }
  }

/* 1. BARRA INFERIOR (SIEMPRE VISIBLE) */
.bottom-bar {
 position: fixed;
 bottom: 25px; left: 50%; transform: translateX(-50%);
 width: 70%; max-width: 400px; height: 65px;
 /* width: 90%; max-width: 400px; height: 65px; */
 background: white; border-radius: 35px;
 box-shadow: 0 10px 25px rgba(0,0,0,0.2);
 display: flex; justify-content: space-between; align-items: center;
 padding: 0 25px; z-index: 3000; box-sizing: border-box;
}

.nav-icon {
    font-size: 1.3rem; color: #888; cursor: pointer;
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    transition: 0.2s;
     /* width: 40px; */
}
.nav-icon a, .nav-icon a:hover {
    color: #888; cursor: pointer;
}
.nav-icon:hover { color: var(--sc-color1); }

.search-btn {
    background: var(--sc-color1); color: white;
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; transform: translateY(-25px);
    border: 5px solid #333; /* Ajusta este color al fondo de tu web */
    box-shadow: 0 5px 15px rgba(230, 0, 18, 0.4); cursor: pointer;
}
/* Cuando el menú abre, el borde cambia para fusionarse con el overlay oscuro */
body.menu-open .search-btn { border-color: rgba(0,0,0,0.6); }

/* 2. EL MODAL */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-overlay); z-index: 2000;
    display: none; align-items: flex-end; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease; backdrop-filter: blur(2px);
    padding-bottom: 100px; /* Espacio para que el menú no choque con la barra flotante */
    box-sizing: border-box;
}
.modal-overlay.active { display: flex; opacity: 1; }

/* 3. LA TARJETA DEL MENÚ (AQUÍ ESTÁ LA MAGIA DEL TAMAÑO) */
.menu-card {
    width: 90%; max-width: 500px;
    
    /* --- CAMBIO CLAVE: ALTURA AUTOMÁTICA --- */
    height: auto;  /* Crece según el contenido */
    max-height: 75vh;      /* Pero nunca pasa del 75% de la pantalla */
    
    background: var(--card-bg);
    border-radius: 20px;
    display: flex; flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow: hidden;      /* Mantiene los bordes redondos */
    box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
}

.modal-overlay.active .menu-card { transform: translateY(0); }

/* HEADER & TABS */
.menu-header {
    background: var(--sc-color1); padding: 18px 25px;
    display: flex; justify-content: space-between; align-items: center;
    color: white; flex-shrink: 0; /* No se encoge */
}
.header-logo { font-weight: 800; font-size: 1.1rem; }
.header-logo img { width: 100%; max-width: 180px; }
.close-btn {
    background: rgba(255,255,255,0.2); color: white;
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; cursor: pointer;
}

.tabs-header {
    display: flex; background: white; padding: 10px 0;
    border-bottom: 1px solid #e0e0e0; justify-content: space-evenly;
    flex-shrink: 0; /* No se encoge */
}
.tab-btn {
    background: none; border: none; display: flex; flex-direction: column; align-items: center;
    color: #999; font-weight: 700; font-size: 0.75rem; cursor: pointer;
    gap: 5px; padding: 8px 15px; border-radius: 10px;
}
.tab-btn.active { color: white; background: var(--sc-color1); }

/* CONTENIDO SCROLLABLE */
.tabs-content {
    overflow-y: auto; /* Activa el scroll si el contenido es muy alto */
    padding: 20px;
    /* Scroll suave */
    scroll-behavior: smooth;
}

/* Ocultar barra de scroll fea pero permitir scroll */
.tabs-content::-webkit-scrollbar { width: 6px; }
.tabs-content::-webkit-scrollbar-thumb { background-color: #ccc; border-radius: 3px; }

.tab-pane { display: none; animation: fadeUp 0.2s ease-out; }
.tab-pane.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* ITEMS DEL MENÚ */
.menu-link {
    background: white; padding: 12px 15px; margin-bottom: 12px;
    border-radius: 12px; display: flex; align-items: center; gap: 15px;
    text-decoration: none; color: #333; font-weight: 700; font-size: 0.95rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    transition: transform 0.1s;
}
.menu-link:active { transform: scale(0.98); }

.icon-box {
    width: 42px; height: 42px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.2rem; flex-shrink: 0;
}
.bg-red { background: #E60012; }
.bg-dark { background: #2D2D2D; }
.bg-blue { background: #00C3E3; }

.section-label {
    font-size: 0.7rem; color: #888; font-weight: 800;
    margin: 5px 0 10px 5px; text-transform: uppercase;
}
