/* ===========================
   Diseño moderno sin Bootstrap
   Archivo: assets/css/main.css
   =========================== */

/* 1) Reset + base */

@font-face {
    font-family: 'Poppins';
    src: url('/assets/fonts/poppins/Poppins-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('/assets/fonts/poppins/Poppins-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('/assets/fonts/poppins/Poppins-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}


*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
    font-family: "Poppins", serif;
    margin:0;
    color:var(--fg);
    background:var(--bg);
    line-height:1.6;
    font-size: .95rem;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button,input,textarea,select{font:inherit;color:inherit}

.container {
    max-width: 1400px;
}

.nNodiaHomeSlide h1 {
    font-size: 2.4rem;
    line-height: 3rem;
}
header, footer {
    background: linear-gradient(135deg, #0d6efd 0%, #6f42c1 100%);
    font-family: 'Poppins', sans-serif;
}

header {
    height: 76px;
}

header .nav-link {
    color: #ffffff;
}

header .navbar-nav .nav-link.active, header .navbar-nav .nav-link.show {
    color: rgb(255 193 7);
}

header .nav-link:focus, header .nav-link:hover {
    color: rgb(255 193 7);
}

.nNodiaTopFooter {
    background: #fbfbfb;
    border-top: 1px solid #f1f1f1;
}

.nNodiaFooterSocial svg {
    color: #ffffff;
}

.nNodiaCTA {
    position: relative;
    display: inline-block;
    padding: 4px 28px;
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 500;
    color: #181818;
    text-decoration: none;
    background: linear-gradient(135deg, #ffc107, #ffb300);

    /* forma moderna */
    clip-path: polygon(0 0, 92% 0, 100% 50%, 92% 100%, 0 100%);

    border: none;
    transition: all 0.35s ease;

    /* profundidad */
    box-shadow: 0 6px 18px rgba(255, 193, 7, 0.35);
    overflow: hidden;
}

/* efecto luz animada */
.nNodiaCTA::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.6s;
}

/* hover */
.nNodiaCTA:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(255, 193, 7, 0.5);
}

/* animación brillo */
.nNodiaCTA:hover::before {
    left: 120%;
}

.nNodiaCTA:hover {
    background: #ffc107;
    border: 1px solid #e3ac06;
    transition: .4s;
}

.nNodiaHomeSlide h1 strong {
    color: #0b57d0;
}
.btn {
    font-family: poppins, serif !important
}

.btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #6f42c1 100%);
    border-color: #ffffff24 !important;

    transition:
            transform .25s ease,
            box-shadow .25s ease,
            filter .25s ease;

    box-shadow: 0 6px 18px rgba(13,110,253,.3);
    font-size: 1.2rem;
}

/* HOVER REALMENTE SUAVE */
.btn-primary:hover {
    transform: translateY(-2px);

    filter: brightness(1.1);

    box-shadow: 0 12px 30px rgba(13,110,253,.4);

    border-color: #0b5ad5 !important;
}

.nNodiaHeaderSeparator {
    color: #e7e7e7;
    pointer-events: none;
}

.nNodiaTopFooter h4 {
    font-family: Poppins, sans-serif;
    font-weight: 500 !important;
    font-size: 1rem;
    border-bottom: 1px solid #f1f1f1;
    color: #444;
    padding-bottom: .5rem;
    margin-bottom: .5rem !important;
}

.nNodiaTopFooterContact {
    background: #ecf4ff;
}

.nnStatIcon {
    width: 45px;
    height: 45px;
    background: rgba(13,110,253,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nnStatIcon i {
    color: #333;
    font-size: 20px;
}

.nNodiaUser {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all .25s ease;
    position: relative;
    box-shadow: 0 0 2px 0px #000000;
}

/* HOVER SUAVE */
.nNodiaUser:hover{
    background:rgba(13,110,253,0.08);
}

.nNodiaUser:hover .avatar-fallback {
    background: linear-gradient(135deg, #0d66e9, #6138ad);
    transition: 0.4s;
}

/* AVATAR IMAGEN */
.nNodiaUser img{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:50%;
}

/* INICIALES */
.avatar-fallback{
    width:100%;
    height:100%;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:13px;
    font-weight:600;
    color:#fff;
    background:linear-gradient(135deg,#0d6efd,#6f42c1);
    letter-spacing:0.5px;
    transition: 0.4s;
}

/* SVG (no logueado) */
.nNodiaUser svg{
    width:22px;
    height:22px;
    color:#6c757d;
    transition:all .2s ease;
}

/* hover icono */
.nNodiaUser:hover svg{
    color:#0d6efd;
}

/* EFECTO BORDE PREMIUM */
.nNodiaUser::after{
    content:"";
    position:absolute;
    inset:0;
    border-radius:50%;
    border:1px solid rgba(0,0,0,0.05);
    pointer-events:none;
}

/* OVERRIDE BOOTSTRAP */
.btn-warning{
    background: linear-gradient(135deg, #ffc107 0%, #f59f00 100%) !important;
    color:#212529 !important;
    border:none !important;
    border-radius:10px;
    font-weight:500;

    background-size:200% auto;

    transition:
            transform .25s ease,
            box-shadow .25s ease,
            filter .25s ease,
            background-position .4s ease;

    box-shadow:0 6px 18px rgba(255,193,7,.35);
    font-size: 1.2rem;
}

/* HOVER */
.btn-warning:hover{
    transform:translateY(-2px);

    filter: brightness(1.08);

    background-position:right center;

    box-shadow:0 12px 28px rgba(245,159,0,.4);

    color:#212529 !important;
}

.nav-tabs .nav-link {
    border: none;
    color: #999;
    font-weight: 500;
}

.nav-tabs .nav-link.active {
    color: #000;
    border-bottom: 2px solid #000;
    background: transparent;
}

.tab-content {
    min-height: 150px;
}

.nNodiaCard {
    background: #fbfbfb;
    border: 1px solid #eeeeee;
    padding: 1rem 2rem;
}

.plan-box {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    min-width: 120px;
    transition: all .25s ease;
    background: #fff;
    position: relative;
}

/* HOVER */
.plan-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    background: #f5f3ff !important;
    border: 1px solid #7e5ff4 !important;
    color: #fff;
}

/* 🔥 SELECCIONADO */
.plan-box.active {
    border: 2px solid #6366f1;
    background: linear-gradient(180deg, #eef2ff 0%, #ffffff 100%);
    box-shadow: 0 12px 30px rgba(99,102,241,0.25);
    transform: translateY(-4px);
}

/* 🔥 CHECK ICON */
.plan-check {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 11px;
    background: #6366f1;
    color: #fff;
    padding: 3px 6px;
    border-radius: 6px;
    opacity: 0;
    transition: .2s;
}

.plan-box.active .plan-check {
    opacity: 1;
}

.plan-title {
    font-size: 13px;
    color: #666;
    text-transform: capitalize;
}

.active-plan .plan-save {
    color: #7f5ff5;
}

.plan-box:hover .plan-save {
    color: #7e5ff5;
}

.plan-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: #111827;
}

.nNodiaContactForm h3 {
    font-size: 1rem;
    color: #333;
}

.nNodiaTopFooter ul {
    list-style: none;
}
.nNodiaTopFooter1 a, .nNodiaTopFooter2 a, .nNodiaTopFooter3 a {
    color: #333333;
    transition: .4s;
    font-size: .9rem;
}

.nNodiaTopFooter1 a:hover, .nNodiaTopFooter2 a:hover, .nNodiaTopFooter3 a:hover {
    color: #161616;
    text-decoration: underline;
    transition: .4s;
}

.plan-save {
    color: #16a34a;
    font-size: 13px;
    font-weight: 600;
    margin-top: 5px;
}

.plan-box:hover .plan-meta {
    color: #ffffff;
}

.plan-box.active-plan .plan-meta {
    color: #ffffff;
}

.plan-meta {
    font-size: 12px;
    color: #333;
}

.plan-extra {
    font-size: 12px;
    color: #16a34a;
    font-weight: 600;
}

.plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.plan-free-badge {
    background: #16a34a;
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
}

.plan-box.active-plan {
    background: #f5f3ff !important;
    border: 1px solid #7e5ff4 !important;
    color: #fff;
}

.features-box {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    padding: 16px 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #495057;
    font-weight: 500;
}

.feature-item i {
    color: #22c55e;
    font-size: 16px;
    background: rgba(34,197,94,0.1);
    padding: 4px;
    border-radius: 50%;
}

.service-cta-box {
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
    border-radius: 16px;
    padding: 18px;

    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.price-label {
    font-size: 0.8rem;
    color: #6b7280;
}

.price-main {
    font-size: 2rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 8px;
}

.service-cta-box .btn {
    padding: 10px;
    font-size: 0.95rem;
}

.benefit-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.benefit-card:hover {
    transform: translateY(-6px);
}

.nNodiaService h1 {
    font-size: 2rem;
}
.tech-card {
    color: #fff;
    transition: all 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-6px);
}

/* COLORES SUAVES PREMIUM */
.tech-blue {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.tech-dark {
    background: linear-gradient(135deg, #111827, #1f2937);
}

.tech-purple {
    background: linear-gradient(135deg, #7c3aed, #9333ea);
}

.tech-green {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #fff;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(34,197,94,0.25);
}

/* hover PRO */
.tech-green:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(34,197,94,0.35);
}

/* icono */
.tech-green i {
    color: #fff;
    opacity: 0.9;
}

/* texto */
.tech-green p {
    opacity: 0.9;
}

.nNodiaSpacer {
    border-color: #d1d1d1;
}

.cta-form {
    border-top: 1px solid #f3f3f3;
    padding-top: 16px;
}

.cta-form input,
.cta-form textarea {
    border-radius: 8px;
    font-size: 0.9rem;
}

.cta-form .btn {
    border-radius: 10px;
}

.nNodiaContactForm input {
    padding: 7px;
}

.nNodiaContactForm textarea {
    min-height: 160px;
}

.nNodiaContactForm {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #eee;
}

.nnBlogCard {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.nnBlogCard:hover {
    transform: translateY(-6px);
}

.nnBlogImage {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
}

.nnBlogImage img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.nnBlogCard:hover img {
    transform: scale(1.05);
}

.nnBlogCategory {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #0d6efd;
    color: #fff;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 20px;
}

.nnBlogContent {
    padding: 15px 5px;
}

.nnBlogContent h5 {
    font-size: 18px;
    line-height: 1.4;
}

.nnBlogMeta {
    font-size: 13px;
}

.nNodiaTopFooter4 a {
    font-size: .9rem;
    font-weight: 500;
}

footer {
    font-size: .9rem;
}

.nNodiaServiciosBox img {
    transition: .4s;
}

.nNodiaServiciosBox:hover img {
    scale: 1.1;
    transition: .4s;
}

@media screen and (max-width: 991px) {
    header .nav-link {
        color: #333;
        text-align: center;
    }
}

@media screen and (max-width: 768px) {

    header {
        height: 60px;
    }

    .nNodiaService h1 {
        font-size: 1.6rem;
    }
    .nNodiaContactForm h3 {
        font-size: 1rem;
    }

    .nNodiaService h2 {
        font-size: 1.2rem;
    }
}