/* ========================================================================== 
   UEP WIFI MALLORCA · HOJA DE ESTILOS PRINCIPAL
   Archivo organizado y comentado por bloques para facilitar su edición.
   ========================================================================== */

/* ========================================================================== 
   INICIO: VARIABLES GLOBALES DE MARCA
   Centraliza colores, sombras, tamaños, radios y transiciones.
   ========================================================================== */
:root {
    --bg-dark-pure: #07090e;
    --bg-dark-card: #10141d;
    --bg-mid: #0b1018;
    --bg-soft: #121824;
    --brand-navy: #002244;
    --brand-yellow: #fcd116;
    --brand-yellow-hover: #e8bf12;
    --brand-yellow-glow: rgba(252, 209, 22, 0.34);
    --brand-yellow-soft: rgba(252, 209, 22, 0.09);
    --alert-red: #ff4338;
    --alert-red-soft: rgba(255, 67, 56, 0.18);
    --success-green: #58d47c;
    --text-light: #f7f8fb;
    --text-soft: #d9dee8;
    --text-muted: #9da6b7;
    --border-soft: rgba(255, 255, 255, 0.08);
    --border-medium: rgba(255, 255, 255, 0.13);
    --border-yellow: rgba(252, 209, 22, 0.34);
    --shadow-main: 0 22px 55px rgba(0, 0, 0, 0.38);
    --shadow-yellow: 0 0 34px rgba(252, 209, 22, 0.11);
    --radius-main: 18px;
    --radius-soft: 12px;
    --header-height: 88px;
    --transition-main: 220ms ease;
    --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
/* ========================================================================== 
   FIN: VARIABLES GLOBALES DE MARCA
   ========================================================================== */

/* ========================================================================== 
   INICIO: RESET, BASE Y ACCESIBILIDAD
   Normaliza elementos, mejora lectura, foco de teclado y desplazamiento.
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-system);
    background: var(--bg-dark-pure);
    color: var(--text-light);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    min-width: 320px;
    overflow-x: hidden;
    background: var(--bg-dark-pure);
    color: var(--text-light);
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

img,
picture {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: inherit;
}

ul {
    padding-left: 0;
}

section[id] {
    scroll-margin-top: calc(var(--header-height) + 18px);
}

:focus-visible {
    outline: 3px solid var(--brand-yellow);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    top: -100px;
    left: 18px;
    z-index: 5000;
    padding: 12px 18px;
    border-radius: 0 0 10px 10px;
    background: var(--brand-yellow);
    color: var(--brand-navy);
    font-weight: 900;
    text-decoration: none;
    transition: top var(--transition-main);
}

.skip-link:focus {
    top: 0;
}

.container {
    width: min(100% - 40px, 1260px);
    margin-inline: auto;
}

.text-highlight {
    display: block;
    color: var(--brand-yellow);
    text-shadow: 0 0 18px var(--brand-yellow-glow);
}

.small-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--brand-yellow);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 1.35px;
    text-transform: uppercase;
}
/* ========================================================================== 
   FIN: RESET, BASE Y ACCESIBILIDAD
   ========================================================================== */

/* ========================================================================== 
   INICIO: BOTONES GLOBALES
   Estilos de llamadas a la acción principales y secundarias.
   ========================================================================== */
.btn-yellow,
.btn-main-outline,
.btn-submit-yellow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 900;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: transform var(--transition-main), background var(--transition-main), color var(--transition-main), border-color var(--transition-main), box-shadow var(--transition-main);
}

.btn-yellow,
.btn-submit-yellow {
    border: 2px solid var(--brand-yellow);
    background: var(--brand-yellow);
    color: var(--brand-navy);
    box-shadow: 0 12px 28px rgba(252, 209, 22, 0.13);
}

.btn-yellow:hover,
.btn-submit-yellow:hover {
    transform: translateY(-2px);
    background: var(--brand-yellow-hover);
    border-color: var(--brand-yellow-hover);
    box-shadow: 0 16px 34px rgba(252, 209, 22, 0.18);
}

.btn-main-outline {
    border: 2px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.035);
    color: var(--text-light);
}

.btn-main-outline:hover {
    transform: translateY(-2px);
    border-color: var(--brand-yellow);
    color: var(--brand-yellow);
    background: var(--brand-yellow-soft);
}

.btn-large {
    min-height: 56px;
    padding-inline: 30px;
}

.small-btn {
    width: 100%;
    margin-top: 8px;
    padding-inline: 18px;
    font-size: 0.86rem;
}

.btn-submit-yellow {
    width: 100%;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.25px;
}

@keyframes buttonPulse {
    0% { box-shadow: 0 0 0 0 rgba(252, 209, 22, 0.35); }
    70% { box-shadow: 0 0 0 15px rgba(252, 209, 22, 0); }
    100% { box-shadow: 0 0 0 0 rgba(252, 209, 22, 0); }
}

.pulse-animation {
    animation: buttonPulse 2.3s infinite;
}
/* ========================================================================== 
   FIN: BOTONES GLOBALES
   ========================================================================== */

/* ========================================================================== 
   INICIO: ACCIONES FLOTANTES
   Botones fijos de WhatsApp y llamada en el lateral derecho.
   ========================================================================== */
.floating-actions {
    position: fixed;
    right: 16px;
    bottom: 20px;
    z-index: 1400;
    display: grid;
    gap: 10px;
}

.floating-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 11px 16px;
    border-radius: 999px;
    box-shadow: var(--shadow-main);
    font-size: 0.84rem;
    font-weight: 900;
    text-decoration: none;
    transition: transform var(--transition-main), box-shadow var(--transition-main);
}

.floating-action:hover {
    transform: translateY(-3px);
}

.floating-whatsapp {
    background: #25d366;
    color: #ffffff;
}

.floating-call {
    background: var(--brand-yellow);
    color: var(--brand-navy);
}
/* ========================================================================== 
   FIN: ACCIONES FLOTANTES
   ========================================================================== */

/* ========================================================================== 
   INICIO: CABECERA Y MENÚ PRINCIPAL
   Cabecera fija, menú ordenado, estado activo y navegación responsive.
   ========================================================================== */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1300;
    height: var(--header-height);
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    background: rgba(7, 9, 14, 0.9);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.logo-container {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.main-logo {
    width: 92px;
    height: 62px;
    object-fit: contain;
    transition: transform var(--transition-main);
}

.logo-container:hover .main-logo {
    transform: scale(1.035);
}

.nav-links {
    min-width: 0;
}

.nav-links ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    list-style: none;
}

.nav-links a {
    position: relative;
    display: inline-flex;
    padding: 11px 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--transition-main);
}

.nav-links a::after {
    content: "";
    position: absolute;
    right: 50%;
    bottom: 4px;
    left: 50%;
    height: 2px;
    border-radius: 999px;
    background: var(--brand-yellow);
    transition: right var(--transition-main), left var(--transition-main);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--brand-yellow);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    right: 0;
    left: 0;
}

.header-cta {
    flex: 0 0 auto;
}

.header-cta .btn-yellow {
    min-height: 46px;
    padding-inline: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.menu-toggle {
    display: none;
    width: 32px;
    height: 24px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-toggle .bar {
    display: block;
    width: 100%;
    height: 3px;
    margin-block: 5px;
    border-radius: 999px;
    background: var(--text-light);
    transition: transform var(--transition-main), opacity var(--transition-main);
}
/* ========================================================================== 
   FIN: CABECERA Y MENÚ PRINCIPAL
   ========================================================================== */

/* ========================================================================== 
   INICIO: HERO PRINCIPAL
   Portada con la imagen de Mallorca, overlay y primera llamada a la acción.
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    /* Fondo JPG incluido físicamente en la misma carpeta que este CSS.
       Se evita image-set para que el navegador no seleccione un WebP ausente. */
    background-image: url("fondo-mallorca.jpg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4, 7, 12, 0.82) 0%, rgba(4, 7, 12, 0.46) 56%, rgba(4, 7, 12, 0.20) 100%),
        linear-gradient(180deg, rgba(7, 9, 14, 0.18) 0%, rgba(7, 9, 14, 0.88) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding-block: 90px 72px;
}

.badge-geo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 22px;
    padding: 8px 16px;
    border: 1px solid var(--brand-yellow);
    border-radius: 999px;
    background: rgba(252, 209, 22, 0.13);
    color: var(--brand-yellow);
    font-size: 0.79rem;
    font-weight: 900;
    letter-spacing: 0.65px;
}

.hero-content h1 {
    max-width: 880px;
    margin-bottom: 22px;
    font-size: clamp(2.55rem, 5.2vw, 4.4rem);
    font-weight: 950;
    line-height: 1.02;
    letter-spacing: -1.8px;
    text-wrap: balance;
}

.hero-subtitle {
    max-width: 760px;
    margin-bottom: 28px;
    color: var(--text-soft);
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    line-height: 1.72;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.hero-bullets {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-bottom: 34px;
}

.hero-bullets span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 999px;
    background: rgba(7, 9, 14, 0.46);
    color: var(--text-light);
    font-size: 0.89rem;
    font-weight: 750;
    backdrop-filter: blur(8px);
}

.hero-bullets span::before {
    content: "✓";
    color: var(--brand-yellow);
    font-weight: 950;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}
/* ========================================================================== 
   FIN: HERO PRINCIPAL
   ========================================================================== */

/* ========================================================================== 
   INICIO: FRANJA DE CONFIANZA
   Tres mensajes de validación inmediata bajo la portada.
   ========================================================================== */
.trust-strip {
    padding-block: 28px;
    border-block: 1px solid rgba(255, 255, 255, 0.045);
    background: #090c12;
}

.trust-strip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.trust-mini-card {
    padding: 20px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-soft);
    background: rgba(255, 255, 255, 0.025);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.trust-mini-card strong {
    display: block;
    margin-bottom: 5px;
    color: var(--brand-yellow);
    font-size: 1rem;
}

.trust-mini-card span {
    display: block;
    color: var(--text-muted);
    font-size: 0.92rem;
}
/* ========================================================================== 
   FIN: FRANJA DE CONFIANZA
   ========================================================================== */

/* ========================================================================== 
   INICIO: ESTRUCTURA GENERAL DE SECCIONES
   Controla fondos, espacios, títulos numerados y textos introductorios.
   ========================================================================== */
.content-section,
.pricing-section,
.compare-section,
.faq-section,
.contact-section {
    padding-block: clamp(78px, 8vw, 116px);
}

.compact-section {
    padding-block: 64px;
}

.section-dark {
    background: var(--bg-dark-pure);
}

.section-mid {
    background: linear-gradient(180deg, #0b0f17 0%, #090c12 100%);
}

.section-heading {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 22px;
    margin-bottom: 42px;
}

.section-heading-centered {
    max-width: 940px;
}

.section-heading h2,
.section-copy h2,
.response-panel h2,
.contact-info-panel h2 {
    margin-bottom: 13px;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 930;
    line-height: 1.12;
    letter-spacing: -0.7px;
    text-wrap: balance;
}

.section-heading p,
.section-copy p,
.response-panel p,
.contact-info-panel > p {
    max-width: 900px;
    color: var(--text-muted);
    font-size: 1.03rem;
    line-height: 1.75;
}

.section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border: 1px solid var(--border-yellow);
    border-radius: 18px;
    background: var(--brand-yellow-soft);
    color: var(--brand-yellow);
    font-size: 1.25rem;
    font-weight: 950;
    box-shadow: var(--shadow-yellow);
}

.section-copy-centered {
    max-width: 900px;
    margin-bottom: 38px;
    text-align: center;
}

.section-copy-centered p {
    margin-inline: auto;
}

.statement-box {
    margin-top: 28px;
    padding: 22px 26px;
    border: 1px solid var(--border-yellow);
    border-radius: var(--radius-main);
    background: linear-gradient(135deg, var(--brand-yellow-soft), rgba(0, 34, 68, 0.28));
    text-align: center;
    box-shadow: var(--shadow-main);
}

.statement-box strong {
    color: var(--brand-yellow);
    font-size: 1.08rem;
}
/* ========================================================================== 
   FIN: ESTRUCTURA GENERAL DE SECCIONES
   ========================================================================== */

/* ========================================================================== 
   INICIO: TARJETAS DEL PROBLEMA
   Resume de forma visual los principales consumos simultáneos.
   ========================================================================== */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.problem-card {
    padding: 24px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-main);
    background: var(--bg-dark-card);
    box-shadow: var(--shadow-main);
    transition: transform var(--transition-main), border-color var(--transition-main);
}

.problem-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-yellow);
}

.problem-card > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    height: 58px;
    margin-bottom: 15px;
    padding-inline: 10px;
    border-radius: 50%;
    background: var(--brand-yellow);
    color: var(--brand-navy);
    font-size: 0.68rem;
    font-weight: 950;
}

.problem-card h3 {
    margin-bottom: 7px;
    font-size: 1.07rem;
}

.problem-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
}
/* ========================================================================== 
   FIN: TARJETAS DEL PROBLEMA
   ========================================================================== */

/* ========================================================================== 
   INICIO: INFOGRAFÍAS WEB
   Marcos responsive con fallback PNG, WebP y pies de imagen accesibles.
   ========================================================================== */
.infographic-wrap {
    margin-top: 8px;
}

.infographic-frame {
    overflow: hidden;
    border: 1px solid var(--border-medium);
    border-radius: 24px;
    background: #050810;
    box-shadow: var(--shadow-main), var(--shadow-yellow);
}

.infographic-frame img {
    width: 100%;
    height: auto;
    aspect-ratio: 1672 / 941;
    object-fit: cover;
}

.infographic-frame figcaption {
    padding: 13px 18px;
    border-top: 1px solid var(--border-soft);
    background: #090d14;
    color: var(--text-muted);
    font-size: 0.84rem;
    text-align: center;
}

.technology-frame {
    border-color: var(--border-yellow);
}

.four-points,
.proof-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 22px;
}

.four-points article,
.proof-card {
    padding: 18px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-soft);
    background: rgba(255, 255, 255, 0.025);
}

.four-points strong,
.proof-card strong {
    display: block;
    margin-bottom: 5px;
    color: var(--brand-yellow);
    font-size: 0.95rem;
}

.four-points span,
.proof-card p {
    color: var(--text-muted);
    font-size: 0.86rem;
}
/* ========================================================================== 
   FIN: INFOGRAFÍAS WEB
   ========================================================================== */

/* ========================================================================== 
   INICIO: INSTALACIÓN Y TECNOLOGÍA
   Tarjetas para los dos escenarios y nota de confidencialidad técnica.
   ========================================================================== */
.scenario-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-top: 22px;
}

.scenario-card {
    padding: 28px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-main);
    background: var(--bg-dark-card);
    box-shadow: var(--shadow-main);
}

.scenario-label {
    display: inline-flex;
    margin-bottom: 15px;
    padding: 7px 12px;
    border: 1px solid var(--border-yellow);
    border-radius: 999px;
    background: var(--brand-yellow-soft);
    color: var(--brand-yellow);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.scenario-card h3 {
    margin-bottom: 12px;
    font-size: 1.22rem;
}

.scenario-card ul {
    display: grid;
    gap: 10px;
    list-style: none;
}

.scenario-card li {
    position: relative;
    padding-left: 23px;
    color: var(--text-soft);
    font-size: 0.94rem;
}

.scenario-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--brand-yellow);
    font-weight: 950;
}

.technology-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 22px;
    padding: 18px 22px;
    border: 1px solid var(--border-yellow);
    border-radius: var(--radius-soft);
    background: var(--brand-yellow-soft);
    text-align: center;
}

.technology-notice strong {
    color: var(--brand-yellow);
}

.technology-notice span {
    color: var(--text-soft);
}
/* ========================================================================== 
   FIN: INSTALACIÓN Y TECNOLOGÍA
   ========================================================================== */

/* ========================================================================== 
   INICIO: USO REAL Y RESPUESTA
   Chips de usos y bloque compacto sobre estabilidad y latencia percibida.
   ========================================================================== */
.usage-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}

.usage-chips span {
    padding: 10px 15px;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-soft);
    font-size: 0.88rem;
    font-weight: 750;
}

.response-panel {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 42px;
    align-items: center;
    padding: 34px;
    border: 1px solid var(--border-yellow);
    border-radius: var(--radius-main);
    background: linear-gradient(135deg, rgba(0, 34, 68, 0.42), var(--brand-yellow-soft));
    box-shadow: var(--shadow-main);
}

.response-panel ul {
    display: grid;
    gap: 12px;
    list-style: none;
}

.response-panel li {
    position: relative;
    padding-left: 26px;
    color: var(--text-soft);
    font-weight: 750;
}

.response-panel li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--brand-yellow);
    font-weight: 950;
}
/* ========================================================================== 
   FIN: USO REAL Y RESPUESTA
   ========================================================================== */

/* ========================================================================== 
   INICIO: TARIFAS
   Tres tarjetas de precio, con énfasis visual en la opción intermedia.
   ========================================================================== */
.pricing-section {
    background: linear-gradient(180deg, #090c12 0%, #0d121b 100%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.price-card {
    display: flex;
    flex-direction: column;
    padding: 30px 28px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-main);
    background: var(--bg-dark-card);
    box-shadow: var(--shadow-main);
    transition: transform var(--transition-main), border-color var(--transition-main), box-shadow var(--transition-main);
}

.price-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-yellow);
}

.featured-plan {
    border: 2px solid var(--brand-yellow);
    background: radial-gradient(circle at top, rgba(0, 52, 93, 0.55), var(--bg-dark-card) 60%);
    box-shadow: var(--shadow-main), var(--shadow-yellow);
    transform: translateY(-8px);
}

.featured-plan:hover {
    transform: translateY(-12px);
}

.plan-tag {
    align-self: flex-start;
    margin-bottom: 16px;
    padding: 8px 12px;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.featured-tag {
    border-color: var(--border-yellow);
    background: var(--brand-yellow-soft);
    color: var(--brand-yellow);
}

.price-card h3 {
    margin-bottom: 7px;
    font-size: 2.4rem;
    font-weight: 950;
    line-height: 1;
}

.price-card h3 small {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.8px;
}

.price-big {
    margin-bottom: 14px;
    color: var(--brand-yellow);
    font-size: 2rem;
    font-weight: 950;
}

.price-big span {
    margin-left: 4px;
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 750;
}

.price-card > p {
    margin-bottom: 18px;
    color: var(--text-muted);
    font-size: 0.94rem;
}

.price-card ul {
    display: grid;
    gap: 10px;
    margin-bottom: 22px;
    list-style: none;
}

.price-card li {
    position: relative;
    padding-left: 23px;
    color: var(--text-soft);
    font-size: 0.9rem;
}

.price-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--brand-yellow);
    font-weight: 950;
}

.price-card .small-btn {
    margin-top: auto;
}

.pricing-disclaimer {
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 0.84rem;
    text-align: center;
}
/* ========================================================================== 
   FIN: TARIFAS
   ========================================================================== */

/* ========================================================================== 
   INICIO: COMPARATIVA DE PRECIOS Y CAPACIDAD
   Mantiene el desenfoque ambiental y recupera el borde rojo al pasar
   sobre las tarjetas de opciones más limitadas.
   ========================================================================== */
.compare-section {
    background: var(--bg-dark-pure);
}

.grid-comparativo {
    display: grid;
    grid-template-columns: 1fr 1.35fr 1fr;
    gap: 28px;
    align-items: center;
}

.card-competitor,
.card-uep-premium {
    border-radius: var(--radius-main);
    box-shadow: var(--shadow-main);
}

.card-competitor {
    padding: 34px 24px;
    border: 1px solid var(--border-soft);
    background: var(--bg-dark-card);
    text-align: center;
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease, filter 300ms ease;
}

.card-competitor .status-icon {
    margin-bottom: 9px;
    color: var(--text-muted);
    font-size: 2rem;
    font-weight: 950;
    opacity: 0.72;
    transition: color var(--transition-main), text-shadow var(--transition-main), opacity var(--transition-main);
}

.card-competitor h3 {
    margin-bottom: 24px;
    font-size: 1.16rem;
}

.price-lines .line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-block: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    color: var(--text-muted);
    font-size: 0.94rem;
}

.price-lines strong {
    color: var(--text-soft);
    white-space: nowrap;
}

.warning-footer {
    margin-top: 18px;
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 750;
}

.grid-comparativo:hover .card-competitor:not(:hover) {
    filter: blur(1px) brightness(0.76);
}

.card-competitor:hover {
    z-index: 3;
    transform: translateY(-6px);
    filter: none;
    border-color: rgba(255, 67, 56, 0.92);
    box-shadow:
        0 0 0 1px rgba(255, 67, 56, 0.22),
        0 0 30px var(--alert-red-soft),
        var(--shadow-main);
}

.card-competitor:hover .status-icon {
    color: var(--alert-red);
    opacity: 1;
    text-shadow: 0 0 16px rgba(255, 67, 56, 0.55);
}

.card-uep-premium {
    position: relative;
    z-index: 2;
    padding: 48px 32px 34px;
    border: 2px solid var(--brand-yellow);
    background: radial-gradient(120% 120% at top center, rgba(0, 45, 80, 0.95) 0%, #0b1018 72%);
    transition: transform 300ms ease, box-shadow 300ms ease;
}

.card-uep-premium:hover {
    transform: translateY(-5px) scale(1.015);
    box-shadow: var(--shadow-main), 0 0 40px rgba(252, 209, 22, 0.16);
}

.ribbon-best {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    padding: 7px 25px;
    border-radius: 999px;
    background: var(--brand-yellow);
    color: var(--brand-navy);
    box-shadow: 0 10px 24px rgba(252, 209, 22, 0.25);
    font-size: 0.79rem;
    font-weight: 950;
    white-space: nowrap;
}

.uep-header {
    margin-bottom: 26px;
    text-align: center;
}

.inner-card-logo {
    width: 102px;
    height: 76px;
    margin: 0 auto 8px;
    object-fit: contain;
}

.tagline {
    color: var(--text-soft);
    font-size: 0.73rem;
    font-weight: 900;
    letter-spacing: 0.75px;
}

.packages-list {
    display: grid;
    gap: 14px;
    margin-bottom: 26px;
}

.pack-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 18px 20px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-soft);
    background: rgba(255, 255, 255, 0.035);
    transition: transform var(--transition-main), background var(--transition-main), border-color var(--transition-main);
}

.pack-row:hover {
    transform: translateX(3px);
    border-color: var(--border-yellow);
    background: var(--brand-yellow-soft);
}

.active-pack {
    border-color: var(--border-yellow);
    background: var(--brand-yellow-soft);
}

.pack-info {
    display: flex;
    align-items: center;
    gap: 11px;
}

.wifi-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
}

.gold-dot {
    background: var(--brand-yellow);
    box-shadow: 0 0 12px var(--brand-yellow);
}

.pack-title {
    font-size: 1.07rem;
    font-weight: 900;
}

.pack-price {
    color: var(--brand-yellow);
    font-size: 1.18rem;
    font-weight: 950;
    white-space: nowrap;
}

.pack-price span {
    margin-left: 3px;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.trust-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.trust-features span {
    position: relative;
    padding-left: 21px;
    color: var(--text-soft);
    font-size: 0.79rem;
}

.trust-features span::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--brand-yellow);
    font-weight: 950;
}

.compare-note {
    margin-top: 22px;
    color: var(--text-muted);
    font-size: 0.82rem;
    text-align: center;
}
/* ========================================================================== 
   FIN: COMPARATIVA DE PRECIOS Y CAPACIDAD
   ========================================================================== */

/* ========================================================================== 
   INICIO: BENEFICIOS
   Seis tarjetas finales de refuerzo comercial y confianza.
   ========================================================================== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.benefit-card {
    padding: 25px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-main);
    background: var(--bg-dark-card);
    box-shadow: var(--shadow-main);
    transition: transform var(--transition-main), border-color var(--transition-main);
}

.benefit-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-yellow);
}

.benefit-card h3 {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.benefit-card p {
    color: var(--text-muted);
    font-size: 0.91rem;
}
/* ========================================================================== 
   FIN: BENEFICIOS
   ========================================================================== */

/* ========================================================================== 
   INICIO: PREGUNTAS FRECUENTES
   Acordeones nativos, accesibles y compatibles sin JavaScript adicional.
   ========================================================================== */
.faq-section {
    background: linear-gradient(180deg, #090c12 0%, #0f141d 100%);
}

.faq-wrapper {
    display: grid;
    gap: 13px;
    max-width: 980px;
}

.faq-item {
    overflow: hidden;
    padding-inline: 20px;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    background: var(--bg-dark-card);
    transition: border-color var(--transition-main), background var(--transition-main);
}

.faq-item[open] {
    border-color: var(--border-yellow);
    background: #121824;
}

.faq-item summary {
    position: relative;
    padding: 20px 34px 20px 0;
    color: var(--text-light);
    font-weight: 850;
    list-style: none;
    cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    top: 17px;
    right: 0;
    color: var(--brand-yellow);
    font-size: 1.25rem;
    font-weight: 950;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item p {
    padding-bottom: 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
}
/* ========================================================================== 
   FIN: PREGUNTAS FRECUENTES
   ========================================================================== */

/* ========================================================================== 
   INICIO: CONTACTO Y FORMULARIO
   Distribución de datos de contacto, campos y feedback de validación.
   ========================================================================== */
.contact-section {
    background: linear-gradient(180deg, var(--bg-dark-pure) 0%, #0b0f16 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items: start;
}

.contact-info-panel .section-number {
    margin-bottom: 18px;
}

.contact-details {
    display: grid;
    gap: 15px;
    margin-top: 28px;
}

.contact-details article {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.contact-details article > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    background: var(--bg-dark-card);
    color: var(--brand-yellow);
    font-weight: 950;
}

.contact-details strong {
    display: block;
    margin-bottom: 2px;
    font-size: 0.9rem;
}

.contact-details a,
.contact-details p {
    color: var(--text-muted);
    font-size: 0.94rem;
    text-decoration: none;
}

.contact-details a:hover {
    color: var(--brand-yellow);
}

.contact-form-box {
    padding: 34px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-main);
    background: var(--bg-dark-card);
    box-shadow: var(--shadow-main);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.form-group {
    display: grid;
    gap: 8px;
    margin-bottom: 17px;
}

.form-group label {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 750;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: #191f2b;
    color: var(--text-light);
    transition: border-color var(--transition-main), box-shadow var(--transition-main), background var(--transition-main);
}

.form-group textarea {
    resize: vertical;
    min-height: 118px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-yellow);
    background: #1d2432;
    box-shadow: 0 0 0 3px var(--brand-yellow-soft);
}

.checkbox-group {
    grid-template-columns: auto 1fr;
    align-items: start;
}

.checkbox-group input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--brand-yellow);
}

.checkbox-group label {
    line-height: 1.5;
}

.form-feedback {
    min-height: 24px;
    margin-bottom: 8px;
    color: var(--brand-yellow);
    font-size: 0.84rem;
}
/* ========================================================================== 
   FIN: CONTACTO Y FORMULARIO
   ========================================================================== */

/* ========================================================================== 
   INICIO: FOOTER Y ENLACE CRUZADO A AIGOPURA BALEAR
   Crea una relación natural entre las dos marcas de Grupo UEP.
   ========================================================================== */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: #05070b;
}

.footer-main {
    display: grid;
    grid-template-columns: 0.9fr 0.65fr 1.2fr;
    gap: 48px;
    align-items: start;
    padding-block: 48px 40px;
}

.footer-uep-logo {
    width: 110px;
    height: 78px;
    object-fit: contain;
    margin-bottom: 10px;
}

.footer-brand p {
    max-width: 330px;
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-phone {
    color: var(--brand-yellow);
    font-size: 1.14rem;
    font-weight: 950;
    text-decoration: none;
}

.footer-navigation h2 {
    margin-bottom: 14px;
    font-size: 1rem;
}

.footer-navigation ul {
    display: grid;
    gap: 8px;
    list-style: none;
}

.footer-navigation a {
    color: var(--text-muted);
    font-size: 0.89rem;
    text-decoration: none;
    transition: color var(--transition-main);
}

.footer-navigation a:hover {
    color: var(--brand-yellow);
}

.footer-aigopura {
    padding: 22px;
    border: 1px solid rgba(67, 191, 17, 0.24);
    border-radius: var(--radius-main);
    background: linear-gradient(135deg, rgba(67, 191, 17, 0.07), rgba(0, 34, 68, 0.2));
}

.footer-eyebrow {
    display: block;
    margin-bottom: 12px;
    color: #77da4f;
    font-size: 0.73rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.aigopura-link {
    display: block;
    text-decoration: none;
}

.aigopura-logo {
    width: min(100%, 360px);
    height: auto;
    margin-bottom: 12px;
    object-fit: contain;
}

.aigopura-link span {
    color: var(--text-muted);
    font-size: 0.86rem;
    transition: color var(--transition-main);
}

.aigopura-link:hover span {
    color: #8bea66;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding-block: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.footer-bottom p {
    color: #798193;
    font-size: 0.79rem;
}
/* ========================================================================== 
   FIN: FOOTER Y ENLACE CRUZADO A AIGOPURA BALEAR
   ========================================================================== */

/* ========================================================================== 
   INICIO: RESPONSIVE · ESCRITORIO MEDIO Y TABLET HORIZONTAL
   Activa menú hamburguesa antes de que la navegación pueda saturarse.
   ========================================================================== */
@media (max-width: 1240px) {
    .menu-toggle {
        display: block;
        order: 3;
    }

    .header-cta {
        margin-left: auto;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        right: 0;
        bottom: 0;
        width: min(440px, 100%);
        padding: 32px;
        background: rgba(7, 9, 14, 0.98);
        backdrop-filter: blur(16px);
        transform: translateX(105%);
        visibility: hidden;
        transition: transform 280ms ease, visibility 280ms ease;
        overflow-y: auto;
        box-shadow: -20px 0 55px rgba(0, 0, 0, 0.45);
    }

    .nav-links.active {
        transform: translateX(0);
        visibility: visible;
    }

    .nav-links ul {
        display: grid;
        gap: 2px;
    }

    .nav-links a {
        width: 100%;
        padding: 14px 6px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.055);
        font-size: 1rem;
    }

    .nav-links a::after {
        display: none;
    }

    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .grid-comparativo {
        grid-template-columns: 1fr;
        max-width: 720px;
    }

    .card-uep-premium {
        order: -1;
    }

    .grid-comparativo:hover .card-competitor:not(:hover) {
        filter: none;
    }
}
/* ========================================================================== 
   FIN: RESPONSIVE · ESCRITORIO MEDIO Y TABLET HORIZONTAL
   ========================================================================== */

/* ========================================================================== 
   INICIO: RESPONSIVE · TABLET
   Reorganiza grids y reduce espacios para pantallas medianas.
   ========================================================================== */
@media (max-width: 900px) {
    .trust-strip-grid,
    .problem-grid,
    .four-points,
    .proof-grid,
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .scenario-grid,
    .pricing-grid,
    .contact-grid,
    .response-panel,
    .footer-main {
        grid-template-columns: 1fr;
    }

    .featured-plan,
    .featured-plan:hover {
        transform: none;
    }

    .response-panel {
        gap: 24px;
    }

    .footer-main {
        gap: 30px;
    }

    .footer-navigation ul {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* ========================================================================== 
   FIN: RESPONSIVE · TABLET
   ========================================================================== */

/* ========================================================================== 
   INICIO: RESPONSIVE · MÓVIL
   Ajusta tipografía, botones, formularios, tablas visuales y footer.
   ========================================================================== */
@media (max-width: 640px) {
    :root {
        --header-height: 76px;
    }

    .container {
        width: min(100% - 28px, 1260px);
    }

    .site-header {
        height: var(--header-height);
    }

    .main-logo {
        width: 78px;
        height: 54px;
    }

    .header-cta {
        display: none;
    }

    .hero-content {
        padding-block: 70px 50px;
    }

    .hero-content h1 {
        letter-spacing: -0.8px;
    }

    .hero-actions {
        display: grid;
    }

    .hero-actions a {
        width: 100%;
    }

    .hero-bullets {
        display: grid;
    }

    .trust-strip-grid,
    .problem-grid,
    .four-points,
    .proof-grid,
    .benefits-grid,
    .form-row {
        grid-template-columns: 1fr;
    }

    .section-heading {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .section-number {
        width: 50px;
        height: 50px;
        border-radius: 15px;
        font-size: 1.08rem;
    }

    .technology-notice {
        display: grid;
    }

    .infographic-frame {
        border-radius: 15px;
    }

    .infographic-frame figcaption {
        text-align: left;
    }

    .pack-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .trust-features {
        grid-template-columns: 1fr;
    }

    .contact-form-box {
        padding: 24px 18px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

    .floating-actions {
        right: 10px;
        bottom: 12px;
    }

    .floating-action {
        min-height: 42px;
        padding: 9px 13px;
        font-size: 0.77rem;
    }
}
/* ========================================================================== 
   FIN: RESPONSIVE · MÓVIL
   ========================================================================== */

/* ========================================================================== 
   INICIO: PREFERENCIA DE MOVIMIENTO REDUCIDO
   Respeta a usuarios que desactivan animaciones en su sistema.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* ========================================================================== 
   FIN: PREFERENCIA DE MOVIMIENTO REDUCIDO
   ========================================================================== */


/* ========================================================================== 
   INICIO: REFINAMIENTO VISUAL 2026-07-14
   Refuerza los apartados que antes podían verse planos por caché o por
   diferencias entre versiones del HTML y la hoja de estilos.
   ========================================================================== */

/* Cabecera más ancha para que el menú no se parta en dos líneas */
.site-header .header-container {
    width: min(100% - 48px, 1680px);
}

.nav-links a {
    white-space: nowrap;
}

/* Separación y profundidad entre bloques */
.visual-section,
.response-section,
.contact-section {
    position: relative;
    isolation: isolate;
}

.visual-section::before,
.response-section::before,
.contact-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at 50% 0%, rgba(252, 209, 22, 0.045), transparent 42%);
}

/* Tarjetas del problema: iconos, profundidad y lectura inmediata */
.problem-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 20px !important;
}

.problem-card {
    display: grid !important;
    grid-template-columns: 62px minmax(0, 1fr) !important;
    gap: 16px !important;
    align-items: start !important;
    min-height: 168px;
    padding: 24px !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-radius: 18px !important;
    background: linear-gradient(145deg, rgba(18, 24, 36, 0.98), rgba(8, 13, 21, 0.98)) !important;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.34) !important;
}

.problem-card:hover {
    transform: translateY(-5px);
    border-color: rgba(252, 209, 22, 0.48) !important;
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.42), 0 0 26px rgba(252, 209, 22, 0.07) !important;
}

.problem-icon,
.tile-icon,
.contact-icon,
.response-benefit-card > span {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.problem-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 58px !important;
    min-width: 58px !important;
    height: 58px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(252, 209, 22, 0.34);
    border-radius: 16px !important;
    background: rgba(252, 209, 22, 0.10) !important;
    color: inherit !important;
    font-size: 1.65rem !important;
    box-shadow: inset 0 0 20px rgba(252, 209, 22, 0.04);
}

.problem-card-copy h3 {
    margin: 1px 0 7px;
    color: var(--text-light);
    font-size: 1.04rem;
}

.problem-card-copy p {
    color: var(--text-muted);
    font-size: 0.91rem;
    line-height: 1.58;
}

.statement-box-emphasis {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.statement-icon {
    font-size: 1.25rem;
}

/* Tarjetas explicativas bajo las infografías */
.four-points,
.proof-grid,
.visual-points {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
    margin-top: 24px !important;
}

.info-tile,
.four-points article,
.proof-card {
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) !important;
    gap: 13px !important;
    align-items: start !important;
    min-height: 126px;
    padding: 19px !important;
    border: 1px solid rgba(255, 255, 255, 0.085) !important;
    border-radius: 15px !important;
    background: linear-gradient(145deg, rgba(18, 24, 36, 0.94), rgba(8, 13, 21, 0.95)) !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
}

.info-tile:hover,
.four-points article:hover,
.proof-card:hover {
    border-color: rgba(252, 209, 22, 0.42) !important;
    transform: translateY(-3px);
}

.tile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(252, 209, 22, 0.10);
    border: 1px solid rgba(252, 209, 22, 0.28);
    font-size: 1.35rem;
}

.info-tile strong,
.four-points strong,
.proof-card strong {
    display: block;
    margin-bottom: 5px;
    color: var(--brand-yellow) !important;
    font-size: 0.96rem;
}

.info-tile span:not(.tile-icon),
.info-tile p,
.four-points span:not(.tile-icon),
.proof-card p {
    display: block;
    color: var(--text-muted) !important;
    font-size: 0.86rem;
    line-height: 1.55;
}

/* Bloque de experiencia: elimina la apariencia de texto plano */
.response-panel {
    display: grid !important;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr) !important;
    gap: 38px !important;
    align-items: center;
    padding: 38px !important;
    border: 1px solid rgba(252, 209, 22, 0.34) !important;
    border-radius: 22px !important;
    background: linear-gradient(135deg, rgba(0, 42, 76, 0.66), rgba(11, 16, 24, 0.98)) !important;
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.39), 0 0 34px rgba(252, 209, 22, 0.055) !important;
}

.response-copy p {
    color: var(--text-muted);
}

.response-highlight {
    margin-top: 16px;
    padding: 13px 15px;
    border-left: 3px solid var(--brand-yellow);
    border-radius: 0 10px 10px 0;
    background: rgba(252, 209, 22, 0.07);
    color: var(--text-soft) !important;
    font-weight: 700;
}

.response-benefits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.response-benefit-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    min-height: 116px;
    padding: 17px;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.035);
}

.response-benefit-card:hover {
    border-color: rgba(252, 209, 22, 0.38);
    background: rgba(252, 209, 22, 0.055);
}

.response-benefit-card > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: rgba(252, 209, 22, 0.10);
    font-size: 1.25rem;
}

.response-benefit-card strong,
.response-benefit-card small {
    display: block;
}

.response-benefit-card strong {
    margin-bottom: 4px;
    color: var(--text-light);
    font-size: 0.91rem;
}

.response-benefit-card small {
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.48;
}

/* Contacto: paneles, iconos y formulario con presencia comercial */
.contact-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr) !important;
    gap: 34px !important;
    align-items: stretch !important;
}

.contact-card,
.contact-form-box {
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-radius: 22px !important;
    background: linear-gradient(145deg, rgba(18, 24, 36, 0.98), rgba(8, 13, 21, 0.98)) !important;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.38) !important;
}

.contact-card {
    padding: 34px;
}

.contact-heading-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    margin-bottom: 8px;
}

.contact-heading-row .section-number {
    margin: 0;
}

.contact-details {
    display: grid !important;
    gap: 13px !important;
    margin-top: 26px !important;
}

.contact-details article {
    display: grid !important;
    grid-template-columns: 52px minmax(0, 1fr) !important;
    gap: 14px !important;
    align-items: center !important;
    padding: 15px !important;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
}

.contact-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 50px !important;
    height: 50px !important;
    border-radius: 14px !important;
    background: rgba(252, 209, 22, 0.10) !important;
    border-color: rgba(252, 209, 22, 0.27) !important;
    font-size: 1.28rem;
}

.contact-details strong {
    color: var(--text-light);
    font-size: 0.91rem;
}

.contact-details a,
.contact-details p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.contact-assurance {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 22px;
    padding: 15px;
    border: 1px solid rgba(88, 212, 124, 0.22);
    border-radius: 14px;
    background: rgba(88, 212, 124, 0.055);
}

.contact-assurance p {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.contact-assurance strong {
    color: var(--success-green);
}

.form-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 22px;
    padding-bottom: 17px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.form-heading > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(252, 209, 22, 0.10);
    font-size: 1.3rem;
}

.form-heading strong,
.form-heading small {
    display: block;
}

.form-heading strong {
    color: var(--text-light);
    font-size: 1rem;
}

.form-heading small {
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* Footer: logos contenidos, Aigopura visible y relación de marcas clara */
.footer-main {
    display: grid !important;
    grid-template-columns: minmax(0, 0.72fr) minmax(190px, 0.55fr) minmax(360px, 1.25fr) !important;
    gap: 28px !important;
    align-items: stretch !important;
}

.footer-column-card,
.footer-aigopura {
    min-height: 100%;
    padding: 24px !important;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.025);
}

.footer-logo-link {
    display: inline-flex;
}

.footer-uep-logo {
    width: 96px !important;
    max-width: 96px !important;
    height: auto !important;
    max-height: 76px !important;
    object-fit: contain !important;
}

.footer-aigopura {
    border-color: rgba(67, 191, 17, 0.28) !important;
    background: linear-gradient(145deg, rgba(67, 191, 17, 0.075), rgba(0, 34, 68, 0.18)) !important;
}

.aigopura-link {
    display: grid !important;
    gap: 12px;
}

.aigopura-logo {
    width: 300px !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 96px !important;
    margin: 0 !important;
    object-fit: contain !important;
    object-position: left center;
}

.aigopura-copy {
    color: var(--text-muted) !important;
    font-size: 0.86rem !important;
    line-height: 1.55;
}

.aigopura-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #8bea66 !important;
    font-size: 0.84rem !important;
    font-weight: 800;
}

/* Responsive de los nuevos elementos */
@media (max-width: 1480px) {
    .menu-toggle {
        display: block;
        order: 3;
    }

    .header-cta {
        margin-left: auto;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        right: 0;
        bottom: 0;
        width: min(440px, 100%);
        padding: 32px;
        background: rgba(7, 9, 14, 0.985);
        backdrop-filter: blur(16px);
        transform: translateX(105%);
        visibility: hidden;
        transition: transform 280ms ease, visibility 280ms ease;
        overflow-y: auto;
        box-shadow: -20px 0 55px rgba(0, 0, 0, 0.45);
    }

    .nav-links.active {
        transform: translateX(0);
        visibility: visible;
    }

    .nav-links ul {
        display: grid;
        gap: 2px;
    }

    .nav-links a {
        width: 100%;
        padding: 14px 6px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.055);
        font-size: 1rem;
    }

    .nav-links a::after {
        display: none;
    }
}

@media (max-width: 1050px) {
    .problem-grid,
    .four-points,
    .proof-grid,
    .visual-points {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .response-panel,
    .contact-grid,
    .footer-main {
        grid-template-columns: 1fr !important;
    }

    .footer-aigopura {
        max-width: 720px;
    }
}

@media (max-width: 640px) {
    .problem-grid,
    .four-points,
    .proof-grid,
    .visual-points,
    .response-benefits {
        grid-template-columns: 1fr !important;
    }

    .problem-card,
    .info-tile,
    .four-points article,
    .proof-card {
        min-height: 0;
    }

    .problem-card {
        grid-template-columns: 54px minmax(0, 1fr) !important;
        padding: 20px !important;
    }

    .problem-icon {
        width: 52px !important;
        min-width: 52px !important;
        height: 52px !important;
    }

    .response-panel,
    .contact-card {
        padding: 24px 19px !important;
    }

    .contact-heading-row {
        grid-template-columns: 1fr;
    }

    .footer-column-card,
    .footer-aigopura {
        padding: 20px !important;
    }
}
/* ========================================================================== 
   FIN: REFINAMIENTO VISUAL 2026-07-14
   ========================================================================== */


/* ========================================================================== 
   INICIO: AJUSTES OPERATIVOS Y VISUALES · VERSIÓN 2026-07-14-4
   Soluciona la imagen de portada mediante una etiqueta IMG real, aumenta la
   legibilidad de iconos y añade microinteracciones a tarjetas y usos.
   Este bloque se mantiene al final para tener prioridad sobre estilos previos.
   ========================================================================== */

/* --------------------------------------------------------------------------
   PORTADA: IMAGEN DE MALLORCA GARANTIZADA
   La imagen se coloca físicamente dentro del HTML. Si falla el JPG, el propio
   elemento cambia automáticamente al PNG mediante el atributo onerror.
   -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: #07090e !important;
    background-image: none !important;
}

.hero-background-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
    filter: saturate(0.94) contrast(1.04) brightness(0.92);
    transform: scale(1.002);
}

.hero-overlay {
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(4, 7, 12, 0.78) 0%, rgba(4, 7, 12, 0.50) 52%, rgba(4, 7, 12, 0.18) 100%),
        linear-gradient(180deg, rgba(7, 9, 14, 0.12) 0%, rgba(7, 9, 14, 0.78) 100%) !important;
}

.hero-content {
    z-index: 2;
}

/* --------------------------------------------------------------------------
   TARJETAS DEL PROBLEMA: ICONOS MÁS VISIBLES
   -------------------------------------------------------------------------- */
.problem-card {
    grid-template-columns: 78px minmax(0, 1fr) !important;
    align-items: center !important;
}

.problem-icon {
    width: 72px !important;
    min-width: 72px !important;
    height: 72px !important;
    border-radius: 20px !important;
    font-size: 2.2rem !important;
    line-height: 1 !important;
    background: linear-gradient(145deg, rgba(252, 209, 22, 0.20), rgba(252, 209, 22, 0.07)) !important;
    box-shadow: inset 0 0 22px rgba(252, 209, 22, 0.08), 0 8px 20px rgba(0, 0, 0, 0.22) !important;
    transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.problem-card:hover .problem-icon {
    transform: translateY(-3px) scale(1.08) rotate(-3deg);
    border-color: rgba(252, 209, 22, 0.75);
    box-shadow: inset 0 0 26px rgba(252, 209, 22, 0.12), 0 0 28px rgba(252, 209, 22, 0.14) !important;
}

/* --------------------------------------------------------------------------
   TARJETAS DE FUNCIONAMIENTO Y COBERTURA: ICONOS GRANDES Y TEXTO SEPARADO
   -------------------------------------------------------------------------- */
.info-tile,
.four-points article,
.proof-card {
    grid-template-columns: 70px minmax(0, 1fr) !important;
    align-items: center !important;
    min-height: 144px !important;
    transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease, background 260ms ease;
}

.tile-icon {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    border-radius: 19px !important;
    font-size: 2rem !important;
    line-height: 1 !important;
    background: linear-gradient(145deg, rgba(252, 209, 22, 0.19), rgba(252, 209, 22, 0.055)) !important;
    box-shadow: inset 0 0 20px rgba(252, 209, 22, 0.06), 0 8px 18px rgba(0, 0, 0, 0.20);
    transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.info-tile:hover,
.four-points article:hover,
.proof-card:hover {
    transform: translateY(-6px) !important;
    border-color: rgba(252, 209, 22, 0.62) !important;
    background: linear-gradient(145deg, rgba(22, 31, 45, 0.98), rgba(9, 15, 24, 0.98)) !important;
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.38), 0 0 28px rgba(252, 209, 22, 0.075) !important;
}

.info-tile:hover .tile-icon,
.four-points article:hover .tile-icon,
.proof-card:hover .tile-icon {
    transform: scale(1.10) rotate(-4deg);
    border-color: rgba(252, 209, 22, 0.74);
    box-shadow: inset 0 0 24px rgba(252, 209, 22, 0.10), 0 0 24px rgba(252, 209, 22, 0.13);
}

.tile-copy h3 {
    margin: 0 0 7px;
    color: var(--brand-yellow);
    font-size: 1.04rem;
    line-height: 1.24;
}

.tile-copy p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.91rem;
    line-height: 1.58;
}

/* --------------------------------------------------------------------------
   USOS HABITUALES: PÍLDORAS CON ICONO Y EFECTO VISUAL AL PASAR EL RATÓN
   -------------------------------------------------------------------------- */
#uso-real {
    padding-bottom: 62px;
}

.usage-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
}

.usage-chips .usage-chip {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 11px 18px 11px 13px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;
    background: linear-gradient(145deg, rgba(18, 24, 36, 0.96), rgba(8, 13, 21, 0.96));
    color: var(--text-soft);
    font-size: 0.92rem;
    font-weight: 850;
    cursor: default;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    transition: transform 260ms ease, border-color 260ms ease, color 260ms ease, box-shadow 260ms ease, background 260ms ease;
}

.usage-chips .usage-chip::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 15%, rgba(252, 209, 22, 0.15) 48%, transparent 72%);
    transform: translateX(-125%);
    transition: transform 520ms ease;
}

.usage-chip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(252, 209, 22, 0.26);
    border-radius: 50%;
    background: rgba(252, 209, 22, 0.10);
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-size: 1.35rem;
    line-height: 1;
    transition: transform 260ms ease, background 260ms ease, box-shadow 260ms ease;
}

.usage-chips .usage-chip:hover {
    transform: translateY(-6px) scale(1.035);
    border-color: rgba(252, 209, 22, 0.72);
    background: linear-gradient(145deg, rgba(30, 39, 54, 0.98), rgba(10, 18, 29, 0.98));
    color: var(--brand-yellow);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34), 0 0 24px rgba(252, 209, 22, 0.11);
}

.usage-chips .usage-chip:hover::after {
    transform: translateX(125%);
}

.usage-chips .usage-chip:hover .usage-chip-icon {
    transform: scale(1.15) rotate(-7deg);
    background: rgba(252, 209, 22, 0.18);
    box-shadow: 0 0 20px rgba(252, 209, 22, 0.16);
}

/* --------------------------------------------------------------------------
   EXPERIENCIA DE USO: ICONOS MAYORES, TEXTO LIMPIO Y HOVER PREMIUM
   -------------------------------------------------------------------------- */
.response-section {
    padding-top: 24px;
}

.response-benefits {
    gap: 16px !important;
}

.response-benefit-card {
    grid-template-columns: 66px minmax(0, 1fr) !important;
    align-items: center !important;
    min-height: 136px !important;
    padding: 20px !important;
    transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease, background 260ms ease;
}

.response-benefit-card .response-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 60px !important;
    height: 60px !important;
    min-width: 60px;
    border: 1px solid rgba(252, 209, 22, 0.32);
    border-radius: 18px !important;
    background: linear-gradient(145deg, rgba(252, 209, 22, 0.19), rgba(252, 209, 22, 0.055)) !important;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-size: 1.9rem !important;
    line-height: 1;
    box-shadow: inset 0 0 20px rgba(252, 209, 22, 0.06);
    transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.response-benefit-card h3 {
    margin: 0 0 7px;
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.25;
}

.response-benefit-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.52;
}

.response-benefit-card:hover {
    transform: translateY(-6px);
    border-color: rgba(252, 209, 22, 0.62);
    background: rgba(252, 209, 22, 0.075);
    box-shadow: 0 20px 38px rgba(0, 0, 0, 0.32), 0 0 24px rgba(252, 209, 22, 0.08);
}

.response-benefit-card:hover .response-icon {
    transform: scale(1.10) rotate(-5deg);
    border-color: rgba(252, 209, 22, 0.75);
    box-shadow: inset 0 0 24px rgba(252, 209, 22, 0.10), 0 0 22px rgba(252, 209, 22, 0.13);
}

/* Contacto: iconos ligeramente mayores y más claros */
.contact-icon {
    width: 58px !important;
    height: 58px !important;
    font-size: 1.65rem !important;
}

/* --------------------------------------------------------------------------
   ADAPTACIÓN RESPONSIVE DE LOS NUEVOS ICONOS
   -------------------------------------------------------------------------- */
@media (max-width: 1050px) {
    .problem-card {
        grid-template-columns: 72px minmax(0, 1fr) !important;
    }
}

@media (max-width: 640px) {
    .problem-card,
    .info-tile,
    .four-points article,
    .proof-card,
    .response-benefit-card {
        grid-template-columns: 58px minmax(0, 1fr) !important;
    }

    .problem-icon,
    .tile-icon,
    .response-benefit-card .response-icon {
        width: 54px !important;
        min-width: 54px !important;
        height: 54px !important;
        border-radius: 16px !important;
        font-size: 1.65rem !important;
    }

    .usage-chips {
        justify-content: flex-start;
    }

    .usage-chips .usage-chip {
        min-height: 54px;
        padding-right: 15px;
    }
}

/* ========================================================================== 
   FIN: AJUSTES OPERATIVOS Y VISUALES · VERSIÓN 2026-07-14-4
   ========================================================================== */

/* ========================================================================== 
   INICIO: CORRECCIÓN FINAL DEL MENÚ DE ESCRITORIO · VERSIÓN 5
   Mantiene visible la navegación completa en ordenadores y portátiles.
   El menú hamburguesa se reserva únicamente para pantallas de 1120 px o menos.
   ========================================================================== */

/* Cabecera más aprovechada para que todos los enlaces quepan en una sola línea */
.site-header .container {
    width: min(100% - 28px, 1680px);
}

/* Ajuste compacto, legible y equilibrado del menú de escritorio */
.nav-links ul {
    gap: clamp(10px, 1.05vw, 18px);
}

.nav-links a {
    font-size: clamp(0.76rem, 0.76vw, 0.86rem);
    font-weight: 780;
}

.header-cta .btn-yellow {
    min-width: 220px;
    padding-inline: 20px;
    white-space: nowrap;
}

/*
   RESTAURACIÓN DEL MENÚ COMPLETO EN ESCRITORIO.
   Estas reglas anulan los breakpoints anteriores que activaban el menú móvil
   demasiado pronto en pantallas de portátiles o con zoom del navegador.
*/
@media (min-width: 1121px) {
    .site-header {
        height: var(--header-height);
    }

    .header-flex {
        display: grid;
        grid-template-columns: 105px minmax(0, 1fr) auto;
        align-items: center;
        gap: 18px;
    }

    .logo-container {
        grid-column: 1;
    }

    .main-logo {
        width: 92px;
        height: 62px;
    }

    .menu-toggle {
        display: none !important;
    }

    .nav-links {
        position: static !important;
        inset: auto !important;
        grid-column: 2;
        width: auto !important;
        min-width: 0;
        height: auto !important;
        padding: 0 !important;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        transform: none !important;
        visibility: visible !important;
        opacity: 1 !important;
        overflow: visible !important;
        box-shadow: none !important;
    }

    .nav-links ul {
        display: flex !important;
        align-items: center;
        justify-content: center;
        flex-wrap: nowrap;
        gap: clamp(9px, 0.95vw, 17px);
    }

    .nav-links a {
        width: auto !important;
        padding: 11px 0 !important;
        border-bottom: 0 !important;
        font-size: clamp(0.73rem, 0.74vw, 0.84rem) !important;
        white-space: nowrap;
    }

    .nav-links a::after {
        display: block !important;
    }

    .header-cta {
        display: flex !important;
        grid-column: 3;
        margin-left: 0 !important;
    }
}

/*
   MENÚ MÓVIL Y TABLET.
   Solo se activa cuando realmente falta espacio horizontal.
*/
@media (max-width: 1120px) {
    .header-flex {
        display: flex;
    }

    .menu-toggle {
        display: block !important;
        order: 3;
        flex: 0 0 34px;
    }

    .header-cta {
        display: flex !important;
        margin-left: auto;
    }

    .header-cta .btn-yellow {
        min-width: 0;
    }

    .nav-links {
        position: fixed !important;
        top: var(--header-height) !important;
        right: 0 !important;
        bottom: 0 !important;
        left: auto !important;
        width: min(440px, 100%) !important;
        height: auto !important;
        padding: 32px !important;
        background: rgba(7, 9, 14, 0.985) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        transform: translateX(105%) !important;
        visibility: hidden !important;
        opacity: 0 !important;
        overflow-y: auto !important;
        box-shadow: -20px 0 55px rgba(0, 0, 0, 0.45) !important;
        transition: transform 280ms ease, visibility 280ms ease, opacity 280ms ease !important;
    }

    .nav-links.active {
        transform: translateX(0) !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .nav-links ul {
        display: grid !important;
        gap: 2px !important;
    }

    .nav-links a {
        width: 100% !important;
        padding: 14px 6px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.055) !important;
        font-size: 1rem !important;
        white-space: normal;
    }

    .nav-links a::after {
        display: none !important;
    }
}

/* En móviles pequeños, se conserva el botón sin comprimir la cabecera */
@media (max-width: 640px) {
    .site-header .container {
        width: min(100% - 22px, 1680px);
    }

    .header-cta .btn-yellow {
        min-height: 42px;
        padding-inline: 14px;
        font-size: 0.72rem;
    }
}

/* ========================================================================== 
   FIN: CORRECCIÓN FINAL DEL MENÚ DE ESCRITORIO · VERSIÓN 5
   ========================================================================== */


/* ========================================================================== 
   INICIO: MENÚ MÓVIL Y TABLET FUNCIONAL · VERSIÓN 6
   El panel se posiciona de forma absoluta bajo la cabecera fija. Esto evita
   que el backdrop-filter de la cabecera limite la altura del menú y garantiza
   que todos los enlaces sean visibles y desplazables en móvil y tablet.
   ========================================================================== */
@media (max-width: 1120px) {
    /* La cabecera conserva logo, CTA y botón hamburguesa en una sola línea. */
    .site-header {
        overflow: visible !important;
    }

    .header-flex {
        position: static !important;
        min-height: var(--header-height);
    }

    .menu-toggle {
        position: relative;
        z-index: 1420;
        display: inline-flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        margin-left: 4px;
        padding: 7px;
        border: 1px solid rgba(255, 255, 255, 0.10);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.035);
    }

    .menu-toggle .bar {
        width: 27px;
        height: 3px;
        margin: 0 !important;
        transform-origin: center;
    }

    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg) !important;
    }

    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0 !important;
        transform: scaleX(0.25) !important;
    }

    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg) !important;
    }

    /* Panel completo bajo la cabecera. Se usa absolute porque la cabecera
       tiene backdrop-filter y puede alterar el comportamiento de fixed. */
    .nav-links {
        position: absolute !important;
        top: 100% !important;
        right: 0 !important;
        bottom: auto !important;
        left: 0 !important;
        z-index: 1390 !important;
        width: 100vw !important;
        max-width: none !important;
        height: calc(100dvh - var(--header-height)) !important;
        max-height: calc(100dvh - var(--header-height)) !important;
        padding: 22px 18px 34px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.07);
        background:
            radial-gradient(circle at 82% 8%, rgba(252, 209, 22, 0.09), transparent 30%),
            rgba(7, 9, 14, 0.992) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        transform: translateY(-14px) !important;
        transform-origin: top center;
        visibility: hidden !important;
        opacity: 0 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        box-shadow: 0 26px 60px rgba(0, 0, 0, 0.58) !important;
        pointer-events: none;
        transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease !important;
    }

    .nav-links.active {
        transform: translateY(0) !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto;
    }

    /* Dos columnas en tablet para mostrar todo el recorrido sin recortes. */
    .nav-links ul {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px !important;
        width: min(100%, 760px);
        margin: 0 auto;
        padding: 0 0 28px;
        list-style: none;
    }

    .nav-links li {
        min-width: 0;
    }

    .nav-links a {
        position: relative;
        display: flex !important;
        align-items: center;
        min-height: 64px;
        width: 100% !important;
        padding: 15px 18px !important;
        border: 1px solid rgba(255, 255, 255, 0.085) !important;
        border-radius: 14px;
        background: linear-gradient(145deg, rgba(18, 24, 36, 0.98), rgba(9, 13, 21, 0.98));
        color: var(--text-soft) !important;
        font-size: 1rem !important;
        font-weight: 850 !important;
        line-height: 1.25;
        white-space: normal !important;
        text-decoration: none;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.20);
        transition: transform 200ms ease, border-color 200ms ease, color 200ms ease, background 200ms ease, box-shadow 200ms ease;
    }

    .nav-links a::before {
        content: "";
        flex: 0 0 10px;
        width: 10px;
        height: 10px;
        margin-right: 12px;
        border: 2px solid rgba(252, 209, 22, 0.62);
        border-radius: 50%;
        background: transparent;
        box-shadow: 0 0 0 rgba(252, 209, 22, 0);
        transition: background 200ms ease, box-shadow 200ms ease, transform 200ms ease;
    }

    .nav-links a::after {
        display: none !important;
    }

    .nav-links a:hover,
    .nav-links a:focus-visible,
    .nav-links a.active {
        transform: translateY(-2px);
        border-color: rgba(252, 209, 22, 0.58) !important;
        background: linear-gradient(145deg, rgba(32, 41, 56, 0.99), rgba(13, 20, 31, 0.99));
        color: var(--brand-yellow) !important;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.30), 0 0 20px rgba(252, 209, 22, 0.08);
    }

    .nav-links a:hover::before,
    .nav-links a:focus-visible::before,
    .nav-links a.active::before {
        background: var(--brand-yellow);
        box-shadow: 0 0 15px rgba(252, 209, 22, 0.46);
        transform: scale(1.08);
    }

    /* Impide que el contenido de la página se mueva mientras el menú está abierto. */
    body.menu-open {
        overflow: hidden !important;
        touch-action: none;
    }
}

/* En teléfonos, una sola columna y enlaces más compactos para facilitar el uso. */
@media (max-width: 640px) {
    .nav-links {
        padding: 16px 14px 30px !important;
    }

    .nav-links ul {
        grid-template-columns: 1fr !important;
        gap: 9px !important;
        width: 100%;
    }

    .nav-links a {
        min-height: 52px;
        padding: 12px 15px !important;
        border-radius: 12px;
        font-size: 0.96rem !important;
    }

    .nav-links a::before {
        flex-basis: 9px;
        width: 9px;
        height: 9px;
        margin-right: 11px;
    }
}
/* ========================================================================== 
   FIN: MENÚ MÓVIL Y TABLET FUNCIONAL · VERSIÓN 6
   ========================================================================== */


/* ========================================================================== 
   INICIO: ENLACES LEGALES Y CONSENTIMIENTO DEL FORMULARIO · VERSIÓN 7
   Estilos para los enlaces legales del footer, la nota de privacidad del
   formulario y las tres páginas legales independientes.
   ========================================================================== */
.form-privacy-note {
    margin: -4px 0 18px;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.55;
}

.checkbox-group label a,
.form-privacy-note a,
.footer-legal-row a,
.legal-content a {
    color: var(--brand-yellow);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.checkbox-group label a:hover,
.footer-legal-row a:hover,
.legal-content a:hover {
    color: #ffe66e;
}

.footer-legal-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    padding-block: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-legal-identity {
    max-width: 700px;
}

.footer-legal-identity p {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.65;
}

.footer-legal-identity strong {
    color: var(--text-soft);
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.footer-legal-links a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
    transition: border-color var(--transition-main), color var(--transition-main), background var(--transition-main), transform var(--transition-main);
}

.footer-legal-links a:hover {
    transform: translateY(-2px);
    border-color: var(--border-yellow);
    background: var(--brand-yellow-soft);
    color: var(--brand-yellow);
}

/* --------------------------------------------------------------------------
   PÁGINAS LEGALES: CABECERA, ÍNDICE, CONTENIDO Y BLOQUES DESTACADOS
   -------------------------------------------------------------------------- */
.legal-body {
    background:
        radial-gradient(circle at 12% 0%, rgba(0, 45, 80, 0.28), transparent 30%),
        var(--bg-dark-pure);
}

.legal-site-header .header-flex {
    min-height: var(--header-height);
}

.legal-header-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-left: auto;
}

.legal-header-nav a {
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
    transition: color var(--transition-main);
}

.legal-header-nav a:hover,
.legal-header-nav a[aria-current="page"] {
    color: var(--brand-yellow);
}

.legal-main {
    padding: calc(var(--header-height) + 54px) 0 90px;
}

.legal-hero {
    margin-bottom: 28px;
    padding: clamp(30px, 5vw, 54px);
    border: 1px solid var(--border-yellow);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(0, 34, 68, 0.62), rgba(252, 209, 22, 0.06));
    box-shadow: var(--shadow-main), var(--shadow-yellow);
}

.legal-hero h1 {
    max-width: 920px;
    margin-bottom: 14px;
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 950;
    line-height: 1.04;
    letter-spacing: -1.3px;
}

.legal-hero p {
    max-width: 820px;
    color: var(--text-soft);
    font-size: 1rem;
    line-height: 1.72;
}

.legal-update {
    display: inline-flex;
    margin-top: 18px;
    padding: 7px 12px;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.legal-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.legal-index {
    position: sticky;
    top: calc(var(--header-height) + 20px);
    padding: 22px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-main);
    background: var(--bg-dark-card);
    box-shadow: var(--shadow-main);
}

.legal-index h2 {
    margin-bottom: 14px;
    color: var(--brand-yellow);
    font-size: 0.88rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.legal-index ol {
    display: grid;
    gap: 9px;
    padding-left: 18px;
    color: var(--text-muted);
}

.legal-index a {
    color: var(--text-soft);
    font-size: 0.88rem;
    text-decoration: none;
}

.legal-index a:hover {
    color: var(--brand-yellow);
}

.legal-content {
    padding: clamp(26px, 4vw, 46px);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-main);
    background: rgba(16, 20, 29, 0.88);
    box-shadow: var(--shadow-main);
}

.legal-section + .legal-section {
    margin-top: 36px;
    padding-top: 34px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.legal-section h2 {
    margin-bottom: 13px;
    color: var(--text-light);
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    line-height: 1.2;
}

.legal-section h3 {
    margin: 22px 0 8px;
    color: var(--brand-yellow);
    font-size: 1.02rem;
}

.legal-section p,
.legal-section li {
    color: var(--text-soft);
    font-size: 0.96rem;
    line-height: 1.78;
}

.legal-section p + p {
    margin-top: 12px;
}

.legal-section ul,
.legal-section ol {
    display: grid;
    gap: 8px;
    margin-top: 12px;
    padding-left: 22px;
}

.legal-data-card,
.legal-notice-box {
    margin-top: 18px;
    padding: 20px;
    border: 1px solid var(--border-yellow);
    border-radius: var(--radius-soft);
    background: var(--brand-yellow-soft);
}

.legal-data-card dl {
    display: grid;
    grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
    gap: 10px 18px;
}

.legal-data-card dt {
    color: var(--brand-yellow);
    font-weight: 900;
}

.legal-data-card dd {
    color: var(--text-soft);
}

.legal-table-wrap {
    overflow-x: auto;
    margin-top: 18px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-soft);
}

.legal-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
}

.legal-table th,
.legal-table td {
    padding: 14px;
    border-bottom: 1px solid var(--border-soft);
    text-align: left;
    vertical-align: top;
    font-size: 0.88rem;
    line-height: 1.6;
}

.legal-table th {
    background: rgba(252, 209, 22, 0.08);
    color: var(--brand-yellow);
}

.legal-table td {
    color: var(--text-soft);
}

.legal-page-footer {
    margin-top: 42px;
    padding-top: 24px;
    border-top: 1px solid var(--border-soft);
    color: var(--text-muted);
    font-size: 0.82rem;
}

@media (max-width: 900px) {
    .legal-header-nav {
        display: none;
    }

    .legal-layout {
        grid-template-columns: 1fr;
    }

    .legal-index {
        position: static;
    }

    .footer-legal-row {
        flex-direction: column;
    }

    .footer-legal-links {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .legal-main {
        padding-top: calc(var(--header-height) + 28px);
    }

    .legal-back-button {
        padding-inline: 14px;
        font-size: 0.72rem;
    }

    .legal-data-card dl {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .legal-data-card dd + dt {
        margin-top: 10px;
    }
}
/* ========================================================================== 
   FIN: ENLACES LEGALES Y CONSENTIMIENTO DEL FORMULARIO · VERSIÓN 7
   ========================================================================== */


/* ========================================================================== 
   INICIO: IDENTIDAD MALLORQUINA Y TEST DE VELOCIDAD · VERSIÓN 8
   Añade la identificación local junto al logo, compacta el menú con el nuevo
   acceso al test y construye la interfaz comparativa de velocidad.
   ========================================================================== */

/* --------------------------------------------------------------------------
   CABECERA: LOGO + EMPRESA MALLORQUINA + INTERNET RURAL
   -------------------------------------------------------------------------- */
.header-brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 178px;
}

.header-local-copy {
    display: grid;
    gap: 1px;
    line-height: 1.05;
}

.header-local-copy strong {
    color: var(--brand-yellow);
    font-size: 0.67rem;
    font-weight: 950;
    letter-spacing: 0.45px;
    text-transform: uppercase;
    white-space: nowrap;
}

.header-local-copy small {
    color: var(--text-soft);
    font-size: 0.67rem;
    font-weight: 800;
    white-space: nowrap;
}

@media (min-width: 1121px) {
    .header-flex {
        grid-template-columns: 190px minmax(0, 1fr) auto !important;
        gap: 12px !important;
    }

    .nav-links ul {
        gap: clamp(7px, 0.55vw, 12px) !important;
    }

    .nav-links a {
        font-size: clamp(0.68rem, 0.64vw, 0.78rem) !important;
    }

    .header-cta .btn-yellow {
        min-width: 186px !important;
        padding-inline: 16px !important;
        font-size: 0.74rem !important;
    }
}

@media (max-width: 1120px) {
    .header-brand-lockup {
        min-width: 0;
    }

    .header-local-copy strong,
    .header-local-copy small {
        font-size: 0.62rem;
    }
}

@media (max-width: 640px) {
    .main-logo {
        width: 70px !important;
        height: 52px !important;
    }

    .header-brand-lockup {
        gap: 5px;
    }

    .header-local-copy strong {
        max-width: 70px;
        white-space: normal;
    }

    .header-local-copy small {
        display: none;
    }
}

@media (max-width: 520px) {
    .header-cta {
        display: none !important;
    }
}

/* --------------------------------------------------------------------------
   TEST DE VELOCIDAD: ESTRUCTURA GENERAL
   -------------------------------------------------------------------------- */
.speed-test-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.speed-test-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 16% 28%, rgba(0, 67, 118, 0.28), transparent 32%),
        radial-gradient(circle at 86% 72%, rgba(252, 209, 22, 0.08), transparent 30%);
}

.speed-test-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(340px, 0.72fr);
    gap: 26px;
    align-items: stretch;
}

.speed-test-console,
.speed-comparison-panel {
    border: 1px solid var(--border-soft);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(16, 22, 33, 0.98), rgba(7, 10, 16, 0.98));
    box-shadow: var(--shadow-main);
}

.speed-test-console {
    padding: clamp(24px, 4vw, 42px);
}

.speed-test-console-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.speed-test-console-header h3,
.speed-comparison-panel h3 {
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    line-height: 1.2;
}

.speed-test-badge {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 6px 10px;
    border: 1px solid var(--border-yellow);
    border-radius: 999px;
    background: var(--brand-yellow-soft);
    color: var(--brand-yellow);
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.7px;
}

.speed-test-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 70px;
    width: 70px;
    height: 70px;
    border: 1px solid var(--border-yellow);
    border-radius: 22px;
    background: radial-gradient(circle, rgba(252, 209, 22, 0.22), rgba(252, 209, 22, 0.04));
    font-size: 2rem;
    box-shadow: 0 0 30px rgba(252, 209, 22, 0.12);
}

/* Tipo de prueba */
.speed-context-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.speed-context-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
    min-height: 92px;
    padding: 16px;
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
    cursor: pointer;
    transition: transform var(--transition-main), border-color var(--transition-main), background var(--transition-main), box-shadow var(--transition-main);
}

.speed-context-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-yellow);
}

.speed-context-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.speed-context-check {
    width: 22px;
    height: 22px;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    box-shadow: inset 0 0 0 5px transparent;
    transition: border-color var(--transition-main), background var(--transition-main), box-shadow var(--transition-main);
}

.speed-context-card:has(input:checked) {
    border-color: var(--brand-yellow);
    background: var(--brand-yellow-soft);
    box-shadow: 0 0 24px rgba(252, 209, 22, 0.08);
}

.speed-context-card input:checked + .speed-context-check {
    border-color: var(--brand-yellow);
    background: var(--brand-yellow);
    box-shadow: inset 0 0 0 5px var(--bg-dark-card), 0 0 14px var(--brand-yellow-glow);
}

.speed-context-card strong,
.speed-context-card small {
    display: block;
}

.speed-context-card strong {
    margin-bottom: 3px;
    color: var(--text-light);
}

.speed-context-card small {
    color: var(--text-muted);
    line-height: 1.45;
}

/* Consentimiento y botón */
.speed-consent-box {
    margin-bottom: 16px;
    padding: 15px 16px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.022);
}

.speed-consent-box label {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 11px;
    align-items: flex-start;
    color: var(--text-muted);
    font-size: 0.79rem;
    line-height: 1.55;
    cursor: pointer;
}

.speed-consent-box input {
    width: 19px;
    height: 19px;
    margin-top: 2px;
    accent-color: var(--brand-yellow);
}

.speed-consent-box a {
    color: var(--brand-yellow);
    text-underline-offset: 3px;
}

.speed-start-button:disabled {
    cursor: not-allowed;
    opacity: 0.48;
    transform: none !important;
}

/* Progreso */
.speed-progress-wrap {
    margin-top: 22px;
}

.speed-status-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 8px;
    color: var(--text-soft);
    font-size: 0.86rem;
}

.speed-progress-track {
    overflow: hidden;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
}

.speed-progress-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #d6a900, var(--brand-yellow), #fff1a5);
    box-shadow: 0 0 18px rgba(252, 209, 22, 0.48);
    transition: width 280ms ease;
}

/* Métricas en directo */
.speed-live-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 22px;
}

.speed-metric-card {
    position: relative;
    overflow: hidden;
    min-height: 148px;
    padding: 20px;
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    transition: transform var(--transition-main), border-color var(--transition-main), box-shadow var(--transition-main);
}

.speed-metric-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-yellow);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28), 0 0 20px rgba(252, 209, 22, 0.06);
}

.speed-metric-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 13px;
    border-radius: 12px;
    background: var(--brand-yellow);
    color: var(--brand-navy);
    font-size: 1.3rem;
    font-weight: 950;
}

.speed-metric-label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.55px;
}

.speed-metric-card strong {
    color: var(--text-light);
    font-size: clamp(1.35rem, 2.7vw, 2.15rem);
    line-height: 1;
}

.speed-metric-card strong small {
    color: var(--text-muted);
    font-size: 0.72rem;
}

.speed-quality-card strong {
    display: block;
    max-width: 190px;
    font-size: 1.15rem;
    line-height: 1.25;
}

.speed-error {
    min-height: 24px;
    margin-top: 14px;
    color: #ff8179;
    font-size: 0.84rem;
    line-height: 1.5;
}

.speed-result-actions {
    display: flex;
    margin-top: 8px;
}

.speed-share-button {
    width: 100%;
}

/* Comparación guardada */
.speed-comparison-panel {
    display: flex;
    flex-direction: column;
    padding: clamp(24px, 3.2vw, 34px);
    border-color: var(--border-yellow);
    background: radial-gradient(circle at top, rgba(0, 52, 93, 0.50), rgba(9, 13, 20, 0.98) 55%);
}

.speed-comparison-intro {
    margin: 7px 0 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

.saved-speed-card {
    padding: 20px;
    border: 1px solid var(--border-soft);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.035);
}

.saved-speed-uep {
    border-color: var(--border-yellow);
    background: var(--brand-yellow-soft);
}

.saved-speed-label {
    display: block;
    margin-bottom: 11px;
    color: var(--brand-yellow);
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.65px;
}

.saved-speed-values {
    display: grid;
    gap: 5px;
}

.saved-speed-values strong {
    color: var(--text-light);
    font-size: 1.65rem;
}

.saved-speed-values small,
.saved-speed-values > span {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.saved-speed-card time {
    display: block;
    margin-top: 11px;
    padding-top: 10px;
    border-top: 1px solid var(--border-soft);
    color: var(--text-muted);
    font-size: 0.75rem;
}

.speed-versus {
    align-self: center;
    margin-block: 10px;
    padding: 7px 10px;
    border: 1px solid var(--border-yellow);
    border-radius: 999px;
    background: var(--bg-dark-pure);
    color: var(--brand-yellow);
    font-size: 0.74rem;
    font-weight: 950;
}

.speed-improvement {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(88, 212, 124, 0.34);
    border-radius: 14px;
    background: rgba(88, 212, 124, 0.08);
}

.speed-improvement span {
    color: var(--text-soft);
    font-size: 0.84rem;
}

.speed-improvement strong {
    color: var(--success-green);
    font-size: 1.35rem;
}

.speed-improvement.negative {
    border-color: rgba(255, 67, 56, 0.35);
    background: rgba(255, 67, 56, 0.08);
}

.speed-improvement.negative strong {
    color: var(--alert-red);
}

.speed-clear-button {
    margin-top: auto;
    padding: 13px 14px;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-main), border-color var(--transition-main), background var(--transition-main);
}

.speed-clear-button:hover {
    border-color: var(--alert-red);
    background: var(--alert-red-soft);
    color: #ff8179;
}

.speed-test-notes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 20px;
}

.speed-test-notes p {
    padding: 14px 16px;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.022);
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.55;
}

.speed-test-notes strong {
    color: var(--brand-yellow);
}

/* Responsive del test */
@media (max-width: 980px) {
    .speed-test-layout {
        grid-template-columns: 1fr;
    }

    .speed-comparison-panel {
        min-height: 0;
    }

    .speed-clear-button {
        margin-top: 18px;
    }
}

@media (max-width: 700px) {
    .speed-context-options,
    .speed-live-grid,
    .speed-test-notes {
        grid-template-columns: 1fr;
    }

    .speed-test-console-header {
        align-items: center;
    }

    .speed-test-icon {
        flex-basis: 56px;
        width: 56px;
        height: 56px;
        border-radius: 17px;
        font-size: 1.55rem;
    }

    .speed-metric-card {
        min-height: 0;
    }
}

/* ========================================================================== 
   FIN: IDENTIDAD MALLORQUINA Y TEST DE VELOCIDAD · VERSIÓN 8
   ========================================================================== */


/* ========================================================================== 
   INICIO: FOOTER AIGOPURA BALEAR CON IMAGEN PROMOCIONAL + POZO
   Sustituye el antiguo bloque de logo simple por una creatividad completa
   enlazada hacia la web de AIGOPURA BALEAR.
   ========================================================================== */
.footer-aigopura-banner-card {
    padding: 24px !important;
}

.aigopura-banner-link {
    display: grid;
    gap: 14px;
    text-decoration: none;
}

.aigopura-banner-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.30);
    transition: transform var(--transition-main), box-shadow var(--transition-main), border-color var(--transition-main);
}

.aigopura-banner-link:hover .aigopura-banner-image {
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(67, 191, 17, 0.42);
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.42);
}

.aigopura-banner-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #8bea66;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.2px;
}

.aigopura-banner-link:hover .aigopura-banner-cta {
    color: #b8ff9c;
}

@media (max-width: 1050px) {
    .footer-aigopura-banner-card {
        max-width: 820px;
    }
}

@media (max-width: 640px) {
    .aigopura-banner-image {
        border-radius: 14px;
    }

    .aigopura-banner-cta {
        font-size: 0.86rem;
    }
}
/* ========================================================================== 
   FIN: FOOTER AIGOPURA BALEAR CON IMAGEN PROMOCIONAL + POZO
   ========================================================================== */
