:root {
    --nt-magenta: #bd3967;
    --nt-magenta-light: #c86689;
    --nt-dark: #1c1c1c;
    --nt-gray: #666666;
    --nt-bg: #e6e6e6;
    --nt-radius-lg: 1.25rem;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, sans-serif;
    background-color: #f7f7f7;
    color: var(--nt-dark);
}

/* ==== TITULOS NEZTELCO ==== */
h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.hero-title,
.top-video-text h2,
.nt-card h3,
.tagline {
    font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, sans-serif;

    letter-spacing: -0.5px;
}

/* Subtítulos o títulos secundarios */
.section-subtitle,
.top-video-text p {
    font-family: "Coda", sans-serif !important;
    font-weight: 400;
}

.navbar {
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.navbar-brand span {
    font-weight: 700;
    letter-spacing: 0.08em;
}

.brand-nez {
    color: var(--nt-magenta);
}

.brand-telko {
    color: var(--nt-dark);
}

.hero-section {
    padding: 6rem 0 4rem;
    background: radial-gradient(circle at top left, #ffe6f1 0, #f7f7f7 40%, #ffffff 100%);
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.9rem;
    border-radius: 999px;
    background-color: rgba(189, 57, 103, 0.08);
    color: var(--nt-magenta);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-title {
    font-size: clamp(2.2rem, 3.1vw, 3rem);
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--nt-gray);
}

.hero-badge {
    font-size: 0.85rem;
    color: var(--nt-gray);
}

.tagline {
    color: var(--nt-gray);
    font-weight: 500;
}

.section-title {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--nt-gray);
    max-width: 600px;
}

.nt-card {
    border-radius: var(--nt-radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.03);
    background-color: #ffffff;
    height: 100%;
}

.nt-card-header-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: linear-gradient(135deg,
        var(--nt-magenta),
        var(--nt-magenta-light));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.3rem;
}

.nt-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.7rem;
    font-size: 0.8rem;
    border-radius: 999px;
    background-color: #f4f4f4;
    color: var(--nt-gray);
    margin: 0.15rem;
}

.nt-chip-primary {
    background-color: rgba(189, 57, 103, 0.08);
    color: var(--nt-magenta);
}

.impact-section {
    background-color: #ffffff;
}

.impact-tag {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--nt-magenta);
}

.divider-soft {
    height: 1px;
    background: linear-gradient(to right,
        transparent,
        rgba(0, 0, 0, 0.09),
        transparent);
    margin: 2.5rem 0;
}

.contact-section {
    background: linear-gradient(135deg,
        rgba(189, 57, 103, 0.08),
        rgba(255, 255, 255, 0.9));
}

.form-control:focus {
    border-color: var(--nt-magenta);
    box-shadow: 0 0 0 0.15rem rgba(189, 57, 103, 0.25);
}

.btn-nt-primary {
    background: linear-gradient(135deg,
        var(--nt-magenta),
        var(--nt-magenta-light));
    border: none;
    color: #ffffff;
    border-radius: 999px;
    padding-inline: 1.6rem;
    font-weight: 600;
}

.btn-nt-primary:hover {
    filter: brightness(1.04);
    color: #ffffff;
}

footer {
    background-color: #111111;
    color: #cccccc;
    padding: 2rem 0;
    font-size: 0.9rem;
}

footer a {
    color: #f1f1f1;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Pequeños ajustes responsivos */
@media (max-width: 767.98px) {
    .hero-section {
        padding-top: 5rem;
    }
}

.top-video-banner {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 420px;
    /* ← aquí controlas la altura del video */
    background: #000;
}

/* El video ocupa todo el contenedor */
.top-video-banner video {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* El overlay ahora también es absoluto y cubre TODO el alto */
.top-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    /* sin padding vertical para que no “encoga” el overlay */
    padding-inline: 1.5rem;
    background: linear-gradient(90deg,
        rgba(0, 0, 0, 0.50),
        rgba(0, 0, 0, 0.20),
        rgba(0, 0, 0, 0.50));
}

.top-video-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    color: #ffffff;
    flex-direction: column;
    width: 100%;
    max-width: 35rem;
}

.top-video-logo img {
    height: 60px;
}

.top-video-text h2 {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}

.top-video-text p {
    margin-bottom: 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

@media (max-width: 575.98px) {
    .top-video-banner {
        min-height: 180px;
    }

    .top-video-logo img {
        height: 100px;
    }

    .top-video-text h2 {
        font-size: 1.15rem;
    }
}


/* Sección debajo del hero */
.carrusel-servicios {
    background: #faf1fb;
    padding: 2.5rem 0;
    overflow: hidden;
}

.carrusel-servicios-track {
    display: flex;
    align-items: stretch;
    gap: 1.75rem;
    will-change: transform;
}

/* Tarjeta principal */
.carrusel-servicio-item {
    position: relative;
    flex: 0 0 300px;
    /* ancho base de la tarjeta */
    max-width: 320px;
    height: 210px;
    border-radius: 25px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    cursor: default;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        filter 0.3s ease;
}

/* Ligero blur/oscurecido para que el texto destaque */
.carrusel-servicio-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.4), transparent 50%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.45));
    pointer-events: none;
}

/* Hover: un poco más grande y luminosa */
.carrusel-servicio-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.18);
    filter: brightness(1.05);
}

/* Contenedor de la etiqueta rosa */
.carrusel-servicio-label {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    padding: 0.55rem 2.25rem;
    /* un poco más de alto y de lado */
    border-radius: 999px;
    background: var(--nt-magenta);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    display: inline-flex;
    align-items: center;
    justify-content: center;

    /* 👇 aquí está la magia */
    width: 80%;
    /* la etiqueta ocupa el 80% del ancho de la tarjeta */
    max-width: 90%;
}

/* Título dentro de la etiqueta */
.carrusel-servicio-title {
    font-size: 0.9rem;
    font-weight: 100;
    margin: 0;
    line-height: 1.2;
    text-align: center;
    color: #fff;
    /* morado oscuro para buen contraste */
}

/* Responsivo */
@media (max-width: 991.98px) {
    .carrusel-servicio-item {
        flex: 0 0 200px;
        height: 190px;
    }

    .carrusel-servicio-label {
        bottom: 16px;
        padding-inline: 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .carrusel-servicios {
        padding: 1.75rem 0;
    }

    .carrusel-servicio-item {
        flex: 0 0 170px;
        height: 170px;
        border-radius: 26px;
    }

    .carrusel-servicio-title {
        font-size: 0.8rem;
    }
}

/* === Caja principal de ÁREAS PRINCIPALES === */
.caja-areas-principales {
    position: relative;
    /* quitamos el fondo blanco fuerte para que se vea la imagen */
    background: transparent;
    border-radius: 28px;
    padding: 2.5rem 3rem;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
}

/* Fondo tecnológico más suave */
.caja-areas-principales::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("/Imagenes/fondo-3.jpg");
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    /* SUBIMOS la opacidad para que se note */
    z-index: 2;
}

/* Velo blanco suave encima de la imagen para que el texto se lea bien */
.caja-areas-principales::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.88);
    /* como si fuera un cristal esmerilado */
    z-index: 1;
}

/* Todo el contenido encima de los velos */
.caja-areas-principales>* {
    position: relative;
    z-index: 2;
}

/* === TIPOGRAFÍA Y ESTILOS === */

/* Título principal */
.caja-areas-principales h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--nt-magenta);
    /* acento Neztelco */
    letter-spacing: -0.5px;
}

/* Subtítulos (Servicios, Productos, etc.) */
.caja-areas-principales .subtitulo {
    font-size: 0.95rem;
    font-weight: 600;
    color: #6b6b6b;
    margin-bottom: 0.25rem;
}

/* Texto destacado */
.caja-areas-principales .item-valor {
    font-size: 1.15rem;
    font-weight: 800;
    color: #2b2b2b;
    margin-bottom: 1rem;
}

/* Texto descriptivo */
.caja-areas-principales .texto-descriptivo {
    font-size: 1rem;
    line-height: 1.55;
    color: #4a4a4a;
    margin-top: 1.5rem;
}

/* Línea divisora */
.caja-areas-principales .divider {
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, 0.12);
    margin: 1.2rem 0;
}

.nt-card-img {
    width: 100%;
    height: 150px;
    /* puedes ajustar alto */
    border-radius: 16px;
    overflow: hidden;
}

.nt-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* evita deformación */
}

/* --------------------------
   TITULO "CASOS DE USO"
-------------------------- */
#soluciones-red h3.section-uso-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #000;
    /* negro */
    letter-spacing: 0.5px;
    margin-bottom: 1.2rem;
}

/* --------------------------
   TARJETA DERECHA (CASOS DE USO)
-------------------------- */
.nt-card.casouso-box {
    background: rgba(255, 240, 248, 0.8);
    /* rosa suave con transparencia */
    border: 1px solid rgba(255, 0, 140, 0.15);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
}

/* --------------------------
   CHIPS ESTILIZADOS
-------------------------- */
.nt-chip {
    display: inline-block;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 20px;
    margin: 4px;
    background: #ececec;
    color: #333;
    transition: 0.25s ease;
}

/* Chip activo o principal */
.nt-chip-primary,
.nt-chip:hover {
    background: var(--nt-magenta);
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(255, 0, 120, 0.3);
    transform: translateY(-2px);
}

/* --------------------------
   TARJETA IZQUIERDA CON IMAGEN
-------------------------- */
.nt-card-has-image img {
    border-radius: 14px;
    margin-bottom: 12px;
}

/* --------------------------
   TEXTO MEJORADO
-------------------------- */
.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1e1e1e;
}

.section-subtitle {
    font-size: 1rem;
    color: #555;
    margin-top: 10px;
}

.nt-card p {
    font-size: 0.9rem;
    line-height: 1.45;
}


/* nuevo estilos */
/* Título "Casos de uso frecuentes" */
.section-uso-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #000;
    letter-spacing: 0.4px;
    margin-bottom: 1.2rem;
}

/* Tarjeta de casos de uso */
.casouso-box {
    background: rgba(255, 240, 248, 0.85);
    border-radius: 20px;
    padding: 1.75rem 2rem;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 0, 140, 0.10);
}

/* Contenedor de chips: más espacio y orden */
.chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    /* row gap / column gap */
    margin-bottom: 0.75rem;
}

/* Chips: todos iguales, estilo etiqueta, NO botón */
.nt-chip {
    display: inline-block;
    padding: 0.4rem 1.1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--nt-magenta);
    color: #fff;
    cursor: default;
    /* importante: NO parece clicable */
    border: none;
    transition: background-color 0.2s ease;
}

/* Hover sutil, sin movimiento ni sombra */
.nt-chip:hover {
    background-color: #d81f78;
    /* un poco más oscuro, nada de levantar */
}

/* Texto dentro de la tarjeta */
.casouso-box p {
    font-size: 0.9rem;
    line-height: 1.5;
}

.navbar-brand img {
    height: 32px;
    /* o 40px si lo quieres más grande */
    width: auto;
    display: block;
}


/* Contenedor general del botón */
.whatsapp-fixed {
    position: fixed;
    z-index: 5;
}

/* Por defecto (escritorio) → lado derecho a media altura */
.whatsapp-fixed {
    right: -109px;
    bottom: 50%;
    width: 168px;
    height: 66px;
}

.whatsapp-fixed:hover {
    right: -20px;
}

/* Imagen que se ve en escritorio */
.whatsapp-img-desktop {
    display: block;
    height: 60px;
}

.whatsapp-img-mobile {
    display: none;
}

/* ======= VISTA MÓVIL ======= */
@media (max-width: 768px) {

    /* Barra inferior izquierda en móvil */
    .whatsapp-fixed {
        left: 5px;
        right: auto;
        bottom: 15px;
        width: 230px;
        height: 32px;
    }

    .whatsapp-img-mobile {
        display: block;
        height: 60px;
    }

    .whatsapp-img-desktop {
        display: none;
    }
}