/* ============================================================
   ANIMAL EXPRESS - HOJA DE ESTILOS PERSONALIZADA
   Replicación del mockup WordPress (tema Woodmart)
   ============================================================ */

/* ============================================================
   VARIABLES CSS - Paleta de colores principal
   ============================================================ */
:root {
    --ae-orange: #FE5C00;
    --ae-orange-hover: #E04F00;
    --ae-orange-light: #FF6404;
    --ae-blue: #2C8DE7;
    --ae-yellow: #FFD700;
    --ae-dark: #111111;
    --ae-gray-bg: #f9f9f9;
    --ae-gray-border: #e5e5e5;
    --ae-text: #333333;
    --ae-text-light: #666666;
    --ae-white: #ffffff;
    --ae-shadow: 1px 3px 16px 2px rgba(219, 217, 217, 0.5);
    --ae-radius: 15px;
    --ae-radius-lg: 20px;
}

/* ============================================================
   RESET BÁSICO PARA EVITAR CONFLICTOS CON CSS EXISTENTE
   ============================================================ */
.ae-header-wrapper,
.ae-header-wrapper *,
.ae-footer,
.ae-footer *,
[class^="ae-"]:not(.ae-header-wrapper *):not(.ae-footer *) {
    box-sizing: border-box;
}

.ae-header-wrapper a,
.ae-footer a,
[class^="ae-"] a {
    text-decoration: none;
}

/* ============================================================
   CONTENEDOR PRINCIPAL
   ============================================================ */
.ae-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ============================================================
   TIPOGRAFÍA BASE
   ============================================================ */
body {
    font-family: 'Lato', sans-serif;
    color: var(--ae-text);
}

[class^="ae-"] h1, [class^="ae-"] h2, [class^="ae-"] h3, [class^="ae-"] h4, [class^="ae-"] h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

/* ============================================================
   TOPBAR (barra superior naranja)
   ============================================================ */
.ae-topbar {
    background-color: var(--ae-orange);
    color: var(--ae-white);
    padding: 8px 0;
    font-size: 14px;
}

.ae-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.ae-topbar__text {
    color: #000000;
    font-weight: 700;
}

.ae-topbar__social {
    display: flex;
    gap: 8px;
}

.ae-topbar__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.15);
    color: var(--ae-white);
    transition: background-color 0.3s;
    font-size: 14px;
}

.ae-topbar__social a:hover {
    background-color: rgba(0, 0, 0, 0.35);
    color: var(--ae-white);
}

/* ============================================================
   HEADER PRINCIPAL
   ============================================================ */
.ae-header {
    background-color: var(--ae-white);
    padding: 15px 0;
    border-bottom: 1px solid var(--ae-gray-border);
}

.ae-header__inner {
    display: flex;
    align-items: center;
    gap: 30px;
}

.ae-header__logo {
    flex-shrink: 0;
}

.ae-header__logo img {
    max-width: 150px;
    height: auto;
    display: block;
}

/* Buscador */
.ae-header__search {
    flex: 1;
    display: flex;
    align-items: stretch;
    background-color: var(--ae-gray-bg);
    border-radius: var(--ae-radius);
    overflow: hidden;
    max-width: 700px;
    border: 1px solid var(--ae-gray-border);
}

.ae-header__search-select {
    border: none;
    background-color: transparent;
    padding: 0 15px;
    border-right: 1px solid var(--ae-gray-border);
    font-size: 14px;
    color: var(--ae-text);
    cursor: pointer;
    min-width: 150px;
    outline: none;
}

.ae-header__search input[type="text"] {
    flex: 1;
    border: none;
    background-color: transparent;
    padding: 12px 15px;
    font-size: 14px;
    outline: none;
}

.ae-header__search button {
    background-color: var(--ae-orange-light);
    color: var(--ae-white);
    border: none;
    padding: 0 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 16px;
}

.ae-header__search button:hover {
    background-color: var(--ae-orange);
}

/* Acciones del header */
.ae-header__actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ae-header__icon-btn {
    position: relative;
    color: var(--ae-dark);
    font-size: 22px;
    transition: color 0.3s;
}

.ae-header__icon-btn:hover {
    color: var(--ae-orange);
}

.ae-header__icon-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--ae-orange);
    color: var(--ae-white);
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.ae-header__account a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ae-dark);
    font-size: 13px;
    line-height: 1.2;
    transition: color 0.3s;
}

.ae-header__account a:hover {
    color: var(--ae-orange);
}

.ae-header__account i {
    font-size: 22px;
}

.ae-header__cart {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ae-dark);
    transition: color 0.3s;
}

.ae-header__cart:hover {
    color: var(--ae-orange);
}

.ae-header__cart-icon {
    position: relative;
    font-size: 24px;
}

.ae-cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--ae-orange);
    color: var(--ae-white);
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ae-header__cart-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    font-size: 13px;
}

.ae-header__cart-total {
    font-weight: 700;
    font-size: 14px;
}

.ae-header__mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--ae-dark);
}

/* ============================================================
   NAVEGACIÓN PRINCIPAL
   ============================================================ */
.ae-nav {
    background-color: var(--ae-dark);
    padding: 0;
}

.ae-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.ae-nav__item {
    position: relative;
}

.ae-nav__item > a {
    display: block;
    padding: 16px 30px;
    color: var(--ae-white);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: color 0.3s, background-color 0.3s;
    text-transform: uppercase;
}

.ae-nav__item > a:hover,
.ae-nav__item--active > a {
    color: var(--ae-orange);
}

.ae-nav__item > a i {
    font-size: 10px;
    margin-left: 5px;
}

.ae-nav__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--ae-dark);
    min-width: 220px;
    list-style: none;
    margin: 0;
    padding: 10px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 100;
}

.ae-nav__item--has-dropdown:hover .ae-nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ae-nav__dropdown li a {
    display: block;
    padding: 10px 25px;
    color: var(--ae-white);
    font-size: 13px;
    text-transform: uppercase;
    transition: color 0.3s, padding-left 0.3s;
}

.ae-nav__dropdown li a:hover {
    color: var(--ae-orange);
    padding-left: 30px;
}

/* ============================================================
   HERO / SLIDER PRINCIPAL
   ============================================================ */
.ae-hero {
    margin-bottom: 40px;
}

.ae-hero .swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.ae-hero .swiper-button-prev,
.ae-hero .swiper-button-next {
    color: var(--ae-white);
    background-color: rgba(0, 0, 0, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.ae-hero .swiper-button-prev:hover,
.ae-hero .swiper-button-next:hover {
    background-color: var(--ae-orange);
}

.ae-hero .swiper-button-prev:after,
.ae-hero .swiper-button-next:after {
    font-size: 20px;
    font-weight: 700;
}

.ae-hero .swiper-pagination-bullet {
    background-color: var(--ae-white);
    opacity: 0.6;
    width: 12px;
    height: 12px;
}

.ae-hero .swiper-pagination-bullet-active {
    background-color: var(--ae-orange);
    opacity: 1;
}

/* ============================================================
   SECCIÓN BENEFICIOS (4 íconos)
   ============================================================ */
.ae-benefits {
    padding: 40px 0;
    background-color: var(--ae-white);
}

.ae-benefits__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.ae-benefit {
    text-align: center;
    padding: 20px;
}

.ae-benefit__icon {
    font-size: 40px;
    color: var(--ae-orange);
    margin-bottom: 15px;
}

.ae-benefit__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--ae-dark);
}

.ae-benefit__text {
    font-size: 14px;
    color: var(--ae-text-light);
    margin: 0;
}

/* ============================================================
   BANNERS PROMOCIONALES (2 columnas)
   ============================================================ */
.ae-promo-banners {
    padding: 20px 0 40px;
}

.ae-promo-banners__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.ae-promo-banner {
    display: block;
    border-radius: var(--ae-radius);
    overflow: hidden;
    transition: transform 0.3s;
}

.ae-promo-banner:hover {
    transform: translateY(-3px);
}

.ae-promo-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================================
   TÍTULOS DE SECCIÓN
   ============================================================ */
.ae-section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--ae-dark);
    text-align: center;
    margin-bottom: 30px;
    padding-top: 20px;
}

.ae-section-title--orange-link a {
    color: var(--ae-orange);
    transition: color 0.3s;
}

.ae-section-title--orange-link a:hover {
    color: var(--ae-orange-hover);
}

/* ============================================================
   SECCIÓN PRODUCTOS
   ============================================================ */
.ae-products-section {
    padding: 40px 0;
    background-color: var(--ae-white);
}

.ae-product {
    background-color: var(--ae-gray-bg);
    border-radius: var(--ae-radius);
    overflow: hidden;
    padding-bottom: 15px;
    box-shadow: var(--ae-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ae-product:hover {
    transform: translateY(-4px);
    box-shadow: 2px 5px 20px 3px rgba(219, 217, 217, 0.7);
}

.ae-product__image-link {
    position: relative;
    display: block;
    overflow: hidden;
}

.ae-product__image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s;
}

.ae-product:hover .ae-product__image {
    transform: scale(1.05);
}

.ae-product__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--ae-blue);
    color: var(--ae-white);
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700;
    z-index: 2;
}

.ae-product__title {
    font-size: 14px;
    font-weight: 500;
    margin: 12px 10px 8px;
    line-height: 1.4;
    min-height: 40px;
}

.ae-product__title a {
    color: var(--ae-dark);
    transition: color 0.3s;
}

.ae-product__title a:hover {
    color: var(--ae-orange);
}

.ae-product__rating {
    margin: 0 10px 8px;
    color: #ddd;
    font-size: 13px;
}

.ae-product__star--filled {
    color: #FFC107;
}

.ae-product__price {
    margin: 0 10px 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--ae-orange);
}

.ae-product__price del {
    color: #999;
    font-weight: 400;
    font-size: 14px;
    margin-right: 8px;
}

.ae-product__price ins {
    text-decoration: none;
    color: var(--ae-orange);
}

.ae-product__btn {
    display: block;
    margin: 0 10px;
    padding: 10px;
    background-color: var(--ae-dark);
    color: var(--ae-white) !important;
    text-align: center;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color 0.3s;
    margin-top: auto;
}

.ae-product__btn:hover {
    background-color: var(--ae-orange);
    color: var(--ae-white);
}

/* Botones de navegación del carousel de productos */
.aeProductsSwiper .swiper-button-prev,
.aeProductsSwiper .swiper-button-next,
.aeReelsSwiper .swiper-button-prev,
.aeReelsSwiper .swiper-button-next {
    color: var(--ae-orange);
    width: 40px;
    height: 40px;
    background-color: var(--ae-white);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.aeProductsSwiper .swiper-button-prev:after,
.aeProductsSwiper .swiper-button-next:after,
.aeReelsSwiper .swiper-button-prev:after,
.aeReelsSwiper .swiper-button-next:after {
    font-size: 16px;
    font-weight: 700;
}

/* ============================================================
   SECCIÓN INSTAGRAM (reels)
   ============================================================ */
.ae-instagram-section {
    padding: 40px 0;
    background-color: var(--ae-white);
}

.ae-reel {
    position: relative;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
}

.ae-reel iframe {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .ae-reel iframe {
        height: 450px;
    }
}

/* ============================================================
   SECCIÓN TIENDA (mapa + foto)
   ============================================================ */
.ae-store-section {
    padding: 40px 0;
    background-color: var(--ae-gray-bg);
}

.ae-store-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.ae-store-info {
    text-align: center;
}

.ae-store-info__image {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: var(--ae-radius);
    margin-bottom: 20px;
}

.ae-store-info__subtitle {
    font-size: 20px;
    color: var(--ae-dark);
    margin: 0;
}

.ae-store-map iframe {
    width: 100%;
    border-radius: var(--ae-radius);
    box-shadow: var(--ae-shadow);
}

/* ============================================================
   SECCIÓN MARCAS
   ============================================================ */
.ae-brands-section {
    padding: 40px 0;
    background-color: var(--ae-white);
    border-top: 1px solid var(--ae-gray-border);
}

.ae-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: transform 0.3s;
    filter: grayscale(50%);
    opacity: 0.8;
}

.ae-brand:hover {
    transform: scale(1.05);
    filter: grayscale(0%);
    opacity: 1;
}

.ae-brand img {
    max-width: 100%;
    height: auto;
    max-height: 80px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.ae-footer {
    background-color: var(--ae-dark);
    color: var(--ae-white);
    padding: 60px 0 0;
    margin-top: 60px;
}

.ae-footer__columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.ae-footer__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--ae-white);
}

.ae-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ae-footer__list > li {
    margin-bottom: 10px;
    color: #cccccc;
    font-size: 14px;
    line-height: 1.6;
}

.ae-footer__list a {
    color: #cccccc;
    transition: color 0.3s;
}

.ae-footer__list a:hover {
    color: var(--ae-orange);
}

.ae-footer__sublist {
    list-style: none;
    padding-left: 15px;
    margin-top: 5px;
}

.ae-footer__col--logo {
    text-align: center;
}

.ae-footer__col--logo img {
    max-width: 150px;
    height: auto;
}

.ae-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    font-size: 14px;
}

.ae-footer__bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.ae-footer__copy a {
    color: var(--ae-white);
}

.ae-footer__copy a:hover {
    color: var(--ae-orange);
}

.ae-footer__payments img {
    max-height: 30px;
}

/* ============================================================
   BOTÓN FLOTANTE WHATSAPP
   ============================================================ */
.ae-whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--ae-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: transform 0.3s, background-color 0.3s;
}

.ae-whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128C7E;
    color: var(--ae-white);
}

/* ============================================================
   BARRA INFERIOR MÓVIL
   ============================================================ */
.ae-bottom-toolbar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--ae-white);
    border-top: 1px solid var(--ae-gray-border);
    z-index: 998;
    padding: 8px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.ae-bottom-toolbar__item {
    flex: 1;
    text-align: center;
    color: var(--ae-dark);
    font-size: 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.ae-bottom-toolbar__item i {
    font-size: 20px;
}

/* ============================================================
   RESPONSIVE - TABLETS
   ============================================================ */
@media (max-width: 1024px) {
    .ae-header__inner {
        flex-wrap: wrap;
        gap: 15px;
    }

    .ae-header__search {
        order: 3;
        width: 100%;
        max-width: none;
    }

    .ae-header__mobile-toggle {
        display: block;
    }

    .ae-nav {
        display: none;
    }

    .ae-nav--open {
        display: block;
    }

    .ae-nav__list {
        flex-direction: column;
    }

    .ae-nav__item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .ae-nav__dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.3);
    }

    .ae-nav__item--open .ae-nav__dropdown {
        display: block;
    }

    .ae-benefits__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ae-store-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   RESPONSIVE - MÓVIL
   ============================================================ */
@media (max-width: 768px) {
    .ae-container {
        padding: 0 15px;
    }

    .ae-topbar {
        font-size: 12px;
    }

    .ae-topbar__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .ae-header__logo img {
        max-width: 120px;
    }

    .ae-header__actions {
        gap: 12px;
    }

    .ae-header__account span,
    .ae-header__cart-info {
        display: none;
    }

    .ae-section-title {
        font-size: 22px;
    }

    .ae-promo-banners__grid {
        grid-template-columns: 1fr;
    }

    .ae-benefits__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .ae-benefit {
        padding: 15px 10px;
    }

    .ae-benefit__icon {
        font-size: 32px;
    }

    .ae-benefit__title {
        font-size: 15px;
    }

    .ae-benefit__text {
        font-size: 12px;
    }

    .ae-footer__columns {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .ae-footer__bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .ae-whatsapp-float {
        bottom: 70px;
        width: 50px;
        height: 50px;
        font-size: 28px;
    }

    .ae-bottom-toolbar {
        display: flex;
    }

    body {
        padding-bottom: 60px;
    }
}

/* ============================================================
   FIX PARA EVITAR CONFLICTOS CON CSS DEL TEMA ORIGINAL
   ============================================================ */
.ae-header-wrapper *,
.ae-footer * {
    line-height: normal;
}

/* Asegurar que el contenedor Bootstrap no afecte */
.ae-hero,
.ae-benefits,
.ae-promo-banners,
.ae-products-section,
.ae-instagram-section,
.ae-store-section,
.ae-brands-section {
    width: 100%;
}