/* 馃敼 RESET GENERAL 馃敼 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 馃敼 CABECERA (T脥TULO Y MEN脷) 馃敼 */
.site-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 26px;
    font-weight: bold;
    padding: 20px;
    border-bottom: 1px solid #ddd;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px; /* Espacio entre el icono y el t铆tulo */
}

.logo-translate {
    color: #5f6368;
    margin-left: 5px;
}

.menu-icon {
    font-size: 28px;
    cursor: pointer;
    padding: 10px;
    transition: background 0.3s, border-radius 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.menu-icon:hover {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
}

/* 馃敼 CONTENEDOR PRINCIPAL 馃敼 */
.translate-container {
    width: 90%;
    max-width: 1400px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 馃敼 CUADRO DE TRADUCCI脫N 馃敼 */
.translate-box {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

/* 馃敼 SECCIONES DE ENTRADA Y SALIDA 馃敼 */
.input-section, .output-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 馃敼 PESTA脩AS DE IDIOMAS 馃敼 */
.language-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.lang-btn {
    background: none;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    color: #666;
    transition: 0.3s;
}

.lang-btn:hover {
    background: #e9ecef;
    border-radius: 5px;
}

.lang-btn.active {
    color: #1a73e8;
    border-bottom: 3px solid #1a73e8;
    font-weight: bold;
}

/* 馃敼 BOT脫N DE DESPLEGABLE 馃敼 */
.dropdown-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #5f6368;
    display: flex;
    align-items: center;
    padding: 5px;
    margin-left: 10px;
}

.dropdown-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 20px;
}

.dropdown-btn svg {
    width: 40px;
    height: 40px;
    margin-left: 5px;
    transition: transform 0.2s ease;
}

.dropdown-btn.open svg {
    transform: rotate(180deg);
}

/* 馃敼 脕REA DE TEXTO 馃敼 */
.text-area {
    width: 100%;
    height: 250px;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 15px;
    font-size: 18px;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.text-box {
    width: 100%;
    height: 100%;
    outline: none;
    border: none;
    font-size: 18px;
    padding: 10px;
}

/* 馃敼 FOOTER DENTRO DE LAS CAJAS DE TEXTO 馃敼 */
.text-footer {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #777;
    padding: 5px;
}

/* 馃敼 ICONO MICR脫FONO 馃敼 */
.mic-icon {
    cursor: pointer;
    font-size: 18px;
}

/* 馃敼 BOT脫N INTERCAMBIAR 馃敼 */
.swap-btn {
    position: absolute;
    left: 50%;
    top: 140px;
    transform: translate(-50%, 0);
    font-size: 22px;
    color: #5f6368;
    cursor: pointer;
}

.modal {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    padding: 60px;
    box-sizing: border-box;
}

.modal-content {
    width: 100%;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    position: relative;
    z-index: 3000;
}

/* 馃敼 Eliminar la X de cierre */
.modal-header .close-btn {
    display: none;
}

/* 馃敼 Ajustar la posici贸n dentro del modal */
.modal-header {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: bold;
    padding: 10px 0;
    align-items: center;
}

.modal-header .close-btn {
    cursor: pointer;
    font-size: 20px;
    padding: 5px;
}

#searchLang {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* 馃敼 Ajustar la cuadr铆cula de idiomas */
.language-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
}


/* 馃敼 Elementos individuales de idioma */
.language-item {
    padding: 10px;
    border-radius: 5px;
    text-align: left;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.language-item:hover {
    background: #f1f1f1;
}

/* 馃敼 Responsive */
@media screen and (max-width: 768px) {
    .language-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

/* 馃敼 SIDEBAR 馃敼 */
.sidebar {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background: white;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    transition: left 0.3s ease-in-out;
    padding-top: 60px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    padding: 15px;
}

.sidebar ul li a {
    text-decoration: none;
    color: #333;
    display: block;
}

.sidebar ul li a:hover {
    background: #f1f1f1;
}

.close-sidebar {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    border: none;
    background: none;
    cursor: pointer;
}

/* 馃敼 RESPONSIVE 馃敼 */
@media screen and (max-width: 768px) {
    .site-header {
        font-size: 22px;
        padding: 15px;
    }
    
    .translate-container {
        width: 100%;
        padding: 20px;
    }

    .translate-box {
        flex-direction: column;
        gap: 20px;
    }

    .swap-btn {
        position: relative;
        top: 0;
        left: 0;
        margin: 10px auto;
    }

    .text-area {
        height: 200px;
    }
}


/* ✅ ESTILOS PARA PÁGINAS LEGALES */

/* 🟢 Contenedor principal */
.legal-container {
    width: 90%;
    max-width: 900px;
    margin: 50px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

/* 🟢 Títulos principales */
.legal-container h1 {
    font-size: 28px;
    color: #1a73e8;
    text-align: center;
    margin-bottom: 20px;
}

/* 🟢 Subtítulos */
.legal-container h2 {
    font-size: 22px;
    color: #333;
    margin-top: 20px;
    border-bottom: 2px solid #1a73e8;
    padding-bottom: 5px;
}

/* 🟢 Párrafos */
.legal-container p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

/* 🟢 Listas */
.legal-container ul {
    margin: 10px 0 20px 20px;
    padding-left: 15px;
}

.legal-container ul li {
    font-size: 16px;
    color: #444;
    line-height: 1.5;
}

/* 🟢 Enlaces */
.legal-container a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: bold;
}

.legal-container a:hover {
    text-decoration: underline;
}

/* 🟢 Responsivo */
@media screen and (max-width: 768px) {
    .legal-container {
        width: 95%;
        padding: 20px;
    }

    .legal-container h1 {
        font-size: 24px;
    }

    .legal-container h2 {
        font-size: 20px;
    }

    .legal-container p {
        font-size: 15px;
    }
}


