/* Home particulares + shared styles (served via pub_asset -> /__app/public/css/index.css from public/css/). */
/* Hero and brand colors (theming) */
:root {
    --color-brand-blue: #008ad4;
    --color-dark-blue: #173a79;
    --color-hero-bg: #0a1e3c;
    --color-text-light: #e8eef5;
    --color-text-on-light: #0d3d66;
    --color-text-body-on-light: #24303d;
    --color-text-muted: #3d4650;
}

/* Particulares: main column uses full width (no side gutters from nested wrappers) */
body.page-particulares .cc-pr {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

body.page-particulares #app,
body.page-particulares .full-width-container {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
}

/*
 * Home: --home-cc-pr-pad must match header .cc-pr padding-top (variables.css --header-offset-*).
 * Do not use var(--header-total-height) alone - it is ~136px while .cc-pr uses 180px+ on desktop.
 */
body.home.page-particulares {
    --home-cc-pr-pad: var(--header-offset-xl, 180px);
}

body.home.page-particulares .cc-pr {
    margin-top: 0 !important;
    padding-top: var(--home-cc-pr-pad) !important;
    background: linear-gradient(
        to bottom,
        var(--color-hero-bg) 0,
        var(--color-hero-bg) var(--home-cc-pr-pad),
        #e3e3e3 var(--home-cc-pr-pad)
    ) !important;
}

@media (max-width: 991px) {
    /* Must match header .cc-pr padding-top (see variables.css) */
    body.home.page-particulares {
        --home-cc-pr-pad: var(--header-offset-lg, 312px);
    }

    body.home .n_menu_categorias {
        display: none !important;
    }
}

@media (max-width: 768px) {
    body.home.page-particulares {
        --home-cc-pr-pad: var(--header-offset-md, 260px);
    }
}

@media (max-width: 480px) {
    body.home.page-particulares {
        --home-cc-pr-pad: var(--header-offset-sm, 280px);
    }
}

/* Full-width portada: avoid 100vw + translateX (scrollbar width breaks alignment); ancestors are full width */
body.page-particulares .panel.portada-particulares {
    width: 100% !important;
    max-width: none !important;
    position: relative !important;
    left: auto !important;
    transform: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
    border-radius: 0 !important;
    background-color: #E3E3E3 !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* header.css: .hero-carousel uses a light gradient + box-shadow; reads as white frame around the image */
body.page-particulares .panel.portada-particulares .hero-carousel,
body.page-particulares .panel.portada-particulares .hero-carousel.hero-with-overlay,
body.page-particulares .panel.portada-particulares .hero-carousel:hover,
body.page-particulares .panel.portada-particulares .hero-carousel.hero-with-overlay:hover {
    background: var(--color-hero-bg) !important;
    background-color: var(--color-hero-bg) !important;
    background-image: none !important;
    box-shadow: none !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 30px !important;
    transform: none !important;
}

/* header.css: box-shadow on .hero-carousel reads as a "card"; inner rules use border-radius 0 but shadow remains */
body.page-particulares .panel.portada-particulares .hero-carousel.hero-with-overlay,
body.page-particulares .panel.portada-particulares .hero-carousel.hero-with-overlay .carousel-inner,
body.page-particulares .panel.portada-particulares .hero-carousel.hero-with-overlay .carousel-item,
body.page-particulares .panel.portada-particulares .hero-carousel.hero-with-overlay .carousel-image {
    border-radius: 0 !important;
}

body.page-particulares .panel.portada-particulares .hero-benefits {
    border-radius: 0 !important;
}

/*
 * header.css: .hero-carousel { height: 400px !important; overflow: hidden } clips the trust bar on desktop.
 * Let the slide use aspect-ratio height so overlay + four benefit columns fit.
 */
/*
 * Do not require body.home: on some servers Route::uri is not "/" and the "home" class was missing.
 * .panel.portada-particulares only exists on the particulares home view.
 */
/* Wide screens only: short 21/9 slide + absolute overlay; on tablet that combo clips copy under the fixed bar */
@media (min-width: 992px) {
    body.page-particulares .panel.portada-particulares .hero-carousel.hero-with-overlay {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        box-shadow: none !important;
    }

    body.page-particulares .panel.portada-particulares .hero-carousel.hero-with-overlay .carousel-inner {
        height: auto !important;
        aspect-ratio: 21 / 9;
        padding-bottom: 0 !important;
        overflow: visible !important;
    }

    body.page-particulares .panel.portada-particulares .hero-carousel.hero-with-overlay .carousel-item.active {
        overflow: visible !important;
    }
}

/* Avoid horizontal scrollbar from 100vw vs. viewport with classic vertical scrollbar */
body.page-particulares:has(.panel.portada-particulares) {
    overflow-x: hidden;
}

/* Panel Styles */
.panel {
    background-color: #fff;
    border: 1px solid transparent;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
    margin-bottom: 22px;
}

.panel-body {
    padding: 15px;
}

.panel-heading {
    background-color: #f5f5f5;
    border-bottom: 1px solid transparent;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    padding: 10px 15px;
}

.panel-title {
    color: inherit;
    font-size: 16px;
    margin-bottom: 0;
    margin-top: 0;
}

.panel-footer {
    background-color: #f5f5f5;
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
    border-top: 1px solid #ddd;
    padding: 10px 15px;
}

.panel-default {
    border-color: #ddd;
}

.panel-default > .panel-heading {
    background-color: #f5f5f5;
    border-color: #ddd;
    color: #333;
}

/* Portada Particulares */
.portada-particulares {
    background-color: #E3E3E3;
}

/* Hero carousel: static image, same container as before */
.hero-carousel {
    position: relative;
    margin-bottom: 30px;
    min-height: 180px; /* Reserve space to prevent CLS when image loads late or fails */
}

/* Hero: fallback padding-bottom for browsers without aspect-ratio (Safari < 15, Firefox < 89) */
.carousel-inner {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding-bottom: 42.857%;
    height: 0;
    min-height: 180px;
    background-color: #e3e3e3;
}
@supports (aspect-ratio: 21 / 9) {
    .carousel-inner {
        padding-bottom: 0;
        height: auto;
        aspect-ratio: 21 / 9;
    }
}

.carousel-item {
    display: none;
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-item.active {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
}

.d-block {
    display: block !important;
}

.w-100 {
    width: 100% !important;
}

.carousel-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
}

/* Hero with overlay: image uses cover (may crop to fill) */
.hero-with-overlay .carousel-inner {
    background-color: var(--color-hero-bg);
}
.hero-with-overlay .carousel-image {
    object-fit: cover !important;
    object-position: right center !important;
}
.hero-with-overlay .carousel-item {
    align-items: stretch !important;
}
.hero-with-overlay .carousel-item.active {
    display: flex !important;
}
.hero-with-overlay .carousel-item:not(.active) {
    display: none !important;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px 0 0 0;
    pointer-events: none;
    z-index: 1;
}
.hero-overlay-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 65%;
    min-width: min(340px, 100%);
    padding: 24px 56px 24px 56px;
    background: transparent;
    pointer-events: auto;
    position: relative;
    z-index: 1;
}
/* header.css sets h1 { color: inherit !important }; default text here must be white so the hero H1 never inherits panel gray */
.portada-particulares .hero-carousel .hero-overlay .hero-overlay-content {
    color: #ffffff !important;
}
/* h1.hero-title: explicit size so it is not clipped */
.hero-title {
    font-size: clamp(1.65rem, 4.2vw, 2.6rem) !important;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.hero-title-line {
    display: block;
    color: var(--color-text-light);
    margin-bottom: 2px;
}
.hero-title-line:last-child {
    margin-bottom: 0;
}
.hero-title-accent {
    color: var(--color-brand-blue);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}
/* High specificity + !important so global panel/bootstrap text colors cannot mute the hero H1 */
.portada-particulares .hero-overlay-content h1.hero-title.hero-title--sentence {
    text-transform: none;
    letter-spacing: 0.01em;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    max-width: min(720px, 100%);
    opacity: 1;
    /* Outline-style shadow keeps glyphs reading as white, not muddy gray */
    text-shadow:
        0 0 1px rgba(0, 0, 0, 0.9),
        0 1px 0 rgba(0, 0, 0, 0.65),
        0 2px 12px rgba(0, 0, 0, 0.45);
    -webkit-font-smoothing: antialiased;
}
.hero-subtitle-wrap {
    margin: 0 0 10px 0;
    max-width: min(640px, 100%);
}
.hero-subtitle-wrap .hero-subtitle-line {
    display: block;
    height: 2px;
    width: 60px;
    background: var(--color-brand-blue);
    margin: 6px 0;
}
.hero-subtitle {
    font-size: clamp(1.05rem, 1.8vw, 1.2rem);
    color: #fff;
    margin: 0;
    line-height: 1.45;
}
.hero-subtitle strong {
    color: var(--color-brand-blue);
}
.hero-services {
    margin: 0 0 20px 0;
    font-size: 1.05rem;
    color: #fff;
}
.hero-services-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 16px;
}
.hero-service-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.hero-service-item + .hero-service-item::before {
    content: '\00a0\2022\00a0';
    color: #008ad4;
    font-weight: 700;
    opacity: 0.9;
}
.hero-service-item .fa-check {
    color: var(--color-brand-blue);
    font-size: 0.85em;
}
.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.12rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    pointer-events: auto;
}
.hero-btn .fa {
    font-size: 1em;
}
.hero-btn-primary {
    background: linear-gradient(180deg, var(--color-brand-blue) 0%, var(--color-dark-blue) 100%);
    color: #fff;
    border: none;
}
.hero-btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 138, 212, 0.4);
}
.hero-btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}
.hero-btn-secondary:hover {
    color: #fff;
    background: rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}
.hero-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
    box-shadow: 0 0 0 3px rgba(0, 138, 212, 0.35);
}
.hero-benefits {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: #e8e8e8;
    pointer-events: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 2;
}
.hero-benefits .hero-benefit {
    border-right: 1px solid rgba(0, 0, 0, 0.08);
}
.hero-benefits .hero-benefit:last-child {
    border-right: none;
}
.hero-benefit {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: left;
    padding: 8px 12px 8px 16px;
    background: rgba(248, 249, 250, 0.98);
    color: #1a1a1a;
    font-size: 0.82rem;
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
}
.hero-benefit .hero-benefit-icon {
    flex-shrink: 0;
    color: var(--color-brand-blue);
    font-size: 52px !important;
    margin: 0;
    width: 60px;
    min-width: 60px;
    height: 52px;
    text-align: center;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
}
.hero-benefit .hero-benefit-icon::before {
    font-size: inherit;
}
.hero-benefit .hero-benefit-icon--small {
    font-size: 34px !important;
    width: 40px;
    min-width: 40px;
    height: 34px;
}
.hero-benefit-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}
.hero-benefit strong {
    display: block;
    font-size: 1.08rem;
    margin-bottom: 2px;
    color: var(--color-dark-blue);
}
.hero-benefit span:not(.hero-benefit-icon) {
    color: var(--color-text-muted);
    font-size: 0.8rem;
}
.hero-benefit-underline {
    border-bottom: 1px solid rgba(0, 138, 212, 0.45);
    padding-bottom: 1px;
    display: inline-block;
}
@media (max-width: 992px) {
    .hero-overlay-content {
        max-width: 62%;
        padding: 20px 32px 20px;
    }
    .hero-benefit .hero-benefit-icon {
        font-size: 38px !important;
        width: 44px;
        min-width: 44px;
        height: 38px;
    }
    .hero-benefit .hero-benefit-icon--small {
        font-size: 26px !important;
        width: 30px;
        min-width: 30px;
        height: 26px;
    }
    .hero-benefits {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .hero-overlay-content {
        max-width: 100%;
        min-width: 0;
        padding: 16px 24px 20px;
        background: linear-gradient(to bottom, rgba(10, 30, 60, 0.88) 0%, rgba(10, 30, 60, 0.82) 100%);
    }
    .hero-title {
        font-size: 1.35rem !important;
    }
    .hero-ctas {
        flex-direction: column;
    }
    .hero-btn {
        width: 100%;
    }
    .hero-benefits .hero-benefit:nth-child(2n) {
        border-right: none;
    }
    .hero-benefits .hero-benefit {
        padding: 8px 12px 8px 16px;
        font-size: 0.72rem;
        gap: 12px;
    }
    .hero-benefit .hero-benefit-icon {
        font-size: 27px !important;
        width: 30px;
        min-width: 30px;
        height: 27px;
    }
    .hero-benefit .hero-benefit-icon--small {
        font-size: 19px !important;
        width: 22px;
        min-width: 22px;
        height: 19px;
    }
    .hero-benefit strong {
        font-size: 0.92rem;
    }
}

/* Main Title */
.main-title {
    text-align: center !important;
    margin: 40px 0 !important;
    padding: 30px !important;
    color: #173a79 !important;
    border-radius: 15px !important;
}
.main-title h1,
.main-title h2 {
    font-size: 4rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
}
.main-title-subtitle {
    max-width: 640px;
    margin: 15px auto 20px !important;
    font-size: 1.3rem !important;
    line-height: 1.5 !important;
    color: #173a79 !important;
}
.main-title-cta {
    display: inline-block !important;
    background: linear-gradient(135deg, #006494 0, #122d5a 100%) !important;
    color: #fff !important;
    padding: 12px 28px !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    font-size: 1.2rem !important;
    text-decoration: none !important;
    transition: transform 0.3s, box-shadow 0.3s !important;
}
.main-title-cta:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
    color: #fff !important;
}
.main-title-cta:focus-visible {
    outline: 2px solid #fff !important;
    outline-offset: 2px !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
}

/* Categories Grid */
.categories-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px !important;
    margin: 50px 0 !important;
    justify-items: center !important;
}
.category-card {
    text-align: center !important;
    transition: 0.3s !important;
    max-width: 250px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-height: 200px !important;
}
.category-card a {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-decoration: none !important;
    color: inherit !important;
    height: 100% !important;
    width: 100% !important;
}
.category-card:hover {
    transform: translateY(-8px) !important;
}
.category-card figure {
    width: 130px !important;
    height: 130px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    border: 2px solid #173a79 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 15px !important;
    flex-shrink: 0 !important;
}
.add-to-cart-btn,
.view-all-btn {
    align-items: center !important;
    transition: 0.3s !important;
    text-transform: uppercase !important;
}
.category-card img {
    width: 98% !important;
    height: 98% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}
.category-card h4 {
    font-size: 1.4rem !important;
    color: var(--color-text-on-light) !important;
    margin: 0 !important;
    text-transform: uppercase !important;
    line-height: 1.4 !important;
    min-height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}
/* Products Section */
.productos-recomendados {
    background: linear-gradient(135deg, #008ad4 0, #173a79 100%);
    padding: 50px 30px;
    margin: 50px 0;
    border-radius: 20px;
}

.productos-title {
    color: #fff !important;
    font-size: 3rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    margin-bottom: 40px !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
}
.productos-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 30px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}
.producto-card {
    background: #fff !important;
    border-radius: 20px !important;
    padding: 25px !important;
    text-align: center !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
    transition: 0.3s !important;
    border: 2px solid #173a79 !important;
}

.producto-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
}
.producto-card img {
    width: 100% !important;
    height: 230px !important;
    object-fit: contain !important;
    margin-bottom: 20px !important;
}
.producto-card h3 {
    color: var(--color-text-on-light) !important;
    font-size: 2rem !important;
    font-weight: 400 !important;
    margin: 15px 0 !important;
    line-height: 1.4 !important;
    min-height: 50px !important;
}
.producto-price {
    color: var(--color-text-on-light) !important;
    font-size: 1.8rem !important;
    font-weight: 600 !important;
    margin: 15px 0 !important;
}
.add-to-cart-btn {
    background: linear-gradient(135deg, #006494 0, #122d5a 100%) !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 25px !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    font-size: 1.5rem !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}
.brands-title,
.services-title {
    font-size: 2rem !important;
    color: #173a79 !important;
    font-weight: 700 !important;
}
.add-to-cart-btn::before {
    /* U+1F6D2 shopping cart - escaped so FTP/binary transfer cannot mangle UTF-8 */
    content: '\1F6D2' !important;
    font-size: 1.5rem !important;
}

/* About Us Section */
.sobre-nosotros {
    background: #f8f9fa !important;
    padding: 50px 30px !important;
    margin: 50px 0 60px !important;
    position: relative !important;
}
.sobre-nosotros-content {
    display: -webkit-flex !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    text-align: left !important;
    box-sizing: border-box !important;
}
.sobre-nosotros-image-container {
    -webkit-flex: 0 0 calc(50% - 20px) !important;
    flex: 0 0 calc(50% - 20px) !important;
    width: calc(50% - 20px) !important;
    min-width: 280px !important;
    flex-shrink: 0 !important; /* Safari fallback: shorthand flex-shrink sometimes ignored */
    display: -webkit-flex !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    position: relative !important;
    box-sizing: border-box !important;
}
.sobre-nosotros-image {
    width: 85% !important;
    min-height: 400px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f8f9fa !important;
}
.sobre-nosotros-image img {
    width: 100% !important;
    height: auto !important;
    max-height: 100% !important;
    object-fit: contain !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0 180px 0 0 !important;
}

.avalco-logo {
    width: 85% !important;
    background: #173a79 !important;
    color: #fff !important;
    padding: 0 !important;
    text-align: center !important;
    margin-top: 0 !important;
    position: static !important;
    transform: none !important;
    left: auto !important;
    bottom: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 60px !important;
}

.avalco-logo img,
.avalco-logo .logo-img {
    height: 100% !important;
    max-height: 60px !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
}
.sobre-nosotros-text {
    -webkit-flex: 0 0 calc(50% - 20px) !important;
    flex: 0 0 calc(50% - 20px) !important;
    width: calc(50% - 20px) !important;
    min-width: 280px !important;
    flex-shrink: 0 !important; /* Safari fallback: shorthand flex-shrink sometimes ignored */
    padding: 20px !important;
    display: -webkit-flex !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    box-sizing: border-box !important;
}
.sobre-nosotros h2 {
    color: var(--color-text-on-light) !important;
    font-size: 4rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin: 0 0 30px !important;
    z-index: 10 !important;
}
.sobre-nosotros p {
    color: var(--color-text-body-on-light) !important;
    font-size: 1.6rem !important;
    line-height: 1.6 !important;
    margin-bottom: 0 !important;
    text-align: justify !important;
}
.sobre-nosotros-text .content {
    flex-grow: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.content {
    line-height: 1.6 !important;
    color: #555 !important;
}

.mas-info-btn {
    background: linear-gradient(135deg, #006494 0, #122d5a 100%) !important;
    color: #fff !important;
    padding: 12px 30px !important;
    border: none !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    font-size: 1.6rem !important;
    cursor: pointer !important;
    transition: 0.3s !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    text-transform: uppercase !important;
    align-self: flex-start !important;
    width: fit-content !important;
    margin-top: 12px !important;
    white-space: nowrap !important;
    /* Safari: prevent flex/gap quirks that separate text from arrow */
    -webkit-align-items: center !important;
}
.mas-info-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
    text-decoration: none !important;
    color: #fff !important;
}
.mas-info-btn span:last-child {
    font-weight: 500 !important;
}
.mas-info-btn::before,
.mas-info-btn::after {
    content: none !important;
}

/* Specialty Banner */
.portada-particulares .specialty-banner {
    background-color: #2c5aa0 !important;
    color: #fff !important;
    text-align: center !important;
    padding: 48px 24px !important;
    margin: 60px 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.portada-particulares .specialty-banner h2 {
    font-size: 2.5rem !important;
    margin: 0 !important;
    font-style: italic !important;
    font-weight: 700 !important;
}

/* Services Section */
.services-section {
    background: linear-gradient(135deg, #f8f9fa 0, #e9ecef 100%) !important;
    padding: 50px 30px !important;
    border-radius: 20px !important;
    margin: 50px 0 !important;
}
.services-title {
    text-align: center !important;
    margin-bottom: 40px !important;
}

.services-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
    gap:25px
}
.service-card{
    background:0 0;
    border-radius:0;
    padding:25px;
    text-align:center;
    box-shadow:none;
    transition:.3s
}

.service-card:hover {
    transform: none !important;
    box-shadow: none !important;
}
.service-card figure {
    margin: 0 auto 15px !important;
    width: 120px !important;
    height: 120px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    background: #008ad4 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.service-card img {
    width: 70px !important;
    height: 70px !important;
    object-fit: contain !important;
    filter: brightness(0) invert(1) !important;
}
.service-card h3 {
    font-size: 1.6rem !important;
    font-weight: 600 !important;
    color: #173a79 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

/* Widget Styles */
.widget {
    background: #fff;
    border: 6px solid #eee;
    clear: both;
    font-weight: 300;
    margin-bottom: 20px;
    max-width: 320px;
    padding: 20px 15px;
}

.widget-title {
    color: #505050;
    font-weight: 300;
    margin-top: 0;
    text-align: center;
}

/* Box Ultimas Busquedas */
.box_ultimas_busquedas {
    background-color: #fff;
    margin: 40px 0;
}

/* Cart Styles */


.list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: scroll;
}

.list li {
    border-bottom: 1px solid #b7b7b7;
    display: block;
    padding: 10px 0;
    width: 100%;
}

.precio_total {
    background: #f2f2f2;
    clear: both;
    color: #284f88;
    font-size: 1.05em;
    font-weight: 700;
    margin: 20px 0 15px;
    padding: 15px 10px;
    text-transform: uppercase;
}

.total {
    font-weight: 700;
    color: #000;
    text-align: left;
}

.cart-total {
    font-weight: bold;
    font-size: 1.1em;
    color: #333;
}

/* Cart Notification Styles */
.cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #1e7e34;
    color: #fff;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    max-width: 300px;
}

.notification-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    margin-left: 10px;
}

.added {
    background: #1e7e34 !important;
    color: #fff !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 25px !important;
    }
}

@media (max-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
        margin: 40px 0 !important;
    }
    
    .category-card {
        max-width: 200px !important;
    }
    
    .category-card figure {
        width: 110px !important;
        height: 110px !important;
    }
    
    .category-card h4 {
        font-size: 1.3rem !important;
    }

    .sobre-nosotros h2 {
        font-size: 3.5rem !important;
    }
    
    .sobre-nosotros p {
        font-size: 1.5rem !important;
        margin-bottom: 0 !important;
    }
    
    .sobre-nosotros-image {
        min-height: 300px !important;
    }
    .sobre-nosotros-image img {
        border-radius: 0 120px 0 0 !important;
    }
    .avalco-logo {
        width: 85% !important;
        min-height: 50px !important;
    }
    
    .portada-particulares .specialty-banner {
        padding: 40px 20px !important;
    }
    .portada-particulares .specialty-banner h2 {
        font-size: 2rem !important;
    }
}

@media (max-width: 768px) {
    .hero-carousel .carousel-inner {
        padding-bottom: 56.25%;
    }
    @supports (aspect-ratio: 16 / 9) {
        .hero-carousel .carousel-inner {
            padding-bottom: 0;
            aspect-ratio: 16 / 9;
            min-height: 200px;
        }
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        margin: 30px 0 !important;
        padding: 0 10px !important;
    }
    
    .category-card {
        max-width: 180px !important;
        min-height: 180px !important;
        justify-content: flex-start !important;
    }
    
    .category-card a {
        justify-content: flex-start !important;
        height: 100% !important;
    }
    
    .category-card figure {
        width: 100px !important;
        height: 100px !important;
        margin-bottom: 12px !important;
        flex-shrink: 0 !important;
    }
    
    .category-card h4 {
        font-size: 1.2rem !important;
        margin: 0 !important;
        min-height: 35px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
    
    .productos-grid {
        grid-template-columns: 1fr;
    }
    
    .sobre-nosotros {
        padding: 30px 15px !important;
        margin: 30px 0 !important;
    }
    
    .sobre-nosotros-content {
        flex-wrap: wrap !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        text-align: center !important;
    }
    
    .sobre-nosotros-image-container {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        order: 1 !important;
        margin-bottom: 25px !important;
    }
    
    .sobre-nosotros-text {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px !important;
        order: 2 !important;
    }
    
    .sobre-nosotros h2 {
        font-size: 2.5rem !important;
        margin: 0 0 20px !important;
        text-align: center !important;
    }
    
    .sobre-nosotros p {
        font-size: 1.3rem !important;
        margin-bottom: 0 !important;
        text-align: center !important;
    }
    
    .sobre-nosotros-image {
        width: 90% !important;
        min-height: 250px !important;
        margin: 0 auto !important;
    }
    
    .sobre-nosotros-image img {
        border-radius: 0 100px 0 0 !important;
    }
    
    .avalco-logo {
        width: 90% !important;
        min-height: 50px !important;
    }
    
    .portada-particulares .specialty-banner {
        padding: 36px 16px !important;
        margin: 40px 0 !important;
    }
    .portada-particulares .specialty-banner h2 {
        font-size: 1.75rem !important;
    }
    
    .mas-info-btn {
        font-size: 1.3rem !important;
        padding: 10px 20px !important;
        align-self: center !important;
        margin: 15px auto 0 !important;
    }
    
    .main-title {
        font-size: 2rem;
    }
    .main-title-subtitle {
        font-size: 1.1rem !important;
    }
    .main-title-cta {
        font-size: 1.1rem !important;
        padding: 10px 22px !important;
    }
    .services-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 576px) {
    .hero-carousel .carousel-inner {
        padding-bottom: 75%;
    }
    @supports (aspect-ratio: 4 / 3) {
        .hero-carousel .carousel-inner {
            padding-bottom: 0;
            aspect-ratio: 4 / 3;
            min-height: 180px;
        }
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        margin: 25px 0 !important;
        padding: 0 5px !important;
    }
    
    .category-card {
        max-width: 160px !important;
        min-height: 160px !important;
        justify-content: flex-start !important;
    }
    
    .category-card a {
        justify-content: flex-start !important;
        height: 100% !important;
    }
    
    .category-card figure {
        width: 90px !important;
        height: 90px !important;
        border-width: 1px !important;
        margin-bottom: 10px !important;
        flex-shrink: 0 !important;
    }
    
    .category-card h4 {
        font-size: 1.1rem !important;
        margin: 0 !important;
        line-height: 1.3 !important;
        min-height: 30px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
    
    .productos-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .sobre-nosotros {
        padding: 25px 10px !important;
        margin: 25px 0 !important;
    }
    
    .sobre-nosotros-content {
        gap: 20px !important;
    }
    
    .sobre-nosotros-text {
        padding: 10px !important;
    }
    
    .sobre-nosotros h2 {
        font-size: 2rem !important;
        margin: 0 0 15px !important;
        letter-spacing: 0.5px !important;
    }
    
    .sobre-nosotros p {
        font-size: 1.2rem !important;
        margin-bottom: 0 !important;
        line-height: 1.5 !important;
    }
    
    .sobre-nosotros-image {
        width: 95% !important;
        min-height: 200px !important;
    }
    
    .sobre-nosotros-image img {
        border-radius: 0 80px 0 0 !important;
    }
    
    .avalco-logo {
        width: 95% !important;
        min-height: 45px !important;
    }
    
    .mas-info-btn {
        font-size: 1.2rem !important;
        padding: 8px 18px !important;
        margin: 12px auto 0 !important;
    }
    
    .main-title {
        font-size: 1.5rem;
        margin: 20px 0;
        padding: 20px !important;
    }
    
    .main-title h1,
    .main-title h2 {
        font-size: 2.5rem !important;
    }
    .main-title-subtitle {
        font-size: 1rem !important;
    }
    .main-title-cta {
        font-size: 1rem !important;
        padding: 10px 20px !important;
    }
    
    .portada-particulares .specialty-banner {
        padding: 28px 12px !important;
        margin: 35px 0 !important;
    }
    .portada-particulares .specialty-banner h2 {
        font-size: 1.5rem !important;
    }
    
    .productos-recomendados,
    .services-section {
        margin: 30px 0;
        padding: 30px 15px !important;
    }
    
    .widget {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin: 20px 0 !important;
        padding: 0 !important;
    }
    
    .category-card {
        max-width: 140px !important;
        min-height: 150px !important;
        justify-content: flex-start !important;
    }
    
    .category-card a {
        justify-content: flex-start !important;
        height: 100% !important;
    }
    
    .category-card figure {
        width: 100px !important;
        height: 100px !important;
        margin-bottom: 8px !important;
        flex-shrink: 0 !important;
    }
    
    .category-card h4 {
        font-size: 1.2rem !important;
        margin: 0 !important;
        min-height: 28px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
    .sobre-nosotros {
        padding: 20px 8px !important;
        margin: 20px 0 !important;
    }
    
    .sobre-nosotros h2 {
        font-size: 3rem !important;
        margin: 0 0 12px !important;
    }
    
    .sobre-nosotros p {
        font-size: 1.3rem !important;
        margin-bottom: 0 !important;
    }
    
    .sobre-nosotros-image {
        width: 100% !important;
        min-height: 180px !important;
    }
    
    .sobre-nosotros-image img {
        border-radius: 0 60px 0 0 !important;
    }
    
    .avalco-logo {
        width: 100% !important;
        min-height: 40px !important;
    }
    
    .mas-info-btn {
        font-size: 1.3rem !important;
        padding: 8px 15px !important;
        margin: 10px auto 0 !important;
    }
    .main-title-subtitle {
        font-size: 0.95rem !important;
    }
    .main-title-cta {
        font-size: 0.95rem !important;
        padding: 8px 18px !important;
    }
    
    .portada-particulares .specialty-banner {
        padding: 24px 10px !important;
        margin: 30px 0 !important;
    }
    .portada-particulares .specialty-banner h2 {
        font-size: 1.25rem !important;
    }
}

@media (max-width: 360px) {
    .categories-grid {
        gap: 8px !important;
        margin: 15px 0 !important;
    }
    
    .category-card {
        max-width: 120px !important;
        min-height: 130px !important;
        justify-content: flex-start !important;
    }
    
    .category-card a {
        justify-content: flex-start !important;
        height: 100% !important;
    }
    
    .category-card figure {
        width: 100px !important;
        height: 100px !important;
        margin-bottom: 6px !important;
        flex-shrink: 0 !important;
    }
    
    .category-card h4 {
        font-size: 1.2rem !important;
        margin: 0 !important;
        min-height: 25px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
    .sobre-nosotros {
        padding: 15px 5px !important;
        margin: 15px 0 !important;
    }
    
    .sobre-nosotros h2 {
        font-size: 2.8rem !important;
        margin: 0 0 10px !important;
    }
    
    .sobre-nosotros p {
        font-size: 1rem !important;
        margin-bottom: 0 !important;
    }
    
    .sobre-nosotros-image {
        min-height: 150px !important;
    }
    
    .sobre-nosotros-image img {
        border-radius: 0 50px 0 0 !important;
    }
    
    .avalco-logo {
        min-height: 35px !important;
    }
    
    .mas-info-btn {
        white-space: normal !important;
        text-align: center !important;
        font-size: 1rem !important;
        padding: 6px 12px !important;
        margin: 8px auto 0 !important;
    }
    .main-title-subtitle {
        font-size: 0.9rem !important;
    }
    .main-title-cta {
        font-size: 0.9rem !important;
        padding: 8px 16px !important;
    }
    
    .portada-particulares .specialty-banner {
        padding: 20px 8px !important;
        margin: 25px 0 !important;
    }
    .portada-particulares .specialty-banner h2 {
        font-size: 1.1rem !important;
    }
}

/* Particulares home: flow overlay (not absolute 21/9) up to 991px — same issue on phones and tablets (iPad) */
@media (max-width: 991px) {
    /*
     * header.css forces .hero-carousel { height: 400px !important; overflow: hidden } and
     * .hero-carousel .carousel-inner, .carousel-item { height: 100% !important } - taller mobile
     * stacks (H1 + copy + trust bar) are clipped; the next block then visually covers the bar.
     */
    .panel.portada-particulares .hero-carousel.hero-with-overlay {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: hidden !important;
        /* header.css uses a light gradient here; it shows as white seams around the slide */
        background: var(--color-hero-bg) !important;
        margin-bottom: 0 !important;
        box-shadow: none !important;
    }

    .panel.portada-particulares .hero-carousel.hero-with-overlay .carousel-inner,
    .panel.portada-particulares .hero-carousel.hero-with-overlay .carousel-item,
    .panel.portada-particulares .hero-carousel.hero-with-overlay .carousel-item.active {
        height: auto !important;
        max-height: none !important;
    }

    /*
     * H1 was clipped when the slide box was shorter than the text stack (overflow hidden + centering).
     * Using a relative in-flow overlay lets the slide grow with copy + benefits so the next section
     * does not overlap the trust bar (overflow:visible + fixed min-height caused that overlap).
     */
    .portada-particulares .hero-with-overlay .carousel-inner {
        overflow: hidden !important;
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: auto !important;
        padding-bottom: 0 !important;
        background-color: var(--color-hero-bg) !important;
    }

    .portada-particulares .hero-with-overlay .carousel-item.active {
        overflow: hidden !important;
        position: relative !important;
        display: block !important;
        min-height: 240px !important;
    }

    .portada-particulares .hero-with-overlay .carousel-image {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        object-fit: cover !important;
        object-position: right center !important;
        z-index: 0 !important;
        display: block !important;
        margin: 0 !important;
        border: 0 !important;
    }

    /* Subpixel seam at portada top: does not rely on body.home (route can omit "home" class) */
    body.page-particulares .panel.portada-particulares {
        box-shadow: inset 0 1px 0 0 var(--color-hero-bg) !important;
    }

    .portada-particulares .hero-overlay {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        min-height: 240px !important;
        /* Extra top space so the H1 clears the fixed nav bar visually on narrow screens */
        padding: 32px 0 0 !important;
        justify-content: flex-start !important;
        z-index: 1 !important;
    }

    /* Single scrim over the whole column (replaces text-only gradient card on .hero-overlay-content) */
    .portada-particulares .hero-overlay::before {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(10, 30, 60, 0.78);
        pointer-events: none;
        z-index: 0;
    }

    .portada-particulares .hero-overlay-content {
        padding: 22px 20px 24px !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        background: transparent !important;
        position: relative;
        z-index: 1;
    }

    .portada-particulares .hero-benefits {
        position: relative;
        z-index: 1;
        border-top-color: rgba(255, 255, 255, 0.12);
        margin-top: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }

    .portada-particulares .hero-benefits .hero-benefit {
        margin: 0;
        min-width: 0;
        width: 100%;
        max-width: none;
        box-sizing: border-box;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 14px 8px 16px;
        gap: 8px;
        border-right: 1px solid rgba(0, 0, 0, 0.08);
        border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    }

    .portada-particulares .hero-benefits .hero-benefit:nth-child(2n) {
        border-right: none;
    }

    .portada-particulares .hero-benefits .hero-benefit:nth-child(n + 3) {
        border-bottom: none;
    }

    .portada-particulares .hero-benefit-text {
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .portada-particulares .hero-benefit strong,
    .portada-particulares .hero-benefit span:not(.hero-benefit-icon) {
        text-align: center;
        width: 100%;
    }

    .portada-particulares .hero-benefit-underline {
        border-bottom: none;
        padding-bottom: 0;
    }

    .portada-particulares .hero-overlay-content h1.hero-title.hero-title--sentence {
        margin-top: 0 !important;
        margin-bottom: 14px !important;
    }

    .portada-particulares .hero-title {
        line-height: 1.3 !important;
        margin-bottom: 14px !important;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .portada-particulares .hero-subtitle-wrap {
        margin: 0 0 14px 0;
    }

    .portada-particulares .hero-subtitle-wrap .hero-subtitle-line {
        margin: 8px 0;
    }

    .portada-particulares .hero-subtitle {
        line-height: 1.58 !important;
        color: #ffffff !important;
        text-shadow:
            0 0 1px rgba(0, 0, 0, 0.85),
            0 1px 2px rgba(0, 0, 0, 0.5);
    }

    .portada-particulares .hero-services {
        margin: 0 0 18px 0;
        line-height: 1.5;
    }

    .portada-particulares .hero-services-list {
        gap: 10px 14px;
        row-gap: 12px;
    }

    .portada-particulares .hero-service-item {
        line-height: 1.45;
    }

    .portada-particulares .hero-ctas {
        gap: 14px;
    }

    .portada-particulares .hero-btn {
        padding: 14px 22px;
    }
}

@media (max-width: 576px) {
    .portada-particulares .main-title {
        margin: 28px 0 !important;
        padding: 24px 18px !important;
    }

    .portada-particulares .main-title h2 {
        line-height: 1.22 !important;
        margin-bottom: 10px !important;
    }

    .portada-particulares .main-title-subtitle {
        line-height: 1.65 !important;
        margin: 18px auto 22px !important;
        max-width: 100%;
    }

    .portada-particulares .categories-grid {
        row-gap: 18px !important;
    }

    .portada-particulares .category-card h4 {
        line-height: 1.45 !important;
        padding: 0 6px;
    }
}

@media (max-width: 480px) {
    .portada-particulares .main-title h2 {
        font-size: 2.1rem !important;
        line-height: 1.24 !important;
    }

    .portada-particulares .main-title-subtitle {
        font-size: 1rem !important;
        line-height: 1.65 !important;
    }

    .portada-particulares .categories-grid {
        row-gap: 16px !important;
        column-gap: 14px !important;
    }
}

/* Deploy: upload this file only to public/css/index.css (no separate overrides sheet). */