/* ==========================================================================
   Embed-IoT · Personalización del tema ProBusiness 1.1.8 (tienda clara)
   --------------------------------------------------------------------------
   PrestaShop carga este fichero automáticamente después de theme.css
   (FrontController registra /assets/css/custom.css con prioridad 1000).
   No viene con el tema: una actualización de ProBusiness no lo sobrescribe.

   Las fuentes y el color principal se fijan en el panel del tema
   (Theme config): Font 1 = Inter, Font 2 = Space Grotesk, color = #00875f.
   Este CSS solo completa lo que el panel no cubre.
   ========================================================================== */

:root {
    /* Superficies */
    --eio-bg: #ffffff;
    --eio-bg-alt: #f5f7fa;
    --eio-border: #e3e8ef;

    /* Texto */
    --eio-ink: #171e2c;          /* azul tinta de embediot.es */
    --eio-text-2: #5b6678;

    /* Marca */
    --eio-green: #00c48c;        /* verde de marca: superficies, iconos, degradado */
    --eio-green-text: #00875f;   /* verde accesible para texto y botones (4.5:1 sobre blanco) */
    --eio-green-hover: #006e4d;
    --eio-blue: #2563eb;         /* azul accesible para enlaces (5.2:1 sobre blanco) */
    --eio-grad: linear-gradient(120deg, #00c48c 0%, #22b8a3 45%, #3b82f6 100%);

    /* Footer oscuro, como la web */
    --eio-footer-bg: #171e2c;
    --eio-footer-bg-2: #121826;
    --eio-footer-text: #adb8c9;

    --eio-radius-sm: 10px;
    --eio-radius-md: 16px;
}

/* ---------- Base ---------- */
body {
    color: var(--eio-ink);
    background: var(--eio-bg);
}

a {
    color: var(--eio-blue);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--eio-ink);
    letter-spacing: -0.01em;
}

/* ---------- Botones ---------- */
.btn-primary,
.btn-primary:focus {
    background-color: var(--eio-green-text);
    border-color: var(--eio-green-text);
    color: #fff;
    border-radius: var(--eio-radius-sm);
    font-weight: 600;
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary.active,
.open > .btn-primary.dropdown-toggle {
    background-color: var(--eio-green-hover);
    border-color: var(--eio-green-hover);
    color: #fff;
}

.btn-secondary,
.btn-tertiary {
    border-radius: var(--eio-radius-sm);
}

/* ---------- Precios ---------- */
.product-price-and-shipping,
.featured-products .product-price-and-shipping,
.product-accessories .product-price-and-shipping,
.product-price,
.current-price {
    color: var(--eio-ink);
}

/* ---------- Títulos de sección de la portada ---------- */
.products-section-title,
#content .products-section-title,
.products-section-title span {
    text-transform: none !important;   /* el tema lo fuerza en mayúsculas desde otra regla */
    font-size: 26px;
    color: var(--eio-ink);
}

.products-section-title::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    margin-top: 12px;
    border-radius: 2px;
    background: var(--eio-grad);
}

/* ---------- Tarjetas de producto ---------- */
.product-miniature .thumbnail-container {
    border-radius: var(--eio-radius-md);
    overflow: hidden;
}

/* ---------- Pie de página oscuro ---------- */
#footer,
.footer-container,
.footer_before,
.footer_after {
    background: var(--eio-footer-bg);
    color: var(--eio-footer-text);
}

.footer_bottom {
    background: var(--eio-footer-bg-2);
    color: var(--eio-footer-text);
}

.footer-container h3,
.footer-container h4,
.footer-container .h3,
.footer-container .h4,
.footer-container .title_block {
    color: #ffffff;
}

.footer-container li a,
.footer-container a,
.footer_bottom a,
.ybc_coppyright a {
    color: var(--eio-footer-text);
}

.footer-container li a:hover,
.footer-container a:hover,
.footer_bottom a:hover {
    color: var(--eio-green);
}

/* Franja con el degradado de marca sobre el pie */
.footer-container {
    border-top: 4px solid transparent;
    border-image: var(--eio-grad) 1;
}

/* ==========================================================================
   Portada: bloque de texto (módulo ps_customtext)
   HTML en Documentacio/TIENDA/portada/bloque_portada.html
   Los iconos van en ::before (FontAwesome del tema) para que el editor
   del back office no elimine etiquetas vacías.
   ========================================================================== */
.eio-home {
    margin: 48px 0 24px;
}

/* Franja de garantías */
.eio-trust {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 64px;
}

.eio-trust-item {
    position: relative;
    padding: 20px 20px 20px 76px;
    background: var(--eio-bg-alt);
    border: 1px solid var(--eio-border);
    border-radius: var(--eio-radius-md);
    min-height: 88px;
}

.eio-trust-item::before {
    font-family: 'FontAwesome';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    font-size: 18px;
    color: #fff;
    border-radius: 50%;
    background: var(--eio-grad);
}

.eio-ico-home::before     { content: "\f015"; }
.eio-ico-wifi::before     { content: "\f1eb"; }
.eio-ico-shield::before   { content: "\f132"; }
.eio-ico-comments::before { content: "\f086"; }

.eio-trust-item strong {
    display: block;
    color: var(--eio-ink);
    font-size: 15px;
    margin-bottom: 2px;
}

.eio-trust-item span {
    display: block;
    color: var(--eio-text-2);
    font-size: 13px;
    line-height: 1.4;
}

/* Cómo funciona */
.eio-title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 8px;
}

.eio-lead {
    text-align: center;
    color: var(--eio-text-2);
    max-width: 640px;
    margin: 0 auto 32px;
}

.eio-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    counter-reset: none;
}

.eio-step {
    position: relative;
    padding: 28px 22px 22px;
    background: #fff;
    border: 1px solid var(--eio-border);
    border-radius: var(--eio-radius-md);
}

.eio-step-n {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 50%;
    background: var(--eio-ink);
    color: #fff;
    font-weight: 700;
    margin-bottom: 14px;
}

.eio-step h3 {
    font-size: 17px;
    margin-bottom: 6px;
    text-transform: none;
}

.eio-step p {
    color: var(--eio-text-2);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.eio-tm {
    margin-top: 40px;
    font-size: 11px;
    color: var(--eio-text-2);
    text-align: center;
}

@media (max-width: 991px) {
    .eio-trust,
    .eio-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .eio-trust,
    .eio-steps {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Portada: banners a la derecha del slider (HTML widgets, displayTopColumn)
   Las imágenes se suben a doble tamaño (538x430): se ajustan al ancho de la columna.
   ========================================================================== */
.ybc-widget-display-top-column .ybc-widget-item img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: var(--eio-radius-md);
}

/* Los dos banners miden lo mismo que el slider: se reduce el hueco entre ellos */
.ybc-widget-display-top-column .ybc-widget-item + .ybc-widget-item {
    margin-top: 0;
}

/* ==========================================================================
   Menú (Mega Menu PRO): etiqueta "Pronto" junto al texto, no encima
   ========================================================================== */
@media (min-width: 768px) {
    .mm_menus_li > a .mm_bubble_text {
        position: relative;
        top: -8px;
        right: auto;
        margin-left: 4px;
        padding: 1px 7px;
        border-radius: 999px;
        font-size: 10px;
        font-weight: 600;
        text-transform: none;
    }
}

/* --------------------------------------------------------------------------
   El tema centra y pone en mayúsculas todo lo que hay dentro del bloque
   de texto (#custom-text): se anula para nuestro bloque.
   -------------------------------------------------------------------------- */
#custom-text .eio-home {
    text-align: left;
}

#custom-text .eio-home h3 {
    text-transform: none;
    color: var(--eio-ink);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 6px;
}

#custom-text .eio-home p {
    color: var(--eio-text-2);
    font-size: 14px;
    line-height: 1.5;
}

#custom-text .eio-home .eio-title,
#custom-text .eio-home .eio-lead,
#custom-text .eio-home .eio-tm {
    text-align: center;
}

#custom-text .eio-home .eio-lead {
    font-size: 16px;
}

#custom-text .eio-home .eio-tm {
    font-size: 11px;
    line-height: 1.5;
    color: var(--eio-text-2);
    max-width: 760px;
    margin: 40px auto 0;
}

/* Todos los títulos del pie en blanco (Mi cuenta y Newsletter son h3 con enlace dentro) */
.footer-container h3,
.footer-container h3 a,
.footer-container .myaccount-title,
.footer-container .myaccount-title a {
    color: #ffffff;
}

/* Enlace del copyright: el verde oscuro del tema apenas se lee sobre el fondo del pie */
#footer .ybc_coppyright a,
.footer-container .ybc_coppyright a {
    color: var(--eio-green);
}

/* Ventana "Producto añadido al carrito": botón principal con el verde de la tienda */
#blockcart-modal .btn-primary,
#blockcart-modal .btn-primary:focus {
    background-color: var(--eio-green-text);
    border-color: var(--eio-green-text);
    color: #fff;
}

#blockcart-modal .btn-primary:hover {
    background-color: var(--eio-green-hover);
    border-color: var(--eio-green-hover);
}
