/* =========================================================
   PRODUCTOSTAYG - PERSONALIZACIONES DEL TEMA HUMMINGBIRD
   PrestaShop 9.2.0 | Archivo: assets/css/custom.css
   Última revisión: 23/10/2026

   01. Logotipo
   02. Cabecera en dos filas (escritorio)
   03. Menú principal
   04. Espaciado y separador de cabecera
   05. Portada: seis familias principales

   NOTA: Las imágenes y los enlaces de la sección 05 se
   configuran en el HTML del módulo Texto personalizado.
   ========================================================= */


/* =========================================================
   01. LOGOTIPO - TAMAÑO Y PROPORCIONES
   Elimina el límite de altura (3rem) del tema.
   ========================================================= */
@media (min-width: 992px) {
    .header-bottom .navbar-brand img.logo {
        width: 260px !important;
        max-width: none !important;
        max-height: none !important;
        height: auto !important;
        object-fit: contain !important;
    }

    .header-bottom__logo {
        flex: 0 0 280px !important;
        width: 280px !important;
    }
}


/* =========================================================
   02. CABECERA - DOS FILAS EN ESCRITORIO
   Fila 1: logotipo y buscador.
   Fila 2: menú centrado.
   ========================================================= */
@media (min-width: 1200px) {
    .header-bottom__row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        row-gap: 12px;
    }

    .header-bottom__logo {
        order: 1;
    }

    #_desktop_ps_searchbar {
        order: 2;
        margin-left: auto;
    }

    .ps-mainmenu--desktop {
        order: 3;
        flex: 0 0 100%;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .ps-mainmenu--desktop .top-menu {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
    }
}


/* =========================================================
   03. MENÚ PRINCIPAL - APARIENCIA
   ========================================================= */
@media (min-width: 1200px) {
    .ps-mainmenu--desktop .top-menu a {
        font-weight: 500;
        transition: color 0.2s ease;
    }

    .ps-mainmenu--desktop .top-menu a:hover {
        color: #e60020 !important;
    }
}


/* =========================================================
   04. CABECERA - SEPARADOR Y ESPACIADO VERTICAL
   Conserva la separación que evita que la línea pise el logo.
   ========================================================= */
@media (min-width: 1200px) {
    .header-bottom__logo {
        padding-bottom: 12px;
    }

    .ps-mainmenu--desktop {
        border-top: 1px solid #eeeeee;
        margin-top: 0;
        padding-top: 12px;
        padding-bottom: 4px;
    }
}


/* =========================================================
   05. PORTADA - FAMILIAS PRINCIPALES
   Diseño aprobado: tarjetas blancas, imagen izquierda,
   texto azul oscuro, enlace rojo y flecha circular gris.
   HTML asociado: .ptayg-family-section
   ========================================================= */
.ptayg-family-section {
    max-width: 1240px;
    margin: 42px auto 48px;
    padding: 0 18px;
}

/* 05.1. Encabezado */
.ptayg-family-intro {
    text-align: center;
    margin-bottom: 26px;
}

.ptayg-family-intro h2 {
    margin: 0;
    font-size: 36px;
    line-height: 1.2;
    font-weight: 700;
    color: #16263b;
}

.ptayg-family-underline {
    display: block;
    width: 46px;
    height: 3px;
    background: #e11b22;
    border-radius: 2px;
    margin: 12px auto 18px;
}

.ptayg-family-intro p {
    max-width: 820px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.55;
    color: #667085;
}

/* 05.2. Parrilla */
.ptayg-family-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}


/* =========================================================
   PRODUCTOSTAYG - DISTRIBUCIÓN FAMILIAS 2 + 3 + 3
   ========================================================= */

/* Separación entre los dos grupos */
.ptayg-family-grid--two {
    margin-bottom: 18px;
}

/* Escritorio: primera fila 2, restantes 3 + 3 */
@media (min-width: 1200px) {

    .ptayg-family-grid--two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ptayg-family-grid--three {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}


.ptayg-family-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    min-height: 162px;
    padding: 18px 44px 18px 16px;
    background: #ffffff;
    border: 1px solid #eef1f4;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(20, 35, 60, 0.08);
    color: #16263b;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ptayg-family-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(20, 35, 60, 0.12);
    text-decoration: none !important;
}

/* 05.3. Imagen */
.ptayg-family-image {
    flex: 0 0 39%;
    width: 39%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ptayg-family-image img {
    display: block;
    width: 100%;
    max-width: 150px;
    height: 132px;
    object-fit: contain;
}

/* 05.4. Título, descripción y enlace */
.ptayg-family-content {
    flex: 1 1 auto;
    min-width: 0;
}

.ptayg-family-content h3 {
    margin: 0 0 9px;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 700;
    color: #16263b;
}

.ptayg-family-content p {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.5;
    color: #667085;
}

.ptayg-family-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 600;
    color: #e11b22;
}

.ptayg-family-arrow {
    font-size: 17px;
    line-height: 1;
}

/* 05.5. Flecha circular */
.ptayg-family-circle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #8b95a7;
    font-size: 22px;
    line-height: 1;
}

/* =========================================================
   05.6. RESPONSIVE - TABLET
   ========================================================= */
@media (min-width: 768px) and (max-width: 1199px) {
    .ptayg-family-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================================
   05.7. RESPONSIVE - MÓVIL
   ========================================================= */
@media (max-width: 767px) {
    .ptayg-family-section {
        margin: 32px auto 40px;
        padding: 0 14px;
    }

    .ptayg-family-intro h2 {
        font-size: 28px;
    }

    .ptayg-family-intro p {
        font-size: 14px;
    }

    .ptayg-family-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .ptayg-family-card {
        gap: 12px;
        min-height: 145px;
        padding: 14px 42px 14px 12px;
    }

    .ptayg-family-image {
        flex-basis: 36%;
        width: 36%;
    }

    .ptayg-family-image img {
        height: 110px;
    }

    .ptayg-family-content h3 {
        font-size: 16px;
    }

    .ptayg-family-content p {
        font-size: 12px;
    }

    .ptayg-family-circle {
        width: 27px;
        height: 27px;
        right: 9px;
        font-size: 20px;
    }
}

/* =========================================================
   05.8. ACCESIBILIDAD - MOVIMIENTO REDUCIDO
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    .ptayg-family-card,
    .ps-mainmenu--desktop .top-menu a {
        transition: none;
    }

    .ptayg-family-card:hover {
        transform: none;
    }
}


/* =========================================================
   06. PORTADA - COMPATIBILIDAD HTML PRESTASHOP
   Tarjetas DIV con enlaces independientes
   ========================================================= */

.ptayg-family-card {
    position: relative;
}

.ptayg-family-link {
    text-decoration: none !important;
}

.ptayg-family-link:hover {
    color: #bd1018 !important;
    text-decoration: none !important;
}

.ptayg-family-circle {
    text-decoration: none !important;
}

.ptayg-family-circle:hover {
    background: #e11b22;
    color: #ffffff;
    text-decoration: none !important;
}


/* =========================================================
   07. PORTADA - AJUSTE FINAL DE TARJETAS
   Fotografías más grandes y textos mejor distribuidos
   ========================================================= */

@media (min-width: 1200px) {

    .ptayg-family-section {
        max-width: 1320px;
        margin: 32px auto 45px;
    }

    .ptayg-family-grid {
        gap: 16px;
    }

    .ptayg-family-card {
        gap: 14px;
        min-height: 165px;
        padding: 14px 38px 14px 12px;
        align-items: center;
    }

    /* Ampliar la fotografía */
    .ptayg-family-image {
        flex: 0 0 38%;
        min-width: 0;
    }

    .ptayg-family-image img {
        width: 100%;
        max-width: none;
        height: 145px;
        object-fit: contain;
    }

    /* Aprovechar el espacio para los textos */
    .ptayg-family-content {
        flex: 1;
        min-width: 0;
    }

    .ptayg-family-content h3 {
        margin-bottom: 7px;
        font-size: 17px;
    }

    .ptayg-family-content p {
        margin-bottom: 10px;
        font-size: 13px;
        line-height: 1.45;
    }

    .ptayg-family-link {
        font-size: 13px;
    }

    /* Flecha más discreta */
    .ptayg-family-circle {
        right: 9px;
        width: 27px;
        height: 27px;
        font-size: 20px;
    }
}


/* =========================================================
   08. PORTADA - BANNER PRINCIPAL
   Imagen horizontal, texto y botón responsive
   ========================================================= */

.ptayg-hero {
    position: relative;
    display: flex;
    align-items: center;
    width: calc(100% - 30px);
    max-width: 1600px;
    min-height: 390px;
    margin: 24px auto 0;
    padding: 40px clamp(25px, 6vw, 95px);
    overflow: hidden;
    border-radius: 12px;

    background-color: #f7f9fa;
    background-image: url("/img/portada/banner_productostayg.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.ptayg-hero-content {
    position: relative;
    z-index: 1;
    width: 48%;
    max-width: 550px;
}

.ptayg-hero-kicker {
    margin: 0 0 14px;
    color: #425166;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.ptayg-hero-content h1 {
    margin: 0 0 18px;
    color: #16263b;
    font-size: clamp(30px, 3.2vw, 48px);
    line-height: 1.12;
    font-weight: 800;
}

.ptayg-hero-description {
    max-width: 470px;
    margin: 0 0 24px;
    color: #596677;
    font-size: 17px;
    line-height: 1.55;
}

.ptayg-hero-button {
    display: inline-flex;
    align-items: center;
    padding: 13px 22px;
    border-radius: 6px;
    background: #e60020;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background-color .2s ease;
}

.ptayg-hero-button:hover {
    background: #bd0019;
    color: #ffffff !important;
}

#familias-tayg {
    scroll-margin-top: 20px;
}

/* =========================================================
   08.1. TABLET
   ========================================================= */

@media (min-width: 768px) and (max-width: 1199px) {

    .ptayg-hero {
        min-height: 330px;
    }

    .ptayg-hero-content {
        width: 55%;
    }

    .ptayg-hero-description {
        font-size: 15px;
    }
}


/* =========================================================
   08.2. BANNER PRINCIPAL - VERSIÓN MÓVIL
   Texto independiente y fotografía debajo
   ========================================================= */

@media (max-width: 767px) {

    .ptayg-hero {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;

        width: calc(100% - 24px);
        min-height: 0;
        margin: 14px auto 0;
        padding: 0;
        overflow: hidden;
        border-radius: 10px;

        background-color: #f7f9fa;
        background-image: none;
    }

    /* Texto en su propia zona */
    .ptayg-hero-content {
        width: 100%;
        max-width: none;
        padding: 24px 20px 22px;
        background: #f7f9fa;
    }

    .ptayg-hero-kicker {
        margin-bottom: 12px;
        font-size: 10px;
        letter-spacing: 1.3px;
    }

    .ptayg-hero-content h1 {
        margin-bottom: 14px;
        font-size: 29px;
        line-height: 1.15;
    }

    .ptayg-hero-description {
        max-width: none;
        margin-bottom: 20px;
        font-size: 14px;
        line-height: 1.5;
    }

    .ptayg-hero-button {
        padding: 12px 18px;
        font-size: 14px;
    }

    /* Fotografía debajo del contenido */
    .ptayg-hero::after {
        content: "";
        display: block;
        flex: 0 0 auto;
        width: 100%;
        height: 190px;

        background-image: url("/img/portada/banner_productostayg.webp");
        background-repeat: no-repeat;
        background-size: cover;
        background-position: 75% center;
    }

    /* Eliminar el degradado de escritorio */
    .ptayg-hero::before {
        display: none;
    }

}


/* =========================================================
   09. PORTADA - LEGIBILIDAD DEL BANNER PRINCIPAL
   ========================================================= */

@media (min-width: 768px) {

    /* Degradado blanco para separar texto y fotografía */
    .ptayg-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 0;
        pointer-events: none;
        background: linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.98) 0%,
            rgba(255, 255, 255, 0.96) 28%,
            rgba(255, 255, 255, 0.75) 43%,
            rgba(255, 255, 255, 0) 68%
        );
    }

    /* Limitar el ancho del bloque de texto */
    .ptayg-hero-content {
        width: 43%;
        max-width: 480px;
    }

    .ptayg-hero-content h1 {
        font-size: clamp(30px, 3vw, 44px);
        line-height: 1.15;
    }
}

/* =========================================================
   10. PORTADA - TARJETAS DE FAMILIAS EN MÓVIL
   Mejor aprovechamiento del espacio y legibilidad
   ========================================================= */

@media (max-width: 767px) {

    .ptayg-family-section {
        margin: 28px auto 35px;
        padding: 0 12px;
    }

    .ptayg-family-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ptayg-family-card {
        min-height: 145px;
        padding: 14px 38px 14px 12px;
        gap: 12px;
        align-items: center;
    }

    .ptayg-family-image {
        flex: 0 0 82px;
        width: 82px;
    }

    .ptayg-family-image img {
        width: 100%;
        max-width: 82px;
        height: 95px;
        object-fit: contain;
    }

    .ptayg-family-content {
        flex: 1;
        min-width: 0;
    }

    .ptayg-family-content h3 {
        margin-bottom: 6px;
        font-size: 15px;
        line-height: 1.25;
    }

    .ptayg-family-content p {
        margin-bottom: 9px;
        font-size: 12px;
        line-height: 1.4;
    }

    .ptayg-family-link {
        font-size: 12px;
    }

    .ptayg-family-circle {
        right: 9px;
        width: 25px;
        height: 25px;
        font-size: 19px;
    }
}


/* =========================================================
   11. FOOTER CORPORATIVO - PRODUCTOSTAYG
   ========================================================= */

/* Fondo blanco y separación superior */
#footer .footer__main {
    background: #ffffff !important;
    color: #26404B !important;
    border-top: 1px solid #e8ebed;
    padding-block: 2.5rem 0 !important;
}

/* Distribución de las cuatro columnas */
#footer .footer__main-top {
    row-gap: 2rem;
}

/* Títulos corporativos */
#footer .footer-block__title {
    color: #CB3017 !important;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

/* Enlaces del footer */
#footer .footer-block__content,
#footer .footer-block__content a {
    color: #26404B !important;
    font-size: 14px;
    line-height: 1.9;
}

/* Hover de los enlaces */
#footer .footer-block__content a:hover {
    color: #CB3017 !important;
    text-decoration: none;
}

/* Ajuste de separación entre elementos */
#footer .footer-block__content li {
    margin-bottom: 3px;
}

/* Franja inferior del copyright */
#footer .copyright {
    background: #f5f6f7;
    color: #667078 !important;
    border-top: 1px solid #e8ebed;
    margin-top: 2.5rem;
    padding: 16px 12px;
    text-align: center;
    font-size: 13px;
}

/* Enlaces del copyright */
#footer .copyright a {
    color: #26404B !important;
}

/* Adaptación móvil */
@media (max-width: 767px) {
    #footer .footer__main {
        padding-block: 2rem 0 !important;
    }

    #footer .footer-block__title {
        margin-bottom: 0.75rem;
    }

    #footer .footer__main-top {
        row-gap: 1rem;
    }
}
/* Corregir el título enlazado de TU CUENTA */
#footer .footer-block__title a,
#footer .footer-block__title a:visited {
    color: #CB3017 !important;
    font-weight: 700;
    text-decoration: none;
}

#footer .footer-block__title a:hover {
    color: #26404B !important;
}

/* PRODUCTOSTAYG — Precio y referencia en ficha */
.ptayg-tax-inline {
    font-size: 11px;
    font-weight: 500;
    color: #777;
    white-space: nowrap;
}

.ptayg-product-reference {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

/* =========================================================
   PRODUCTOSTAYG — Ocultar migas de pan
   Categorías y fichas de producto
   ========================================================= */
body#category .breadcrumb,
body.page-category .breadcrumb,
body#product .breadcrumb,
body.page-product .breadcrumb {
    display: none !important;
}

/* =========================================================
   PRODUCTOSTAYG — Centrar descripción e imagen de categorías
   ========================================================= */

body#category .category__footer {
    width: 100%;
    text-align: center;
}

body#category .category__footer .category__description,
body#category .category__footer .category__additional-description {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

body#category .category__footer .category__cover {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 20px auto;
}

body#category .category__footer .category__cover-image {
    display: block;
    max-width: 100%;
    height: auto;
}



/* PRODUCTOSTAYG - Menú Equipamiento compacto */
@media (min-width: 992px) {

  /* Referencia de posicionamiento */
  .ps-mainmenu__tree-item[data-id="category-12"] {
    position: relative !important;
  }

  /* Desplegable Equipamiento */
  #submenu-category-12 {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: auto !important;

    width: 290px !important;
    min-width: 290px !important;
    max-width: 290px !important;

    padding: 8px !important;
    border-radius: 6px !important;
    box-shadow: 0 8px 22px rgba(0,0,0,.12) !important;
  }

  /* Contenido en una columna */
  #submenu-category-12 .row,
  #submenu-category-12 [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }
}



/* PRODUCTOSTAYG - Equipamiento con un solo nivel */
@media (min-width: 992px) {

  /* Ocultar flechas de categorías con hijos */
  #submenu-category-12
  .submenu__left-item[data-ps-has-child="true"]::after,
  #submenu-category-12
  .submenu__left-item[data-ps-has-child="true"]::before {
    display: none !important;
    content: none !important;
  }

  /* Ocultar panel de subcategorías */
  #submenu-category-12 .submenu__right {
    display: none !important;
  }

  /* Eliminar la columna vacía */
  #submenu-category-12 .submenu__left {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    border-right: none !important;
  }

  /* Ajustar el contenido */
  #submenu-category-12 .submenu__row {
    display: block !important;
  }

}


/* =========================================================
   PRODUCTOSTAYG - OCULTAR FACTURAS POR ABONO
   EN EL AREA DE CLIENTE
   ========================================================= */

/* PRODUCTOSTAYG - OCULTAR FACTURAS POR ABONO */

body#my-account #order_slips_main_link,
body#my-account #order-slips_link {
    display: none !important;
}


/* PRODUCTOSTAYG - SEO PORTADA */

.ptayg-seo {
  max-width: 900px;
  margin: 48px auto 44px;
  padding: 0 20px;
}

.ptayg-seo h2 {
  margin: 0 0 18px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
  color: #111827;
}

.ptayg-seo p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.75;
}

.ptayg-seo p:last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .ptayg-seo {
    margin: 32px auto;
    padding: 0 16px;
  }

  .ptayg-seo h2 {
    font-size: 20px;
  }

  .ptayg-seo p {
    font-size: 14px;
    line-height: 1.7;
  }
}


/* PRODUCTOStayg - OCULTAR FACTURAS POR ABONO
   EN MI CUENTA Y EN EL FOOTER */

body#my-account #order_slips_main_link,
body#my-account #order-slips_link,
#footer .ps-customeraccountlinks li:has(> a[href*="/facturas-abono"]) {
    display: none !important;
}


