:root {
    --aquamarine: #73fbd3;
    --indigo-dye: #153b50;
    --indigo-dye-dark: #0d2a3a;
    --razzle-rose: #ff3cc7;
    --canary: #FFE900;
    --white: #ffffff;
}

.ami-home * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.ami-home {
    font-family: 'Nunito', sans-serif;
    color: var(--white);
    overflow-x: hidden;
}

.ami-home h1, 
.ami-home h2, 
.ami-home h3, 
.ami-home h4 {
    font-family: 'Krub', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

.ami-home__container {
    width: 92%;
    max-width: 1300px;
    margin: 0 auto;
}

/* =====================================================
   BOTÓN FLOTANTE - WHATSAPP
   ===================================================== */








/* =====================================================
   HERO - ESTILOS
   ===================================================== */
.ami-hero {
    position: relative;
    min-height: 90vh;
    background-color: var(--indigo-dye) !important;
    overflow: hidden;
}

.ami-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.ami-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.ami-hero__content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    min-height: 90vh;
    padding-bottom: 100px;
}

.ami-hero__text {
    max-width: 100%;
}

/* H1 SEO - Oculto visualmente pero accesible para SEO y lectores de pantalla */
.ami-hero__seo-title {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Título visual grande (es un <p> pero parece H1) */
.ami-hero__title {
    font-family: 'Krub', sans-serif;
    font-size: clamp(2.8rem, 5.5vw, 4rem);
    font-weight: 700;
    color: var(--aquamarine) !important;
    margin-bottom: 22px;
    line-height: 1.1;
}

.ami-hero__subtitle {
    font-size: clamp(1.1rem, 2.2vw, 1.35rem);
    color: var(--aquamarine) !important;
    line-height: 1.4;
    font-weight: 400;
}

/* =====================================================
   SECCIÓN ENERGÍA / TARIFAS
   ===================================================== */
.ami-energy {
    background-color: var(--indigo-dye) !important;
    padding: 0 0 50px;
}

.ami-energy__card {
    background-color: transparent !important;
    border: 3px solid var(--razzle-rose) !important;
    border-radius: 35px 0 35px 0;
    padding: 55px 75px 85px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: visible;
}

.ami-energy__title {
    color: var(--aquamarine) !important;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin-bottom: 10px;
    font-weight: 700;
}

.ami-energy__subtitle {
    color: var(--aquamarine) !important;
    font-size: 1.15rem;
    margin-bottom: 35px;
    font-weight: 400;
}

.ami-energy__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 0;
}

.ami-energy__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--aquamarine) !important;
    padding: 22px 35px;
    border-radius: 25px 0 25px 0;
    transition: transform 0.3s ease;
}

.ami-energy__item:hover {
    transform: translateX(5px);
}

.ami-energy__item-text {
    color: var(--indigo-dye-dark) !important;
    font-size: 1.1rem;
    font-weight: 500;
    flex: 1;
    padding-right: 25px;
    line-height: 1.5;
}

.ami-energy__check {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent !important;
}

.ami-energy__check svg {
    width: 100%;
    height: 100%;
}

.ami-energy__check circle {
    stroke: var(--indigo-dye-dark);
    stroke-width: 3.5;
}

.ami-energy__check path {
    stroke: var(--indigo-dye-dark);
    stroke-width: 3.5;
}

.ami-energy__cta {
    text-align: center;
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.ami-energy__btn {
    display: inline-block;
    background-color: var(--canary) !important;
    color: var(--indigo-dye-dark) !important;
    padding: 18px 55px;
    font-family: 'Krub', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 18px 0 18px 0;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.3px;
}

.ami-energy__btn:hover {
    background-color: #e6d200 !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

/* =====================================================
   SECCIÓN POR QUÉ ELEGIRNOS
   ===================================================== */
.ami-why {
    background-color: var(--indigo-dye) !important;
    padding: 90px 0 90px;
    text-align: center;
}

.ami-why__title {
    color: var(--canary) !important;
    font-size: clamp(1.8rem, 4.2vw, 2.5rem);
    margin-bottom: 12px;
    font-weight: 700;
}

.ami-why__subtitle {
    color: var(--aquamarine) !important;
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 55px;
    font-weight: 400;
}

.ami-why__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-top: 45px;
}

.ami-feature {
    background-color: var(--aquamarine) !important;
    border: none !important;
    border-radius: 30px 0 30px 0;
    padding: 55px 25px 35px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
}

.ami-feature:hover {
    transform: translateY(-5px);
}

.ami-feature__icon {
    position: absolute;
    top: -65px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    background: transparent;
}

.ami-feature__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ami-feature__title {
    color: var(--indigo-dye-dark) !important;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    line-height: 1.3;
}

.ami-feature__divider {
    width: 35px;
    height: 3px;
    background-color: var(--indigo-dye-dark) !important;
    margin: 0 auto 14px;
}

.ami-feature__text {
    color: var(--indigo-dye-dark) !important;
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 500;
}

/* =====================================================
   SECCIÓN NOTICIAS / BLOG
   ===================================================== */
.ami-news {
    background-color: var(--aquamarine) !important;
    padding: 70px 0 90px;
}

.ami-news__header {
    text-align: center;
    margin-bottom: 50px;
}

.ami-news__title {
    color: var(--indigo-dye-dark) !important;
    font-size: clamp(1.8rem, 4.2vw, 2.5rem);
    margin-bottom: 12px;
    font-weight: 700;
}

.ami-news__subtitle {
    color: var(--indigo-dye-dark) !important;
    font-size: 1.1rem;
    font-weight: 400;
}

.ami-news__carousel {
    position: relative;
    padding: 0 65px;
    overflow: visible;
}

.ami-news__carousel-wrapper {
    overflow: visible;
    padding-top: 15px;
    padding-bottom: 15px;
}

.ami-news__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    transition: transform 0.4s ease-in-out;
}

.ami-news-card {
    background-color: var(--indigo-dye) !important;
    border-radius: 16px 0 16px 0;
    overflow: visible;
    transition: transform 0.3s ease;
    text-decoration: none;
    display: block;
    position: relative;
}

.ami-news-card:hover {
    transform: translateY(-5px);
}

.ami-news-card__image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background-color: var(--indigo-dye-dark);
    border-radius: 16px 0 0 0;
}

.ami-news-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ami-news-card:hover .ami-news-card__image img {
    transform: scale(1.05);
}

.ami-news-card__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #153b50 0%, #0d2a3a 100%);
}

.ami-news-card__image--placeholder svg {
    width: 60px;
    height: 60px;
    opacity: 0.3;
    stroke: var(--aquamarine);
}

.ami-news-card__tag {
    position: absolute;
    top: 205px;
    left: 20px;
    background-color: var(--razzle-rose) !important;
    color: var(--white) !important;
    padding: 10px 22px;
    font-family: 'Krub', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    z-index: 100;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.ami-news-card__content {
    padding: 40px 24px 28px;
}

.ami-news-card__title {
    color: var(--white) !important;
    font-size: 1.2rem;
    margin-bottom: 12px;
    line-height: 1.3;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ami-news-card__excerpt {
    color: var(--white) !important;
    opacity: 0.85;
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ami-news__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 55px;
    height: 55px;
    background-color: var(--aquamarine) !important;
    border: 3px solid var(--indigo-dye) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.ami-news__arrow:hover {
    background-color: var(--indigo-dye) !important;
}

.ami-news__arrow:hover svg {
    stroke: var(--aquamarine);
}

.ami-news__arrow svg {
    width: 22px;
    height: 22px;
    stroke: var(--indigo-dye);
    stroke-width: 3;
    fill: none;
}

.ami-news__arrow--prev {
    left: 0;
}

.ami-news__arrow--next {
    right: 0;
}

.ami-news__arrow--disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.ami-news__cta {
    text-align: center;
    margin-top: 50px;
}

.ami-news__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--canary) !important;
    color: var(--indigo-dye-dark) !important;
    padding: 18px 45px;
    font-family: 'Krub', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: 18px 0 18px 0;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 6px 20px rgba(255, 233, 0, 0.25);
}

.ami-news__btn:hover {
    background-color: #e6d200 !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 233, 0, 0.4);
}

.ami-news__btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--indigo-dye-dark);
    stroke-width: 2.5;
    fill: none;
    transition: transform 0.3s ease;
}

.ami-news__btn:hover svg {
    transform: translateX(4px);
}

.ami-news__loading {
    text-align: center;
    padding: 60px 20px;
}

.ami-news__spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(21, 59, 80, 0.2);
    border-top-color: var(--indigo-dye);
    border-radius: 50%;
    animation: ami-spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes ami-spin {
    to { transform: rotate(360deg); }
}

.ami-news__loading-text {
    color: var(--indigo-dye-dark) !important;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
}

.ami-news__error {
    text-align: center;
    padding: 40px 20px;
    background-color: rgba(21, 59, 80, 0.08);
    border-radius: 16px 0 16px 0;
}

.ami-news__error-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.ami-news__error-text {
    color: var(--indigo-dye-dark) !important;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    margin-bottom: 20px;
}

.ami-news__retry-btn {
    background-color: var(--indigo-dye) !important;
    color: var(--aquamarine) !important;
    padding: 12px 30px;
    font-family: 'Krub', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-radius: 12px 0 12px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ami-news__retry-btn:hover {
    background-color: var(--indigo-dye-dark) !important;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1100px) {
    .ami-energy__card {
        max-width: 950px;
        padding: 50px 55px 80px;
    }
}

@media (max-width: 900px) {
    .ami-hero {
        min-height: 75vh;
    }
    
    .ami-hero__content {
        min-height: 75vh;
        padding-bottom: 80px;
    }
    
    .ami-energy__card {
        padding: 45px 50px 75px;
    }
    
    .ami-why__grid {
        gap: 25px;
        padding-top: 50px;
    }
    
    .ami-feature {
        padding: 55px 20px 30px;
        border-radius: 25px 0 25px 0;
    }
    
    .ami-feature__icon {
        top: -60px;
        width: 85px;
        height: 85px;
    }
    
    .ami-news__carousel {
        padding: 0 50px;
    }
}

@media (max-width: 800px) {
    .ami-energy__card {
        padding: 40px 40px 70px;
    }
    
    .ami-why__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 55px 25px;
        padding-top: 55px;
    }
    
    .ami-why__grid .ami-feature:last-child {
        grid-column: 1 / -1;
        max-width: 360px;
        margin: 0 auto;
    }
    
    .ami-news__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ami-home__container {
        width: 88%;
    }
    
    .ami-hero {
        min-height: auto;
        display: flex;
        flex-direction: column;
    }
    
    .ami-hero__bg {
        position: relative;
        height: 450px;
        width: 100%;
    }
    
    .ami-hero__content {
        min-height: auto;
        padding: 45px 0 55px;
        background-color: var(--indigo-dye) !important;
        align-items: center;
        justify-content: center;
    }
    
    .ami-hero__text {
        max-width: 100%;
        text-align: center;
    }
    
    .ami-hero__title {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }
    
    .ami-energy {
        padding: 55px 0 45px;
    }
    
    .ami-energy__card {
        padding: 35px 28px 65px;
        border-radius: 25px 0 25px 0;
    }
    
    .ami-energy__list {
        gap: 16px;
    }
    
    .ami-energy__item {
        padding: 16px 22px;
        border-radius: 18px 0 18px 0;
    }
    
    .ami-energy__item-text {
        font-size: 0.98rem;
        padding-right: 18px;
    }
    
    .ami-energy__check {
        width: 40px;
        height: 40px;
    }
    
    .ami-energy__btn {
        padding: 16px 40px;
        font-size: 1rem;
        border-radius: 16px 0 16px 0;
    }
    
    .ami-why {
        padding: 65px 0 75px;
    }
    
    .ami-why__grid {
        grid-template-columns: 1fr;
        gap: 60px;
        padding-top: 55px;
    }
    
    .ami-why__grid .ami-feature:last-child {
        max-width: 100%;
    }
    
    .ami-feature {
        padding: 55px 28px 35px;
        border-radius: 25px 0 25px 0;
    }
    
    .ami-feature__icon {
        top: -60px;
        width: 85px;
        height: 85px;
    }
    
    .ami-news {
        padding: 55px 0 70px;
    }
    
    .ami-news__carousel {
        padding: 0;
    }
    
    .ami-news__grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .ami-news__arrow {
        display: none;
    }
    
    .ami-news__cta {
        margin-top: 40px;
    }
    
    .ami-news__btn {
        padding: 16px 35px;
        font-size: 1rem;
    }
    
    
    
    
    
    
}

@media (max-width: 480px) {
    .ami-hero__bg {
        height: 380px;
    }
    
    .ami-hero__title {
        font-size: 1.85rem;
    }
    
    .ami-energy__title {
        font-size: 1.5rem;
    }
    
    .ami-energy__item {
        padding: 14px 20px;
        border-radius: 16px 0 16px 0;
    }
    
    .ami-energy__item-text {
        font-size: 0.95rem;
    }
    
    .ami-energy__check {
        width: 36px;
        height: 36px;
    }
    
    .ami-energy__btn {
        padding: 14px 35px;
        font-size: 0.95rem;
        border-radius: 14px 0 14px 0;
    }
    
    .ami-why__grid {
        gap: 55px;
    }
    
    .ami-feature {
        padding: 52px 25px 32px;
        border-radius: 22px 0 22px 0;
    }
    
    .ami-feature__icon {
        top: -55px;
        width: 75px;
        height: 75px;
    }
    
    .ami-why__title,
    .ami-news__title {
        font-size: 1.6rem;
    }
    
    .ami-news__btn {
        padding: 14px 30px;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }
}
