/* ═══════════════════════════════════════════════
   MCA Theme — Homepage Styles
   ═══════════════════════════════════════════════ */

/* ─── Flush home sections: remove Elementor default vertical gaps ─── */
.politico-ticker.elementor-section,
.politico-ticker.e-con,
.home-hero-image.elementor-section,
.home-hero-image.e-con,
.home-quienes.elementor-section,
.home-quienes.e-con,
.home-formate.elementor-section,
.home-formate.e-con,
.home-comunidad.elementor-section,
.home-comunidad.e-con,
.home-carousel.elementor-section,
.home-carousel.e-con,
.home-proximas.elementor-section,
.home-proximas.e-con {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Front page: strip all vertical gaps between top-level sections */
.home .elementor-top-section {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Front page full-width sections: remove horizontal padding from inner container and widget wrap */
.home .elementor-section-full_width > .elementor-container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.home .elementor-section-full_width .elementor-widget-wrap {
    padding: 0 !important;
}

/* Full-bleed sections: content also spans full width */
.home-carousel.elementor-section > .elementor-container,
.politico-ticker.elementor-section > .elementor-container,
.home-hero-image.elementor-section > .elementor-container,
.home-carousel.e-con > .e-con-inner,
.politico-ticker.e-con > .e-con-inner,
.home-hero-image.e-con > .e-con-inner {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Content sections: background full-width, content constrained to container-max */
.home-formate.elementor-section > .elementor-container,
.home-comunidad.elementor-section > .elementor-container,
.home-quienes.elementor-section > .elementor-container,
.home-formate.e-con > .e-con-inner,
.home-comunidad.e-con > .e-con-inner,
.home-quienes.e-con > .e-con-inner {
    max-width: var(--container-max) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: var(--container-padding) !important;
    padding-right: var(--container-padding) !important;
}

/* ─── Global: uniform pill radius on all Elementor buttons ─── */
body .elementor .elementor-button,
body .elementor .elementor-button.elementor-size-xs,
body .elementor .elementor-button.elementor-size-sm,
body .elementor .elementor-button.elementor-size-md,
body .elementor .elementor-button.elementor-size-lg,
body .elementor .elementor-button.elementor-size-xl,
body .elementor a.elementor-button {
    border-radius: 50px;
    font-family: var(--font-primary);
}

/* ─── Ticker: Todo Cuidado es Político ─── */
.politico-ticker {
    width: 100%;
    overflow: hidden;
    background: #e6f1d4;
    padding: 0.5rem 0;
    border-top: 1px solid #e8f5d0;
    border-bottom: 1px solid #e8f5d0;
}

.politico-ticker__track {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    white-space: nowrap;
    animation: politico-scroll 30s linear infinite;
    width: max-content;
}

.politico-ticker:hover .politico-ticker__track {
    animation-play-state: paused;
}

.politico-ticker__item {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.2;
    color: #82BB26;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.politico-ticker__dot {
    font-size: 0.875rem;
    color: #82BB26;
    flex-shrink: 0;
    line-height: 1;
}

@keyframes politico-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ─── Hero Image ─── */
.home-hero-image {
    width: 100%;
    overflow: hidden;
    line-height: 0;
}
body .home-hero-image .elementor-widget-image {
    line-height: 0;
    margin-bottom: 0;
}
.home-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ─── Quiénes Somos ─── */
.home-quienes {
    width: 100%;
    background: rgba(130, 187, 38, 0.2);
    padding-top: 30px !important;
    padding-bottom: 30px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
body .home-quienes .elementor-text-editor,
body .home-quienes .elementor-text-editor p {
    font-family: var(--font-primary), sans-serif;
    font-size: clamp(0.95rem, 1.3vw, 1.15rem);
    line-height: 1.7;
    color: #333;
}

/* Two-column layout with arrow icon */
.quienes-col--left {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

/* Right column indented to align with the text start of the left column (arrow 2.5rem + gap 1rem) */
.home-quienes .elementor-column:last-child .elementor-widget-wrap {
    padding-left: calc(2.5rem + 1rem);
}

.quienes-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border: 2px solid var(--clr-verde-mca);
    border-radius: 50%;
    color: var(--clr-verde-mca);
    margin-top: 0.15em;
}

.quienes-arrow svg {
    width: 1.2rem;
    height: 1.2rem;
}

/* ─── Formate con MCA ─── */
.home-formate {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
    background: #00A7D7;
}

/* Default white text on Elementor widgets inside Formate — overridable in Elementor editor */
body .home-formate .elementor-heading-title {
    color: #fff;
    white-space: pre-line;
}
body .home-formate .elementor-text-editor,
body .home-formate .elementor-text-editor p {
    color: #fff;
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

.home-formate__left {
    flex: 1 1 50%;
    padding: 4rem 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

.home-formate__title {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    line-height: 1.22;
    color: #fff;
    margin: 0;
}

.home-formate__text {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: clamp(1rem, 1.5vw, 1.375rem);
    line-height: 1.55;
    color: #fff;
    margin: 0;
}

.home-formate__right {
    flex: 0 1 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.home-formate__image {
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .home-formate__left,
    .home-formate__right {
        flex: 1 1 100%;
    }
    .home-formate__right {
        max-height: 300px;
    }
}

/* ─── Única Comunidad que Abraza ─── */
.home-comunidad {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
    background: #00a16b;
}

/* Default white text on Elementor widgets inside Comunidad — overridable in Elementor editor */
body .home-comunidad .elementor-heading-title {
    color: #fff;
    white-space: pre-line;
}
body .home-comunidad .elementor-text-editor,
body .home-comunidad .elementor-text-editor p {
    color: #fff;
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

.home-comunidad .elementor-button {
    background-color: #000 !important;
    color: #00a16b !important;
}

.home-comunidad__left {
    flex: 1 1 55%;
    padding: 4rem 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

.home-comunidad__title {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    line-height: 1.22;
    color: #fff;
    margin: 0;
}

.home-comunidad__text {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: clamp(1rem, 1.5vw, 1.375rem);
    line-height: 1.55;
    color: #fff;
    margin: 0;
}

.home-comunidad__right {
    flex: 0 1 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.home-comunidad__image {
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .home-comunidad__left,
    .home-comunidad__right {
        flex: 1 1 100%;
    }
    .home-comunidad__right {
        max-height: 320px;
        align-items: center;
    }
    .home-comunidad__image {
        max-height: 320px;
        object-fit: contain;
    }
}

/* ─── Empty Activities Message ─── */
.actividades-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--mca-gray-500);
    font-size: var(--fs-md);
    padding: var(--space-2xl) 0;
}

/* ─── News Carousel ─── */
.home-carousel {
    position: relative;
    width: 100%;
    background-image: url('../images/fondo-carousel.png');
    background-size: cover;
    background-position: center;
    background-color: transparent;
    padding: var(--space-5xl) 0;
}

.carousel {
    position: relative;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Inner container — passthrough, width handled by .carousel */
.carousel__inner {
    width: 100%;
}

.carousel__slides {
    position: relative;
    width: 100%;
    height: 360px;
    min-height: 320px;
    padding: 0 52px;
    box-sizing: border-box;
}

.carousel__slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--space-2xl);
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 0;
    pointer-events: none;
}

.carousel__slide--active {
    opacity: 1;
    z-index: 1;
    pointer-events: auto;
}

/* Post thumbnail image — left, smaller */
.carousel__slide-img {
    flex: 0 0 260px;
    width: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel__slide-img img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.carousel__slide-img--placeholder {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius-md);
}

.carousel__content {
    flex: 1;
    color: #000;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.carousel__title {
    font-family: var(--font-display);
    font-size: var(--fs-4xl);
    font-weight: 500;
    line-height: 1.15;
    margin: 0;
    color: #000;
    -webkit-text-stroke: 1px #E2C282;
    paint-order: stroke fill;
}

.carousel__excerpt {
    font-size: var(--fs-md);
    font-weight: 500;
    opacity: 0.9;
    margin: 0;
    max-width: 600px;
    line-height: 1.6;
    color: #000;
    -webkit-text-stroke: 0.5px #E2C282;
    paint-order: stroke fill;
}

/* Carousel Empty State */

/* ─── Slide Guia: layout derecho ─── */
.carousel__overlay--guia {
    background: none;
    align-items: center;
    justify-content: flex-end;
    padding: var(--space-2xl) 6%;
}

.carousel__content--guia {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-lg);
    max-width: 420px;
}

.carousel__guia-title {
    width: 100%;
    height: auto;
    display: block;
}

.btn-guia {
    display: inline-block;
    background: #1C1C1C;
    color: #E2C282;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 25px;
    line-height: 30px;
    text-decoration: none;
    padding: 0.6em 1.6em;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    transition: opacity var(--transition-fast);
    white-space: nowrap;
}

.btn-guia:hover {
    opacity: 0.85;
}

.carousel__empty {
    height: 40vh;
    min-height: 280px;
    max-height: 400px;
    background: linear-gradient(135deg, var(--mca-green) 0%, var(--mca-green-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
}

.carousel__empty .carousel__content {
    max-width: 600px;
}

/* Carousel Controls */
.carousel .btn-primary {
    background-color: #000;
    border-color: #000;
    color: #E2C282;
    align-self: flex-start;
    width: auto;
}

.carousel .btn-primary:hover {
    background-color: #222;
    border-color: #222;
    color: #E2C282;
}

.carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: #e6f1d4;
    color: var(--clr-verde-mca);
    border: 2px solid var(--clr-verde-mca);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel__btn svg {
    width: 0.95rem;
    height: 0.95rem;
    flex-shrink: 0;
}

.carousel__btn--prev svg {
    transform: scaleX(-1);
}

.carousel__btn:hover {
    background: var(--clr-verde-mca);
    color: #fff;
}

.carousel__btn--prev {
    left: 0;
}

.carousel__btn--next {
    right: 0;
}

/* Carousel Dots */
.carousel__dots {
    position: absolute;
    bottom: var(--space-lg);
    right: var(--space-2xl);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.carousel__dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    border: 2px solid var(--mca-white);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
}

.carousel__dot--active {
    background: var(--mca-white);
}

/* Responsive carousel */
@media (max-width: 768px) {
    .carousel__slides {
        height: auto;
        min-height: 0;
    }
    .carousel__slide {
        position: relative;
        inset: auto;
        flex-direction: column;
        padding-bottom: var(--space-xl);
    }
    .carousel__slide-img {
        flex: 0 0 auto;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    .carousel__inner {
        padding-bottom: var(--space-3xl);
    }
}

/* ─── Próximas Actividades ─── */

/* Comic speech bubble between Formate and Actividades */
.proximas-bubble-wrap {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    position: relative;
    z-index: 2;
    height: 0;
}

.proximas-bubble {
    background: #e0f4fd;
    color: #00A7D7;
    padding: 0.6rem 2rem;
    border-radius: 0;
    border: 2px solid #00A7D7;
    position: relative;
    display: inline-block;
    transform: translateY(-50%);
}

.proximas-bubble::after {
    content: '';
    position: absolute;
    bottom: -14px;
    right: 1.5rem;
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 14px solid #e0f4fd;
}

.proximas-bubble::before {
    content: '';
    position: absolute;
    bottom: -17px;
    right: calc(1.5rem - 2px);
    width: 0;
    height: 0;
    border-left: 16px solid transparent;
    border-right: 16px solid transparent;
    border-top: 16px solid #00A7D7;
}

.proximas-bubble__text {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
    color: #00A7D7 !important;
}

.home-proximas {
    padding: var(--space-lg) 0 var(--space-xl);
}

.home-proximas__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.tabs {
    margin-bottom: var(--space-2xl);
}

.tabs__list {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    justify-content: flex-end;
    border-bottom: none;
    padding-bottom: 0;
}

.tabs__tab {
    padding: 0.45rem 1.3rem;
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 2px solid #00A7D7;
    background: #e0f4fd;
    color: #00A7D7;
    cursor: pointer;
    border-radius: var(--radius-pill);
    transition: all var(--transition-fast);
}

.tabs__tab:hover {
    background: #00A7D7;
    color: #fff;
}

.tabs__tab--active {
    background: #00A7D7;
    color: #fff;
    border-color: #00A7D7;
}

.tabs__content {
    display: none;
}

.tabs__content--active {
    display: block;
}

.actividades-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

/* ─── Aliados Section ─── */
/* ─── Nuestros Servicios ─── */
.home-servicios {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    background: #FF8100;
}

.home-servicios__left {
    flex: 1 1 55%;
    padding: 4rem 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

.home-servicios__title {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.2;
    color: #fff;
    margin: 0;
}

.home-servicios__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.home-servicios__list li {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: #fff;
    line-height: 1.5;
    padding-left: 1.4em;
    position: relative;
}

.home-servicios__list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #fff;
    font-size: 1.2em;
    line-height: 1.3;
}

.home-servicios__btn {
    display: inline-block;
    align-self: flex-start;
    background: #fff;
    color: #FF8100;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.65rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.home-servicios__btn:hover {
    opacity: 0.85;
    color: #FF8100;
}

.home-servicios__right {
    flex: 0 1 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 4%;
    overflow: hidden;
}

.home-servicios__img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

@media (max-width: 768px) {
    .home-servicios {
        flex-direction: column;
    }
    .home-servicios__left,
    .home-servicios__right {
        flex: 1 1 100%;
    }
}

/* ─── Sumáte al Club ─── */
.home-sumate {
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.home-sumate::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.home-sumate__inner {
    position: relative;
    z-index: 1;
    padding: 5rem 5%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    max-width: var(--container-wide);
    margin: 0 auto;
}

.home-sumate__title {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    line-height: 1.2;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.home-sumate__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.home-sumate__btn {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.7rem 2.2rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: all 0.2s;
}

.home-sumate__btn--primary {
    background: #fff;
    color: #1a1a1a;
    border: 2px solid #fff;
}

.home-sumate__btn--primary:hover {
    background: transparent;
    color: #fff;
}

.home-sumate__btn--outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.home-sumate__btn--outline:hover {
    background: #fff;
    color: #1a1a1a;
}

.home-sumate__links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.home-sumate__link {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s;
}

.home-sumate__link:hover {
    opacity: 0.75;
    color: #fff;
}

@media (max-width: 768px) {
    .home-sumate__inner {
        align-items: center;
        text-align: center;
    }
    .home-sumate__buttons,
    .home-sumate__links {
        justify-content: center;
    }
}

/* ─── Nuestra Lucha ─── */
.home-lucha {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
    background: #610F7F;
}

.home-lucha__left {
    flex: 0 1 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.home-lucha__image {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.home-lucha__right {
    flex: 1 1 50%;
    padding: 4rem 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

.home-lucha__title {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.22;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
}

.home-lucha__text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.4vw, 1.2rem);
    line-height: 1.65;
    color: #f0d6ff;
    margin: 0;
}

.home-lucha__btn {
    display: inline-block;
    align-self: flex-start;
    padding: 0.65rem 2rem;
    background: #fff;
    color: #610F7F;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    border-radius: 50px;
    transition: background 0.2s, color 0.2s;
}

.home-lucha__btn:hover {
    background: #f0d6ff;
    color: #610F7F;
}

@media (max-width: 768px) {
    .home-lucha__left,
    .home-lucha__right {
        flex: 1 1 100%;
    }
    .home-lucha__left {
        max-height: 300px;
    }
    .home-lucha__btn {
        align-self: center;
    }
}

/* ─── Aliados ─── */
.home-aliados {
    background: #fff;
    padding: var(--space-3xl) 0;
    width: 100%;
    display: block;
}

.home-aliados__inner {
    max-width: var(--container-max);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    text-align: center;
}

.home-aliados__title {
    font-family: var(--font-display);
    font-size: var(--fs-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--mca-gray-500);
    margin-bottom: var(--space-xl);
}

.home-aliados__grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-xl);
}

.home-aliados__logo {
    height: 120px;
    width: auto;
    max-width: 140px;
    max-height: 120px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity var(--transition-fast), filter var(--transition-fast);
    filter: grayscale(50%);
}

.home-aliados__logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.home-aliados__name {
    font-family: var(--font-display);
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--mca-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .home-aliados {
        padding: var(--space-2xl) 0;
    }
    .home-aliados__grid {
        flex-wrap: wrap;
        gap: var(--space-md) var(--space-lg);
    }
    .home-aliados__logo {
        height: 32px;
        max-width: 90px;
    }
}

@media (max-width: 480px) {
    .home-aliados__logo {
        height: 28px;
        max-width: 80px;
    }
}

/* ─── Contacto Banner ─── */
.home-contacto {
    background: rgba(130, 187, 38, 0.2);
    width: 100%;
    padding: 4rem 0;
}

.home-contacto__inner {
    max-width: var(--container-max);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
}

.home-contacto__icon {
    width: 56px;
    height: 56px;
    color: #5a8a12;
    flex-shrink: 0;
}

.home-contacto__text {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: #3a5a08;
    margin: 0;
}

.home-contacto__btn {
    display: inline-block;
    padding: 0.75rem 2.5rem;
    background: #82bb26;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border-radius: var(--radius-pill);
    transition: background 0.2s;
}

.home-contacto__btn:hover {
    background: #6a9a1e;
    color: #fff;
}

/* ─── Stats Grid (Datos Destacados) ─── */
.home-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.stat-card {
    text-align: center;
    padding: var(--space-lg);
}

.stat-card__number {
    font-family: var(--font-display);
    font-size: var(--fs-xl);
    font-weight: 800;
    color: var(--mca-green);
    margin-bottom: var(--space-sm);
}

.stat-card__text {
    font-size: var(--fs-sm);
    color: var(--mca-gray-600);
    line-height: 1.5;
}

/* ─── Responsive Carousel ─── */
@media (max-width: 768px) {
    .carousel__slides {
        height: 40vh;
        min-height: 250px;
    }

    .carousel__title {
        font-size: var(--fs-2xl);
    }

    .carousel__btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .carousel__btn--prev {
        left: var(--space-sm);
    }

    .carousel__btn--next {
        right: var(--space-sm);
    }

    .actividades-cards {
        grid-template-columns: 1fr;
    }

    .home-stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .actividades-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ─── Tienda y Dispensario ─── */

/* Title bubble — straddles the border like próximas */
.tienda-bubble-wrap {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    position: relative;
    z-index: 2;
    height: 0;
}

.tienda-bubble {
    background: #fdd9e5;
    color: #ee0050;
    padding: 0.6rem 2rem;
    border-radius: 0;
    border: 2px solid #000;
    position: relative;
    display: inline-block;
    transform: translateY(-50%);
}

/* Down-pointing tail */
.tienda-bubble::after {
    content: '';
    position: absolute;
    bottom: -14px;
    right: 1.5rem;
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 14px solid #fdd9e5;
}

.tienda-bubble::before {
    content: '';
    position: absolute;
    bottom: -17px;
    right: calc(1.5rem - 2px);
    width: 0;
    height: 0;
    border-left: 16px solid transparent;
    border-right: 16px solid transparent;
    border-top: 16px solid #000;
}

.tienda-bubble__text {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
    color: #ee0050 !important;
}

/* Section — red bg, no gaps */
.home-tienda {
    width: 100%;
    background: #ee0050;
    padding: var(--space-lg) 0 var(--space-xl);
    margin-top: 0 !important;
}

.home-tienda__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.home-tienda__grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding-top: 1.5rem;
}

/* Each item: image + content side by side */
.tienda-item__row {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.tienda-item__row--reverse {
    flex-direction: row-reverse;
}

.tienda-item__img {
    flex: 0 1 40%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tienda-item__img img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border: 4px solid #fff;
}

.tienda-item__content {
    flex: 1 1 60%;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

/* Comic bubble — only title + button inside */
.tienda-comic {
    background: #fdd9e5;
    border: 2px solid #000;
    border-radius: 0;
    position: relative;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tienda-comic__title,
.tienda-comic__title.tienda-comic__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    line-height: 1.25;
    color: #ee0050 !important;
    margin: 0;
    text-transform: uppercase;
}

/* Button — black bg, white text */
.tienda-comic__btn {
    display: inline-block;
    align-self: flex-start;
    background: #000;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.55rem 1.6rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: opacity 0.2s;
}

.tienda-comic__btn:hover {
    opacity: 0.85;
    color: #fff;
}

/* Note with arrow — below the comic bubble */
.tienda-item__note {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: clamp(0.9rem, 1.3vw, 1.05rem);
    color: #fdd9e5;
    line-height: 1.5;
    margin: 0;
}

/* Arrow circle — transparent bg, pink border/color */
.tienda-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border: 2px solid #fdd9e5;
    border-radius: 50%;
    color: #fdd9e5;
    background: transparent;
    margin-top: 0.15em;
}

.tienda-arrow svg {
    width: 1.2rem;
    height: 1.2rem;
}

/* ── Comic tails ── */

/* Left-pointing tail (genéticas bubble) — at the top */
.tienda-comic--left::after {
    content: '';
    position: absolute;
    left: -14px;
    top: 1.5rem;
    width: 0;
    height: 0;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-right: 14px solid #fdd9e5;
}

.tienda-comic--left::before {
    content: '';
    position: absolute;
    left: -17px;
    top: calc(1.5rem - 2px);
    width: 0;
    height: 0;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-right: 16px solid #000;
}

/* Right-pointing tail (aceite bubble) — at the bottom */
.tienda-comic--right::after {
    content: '';
    position: absolute;
    right: -14px;
    bottom: 1.5rem;
    width: 0;
    height: 0;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-left: 14px solid #fdd9e5;
}

.tienda-comic--right::before {
    content: '';
    position: absolute;
    right: -17px;
    bottom: calc(1.5rem - 2px);
    width: 0;
    height: 0;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-left: 16px solid #000;
}

/* Responsive */
@media (max-width: 768px) {
    .tienda-item__row,
    .tienda-item__row--reverse {
        flex-direction: column;
    }
    .tienda-item__img,
    .tienda-item__content {
        flex: 1 1 100%;
    }
    /* On mobile, change left/right tails to down */
    .tienda-comic--left::after,
    .tienda-comic--right::after {
        left: 1.5rem;
        right: auto;
        top: auto;
        bottom: -14px;
        transform: none;
        border: none;
        border-left: 14px solid transparent;
        border-right: 14px solid transparent;
        border-top: 14px solid #fdd9e5;
    }
    .tienda-comic--left::before,
    .tienda-comic--right::before {
        left: calc(1.5rem - 2px);
        right: auto;
        top: auto;
        bottom: -17px;
        transform: none;
        border: none;
        border-left: 16px solid transparent;
        border-right: 16px solid transparent;
        border-top: 16px solid #000;
    }
}

/* ─── Fito Derivados ─── */
.home-fitoderivados {
    background: #141414;
    width: 100%;
    padding: 3rem 5%;
}

.home-fitoderivados__inner {
    max-width: var(--container-wide);
    margin: 0 auto;
}

.home-fitoderivados__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.home-fitoderivados__title {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(2.2rem, 5vw, 3.75rem);
    line-height: 1.2;
    color: #FDD9E5;
    margin: 0;
}

.home-fitoderivados__links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.home-fitoderivados__btn {
    display: inline-block;
    background: #EE0050;
    color: #FDD9E5;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.6rem 1.8rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: opacity 0.2s;
    border: 2px solid #EE0050;
}

.home-fitoderivados__btn:hover {
    opacity: 0.85;
    color: #FDD9E5;
}

.home-fitoderivados__btn--outline {
    background: transparent;
    color: #FDD9E5;
    border-color: #FDD9E5;
}

.home-fitoderivados__btn--outline:hover {
    background: #FDD9E5;
    color: #141414;
    opacity: 1;
}

/* Product grid */
.home-fitoderivados__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.home-fitoderivados__card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.home-fitoderivados__card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    line-height: 0;
}

.home-fitoderivados__card-img--placeholder {
    background: #f5e8ec;
}

.home-fitoderivados__card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-fitoderivados__card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.home-fitoderivados__card-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}

.home-fitoderivados__card-btn {
    display: inline-block;
    align-self: flex-start;
    background: #EE0050;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.4rem 1.2rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: opacity 0.2s;
    margin-top: auto;
}

.home-fitoderivados__card-btn:hover {
    opacity: 0.85;
    color: #fff;
}

@media (max-width: 900px) {
    .home-fitoderivados__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .home-fitoderivados__grid {
        grid-template-columns: 1fr 1fr;
    }
    .home-fitoderivados__header {
        flex-direction: column;
        align-items: flex-start;
    }
}
