/* =====================================================
   AMI ENERGÍA — BASE
   Paleta, tipografía, cabecera, pop-up, pie y utilidades.
   ===================================================== */

:root {
    --aquamarine: #73fbd3;
    --aquamarine-dark: #4fe9ba;
    --indigo-dye: #153b50;
    --indigo-dye-dark: #0d2a3a;
    --razzle-rose: #ff3cc7;
    --canary: #FFE900;
    --flame: #ff6600;
    --flame-dark: #e65c00;
    --lila: #6c0090;
    --lila-dark: #56006f;
    --white: #ffffff;

    --container: 1400px;
    --font-body: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-head: 'Krub', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--indigo-dye);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; }

img { max-width: 100%; height: auto; }

a { color: var(--indigo-dye); }

/* Contenedor estándar: ancho fluido + max-width + padding lateral fijo */
.ami-container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 16px;
}
@media (min-width: 768px) { .ami-container { padding-inline: 24px; } }

.ami-visually-hidden {
    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;
}

.ami-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100000;
    background: var(--indigo-dye);
    color: var(--aquamarine);
    padding: 12px 20px;
    border-radius: 0 0 10px 0;
    font-weight: 700;
}
.ami-skip:focus { left: 0; }

:focus-visible {
    outline: 3px solid var(--razzle-rose);
    outline-offset: 2px;
}

/* =====================================================
   CABECERA
   ===================================================== */
.ami-hd { position: relative; z-index: 9000; }

.ami-hd__top { background-color: var(--indigo-dye); }

.ami-hd__top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 92px;
    padding-block: 10px;
}

.ami-hd__logo { display: block; flex-shrink: 0; }
.ami-hd__logo img { display: block; height: 56px; width: auto; }

.ami-hd__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ami-hd__cs { position: relative; }

/* Botones de la barra superior */
.ami-hd__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 30px;
    padding: 10px 22px;
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-decoration: none;
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.25s ease;
    background: transparent;
    min-height: 44px;
}

.ami-hd__btn--aqua {
    border: 2px solid var(--aquamarine);
    color: var(--aquamarine);
}
.ami-hd__btn--aqua:hover,
.ami-hd__btn--aqua[aria-expanded="true"] {
    background: var(--aquamarine);
    color: var(--indigo-dye);
}
.ami-hd__btn--aqua svg { width: 18px; height: 18px; }

.ami-hd__btn--yellow {
    background: var(--canary);
    border: 2px solid var(--canary);
    color: var(--indigo-dye);
    text-transform: uppercase;
    box-shadow: 0 3px 12px rgba(255, 233, 0, 0.35);
}
.ami-hd__btn--yellow:hover {
    background: var(--white);
    border-color: var(--white);
    transform: translateY(-2px);
}

.ami-hd__btn--pink {
    border: 2px solid var(--razzle-rose);
    color: var(--razzle-rose);
    text-transform: uppercase;
}
.ami-hd__btn--pink:hover {
    background: var(--razzle-rose);
    color: var(--white);
    transform: translateY(-2px);
}

.ami-hd__btn--flame {
    background: var(--flame);
    border: 2px solid var(--flame);
    color: var(--indigo-dye-dark);
    text-transform: uppercase;
    box-shadow: 0 3px 12px rgba(255, 102, 0, 0.35);
}
.ami-hd__btn--flame:hover {
    background: var(--flame-dark);
    border-color: var(--flame-dark);
    color: var(--indigo-dye-dark);
    transform: translateY(-2px);
}

/* Hamburguesa móvil */
.ami-hd__burger {
    display: none;
    width: 46px;
    height: 44px;
    border: 2px solid var(--aquamarine);
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
}
.ami-hd__burger span,
.ami-hd__burger span::before,
.ami-hd__burger span::after {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--aquamarine);
    position: relative;
    transition: 0.25s ease;
}
.ami-hd__burger span::before,
.ami-hd__burger span::after { content: ""; position: absolute; left: 0; }
.ami-hd__burger span::before { top: -6px; }
.ami-hd__burger span::after { top: 6px; }
.ami-hd__burger[aria-expanded="true"] span { background: transparent; }
.ami-hd__burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.ami-hd__burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* Barra de navegación */
.ami-hd__nav { background-color: var(--aquamarine); }

.ami-hd__nav-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 62px;
}

.ami-hd__menu {
    display: flex;
    align-items: center;
    gap: 34px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.ami-hd__menu--right { margin-left: auto; }

.ami-hd__menu a {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--indigo-dye);
    text-decoration: none;
    padding: 12px 0;
    transition: opacity 0.25s ease;
}
.ami-hd__menu a:hover { opacity: 0.65; }
.ami-hd__menu a[aria-current="page"],
.ami-hd__menu a.is-active { font-weight: 800; }

/* Píldoras LUZ / GAS */
.ami-hd__energy {
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
    margin: 0 0 0 auto;
    padding: 0;
}
.ami-hd__energy + .ami-hd__menu--right { margin-left: 28px; }

.ami-hd__drop { position: relative; }

.ami-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border-radius: 30px;
    padding: 6px 18px 6px 8px;
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    cursor: pointer;
    line-height: 1.2;
    min-height: 44px;
    transition: all 0.25s ease;
}
.ami-pill img { width: 26px; height: auto; display: block; }

.ami-pill--luz { border: 2px solid var(--razzle-rose); color: var(--razzle-rose); }
.ami-pill--luz:hover,
.ami-pill--luz[aria-expanded="true"] {
    background: rgba(255, 60, 199, 0.14);
    box-shadow: 0 4px 14px rgba(255, 60, 199, 0.28);
}

.ami-pill--gas { border: 2px solid var(--flame); color: var(--flame); }
.ami-pill--gas:hover,
.ami-pill--gas[aria-expanded="true"] {
    background: rgba(255, 102, 0, 0.14);
    box-shadow: 0 4px 14px rgba(255, 102, 0, 0.28);
}

/* Desplegables de tarifas */
.ami-drop__panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    min-width: 330px;
    background: var(--aquamarine);
    border-radius: 18px;
    padding: 18px 22px;
    box-shadow: 0 14px 34px rgba(13, 42, 58, 0.22);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 9500;
}
.ami-hd__drop:hover .ami-drop__panel,
.ami-hd__drop:focus-within .ami-drop__panel,
.ami-drop__panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.ami-drop__panel--luz { border: 2px solid var(--razzle-rose); }
.ami-drop__panel--gas { border: 2px solid var(--flame); }

.ami-drop__title {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--indigo-dye);
    margin: 0 0 12px;
}
.ami-drop__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ami-drop__list a {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    white-space: nowrap;
    color: var(--indigo-dye);
    text-decoration: none;
    font-size: 1rem;
    padding: 4px 0;
    transition: opacity 0.2s ease;
}
.ami-drop__list a:hover { opacity: 0.7; }
.ami-drop__tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 5px 12px;
    border-radius: 20px;
    white-space: nowrap;
}
.ami-drop__tag--dark { background: var(--indigo-dye); color: var(--aquamarine); }
.ami-drop__tag--flame { background: var(--flame); color: var(--white); }

/* =====================================================
   PANEL "¡LLÁMANOS!"
   ===================================================== */
.ami-call {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(360px, calc(100vw - 32px));
    background: var(--indigo-dye);
    border: 2px solid var(--aquamarine);
    border-radius: 24px;
    padding: 26px 24px;
    text-align: center;
    box-shadow: 0 18px 40px rgba(13, 42, 58, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    z-index: 9600;
}
.ami-call.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

.ami-call--inline {
    position: static;
    width: 100%;
    max-width: 380px;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin: 0 auto;
}

.ami-call__title {
    font-family: var(--font-head);
    font-size: 1.7rem;
    color: var(--aquamarine);
    margin: 0 0 6px;
}
.ami-call__text { font-size: 0.95rem; color: var(--white); margin: 0 0 14px; }
.ami-call__text strong { color: var(--aquamarine); }
.ami-call__phone {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 700;
    color: var(--canary);
    text-decoration: none;
    margin-bottom: 18px;
}
.ami-call__phone:hover { text-decoration: underline; }

.ami-call__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 56px;
    background: var(--aquamarine);
    color: var(--indigo-dye);
    border: none;
    border-radius: 28px;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease;
}
.ami-call__toggle:hover { background: var(--aquamarine-dark); }
.ami-call__toggle svg { width: 20px; height: 20px; transition: transform 0.25s ease; }
.ami-call__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Formulario "Te llamamos nosotros" */
.ami-callform {
    background: var(--aquamarine);
    border-radius: 24px;
    padding: 22px 20px;
    margin-top: 14px;
    text-align: left;
    display: none;
}
.ami-callform.is-open { display: block; }
.ami-call--inline .ami-callform { margin-top: 12px; }

.ami-callform__label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--indigo-dye);
    margin-bottom: 6px;
}
.ami-callform input[type="text"],
.ami-callform input[type="tel"],
.ami-callform input[type="email"] {
    width: 100%;
    min-height: 48px;
    font-size: 16px;
    font-family: var(--font-body);
    color: var(--indigo-dye);
    background: #eaf7f4;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 14px;
}
.ami-callform input:focus {
    outline: none;
    border-color: var(--indigo-dye);
    background: var(--white);
}
.ami-callform__check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.78rem;
    color: var(--indigo-dye);
    margin-bottom: 16px;
}
.ami-callform__check input[type="checkbox"] {
    width: 22px;
    height: 22px;
    min-width: 22px;
    max-width: 22px;
    flex: 0 0 22px;
    accent-color: var(--indigo-dye);
    margin: 0;
    padding: 0;
}
.ami-callform__check a { color: var(--indigo-dye); font-weight: 700; }

.ami-callform__submit {
    width: 100%;
    min-height: 56px;
    background: var(--indigo-dye);
    color: var(--aquamarine);
    border: none;
    border-radius: 28px;
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s ease;
}
.ami-callform__submit:hover { background: var(--indigo-dye-dark); }

.ami-form__msg {
    margin: 12px 0 0;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
}
.ami-form__msg--ok { background: rgba(21, 59, 80, 0.12); color: var(--indigo-dye); }
.ami-form__msg--ko { background: rgba(255, 60, 199, 0.15); color: #a3006f; }
.ami-form__hp { position: absolute; left: -9999px; }

/* =====================================================
   POP-UP DE LANZAMIENTO
   ===================================================== */
.ami-popup {
    position: fixed;
    inset: 0;
    z-index: 99998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(13, 42, 58, 0.72);
}
.ami-popup.is-open { display: flex; }

.ami-popup__box {
    position: relative;
    width: 100%;
    max-width: 760px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
    background: var(--indigo-dye);
    animation: ami-popup-in 0.35s ease;
}
@keyframes ami-popup-in {
    from { opacity: 0; transform: translateY(18px) scale(0.97); }
    to   { opacity: 1; transform: none; }
}
.ami-popup__box img { display: block; width: 100%; height: auto; }

.ami-popup__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(13, 42, 58, 0.75);
    color: var(--white);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.25s ease;
}
.ami-popup__close:hover { background: var(--razzle-rose); }

/* =====================================================
   BOTÓN FLOTANTE WHATSAPP
   ===================================================== */
.ami-floating-btn {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}
.ami-floating-btn a {
    background-color: var(--lila);
    color: var(--white);
    padding: 20px 14px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 10px 0 0 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.ami-floating-btn a:hover { padding-right: 20px; background-color: var(--lila-dark); }
.ami-floating-btn a::before {
    content: '';
    display: inline-block;
    width: 1.15rem;
    height: 1.15rem;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.47 14.38c-.3-.15-1.76-.87-2.03-.97-.27-.1-.47-.15-.67.15-.2.3-.77.97-.94 1.16-.17.2-.35.22-.64.08-.3-.15-1.26-.47-2.39-1.48-.88-.79-1.48-1.76-1.65-2.06-.17-.3-.02-.46.13-.6.13-.14.3-.35.45-.52.14-.18.19-.3.29-.5.1-.2.05-.37-.03-.52-.07-.15-.67-1.61-.91-2.21-.24-.58-.49-.5-.67-.51h-.57c-.2 0-.52.07-.8.37-.27.3-1.03 1.02-1.03 2.48s1.06 2.87 1.21 3.07c.15.2 2.1 3.2 5.08 4.49.7.3 1.26.49 1.69.62.71.23 1.36.2 1.87.12.57-.09 1.76-.72 2-1.42.25-.69.25-1.29.18-1.41-.08-.12-.28-.2-.57-.35M12.05 21.8h-.01a9.87 9.87 0 0 1-5.03-1.38l-.36-.21-3.74.98 1-3.65-.24-.37a9.86 9.86 0 0 1-1.51-5.26C2.16 6.46 6.6 2.02 12.05 2.02c2.64 0 5.12 1.03 6.99 2.9a9.83 9.83 0 0 1 2.89 6.99c0 5.45-4.44 9.89-9.88 9.89m8.41-18.3A11.82 11.82 0 0 0 12.05 0C5.5 0 .16 5.34.16 11.89c0 2.1.55 4.14 1.59 5.95L.06 24l6.3-1.65a11.88 11.88 0 0 0 5.69 1.45h.01c6.55 0 11.89-5.34 11.89-11.89a11.82 11.82 0 0 0-3.48-8.42z'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.47 14.38c-.3-.15-1.76-.87-2.03-.97-.27-.1-.47-.15-.67.15-.2.3-.77.97-.94 1.16-.17.2-.35.22-.64.08-.3-.15-1.26-.47-2.39-1.48-.88-.79-1.48-1.76-1.65-2.06-.17-.3-.02-.46.13-.6.13-.14.3-.35.45-.52.14-.18.19-.3.29-.5.1-.2.05-.37-.03-.52-.07-.15-.67-1.61-.91-2.21-.24-.58-.49-.5-.67-.51h-.57c-.2 0-.52.07-.8.37-.27.3-1.03 1.02-1.03 2.48s1.06 2.87 1.21 3.07c.15.2 2.1 3.2 5.08 4.49.7.3 1.26.49 1.69.62.71.23 1.36.2 1.87.12.57-.09 1.76-.72 2-1.42.25-.69.25-1.29.18-1.41-.08-.12-.28-.2-.57-.35M12.05 21.8h-.01a9.87 9.87 0 0 1-5.03-1.38l-.36-.21-3.74.98 1-3.65-.24-.37a9.86 9.86 0 0 1-1.51-5.26C2.16 6.46 6.6 2.02 12.05 2.02c2.64 0 5.12 1.03 6.99 2.9a9.83 9.83 0 0 1 2.89 6.99c0 5.45-4.44 9.89-9.88 9.89m8.41-18.3A11.82 11.82 0 0 0 12.05 0C5.5 0 .16 5.34.16 11.89c0 2.1.55 4.14 1.59 5.95L.06 24l6.3-1.65a11.88 11.88 0 0 0 5.69 1.45h.01c6.55 0 11.89-5.34 11.89-11.89a11.82 11.82 0 0 0-3.48-8.42z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* =====================================================
   VOLVER ARRIBA
   ===================================================== */
.ami-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 48px;
    height: 48px;
    display: none;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 14px 0 14px 0;
    background: var(--indigo-dye);
    color: var(--aquamarine);
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 6px 18px rgba(13, 42, 58, 0.3);
}
.ami-top.is-visible { display: flex; }
.ami-top svg { width: 22px; height: 22px; }

/* =====================================================
   MIGAS DE PAN
   ===================================================== */
.ami-breadcrumbs {
    background: var(--indigo-dye-dark);
    font-size: 0.85rem;
}
.ami-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 12px 0;
}
.ami-breadcrumbs a, .ami-breadcrumbs span { color: var(--aquamarine); text-decoration: none; }
.ami-breadcrumbs a:hover { text-decoration: underline; }
.ami-breadcrumbs li + li::before { content: "›"; margin-right: 8px; color: rgba(115, 251, 211, 0.6); }

/* =====================================================
   RESPONSIVE CABECERA
   ===================================================== */
@media (max-width: 1180px) {
    .ami-hd__menu { gap: 22px; }
    .ami-hd__energy { gap: 8px; }
    .ami-hd__btn { padding: 10px 16px; font-size: 0.78rem; }
}

@media (max-width: 1024px) {
    .ami-hd__burger { display: inline-flex; }
    .ami-hd__actions .ami-hd__btn--yellow,
    .ami-hd__actions .ami-hd__btn--pink,
    .ami-hd__actions .ami-hd__btn--flame { display: none; }

    .ami-hd__nav {
        display: none;
        padding-bottom: 14px;
    }
    .ami-hd__nav.is-open { display: block; }
    .ami-hd__nav-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding-block: 8px;
    }
    .ami-hd__menu,
    .ami-hd__energy {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
    }
    .ami-hd__menu a {
        padding: 14px 4px;
        border-bottom: 1px solid rgba(21, 59, 80, 0.15);
    }
    .ami-hd__energy { gap: 10px; margin: 14px 0; }
    .ami-hd__drop { width: 100%; }
    .ami-pill { width: 100%; justify-content: flex-start; }
    .ami-hd__drop .ami-drop__panel,
    .ami-hd__drop:hover .ami-drop__panel,
    .ami-hd__drop:focus-within .ami-drop__panel {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        width: 100%;
        min-width: 0;
        margin-top: 8px;
        box-shadow: none;
        display: none;
    }
    .ami-hd__drop .ami-drop__panel.is-open,
    .ami-hd__drop:hover .ami-drop__panel.is-open,
    .ami-hd__drop:focus-within .ami-drop__panel.is-open { display: block; }
    .ami-drop__list a { white-space: normal; flex-wrap: wrap; }

    .ami-hd__mobile-extra {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding-top: 12px;
    }
    .ami-hd__mobile-extra .ami-hd__btn { justify-content: center; }
    .ami-hd__mobile-extra .ami-hd__btn--pink { color: var(--razzle-rose); }

    .ami-hd__cs .ami-call {
        position: fixed;
        top: auto;
        bottom: 12px;
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(10px);
        width: min(380px, calc(100vw - 24px));
        max-height: 86vh;
        overflow-y: auto;
    }
    .ami-hd__cs .ami-call.is-open { transform: translateX(-50%) translateY(0); }

    .ami-hd__drop .ami-call,
    .ami-hd__drop:hover .ami-call,
    .ami-hd__drop:focus-within .ami-call {
        position: static;
        transform: none;
        width: 100%;
        margin-top: 10px;
        opacity: 1;
        visibility: visible;
        display: none;
    }
    .ami-hd__drop .ami-call.is-open { display: block; }
}

@media (min-width: 1025px) {
    .ami-hd__mobile-extra { display: none; }
}

@media (max-width: 600px) {
    .ami-hd__top-inner { min-height: 74px; }
    .ami-hd__logo img { height: 44px; }
    .ami-hd__btn--aqua { padding: 10px 14px; }
    .ami-hd__btn--aqua .ami-hd__btn-text { display: none; }
    .ami-floating-btn a { font-size: 0.8rem; padding: 16px 10px; }
}


/* =====================================================
   FOOTER AMI ENERGÍA
   ===================================================== */

.ami-footer {
    background-color: #73fbd3;
    font-family: 'Nunito', sans-serif;
}

.ami-footer * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === FOOTER PRINCIPAL === */
.ami-footer__main {
    padding: 50px 0 40px;
}

.ami-footer__container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

/* Logo */
.ami-footer__logo {
    flex-shrink: 0;
}

.ami-footer__logo img {
    height: 100px;
    width: auto;
    display: block;
}

/* Navegación */
.ami-footer__nav {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
    flex: 1;
    justify-content: center;
}

.ami-footer__column {
    min-width: 140px;
}

.ami-footer__column-title {
    font-family: 'Krub', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #153b50 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.ami-footer__column-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.ami-footer__column-list li {
    margin-bottom: 8px;
    list-style: none !important;
    list-style-type: none !important;
}

/* Forzar bullets oscuros en caso de usar listas con bullets */
.ami-footer__column-list li::marker {
    color: #153b50 !important;
}

.ami-footer__column-list a {
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: #153b50 !important;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.ami-footer__column-list a:hover {
    opacity: 0.7;
}

/* === SECCIÓN DE CONTACTO === */
.ami-footer__contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 220px;
}

.ami-footer__contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #153b50 !important;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.ami-footer__contact-item:hover {
    opacity: 0.7;
}

.ami-footer__contact-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: #153b50 !important;
}

/* Item de dirección con alineación superior */
.ami-footer__contact-item--address {
    align-items: flex-start;
}

.ami-footer__contact-item--address svg {
    margin-top: 3px;
}

.ami-footer__address-text {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.ami-footer__address-text span {
    color: #153b50 !important;
}

/* Grupo de contacto con etiqueta */
.ami-footer__contact-group {
    margin-bottom: 12px;
}

.ami-footer__contact-group .ami-footer__contact-item {
    margin-bottom: 4px;
}

.ami-footer__contact-label {
    font-size: 0.8rem;
    font-weight: 400;
    color: #153b50 !important;
    opacity: 0.65;
    margin-left: 32px;
    display: block;
    line-height: 1.2;
}

/* Espaciado para items sin etiqueta */
.ami-footer__contact > a.ami-footer__contact-item {
    margin-bottom: 6px;
}

/* Redes Sociales */
.ami-footer__social {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    padding-top: 5px;
}

.ami-footer__social-icons {
    display: flex;
    gap: 14px;
}

.ami-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #153b50 !important;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.ami-footer__social-link:hover {
    opacity: 0.7;
    transform: translateY(-2px);
}

.ami-footer__social-link svg {
    width: 28px;
    height: 28px;
    fill: #153b50 !important;
}

/* === FOOTER BOTTOM (Legal) === */
.ami-footer__bottom {
    border-top: 1px solid rgba(21, 59, 80, 0.2);
    padding: 20px 0;
}

.ami-footer__bottom-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ami-footer__legal {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.ami-footer__legal a,
.ami-footer__legal span {
    font-family: 'Nunito', sans-serif;
    font-size: 0.85rem;
    color: #153b50 !important;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.ami-footer__legal a:hover {
    opacity: 0.7;
}

.ami-footer__legal-separator {
    color: #153b50 !important;
    opacity: 0.5;
}

/* =====================================================
   FORZAR COLORES OSCUROS - OVERRIDE GLOBAL
   ===================================================== */

.ami-footer li,
.ami-footer li::before,
.ami-footer li::after,
.ami-footer li::marker,
.ami-footer ul,
.ami-footer ul li {
    color: #153b50 !important;
    list-style-type: none !important;
}

/* Override para cualquier bullet que DIVI pueda añadir */
.ami-footer ul li::before {
    background-color: #153b50 !important;
    color: #153b50 !important;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 1200px) {
    .ami-footer__nav {
        gap: 45px;
    }
}

@media (max-width: 1024px) {
    .ami-footer__container {
        gap: 35px;
    }
    
    .ami-footer__nav {
        gap: 35px;
    }
    
    .ami-footer__column {
        min-width: 120px;
    }
    
    .ami-footer__contact {
        min-width: 200px;
    }
}

@media (max-width: 900px) {
    .ami-footer__container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .ami-footer__nav {
        justify-content: center;
        width: 100%;
    }
    
    .ami-footer__contact {
        align-items: center;
        margin-top: 15px;
        width: 100%;
        max-width: 300px;
    }
    
    .ami-footer__contact-item {
        justify-content: center;
    }
    
    .ami-footer__contact-item--address {
        text-align: center;
    }
    
    .ami-footer__address-text {
        align-items: center;
    }
    
    .ami-footer__contact-label {
        margin-left: 0;
        text-align: center;
    }
    
    .ami-footer__social {
        align-items: center;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .ami-footer__main {
        padding: 40px 0 30px;
    }
    
    .ami-footer__container {
        width: 88%;
    }
    
    .ami-footer__bottom-container {
        width: 88%;
    }
    
    .ami-footer__logo img {
        height: 80px;
    }
    
    .ami-footer__nav {
        gap: 30px 40px;
        width: 100%;
    }
    
    .ami-footer__column {
        min-width: 42%;
        text-align: left;
    }
    
    .ami-footer__column-title {
        font-size: 0.8rem;
    }
    
    .ami-footer__column-list a {
        font-size: 0.88rem;
    }
    
    .ami-footer__contact {
        width: 88%;
        max-width: none;
        align-items: flex-start;
        margin-top: 25px;
        padding-top: 25px;
        border-top: 1px solid rgba(21, 59, 80, 0.15);
    }
    
    .ami-footer__contact-item {
        justify-content: flex-start;
    }
    
    .ami-footer__contact-item--address {
        text-align: left;
    }
    
    .ami-footer__address-text {
        align-items: flex-start;
    }
    
    .ami-footer__contact-label {
        margin-left: 32px;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .ami-footer__container {
        gap: 25px;
    }
    
    .ami-footer__logo img {
        height: 70px;
    }
    
    .ami-footer__nav {
        width: 100%;
        gap: 25px 30px;
    }
    
    .ami-footer__column {
        min-width: 44%;
    }
    
    .ami-footer__contact {
        width: 100%;
    }
    
    .ami-footer__contact-item {
        font-size: 0.9rem;
    }
    
    .ami-footer__legal {
        flex-direction: column;
        gap: 6px;
    }
    
    .ami-footer__legal-separator {
        display: none;
    }
}

/* =====================================================
   UTILIDADES DE MARCA Y COMPONENTES COMPARTIDOS
   ===================================================== */
.txt-gas { color: var(--flame); }
.txt-luz { color: var(--razzle-rose); }

/* Desplegable "¡Llámanos!" anclado a un botón dentro del contenido */
.ami-inline-drop { position: relative; display: inline-block; }
.ami-call--drop {
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(-8px);
    text-align: center;
}
.ami-call--drop.is-open { transform: translateX(-50%) translateY(0); }

@media (max-width: 1024px) {
    .ami-call--drop,
    .ami-call--drop.is-open { position: static; transform: none; width: 100%; margin-top: 14px; }
}

/* =====================================================
   FORMULARIO DE CONTACTO (páginas)
   ===================================================== */
.ami-contact-form {
    background: var(--indigo-dye);
    padding: 40px;
    border-radius: 20px 0 20px 0;
    max-width: 100%;
}
.ami-form__row { display: flex; gap: 20px; flex-wrap: wrap; }
.ami-form__group { flex: 1 1 280px; margin-bottom: 20px; }
.ami-form__group--full { flex-basis: 100%; }
.ami-form__group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--aquamarine);
    margin-bottom: 6px;
}
.ami-contact-form input[type="text"],
.ami-contact-form input[type="email"],
.ami-contact-form input[type="tel"],
.ami-contact-form textarea {
    width: 100%;
    background: rgba(21, 59, 80, 0.6);
    border: 2px solid var(--aquamarine);
    border-radius: 12px;
    padding: 14px 18px;
    color: var(--aquamarine);
    font-family: var(--font-body);
    font-size: 16px;
    min-height: 48px;
    transition: all 0.3s ease;
}
.ami-contact-form textarea { min-height: 150px; resize: vertical; }
.ami-contact-form input::placeholder,
.ami-contact-form textarea::placeholder { color: rgba(115, 251, 211, 0.6); }
.ami-contact-form input:focus,
.ami-contact-form textarea:focus {
    outline: none;
    background: rgba(21, 59, 80, 0.85);
    border-color: var(--white);
    box-shadow: 0 0 0 3px rgba(115, 251, 211, 0.2);
}
.ami-form__check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--aquamarine);
    margin-bottom: 20px;
}
.ami-form__check input[type="checkbox"] {
    width: 22px;
    height: 22px;
    min-width: 22px;
    max-width: 22px;
    flex: 0 0 22px;
    accent-color: var(--aquamarine);
    margin: 0;
    padding: 0;
}
.ami-form__check a { color: var(--aquamarine); font-weight: 700; }
.ami-form__submit {
    background: var(--aquamarine);
    color: var(--indigo-dye);
    border: none;
    border-radius: 12px;
    padding: 16px 46px;
    min-height: 56px;
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(115, 251, 211, 0.3);
}
.ami-form__submit:hover { background: var(--aquamarine-dark); transform: translateY(-2px); }
.ami-contact-form .ami-form__msg--ok { background: rgba(115, 251, 211, 0.18); color: var(--aquamarine); }
.ami-contact-form .ami-form__msg--ko { background: rgba(255, 60, 199, 0.18); color: #ffb3e8; }

@media (max-width: 768px) {
    .ami-contact-form { padding: 24px; }
    .ami-form__row { flex-direction: column; gap: 0; }
    /* En columna, flex-basis afecta al ALTO: si no se resetea, cada campo
       mide 280 px de alto y el formulario queda lleno de huecos. */
    .ami-form__group { flex: 0 0 auto; }
}

/* El panel "¡Llámanos!" dentro de LUZ/GAS también se abre al pasar el ratón */
@media (min-width: 1025px) {
    .ami-hd__drop:hover > .ami-call,
    .ami-hd__drop:focus-within > .ami-call {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
}

/* Tablas anchas: scroll horizontal dentro de su propio contenedor */
.tabla-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 22px;
    max-width: 100%;
}
.tabla-scroll > table { margin-bottom: 0; }

/* El atributo [hidden] debe ganar siempre (las tarjetas del carrusel y del
   blog llevan display:block y si no se ocultarían igualmente). */
[hidden] { display: none !important; }
