/*
Theme Name: Nordic Byte
Template: assembler
Description: Nordic Byte LTD corporate child theme – navy corporate-tech design
Author: Nordic Byte LTD
Version: 2.0.0
*/

/* =========================================================
   CSS CUSTOM PROPERTIES — NORDIC BYTE DESIGN SYSTEM
   ========================================================= */
:root {
    --nb-navy:        #1E3A5F;
    --nb-navy-dark:   #152D4A;
    --nb-navy-light:  #2A4F7C;
    --nb-navy-mid:    #234771;
    --nb-light:       #EEF0F2;
    --nb-white:       #FFFFFF;
    --nb-dark:        #0D1117;
    --nb-black:       #000000;
    --nb-accent:      #4A90D9;
    --nb-accent-2:    #64B5F6;
    --nb-text-light:  rgba(255,255,255,0.80);
    --nb-text-muted:  rgba(255,255,255,0.55);
    --nb-border:      rgba(255,255,255,0.12);
    --nb-border-dark: rgba(30,58,95,0.15);

    /* Project brand accents */
    --nb-meet:   #6C63FF;
    --nb-mama:   #E91E8C;
    --nb-cal:    #00BCD4;
    --nb-webcam: #FF6D00;
    --nb-mesh:   #43A047;
    --nb-money:  #FFB300;
    --nb-iot:    #00ACC1;

    --nb-radius:    6px;
    --nb-radius-lg: 12px;
    --nb-shadow:    0 4px 24px rgba(0,0,0,0.18);
    --nb-shadow-lg: 0 12px 48px rgba(0,0,0,0.28);
    --nb-transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

/* =========================================================
   GLOBAL RESETS & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

body {
    background-color: var(--nb-light);
    color: var(--nb-dark);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =========================================================
   HEADER
   ========================================================= */
.nb-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--nb-navy-dark);
    border-bottom: 1px solid var(--nb-border);
    backdrop-filter: saturate(180%) blur(12px);
}

.nb-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 72px;
}

.nb-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

/* La marca es mas alta que ancha (94x144), asi que se fija el alto y el ancho
   se calcula solo: forzar un cuadrado la deformaria. */
.nb-logo-icon {
    height: 36px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.nb-logo-text {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--nb-white);
    text-transform: uppercase;
    line-height: 1.2;
}

.nb-nav ul {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nb-nav a {
    color: var(--nb-text-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color var(--nb-transition);
}

.nb-nav a:hover { color: var(--nb-white); }

.nb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.4rem;
    border-radius: var(--nb-radius);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--nb-transition);
    cursor: pointer;
    border: none;
    line-height: 1;
    white-space: nowrap;
}

.nb-btn-primary {
    background: var(--nb-white);
    color: var(--nb-navy);
}
.nb-btn-primary:hover {
    background: var(--nb-accent-2);
    color: var(--nb-navy-dark);
    transform: translateY(-1px);
}

.nb-btn-outline {
    background: transparent;
    color: var(--nb-white);
    border: 1.5px solid rgba(255,255,255,0.5);
}
.nb-btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--nb-white);
}

.nb-btn-navy {
    background: var(--nb-navy);
    color: var(--nb-white);
}
.nb-btn-navy:hover {
    background: var(--nb-navy-light);
    transform: translateY(-1px);
    box-shadow: var(--nb-shadow);
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.nb-hero {
    background: linear-gradient(135deg, var(--nb-navy-dark) 0%, var(--nb-navy) 50%, var(--nb-navy-mid) 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.nb-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.nb-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 6rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.nb-hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    color: var(--nb-white);
    line-height: 1.1;
    margin: 0 0 1.5rem;
    letter-spacing: -0.02em;
}

.nb-hero-text p {
    font-size: 1.125rem;
    color: var(--nb-text-light);
    line-height: 1.7;
    margin: 0 0 2.5rem;
    max-width: 480px;
}

.nb-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.nb-hero-image {
    position: relative;
    border-radius: var(--nb-radius-lg);
    overflow: hidden;
    box-shadow: var(--nb-shadow-lg);
}

.nb-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--nb-radius-lg);
}

/* =========================================================
   SECTION UTILITIES
   ========================================================= */
.nb-section {
    padding: 6rem 2rem;
}

.nb-section-navy {
    background: var(--nb-navy);
    color: var(--nb-white);
}

.nb-section-navy-dark {
    background: var(--nb-navy-dark);
    color: var(--nb-white);
}

.nb-section-dark {
    background: var(--nb-dark);
    color: var(--nb-white);
}

.nb-section-light {
    background: var(--nb-light);
    color: var(--nb-dark);
}

.nb-section-white {
    background: var(--nb-white);
    color: var(--nb-dark);
}

.nb-container {
    max-width: 1280px;
    margin: 0 auto;
}

.nb-section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--nb-accent);
    margin-bottom: 1rem;
    display: block;
}

.nb-section-title {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 1.5rem;
}

.nb-section-subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.8;
    max-width: 600px;
}

/* =========================================================
   APPROACH SECTION (2-col image + text)
   ========================================================= */
.nb-approach-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.nb-approach-image {
    border-radius: var(--nb-radius-lg);
    overflow: hidden;
    box-shadow: var(--nb-shadow);
}

.nb-approach-image img {
    width: 100%;
    height: auto;
    display: block;
}

.nb-approach-text .nb-section-title { color: var(--nb-navy); }

/* =========================================================
   SERVICES SECTION
   ========================================================= */
.nb-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2px;
    margin-top: 3rem;
}

.nb-service-card {
    background: rgba(255,255,255,0.06);
    padding: 2.5rem;
    transition: background var(--nb-transition);
}

.nb-service-card:hover { background: rgba(255,255,255,0.1); }

.nb-service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--nb-white);
    margin: 1.25rem 0 0.75rem;
}

.nb-service-card p {
    font-size: 0.95rem;
    color: var(--nb-text-light);
    line-height: 1.7;
    margin: 0 0 1.5rem;
}

.nb-service-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--nb-radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nb-service-icon svg { width: 24px; height: 24px; color: var(--nb-accent-2); }

/* =========================================================
   PORTFOLIO GRID
   ========================================================= */
.nb-portfolio-filter {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.nb-filter-btn {
    padding: 0.45rem 1.1rem;
    border: 1.5px solid var(--nb-border);
    background: transparent;
    color: var(--nb-text-light);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 100px;
    cursor: pointer;
    transition: all var(--nb-transition);
}

.nb-filter-btn:hover,
.nb-filter-btn.active {
    background: var(--nb-white);
    color: var(--nb-navy);
    border-color: var(--nb-white);
}

.nb-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.nb-project-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--nb-border);
    border-radius: var(--nb-radius-lg);
    overflow: hidden;
    transition: all var(--nb-transition);
    text-decoration: none;
    color: inherit;
    display: block;
}

.nb-project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--nb-shadow-lg);
    border-color: rgba(255,255,255,0.2);
}

.nb-project-card-img {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--nb-navy-mid);
}

.nb-project-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.nb-project-card:hover .nb-project-card-img img { transform: scale(1.05); }

.nb-project-card-body {
    padding: 1.5rem;
}

.nb-project-card-cat {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--nb-accent);
    margin-bottom: 0.5rem;
    display: block;
}

.nb-project-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--nb-white);
    margin: 0 0 0.5rem;
}

.nb-project-card p {
    font-size: 0.875rem;
    color: var(--nb-text-light);
    line-height: 1.6;
    margin: 0;
}

.nb-project-card-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.nb-tag {
    padding: 0.2rem 0.65rem;
    background: rgba(255,255,255,0.1);
    color: var(--nb-text-light);
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 100px;
    letter-spacing: 0.04em;
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.nb-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.nb-testimonial-card {
    background: var(--nb-white);
    border-radius: var(--nb-radius-lg);
    padding: 2rem;
    box-shadow: 0 2px 16px rgba(30,58,95,0.08);
}

.nb-testimonial-quote {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--nb-dark);
    margin: 0 0 1.5rem;
    font-style: italic;
}

.nb-testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nb-testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--nb-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--nb-white);
    flex-shrink: 0;
}

.nb-testimonial-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--nb-dark);
}

.nb-testimonial-role {
    font-size: 0.8rem;
    color: #666;
}

/* =========================================================
   CTA BANNER
   ========================================================= */
.nb-cta-banner {
    background: linear-gradient(135deg, var(--nb-navy) 0%, var(--nb-navy-light) 100%);
    border-radius: var(--nb-radius-lg);
    padding: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.nb-cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(74,144,217,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.nb-cta-banner h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--nb-white);
    margin: 0 0 1rem;
    position: relative;
}

.nb-cta-banner p {
    font-size: 1.1rem;
    color: var(--nb-text-light);
    margin: 0 0 2rem;
    position: relative;
}

.nb-cta-banner .nb-btn-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

/* =========================================================
   FOOTER
   ========================================================= */
.nb-footer {
    background: var(--nb-dark);
    color: var(--nb-text-light);
    padding: 5rem 2rem 2rem;
}

.nb-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.nb-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nb-footer-brand .nb-logo-text { color: var(--nb-white); }

.nb-footer-desc {
    font-size: 0.875rem;
    line-height: 1.7;
    margin: 1.25rem 0 1.5rem;
    color: var(--nb-text-muted);
    max-width: 280px;
}

.nb-footer-social {
    display: flex;
    gap: 0.75rem;
}

.nb-footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nb-text-muted);
    transition: all var(--nb-transition);
    text-decoration: none;
}

.nb-footer-social a:hover {
    border-color: var(--nb-accent);
    color: var(--nb-accent);
    background: rgba(74,144,217,0.1);
}

.nb-footer-social svg { width: 16px; height: 16px; }

.nb-footer-col h4 {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--nb-white);
    margin: 0 0 1.25rem;
}

.nb-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.nb-footer-col a {
    color: var(--nb-text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--nb-transition);
}

.nb-footer-col a:hover { color: var(--nb-white); }

.nb-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    font-size: 0.8rem;
    color: var(--nb-text-muted);
    flex-wrap: wrap;
    gap: 1rem;
}

/* =========================================================
   STATS ROW
   ========================================================= */
.nb-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--nb-border);
    border-bottom: 1px solid var(--nb-border);
    margin-top: 4rem;
}

.nb-stat {
    padding: 2.5rem;
    text-align: center;
    border-right: 1px solid var(--nb-border);
}

.nb-stat:last-child { border-right: none; }

.nb-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--nb-white);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.nb-stat-label {
    font-size: 0.85rem;
    color: var(--nb-text-muted);
    font-weight: 500;
}

/* =========================================================
   SINGLE PROJECT PAGE
   ========================================================= */
.nb-project-hero {
    background: linear-gradient(135deg, var(--nb-navy-dark) 0%, var(--nb-navy) 100%);
    padding: 7rem 2rem 5rem;
    position: relative;
    overflow: hidden;
}

.nb-project-hero-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.nb-project-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--nb-white);
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

.nb-project-hero .nb-tagline {
    font-size: 1.2rem;
    color: var(--nb-text-light);
    margin: 0 0 2rem;
    font-style: italic;
}

.nb-tech-stack {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
}

.nb-project-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.nb-project-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--nb-navy);
    margin: 3rem 0 1.25rem;
}

.nb-project-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    margin: 0 0 1.25rem;
}

.nb-features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
    list-style: none;
    padding: 0;
}

.nb-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
}

/* El check es el icono 'check' de IconKit como data URI: un ::before no admite
   etiquetas, y asi no depende del glifo que traiga la fuente del sistema. */
.nb-features-list li::before {
    content: '';
    display: flex;
    width: 20px;
    height: 20px;
    background-color: var(--nb-navy);
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m4.5%2012.5%205%205%2010-11%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
}

/* =========================================================
   BLOG
   ========================================================= */
.nb-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.nb-blog-card {
    background: var(--nb-white);
    border-radius: var(--nb-radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(30,58,95,0.08);
    transition: all var(--nb-transition);
    text-decoration: none;
    color: inherit;
    display: block;
}

.nb-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--nb-shadow);
}

.nb-blog-card-img {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--nb-light);
}

.nb-blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.nb-blog-card:hover .nb-blog-card-img img { transform: scale(1.05); }

.nb-blog-card-body {
    padding: 1.5rem;
}

.nb-blog-card-meta {
    font-size: 0.78rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.nb-blog-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--nb-navy);
    margin: 0 0 0.5rem;
    line-height: 1.35;
}

.nb-blog-card p {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* =========================================================
   FORMS
   ========================================================= */
.nb-form-section {
    background: var(--nb-navy-dark);
    border-radius: var(--nb-radius-lg);
    padding: 3rem;
}

.nb-form-section .wpcf7-form label,
.nb-form-section .fluentform label {
    color: var(--nb-text-light);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.nb-form-section input,
.nb-form-section textarea,
.nb-form-section select {
    background: rgba(255,255,255,0.07);
    border: 1px solid var(--nb-border);
    color: var(--nb-white);
    border-radius: var(--nb-radius);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    width: 100%;
    transition: border-color var(--nb-transition);
}

.nb-form-section input:focus,
.nb-form-section textarea:focus {
    outline: none;
    border-color: var(--nb-accent);
}

/* =========================================================
   TEAM GRID
   ========================================================= */
.nb-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.nb-team-card {
    text-align: center;
}

.nb-team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--nb-navy-mid);
    margin: 0 auto 1rem;
    overflow: hidden;
    border: 3px solid var(--nb-border);
}

.nb-team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nb-team-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--nb-white);
    margin-bottom: 0.25rem;
}

.nb-team-role {
    font-size: 0.8rem;
    color: var(--nb-text-muted);
}

/* =========================================================
   VALUES GRID
   ========================================================= */
.nb-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.nb-value-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: rgba(255,255,255,0.05);
    border-radius: var(--nb-radius-lg);
    border: 1px solid var(--nb-border);
    transition: background var(--nb-transition);
}

.nb-value-item:hover { background: rgba(255,255,255,0.08); }

.nb-value-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.nb-value-item h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--nb-white);
    margin: 0 0 0.5rem;
}

.nb-value-item p {
    font-size: 0.85rem;
    color: var(--nb-text-muted);
    margin: 0;
    line-height: 1.6;
}

/* =========================================================
   PAGE HERO (inner pages)
   ========================================================= */
.nb-page-hero {
    background: linear-gradient(135deg, var(--nb-navy-dark) 0%, var(--nb-navy) 100%);
    padding: 6rem 2rem 5rem;
    text-align: center;
}

.nb-page-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--nb-white);
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

.nb-page-hero p {
    font-size: 1.15rem;
    color: var(--nb-text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* =========================================================
   BREADCRUMB
   ========================================================= */
.nb-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--nb-text-muted);
    margin-bottom: 0.75rem;
    justify-content: center;
}

.nb-breadcrumb a { color: var(--nb-text-muted); text-decoration: none; }
.nb-breadcrumb a:hover { color: var(--nb-accent-2); }
.nb-breadcrumb span { opacity: 0.4; }

/* =========================================================
   CONTACT INFO CARDS
   ========================================================= */
.nb-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 3rem;
}

.nb-contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.nb-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.nb-contact-icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--nb-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nb-contact-icon svg { width: 20px; height: 20px; color: var(--nb-accent-2); }

.nb-contact-item h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--nb-accent);
    margin: 0 0 0.25rem;
}

.nb-contact-item p {
    font-size: 0.95rem;
    color: var(--nb-text-light);
    margin: 0;
    line-height: 1.5;
}

/* =========================================================
   404 PAGE
   ========================================================= */
.nb-404 {
    background: linear-gradient(135deg, var(--nb-navy-dark) 0%, var(--nb-navy) 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
}

.nb-404 h1 {
    font-size: 8rem;
    font-weight: 700;
    color: rgba(255,255,255,0.08);
    line-height: 1;
    margin: 0 0 0.5rem;
}

.nb-404 h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--nb-white);
    margin: 0 0 1rem;
}

.nb-404 p {
    font-size: 1rem;
    color: var(--nb-text-light);
    margin: 0 0 2rem;
}

/* =========================================================
   SCROLL REVEAL ANIMATION
   ========================================================= */
.nb-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.nb-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.nb-reveal-delay-1 { transition-delay: 0.1s; }
.nb-reveal-delay-2 { transition-delay: 0.2s; }
.nb-reveal-delay-3 { transition-delay: 0.3s; }
.nb-reveal-delay-4 { transition-delay: 0.4s; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
    .nb-footer-grid { grid-template-columns: 1fr 1fr; }
    .nb-stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nb-header-inner { padding: 0 1.25rem; }
    .nb-hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .nb-hero-image { display: none; }
    .nb-approach-grid { grid-template-columns: 1fr; }
    .nb-contact-grid { grid-template-columns: 1fr; }
    .nb-footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .nb-stats-row { grid-template-columns: 1fr 1fr; }
    .nb-section { padding: 4rem 1.25rem; }
    .nb-cta-banner { padding: 2.5rem 1.5rem; }
    .nb-nav { display: none; }
    .nb-mobile-nav-toggle { display: flex; }
}

@media (max-width: 480px) {
    .nb-stats-row { grid-template-columns: 1fr; }
    .nb-hero-text h1 { font-size: 2rem; }
    .nb-footer-bottom { flex-direction: column; text-align: center; }
}

/* =========================================================
   MOBILE NAV TOGGLE
   ========================================================= */
.nb-mobile-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nb-mobile-nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--nb-white);
    border-radius: 2px;
    transition: all var(--nb-transition);
}

/* Mobile menu */
.nb-mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--nb-navy-dark);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.nb-mobile-menu.open { display: flex; }

.nb-mobile-menu a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--nb-white);
    text-decoration: none;
}

/* =========================================================
   WORDPRESS BLOCK OVERRIDES
   ========================================================= */
.wp-block-site-title a { color: inherit !important; text-decoration: none !important; }
.wp-block-navigation a { color: var(--nb-text-light) !important; }
.wp-block-navigation a:hover { color: var(--nb-white) !important; }
.entry-content img { max-width: 100%; height: auto; }

/* Gutenberg alignment utilities */
.alignfull { width: 100%; }
.alignwide { max-width: 1280px; margin-left: auto; margin-right: auto; }

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--nb-accent);
    outline-offset: 2px;
}

/* =========================================================
   AJUSTES DE PLANTILLA DE BLOQUES
   ========================================================= */

/* WordPress separa los hijos directos de .wp-site-blocks con
   :where(.wp-site-blocks) > * { margin-block-start: … }. Como header, main y
   footer son hijos directos, esa separacion dejaba ver el fondo del body
   como una franja clara bajo el menu. Se anula solo en el nivel superior;
   el espaciado entre bloques del contenido se mantiene. */
.wp-site-blocks > * { margin-block-start: 0; }

/* Fecha de actualizacion de las paginas legales. El bloque wp:post-date trae su
   propio color de los estilos globales; con display:inline vuelve a la misma
   linea y con color:inherit toma el gris del contenedor. */
.nb-legal-updated {
    color: rgba(255,255,255,.6);
    margin-top: .75rem;
    font-size: .9rem;
}

.nb-legal-updated .wp-block-post-date,
.nb-legal-updated time {
    display: inline;
    color: inherit;
    font-size: inherit;
}

/* =========================================================
   REJILLA DEL BLOG
   ========================================================= */

/* El bloque wp:query intercala sus propios envoltorios, asi que .nb-blog-grid
   solo tenia UN hijo: la rejilla le daba una columna de 300px y ahi dentro se
   apilaban todas las tarjetas. Se anula la rejilla exterior y se aplica sobre
   la lista que genera post-template, que es donde estan las tarjetas de verdad.
   Los dos usos del tema (home.html y archive.html) envuelven un wp:query. */
.nb-blog-grid {
    display: block;
}

.nb-blog-grid .wp-block-post-template {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nb-blog-grid .wp-block-post-template > li { margin: 0; }

/* La tarjeta entera es clicable sin envolverla en un <a>: el enlace del titulo
   se estira por encima. Antes habia un <a href="[link]"> literal que llevaba
   a un 404. Asi el enlace real es el titulo, que es lo correcto para
   lectores de pantalla: se anuncia el titulo, no "enlace" a secas. */
.nb-blog-card { position: relative; }

.nb-blog-card .wp-block-post-title a {
    color: inherit;
    text-decoration: none;
}

.nb-blog-card .wp-block-post-title a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.nb-blog-card:focus-within {
    outline: 2px solid var(--nb-accent);
    outline-offset: 3px;
}

/* Sin imagen destacada, el contenedor quedaba como un rectangulo gris vacio que
   parece un fallo de carga. Se oculta salvo que haya imagen de verdad. */
.nb-blog-card-img:not(:has(img)) { display: none; }
