/* ===================================================== */
/* VARIABLES Y RESET */
/* ===================================================== */
:root {
    /* Paleta corporativa MIIOT */
    --miiot-black: #000000;
    --miiot-night: #121D31;
    --miiot-navy: #243A63;
    --miiot-blue-dark: #365894;
    --miiot-blue: #4875C6;
    --miiot-primary: #199BF9;
    --miiot-white: #FFFFFF;
    --miiot-gray-50: #F8FAFC;
    --miiot-gray-100: #F1F5F9;
    --miiot-gray-200: #E2E8F0;
    --miiot-gray-500: #64748B;
    --miiot-text: #121D31;

    /* Tipografías */
    --font-title: 'Russo One', sans-serif;
    --font-body: 'Montserrat', sans-serif;

    /* Otros */
    --radius: 12px;
    --container: 1440px;
    --header-h: 92px;
    --shadow-soft: 0 10px 30px rgba(18, 29, 49, 0.06);
    --shadow-card: 0 18px 50px rgba(18, 29, 49, 0.10);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--miiot-text);
    background-color: var(--miiot-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4 {
    margin: 0;
}

/* Utilidades */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 32px;
}

.text-accent {
    color: var(--miiot-primary);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Foco visible accesible */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid var(--miiot-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===================================================== */
/* BOTONES */
/* ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 180ms ease, transform 180ms ease, border-color 180ms ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--miiot-primary);
    color: var(--miiot-white);
    padding: 14px 26px;
}

.btn-primary:hover {
    background-color: var(--miiot-blue-dark);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-ghost {
    background-color: transparent;
    color: var(--miiot-white);
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    padding: 13px 24px;
}

.btn-ghost:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.play-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: var(--miiot-primary);
    color: var(--miiot-white);
}

.btn-phone {
    background-color: var(--miiot-primary);
    color: var(--miiot-white);
    padding: 12px 22px;
    font-weight: 600;
}

.btn-phone:hover {
    background-color: var(--miiot-blue-dark);
}

/* ===================================================== */
/* HEADER */
/* ===================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: var(--miiot-white);
    border-bottom: 1px solid var(--miiot-gray-100);
    box-shadow: 0 1px 0 rgba(18, 29, 49, 0.03);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: var(--header-h);
}

.header-logo img {
    width: 200px;
    height: auto;
}

.main-nav {
    margin-inline: auto;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-list a {
    font-size: 15px;
    font-weight: 500;
    color: var(--miiot-text);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 180ms ease;
}

.nav-list a:hover {
    color: var(--miiot-primary);
}

.nav-arrow {
    margin-top: 2px;
}

.nav-phone-mobile {
    display: none;
}

/* Botón hamburguesa */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2.5px;
    background-color: var(--miiot-text);
    border-radius: 2px;
    transition: transform 200ms ease, opacity 200ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ===================================================== */
/* HERO / BANNER */
/* ===================================================== */
.hero {
    padding-block: 28px;
}

.hero-banner {
    position: relative;
    height: 545px;
    border-radius: var(--radius);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
    90deg,
    rgba(4, 18, 38, 0.96) 0%,
    rgba(4, 18, 38, 0.82) 32%,
    rgba(4, 18, 38, 0.38) 60%,
    rgba(4, 18, 38, 0.08) 100%
  );
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 650px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px;
    color: var(--miiot-white);
}

.hero-eyebrow {
    margin: 0 0 16px;
    color: var(--miiot-primary);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-title);
    font-size: clamp(34px, 4.4vw, 58px);
    line-height: 1.08;
    margin-bottom: 22px;
    text-wrap: balance;
}

.hero-text {
    font-size: 17px;
    max-width: 520px;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* Iconos IoT flotantes */
.hero-icons {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.hero-icon {
    position: absolute;
    left: var(--x);
    top: var(--y);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: rgba(18, 29, 49, 0.45);
    border: 1.5px solid var(--miiot-primary);
    color: var(--miiot-white);
    backdrop-filter: blur(2px);
    animation: float 4s ease-in-out infinite;
}

.hero-icon::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    width: 0;
    height: 26px;
    border-left: 1.5px dashed rgba(25, 155, 249, 0.7);
}

.hero-icon:nth-child(2) {
    animation-delay: 0.6s;
}

.hero-icon:nth-child(3) {
    animation-delay: 1.2s;
}

.hero-icon:nth-child(4) {
    animation-delay: 1.8s;
}

.hero-icon:nth-child(5) {
    animation-delay: 2.4s;
}

.hero-icon:nth-child(6) {
    animation-delay: 3s;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

/* ===================================================== */
/* FRANJA DE BENEFICIOS */
/* ===================================================== */
.benefits {
    padding-block: 50px;
    background-color: var(--miiot-white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.benefit {
    text-align: center;
    padding: 12px 28px;
    border-right: 1px solid var(--miiot-gray-200);
}

.benefit:last-child {
    border-right: none;
}

.benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--miiot-primary);
    margin-bottom: 16px;
}

.benefit-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--miiot-night);
    margin-bottom: 8px;
}

.benefit-text {
    font-size: 14.5px;
    color: var(--miiot-gray-500);
    margin: 0;
}

/* ===================================================== */
/* POR QUÉ MIIOT */
/* ===================================================== */
.why {
    padding-block: 30px 70px;
}

.why-card {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: center;
    background-color: var(--miiot-white);
    border: 1px solid var(--miiot-gray-200);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    padding: 60px;
}

.why-heading {
    font-family: var(--font-title);
    font-size: clamp(26px, 2.4vw, 34px);
    color: var(--miiot-night);
    margin-bottom: 30px;
}

.why-list {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.why-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.why-item-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--miiot-gray-50);
    border: 1.5px solid rgba(25, 155, 249, 0.35);
    color: var(--miiot-primary);
}

.why-item-body h4 {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--miiot-night);
    margin-bottom: 4px;
}

.why-item-body p {
    font-size: 14.5px;
    color: var(--miiot-gray-500);
    margin: 0;
}

/* Columna central: dispositivo */
.why-center {
    display: flex;
    justify-content: center;
}

.device-stage {
    position: relative;
    width: 340px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.device-rings {
    position: absolute;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(25, 155, 249, 0.10) 0%, rgba(25, 155, 249, 0) 60%);
    box-shadow: 0 0 0 1px rgba(25, 155, 249, 0.12),
    0 0 0 40px rgba(25, 155, 249, 0.05);
}

.device-network {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.device-img {
    position: relative;
    z-index: 2;
    width: 300px;
    max-width: 90%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 24px 28px rgba(18, 29, 49, 0.22));
}

/* Columna derecha: CTA */
.cta-card {
    background-color: var(--miiot-white);
    border: 1.5px solid rgba(25, 155, 249, 0.30);
    border-radius: 18px;
    padding: 36px;
    box-shadow: var(--shadow-soft);
}

.cta-title {
    font-family: var(--font-title);
    font-size: clamp(24px, 2.2vw, 34px);
    line-height: 1.15;
    color: var(--miiot-night);
    margin-bottom: 18px;
    text-wrap: balance;
}

.cta-text {
    font-size: 15.5px;
    color: var(--miiot-gray-500);
    margin-bottom: 26px;
}

/* ===================================================== */
/* FOOTER */
/* ===================================================== */
.site-footer {
    background-color: var(--miiot-white);
    border-top: 1px solid var(--miiot-gray-200);
    padding-block: 56px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 40px;
}

.footer-col {
    padding-inline: 12px;
    border-right: 1px solid var(--miiot-gray-200);
}

.footer-col:last-child {
    border-right: none;
}

.footer-brand img {
    width: 200px;
    height: auto;
}

.footer-tagline {
    margin-top: 12px;
    color: var(--miiot-gray-500);
    font-weight: 500;
    font-size: 15px;
}

.footer-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--miiot-night);
    margin-bottom: 12px;
}

.footer-text {
    font-size: 14.5px;
    color: var(--miiot-gray-500);
    margin: 0 0 18px;
}

/* Formulario newsletter */
.news-form {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 360px;
}

.news-input {
    flex: 1;
    font-family: var(--font-body);
    font-size: 14.5px;
    padding: 13px 16px;
    border: 1px solid var(--miiot-gray-200);
    border-radius: 999px;
    background-color: var(--miiot-gray-50);
    color: var(--miiot-text);
}

.news-input::placeholder {
    color: var(--miiot-gray-500);
}

.news-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background-color: var(--miiot-primary);
    color: var(--miiot-white);
    cursor: pointer;
    transition: background-color 180ms ease;
}

.news-btn:hover {
    background-color: var(--miiot-blue-dark);
}

.news-feedback {
    margin-top: 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--miiot-primary);
    min-height: 18px;
}

.footer-quote {
    font-weight: 500;
    color: var(--miiot-text);
}

.social-list {
    display: flex;
    gap: 12px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--miiot-primary);
    color: var(--miiot-white);
    transition: background-color 180ms ease, transform 180ms ease;
}

.social-btn:hover {
    background-color: var(--miiot-blue-dark);
    transform: translateY(-2px);
}

/* ===================================================== */
/* BARRA INFERIOR */
/* ===================================================== */
.bottom-bar {
    position: relative;
    background-color: var(--miiot-night);
    color: var(--miiot-white);
    text-align: center;
    padding-block: 20px;
    overflow: hidden;
}

.bottom-bar p {
    margin: 0;
    font-size: 14px;
    position: relative;
    z-index: 2;
}

.circuit {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    height: 24px;
    opacity: 0.18;
    background-image: linear-gradient(to right, var(--miiot-primary) 2px, transparent 2px),
    linear-gradient(to right, var(--miiot-primary) 2px, transparent 2px);
    background-size: 40px 12px, 26px 24px;
    background-repeat: repeat-x;
}

.circuit-left {
    left: 24px;
}

.circuit-right {
    right: 24px;
}

/* ===================================================== */
/* MODAL DE VIDEO */
/* ===================================================== */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.video-modal[hidden] {
    display: none;
}

.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(4, 18, 38, 0.82);
}

.video-modal-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 880px;
}

.video-close {
    position: absolute;
    top: -52px;
    right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background-color: var(--miiot-white);
    color: var(--miiot-night);
    cursor: pointer;
}

.video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    background-color: #000;
}

.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===================================================== */
/* ANIMACIONES DE ENTRADA */
/* ===================================================== */
.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ===================================================== */
/* RESPONSIVE */
/* ===================================================== */
/* Escritorio mediano */
@media (max-width: 1200px) {
    .why-card {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .why-right {
        grid-column: 1 / -1;
    }
}

/* Tablet */
@media (max-width: 1023px) {
    :root {
        --header-h: 76px;
    }

    /* Navegación móvil */
    .header-phone-desktop {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background-color: var(--miiot-white);
        border-bottom: 1px solid var(--miiot-gray-200);
        box-shadow: var(--shadow-soft);
        max-height: 0;
        overflow: hidden;
        transition: max-height 280ms ease;
        margin: 0;
    }

    .main-nav.is-open {
        max-height: 560px;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0;
    }

    .nav-list li {
        border-bottom: 1px solid var(--miiot-gray-100);
    }

    .nav-list a {
        padding: 16px 32px;
    }

    .nav-phone-mobile {
        display: block;
        padding: 16px 32px;
        border-bottom: none;
    }

    .nav-phone-mobile .btn-phone {
        width: 100%;
        justify-content: center;
    }

    /* Beneficios en 2 columnas */
    .benefits-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px 0;
    }

    .benefit {
        border-right: none;
        border-bottom: 1px solid var(--miiot-gray-200);
        padding-block: 28px;
    }

    .benefit:nth-child(odd) {
        border-right: 1px solid var(--miiot-gray-200);
    }

    .benefit:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .why-card {
        padding: 40px;
    }
}

/* Móvil */
@media (max-width: 767px) {
    .container {
        padding-inline: 20px;
    }

    .hero {
        padding-block: 16px;
    }

    .hero-banner {
        height: auto;
        min-height: 650px;
    }

    .hero-overlay {
        background: linear-gradient(
      90deg,
      rgba(4, 18, 38, 0.96) 0%,
      rgba(4, 18, 38, 0.90) 55%,
      rgba(4, 18, 38, 0.72) 100%
    );
    }

    .hero-content {
        padding: 40px 24px;
        text-align: left;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Ocultar algunos iconos flotantes que saturan */
    .hero-icon:nth-child(4),
    .hero-icon:nth-child(6) {
        display: none;
    }

    /* Beneficios apilados */
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .benefit,
    .benefit:nth-child(odd) {
        border-right: none;
        border-bottom: 1px solid var(--miiot-gray-200);
    }

    .benefit:last-child {
        border-bottom: none;
    }

    /* Por qué MIIOT apilado */
    .why-card {
        grid-template-columns: 1fr;
        padding: 32px 24px;
        gap: 36px;
    }

    .why-right {
        grid-column: auto;
    }

    /* Footer apilado */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col {
        border-right: none;
        border-bottom: 1px solid var(--miiot-gray-200);
        padding-bottom: 28px;
    }

    .footer-col:last-child {
        border-bottom: none;
    }

    .footer-brand img {
        margin-inline: auto;
    }

    .news-form {
        margin-inline: auto;
    }

    .social-list {
        justify-content: center;
    }
}

/* Móvil pequeño */
@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }

    .why-card {
        padding: 26px 18px;
    }

    .cta-card {
        padding: 26px 22px;
    }
}

/* ===================================================== */
/* PREFERENCIA DE MOVIMIENTO REDUCIDO */
/* ===================================================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        animation: none !important;
        transition: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

.why-center img {
    width: 300px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .why-center img {
        width: 230px;
    }
}

.why-center img {
    width: 360px;
    max-width: 120%;
    height: auto;
    transform: scale(1.1);
}

.why-center img {
    width: 360px;
    max-width: 120%;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    transform: scale(1.1);
    box-shadow: none !important;
    filter: none !important;
}

.footer-social {
    text-align: center;
}

.footer-social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-top: 24px;
}

.footer-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-social .footer-text,
.footer-social .footer-quote {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.footer-social .social-list {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin: 18px auto 0;
    padding: 0;
}

/* ===================================================== */
/* CORRECCIÓN RESPONSIVE: ¿POR QUÉ MIIOT? */
/* ===================================================== */
/* Permite que el texto se reduzca dentro de cada fila */
.why-item-body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.why-item-body h4,
.why-item-body p {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}

@media (max-width: 767px) {
    .why {
        padding-block: 24px 50px;
    }

    .why-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        grid-template-columns: minmax(0, 1fr);
        gap: 34px;
        padding: 32px 20px;
        margin-inline: auto;
        box-sizing: border-box;
        overflow: hidden;
    }

    .why-left,
    .why-center,
    .why-right {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .why-heading {
        max-width: 100%;
        margin-bottom: 30px;
        font-size: clamp(26px, 7.5vw, 34px);
        line-height: 1.15;
        white-space: normal;
        overflow-wrap: break-word;
    }

    .why-list {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        gap: 28px;
    }

    .why-item {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        display: grid;
        grid-template-columns: 56px minmax(0, 1fr);
        align-items: start;
        column-gap: 16px;
    }

    .why-item-icon {
        width: 56px;
        height: 56px;
        flex-shrink: 0;
    }

    .why-item-body {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .why-item-body h4 {
        margin: 2px 0 7px;
        font-size: 19px;
        line-height: 1.25;
        letter-spacing: 0.3px;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .why-item-body p {
        width: 100%;
        max-width: 100%;
        margin: 0;
        font-size: 16px;
        line-height: 1.55;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: normal;
        hyphens: auto;
    }

    .why-center {
        display: flex;
        justify-content: center;
        overflow: hidden;
    }

    .why-center img {
        width: 230px;
        max-width: 100%;
        height: auto;
        margin-inline: auto;
        transform: none;
        box-shadow: none !important;
        filter: none !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding-inline: 14px;
    }

    .why-card {
        padding: 28px 16px;
        gap: 30px;
        border-radius: 18px;
    }

    .why-heading {
        font-size: clamp(24px, 7.4vw, 30px);
    }

    .why-item {
        grid-template-columns: 50px minmax(0, 1fr);
        column-gap: 13px;
    }

    .why-item-icon {
        width: 50px;
        height: 50px;
    }

    .why-item-body h4 {
        font-size: 17px;
        line-height: 1.25;
    }

    .why-item-body p {
        font-size: 15.5px;
        line-height: 1.5;
    }

    .why-center img {
        width: 210px;
    }
}

/* Footer simplificado con logo centrado */
.footer-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.footer-brand {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none !important;
}

.footer-brand img {
    display: block;
    width: 220px;
    max-width: 80%;
    height: auto;
    margin: 0 auto;
}

.site-footer {
    padding: 36px 20px;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 28px 16px;
    }

    .footer-brand img {
        width: 200px;
    }
}

/* ===================================================== */
/* CARRUSEL PLATAFORMA MIIOT */
/* ===================================================== */
.miiot-showcase {
    padding: 90px 24px;
    background: radial-gradient(
      circle at 50% 55%,
      rgba(25, 155, 249, 0.1),
      transparent 38%
    ),
    #f8fbff;
    overflow: hidden;
}

.miiot-showcase__header {
    max-width: 850px;
    margin: 0 auto 55px;
    text-align: center;
}

.miiot-showcase__eyebrow {
    display: block;
    margin-bottom: 12px;
    color: #199bf9;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
}

.miiot-showcase__title {
    margin: 0;
    color: #121d31;
    font-family: "Russo One", sans-serif;
    font-size: clamp(34px, 4vw, 58px);
    font-weight: 400;
    line-height: 1.08;
}

.miiot-showcase__title span {
    color: #199bf9;
}

.miiot-showcase__description {
    max-width: 720px;
    margin: 22px auto 0;
    color: #64748b;
    font-family: "Montserrat", sans-serif;
    font-size: 17px;
    line-height: 1.75;
}

/* Contenedor principal del carrusel */
.miiot-carousel {
    position: relative;
    display: grid;
    grid-template-columns: 58px minmax(0, 410px) 58px;
    justify-content: center;
    align-items: center;
    gap: 32px;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    outline: none;
}

.miiot-carousel:focus-visible {
    border-radius: 30px;
    outline: 3px solid rgba(25, 155, 249, 0.4);
    outline-offset: 12px;
}

/* Marco del teléfono */
.miiot-phone {
    position: relative;
    width: 100%;
    padding: 17px;
    background: linear-gradient(145deg, #343842, #080a0f 65%);
    border: 2px solid #4d5360;
    border-radius: 58px;
    box-shadow: 0 35px 65px rgba(18, 29, 49, 0.24),
    0 12px 25px rgba(18, 29, 49, 0.18),
    inset 0 0 0 2px rgba(255, 255, 255, 0.06);
    box-sizing: border-box;
}

.miiot-phone::before {
    content: "";
    position: absolute;
    top: 12%;
    left: -5px;
    width: 6px;
    height: 110px;
    background: #242832;
    border-radius: 5px 0 0 5px;
}

.miiot-phone::after {
    content: "";
    position: absolute;
    top: 18%;
    right: -5px;
    width: 6px;
    height: 95px;
    background: #242832;
    border-radius: 0 5px 5px 0;
}

.miiot-phone__speaker {
    position: absolute;
    z-index: 3;
    top: 11px;
    left: 50%;
    width: 92px;
    height: 7px;
    background: #3e434d;
    border-radius: 999px;
    transform: translateX(-50%);
}

.miiot-phone__screen {
    position: relative;
    width: 100%;
    aspect-ratio: 920 / 2048;
    background: #121d31;
    border-radius: 42px;
    overflow: hidden;
}

/* Imagen del carrusel */
.miiot-carousel__image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    opacity: 1;
    transform: none;
    transition: none;
}

.miiot-carousel__image.is-changing {
    opacity: 1;
    transform: none;
}

.miiot-carousel__image.is-changing {
    opacity: 0;
    transform: scale(0.985);
}

/* Flechas laterales */
.miiot-carousel__arrow {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    padding: 0;
    color: #ffffff;
    background: #199bf9;
    border: 0;
    border-radius: 50%;
    box-shadow: 0 12px 25px rgba(25, 155, 249, 0.28);
    cursor: pointer;
    transition: background-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.miiot-carousel__arrow:hover {
    background: #087fdb;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 16px 30px rgba(25, 155, 249, 0.38);
}

.miiot-carousel__arrow:active {
    transform: scale(0.94);
}

.miiot-carousel__arrow:focus-visible {
    outline: 3px solid rgba(25, 155, 249, 0.35);
    outline-offset: 5px;
}

/* Contador y puntos */
.miiot-carousel__footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 19px;
    margin-top: 34px;
}

.miiot-carousel__counter {
    color: #365894;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
}

.miiot-carousel__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 520px;
}

.miiot-carousel__dot {
    width: 9px;
    height: 9px;
    padding: 0;
    background: #cbd5e1;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: width 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.miiot-carousel__dot:hover {
    background: #4875c6;
    transform: scale(1.18);
}

.miiot-carousel__dot.is-active {
    width: 28px;
    background: #199bf9;
}

.miiot-carousel__dot:focus-visible {
    outline: 2px solid #199bf9;
    outline-offset: 4px;
}

/* Texto accesible oculto */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Tablet */
@media (max-width: 900px) {
    .miiot-showcase {
        padding: 70px 20px;
    }

    .miiot-carousel {
        grid-template-columns: 52px minmax(0, 360px) 52px;
        gap: 20px;
    }

    .miiot-carousel__arrow {
        width: 52px;
        height: 52px;
    }
}

/* Celular */
@media (max-width: 600px) {
    .miiot-showcase {
        padding: 58px 15px;
    }

    .miiot-showcase__header {
        margin-bottom: 38px;
    }

    .miiot-showcase__description {
        font-size: 15px;
        line-height: 1.65;
    }

    .miiot-carousel {
        grid-template-columns: 42px minmax(0, 285px) 42px;
        gap: 8px;
    }

    .miiot-phone {
        padding: 11px;
        border-radius: 42px;
    }

    .miiot-phone__screen {
        border-radius: 31px;
    }

    .miiot-phone__speaker {
        top: 7px;
        width: 68px;
        height: 5px;
    }

    .miiot-carousel__arrow {
        width: 42px;
        height: 42px;
    }

    .miiot-carousel__arrow svg {
        width: 21px;
        height: 21px;
    }

    .miiot-carousel__footer {
        margin-top: 25px;
    }

    .miiot-carousel__dots {
        gap: 8px;
    }

    .miiot-carousel__dot {
        width: 8px;
        height: 8px;
    }

    .miiot-carousel__dot.is-active {
        width: 24px;
    }
}

/* Celulares pequeños */
@media (max-width: 390px) {
    .miiot-carousel {
        grid-template-columns: 38px minmax(0, 248px) 38px;
        gap: 5px;
    }

    .miiot-carousel__arrow {
        width: 38px;
        height: 38px;
    }
}

/* Reducir movimientos cuando el usuario lo solicite */
@media (prefers-reduced-motion: reduce) {
    .miiot-carousel__image,
    .miiot-carousel__arrow,
    .miiot-carousel__dot {
        transition: none !important;
    }
}

/* ===================================================== */
/* AJUSTE FINAL DEL CARRUSEL PARA CELULARES */
/* ===================================================== */
.miiot-carousel {
    touch-action: pan-y;
}

@media (max-width: 600px) {
    .miiot-showcase {
        padding-inline: 14px;
    }

    .miiot-carousel {
        width: 100%;
        max-width: 380px;
        grid-template-columns: 40px minmax(0, 1fr) 40px;
        gap: 6px;
        margin-inline: auto;
    }

    .miiot-phone {
        width: 100%;
        min-width: 0;
        padding: 10px;
        border-radius: 40px;
    }

    .miiot-phone__screen {
        width: 100%;
        border-radius: 30px;
    }

    .miiot-carousel__arrow {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .miiot-carousel__arrow svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 360px) {
    .miiot-showcase {
        padding-inline: 10px;
    }

    .miiot-carousel {
        grid-template-columns: 36px minmax(0, 1fr) 36px;
        gap: 4px;
    }

    .miiot-carousel__arrow {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .miiot-phone {
        padding: 8px;
        border-radius: 34px;
    }

    .miiot-phone__screen {
        border-radius: 25px;
    }
}

/* ===================================================== */
/* QUITAR EL SEGUNDO MARCO DEL CARRUSEL */
/* Las imágenes ya incluyen su propio mockup de celular */
/* ===================================================== */
.miiot-phone {
    width: 100%;
    max-width: 460px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

/* Eliminar botones laterales decorativos del marco CSS */
.miiot-phone::before,
.miiot-phone::after {
    display: none;
}

/* Eliminar parlante superior agregado por CSS */
.miiot-phone__speaker {
    display: none;
}

/* Contenedor limpio para mostrar el mockup completo */
.miiot-phone__screen {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    background: transparent;
    border-radius: 0;
    overflow: visible;
}

/* Mostrar la imagen completa sin recortarla */
.miiot-carousel__image {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

/* Tablet */
@media (max-width: 900px) {
    .miiot-phone {
        max-width: 390px;
    }
}

/* Celular */
@media (max-width: 600px) {
    .miiot-phone {
        width: 100%;
        max-width: 275px;
        padding: 0;
        border-radius: 0;
    }

    .miiot-phone__screen {
        border-radius: 0;
    }
}

/* Celulares pequeños */
@media (max-width: 360px) {
    .miiot-phone {
        max-width: 235px;
    }
}

html {
    scroll-behavior: smooth;
}

#plataforma {
    scroll-margin-top: 100px;
}

html {
    scroll-behavior: smooth;
}

#plataforma {
    scroll-margin-top: 110px;
}

/* Evitar saltos y parpadeos en el carrusel */
.miiot-carousel__image {
    display: block;
    width: 100%;
    height: auto;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    object-fit: contain;
    object-position: center;
}

.miiot-carousel__image.is-changing {
    opacity: 1 !important;
    transform: none !important;
}

/* ===================================================== */
/* CARRUSEL INTEGRADO EN LA COLUMNA CENTRAL */
/* ===================================================== */
.why-center {
    width: 100%;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.why-carousel {
    width: 100%;
    max-width: 390px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.why-carousel__eyebrow {
    display: block;
    margin-bottom: 18px;
    color: var(--miiot-primary, #199bf9);
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.why-carousel__viewport {
    width: 100%;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 8px;
}

.why-carousel__media {
    position: relative;
    width: 100%;
    height: 390px;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.why-carousel__rings {
    position: absolute;
    width: 82%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(
      circle,
      rgba(25, 155, 249, 0.1) 0%,
      rgba(25, 155, 249, 0) 65%
    );
    box-shadow: 0 0 0 1px rgba(25, 155, 249, 0.12),
    0 0 0 30px rgba(25, 155, 249, 0.04);
}

.why-carousel__image {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    max-width: 290px;
    object-fit: contain;
    object-position: center;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    filter: none !important;
    box-shadow: none !important;
}

.why-carousel__arrow {
    position: relative;
    z-index: 5;
    width: 42px;
    height: 42px;
    padding: 0;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: var(--miiot-primary, #199bf9);
    border: 0;
    border-radius: 50%;
    box-shadow: 0 8px 18px rgba(25, 155, 249, 0.25);
    cursor: pointer;
    transition: transform 180ms ease,
    background-color 180ms ease;
}

.why-carousel__arrow:hover {
    background: #087fdb;
    transform: scale(1.06);
}

.why-carousel__arrow:active {
    transform: scale(0.94);
}

.why-carousel__arrow:focus-visible {
    outline: 3px solid rgba(25, 155, 249, 0.3);
    outline-offset: 4px;
}

.why-carousel__footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}

.why-carousel__counter {
    color: var(--miiot-navy, #243a63);
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.why-carousel__dots {
    width: 100%;
    max-width: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.why-carousel__dots .miiot-carousel__dot {
    width: 6px;
    height: 6px;
    padding: 0;
    background: #cbd5e1;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
}

.why-carousel__dots .miiot-carousel__dot.is-active {
    width: 20px;
    background: var(--miiot-primary, #199bf9);
}

/* Impedir que reglas antiguas deformen la nueva imagen */
.why-center .why-carousel__image {
    width: 100%;
    max-width: 290px;
    height: 100%;
    margin: 0;
    transform: none !important;
}

/* Tablet */
@media (max-width: 1100px) {
    .why-card {
        grid-template-columns: 1fr 0.9fr;
    }

    .why-right {
        grid-column: 1 / -1;
    }

    .why-carousel__media {
        height: 370px;
    }
}

/* Celular */
@media (max-width: 767px) {
    .why-carousel {
        max-width: 380px;
        margin-inline: auto;
    }

    .why-carousel__viewport {
        grid-template-columns: 40px minmax(0, 1fr) 40px;
        gap: 6px;
    }

    .why-carousel__media {
        height: 430px;
    }

    .why-carousel__image {
        max-width: 300px;
    }

    .why-carousel__arrow {
        width: 40px;
        height: 40px;
    }
}

/* Celulares pequeños */
@media (max-width: 390px) {
    .why-carousel__viewport {
        grid-template-columns: 36px minmax(0, 1fr) 36px;
        gap: 4px;
    }

    .why-carousel__media {
        height: 390px;
    }

    .why-carousel__image {
        max-width: 260px;
    }

    .why-carousel__arrow {
        width: 36px;
        height: 36px;
    }
}

/* ===================================================== */
/* CORRECCIÓN DEFINITIVA: ¿POR QUÉ MIIOT? EN CELULAR */
/* ===================================================== */
@media (max-width: 767px) {
    /* Toda la tarjeta pasa a una sola columna */
    .why-card {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-areas: "informacion"
      "carrusel"
      "contacto" !important;
        width: calc(100% - 24px) !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 auto !important;
        padding: 30px 20px !important;
        gap: 38px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .why-left {
        grid-area: informacion !important;
    }

    .why-center {
        grid-area: carrusel !important;
    }

    .why-right {
        grid-area: contacto !important;
    }

    .why-left,
    .why-center,
    .why-right {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    /* Título principal */
    .why-heading {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 30px !important;
        font-size: clamp(27px, 8vw, 36px) !important;
        line-height: 1.08 !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
        hyphens: none !important;
    }

    /* Lista de beneficios */
    .why-list {
        display: flex !important;
        flex-direction: column !important;
        gap: 28px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .why-item {
        display: grid !important;
        grid-template-columns: 58px minmax(0, 1fr) !important;
        align-items: start !important;
        column-gap: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    .why-item-icon {
        width: 58px !important;
        height: 58px !important;
        min-width: 58px !important;
    }

    .why-item-body {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .why-item-body h4 {
        width: 100% !important;
        max-width: 100% !important;
        margin: 3px 0 8px !important;
        font-size: 19px !important;
        line-height: 1.25 !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
        hyphens: none !important;
    }

    .why-item-body p {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        font-size: 16px !important;
        line-height: 1.55 !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
        hyphens: none !important;
    }

    /* Carrusel debajo de los textos */
    .why-carousel {
        width: 100% !important;
        max-width: 360px !important;
        min-width: 0 !important;
        margin: 0 auto !important;
    }

    .why-carousel__eyebrow {
        width: 100% !important;
        margin: 0 0 18px !important;
        text-align: center !important;
        font-size: 11px !important;
        line-height: 1.4 !important;
    }

    .why-carousel__viewport {
        display: grid !important;
        grid-template-columns: 42px minmax(0, 1fr) 42px !important;
        align-items: center !important;
        gap: 7px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .why-carousel__media {
        width: 100% !important;
        height: 470px !important;
        min-width: 0 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        overflow: hidden !important;
    }

    .why-carousel__image,
    .why-center .why-carousel__image {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        max-width: 290px !important;
        margin: 0 auto !important;
        object-fit: contain !important;
        object-position: center !important;
        transform: none !important;
        box-shadow: none !important;
        filter: none !important;
    }

    .why-carousel__arrow {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
    }

    .why-carousel__footer {
        width: 100% !important;
        margin-top: 14px !important;
    }

    .why-carousel__dots {
        max-width: 260px !important;
    }
}

/* Celulares angostos */
@media (max-width: 390px) {
    .why-card {
        width: calc(100% - 16px) !important;
        padding: 26px 14px !important;
    }

    .why-item {
        grid-template-columns: 52px minmax(0, 1fr) !important;
        column-gap: 13px !important;
    }

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

    .why-item-body h4 {
        font-size: 17px !important;
    }

    .why-item-body p {
        font-size: 15px !important;
    }

    .why-carousel {
        max-width: 320px !important;
    }

    .why-carousel__viewport {
        grid-template-columns: 38px minmax(0, 1fr) 38px !important;
        gap: 4px !important;
    }

    .why-carousel__media {
        height: 420px !important;
    }

    .why-carousel__image,
    .why-center .why-carousel__image {
        max-width: 260px !important;
    }

    .why-carousel__arrow {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
    }
}

/* Botón oficial de WhatsApp */
.btn-whatsapp {
    background-color: #25d366 !important;
    border-color: #25d366 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.28);
}

.btn-whatsapp:hover {
    background-color: #1ebe5d !important;
    border-color: #1ebe5d !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.btn-whatsapp:active {
    background-color: #169c46 !important;
    border-color: #169c46 !important;
    transform: translateY(0);
}

.btn-whatsapp:focus-visible {
    outline: 3px solid rgba(37, 211, 102, 0.35);
    outline-offset: 4px;
}