/*
 Theme Name: Personalización de DIVI para Emaús
 Theme URI: https://www.escolapiosemaus.org/
 Description: Tema hijo para Divi con botones legales flotantes
 Author: Equipo TIC
 Author URI: https://www.escolapiosemaus.org/
 Template: Divi
 Version: 1.0.0
 Text Domain: tema-emaus
*/

/* ——— A partir de aquí, tu CSS ——— */
/* ==============================
   Botones Legales Flotantes (con cierre y borde)
   ============================== */
.emaus-legal-buttons-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;

    display: flex;
    flex-direction: row;
    align-items: center;          /* ➜ centra verticalmente todos los hijos */
    gap: 12px;

    border: 2px solid #00406e;    /* ➜ línea que encierra a los tres */
    border-radius: 18px;
    padding: 6px 8px;             /* ➜ espacio para que el borde no “pegue” a los botones */
    background: transparent;      /* puedes poner #fff si quieres “caja” blanca */
}

.emaus-legal-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 30px;                 /* ➜ altura baja */
    padding: 0 14px;
    background-color: #fe5000;
    color: #fff;
    border-radius: 15px;          /* ➜ forma píldora */
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(254,80,0,.4);
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;          /* ➜ siempre una sola línea */
}

.emaus-legal-button:hover {
    background-color: #e04600;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(254,80,0,.6);
}

/* Botón de cierre */
.emaus-close-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;                  /* ➜ misma altura y ancho: queda perfectamente centrado */
    height: 30px;
    flex: 0 0 30px;               /* ➜ evita que se estire/encoga con flex */
    border-radius: 50%;
    background: #ccc;
    color: #333;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.emaus-close-buttons:hover {
    background: #999;
    color: #fff;
    transform: scale(1.05);
}

/* En tablet: apilado vertical */
@media (max-width: 768px) {
    .emaus-legal-buttons-container {
        bottom: 10px;
        right: 10px;
        flex-direction: column;   /* ➜ vertical en móvil/tablet */
        align-items: stretch;
        gap: 8px;
        padding: 10px;

        border: none;             /* ➜ quitar línea azul en móvil/tablet */
    }
    .emaus-legal-button {
        min-width: 110px;
        height: 28px;
        font-size: 13px;
        border-radius: 14px;
        padding: 0 12px;
        align-self: flex-end;
    }
    .emaus-close-buttons {
        align-self: flex-end;
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }
}

/* En móvil pequeño */
@media (max-width: 480px) {
    .emaus-legal-button {
        min-width: 100px;
        height: 26px;
        font-size: 12px;
        border-radius: 13px;
        padding: 0 10px;
    }
    .emaus-close-buttons {
        width: 26px;
        height: 26px;
        flex-basis: 26px;
    }
}

/* ==============================
   Icono del menú admin con logo.svg
   ============================== */
#toplevel_page_emaus-theme-settings .wp-menu-image {
    background: url('../logo.svg') no-repeat center center !important;
    background-size: 20px 20px !important;
}
#toplevel_page_emaus-theme-settings .wp-menu-image:before {
    content: "" !important;
}
