:root {
    --primary: #ffffff;
    --secondary: #f8fafc;
    --accent: #063970;
    --accent-mid: #063970;
    --accent-light: #e6f2f8;
    --accent-yellow: #f6eb17;
    --text: #1a202c;
    --text-muted: #64748b;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --glow: rgba(6,57,112,0.15);
    --shadow: rgba(0,0,0,0.08);
    --texture: url('./img/fondo.svg'); 
    --footer-bg: #061432;
    --footer-text: rgba(255,255,255,0.8);
}

html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--secondary);
    color: var(--text);
    overflow-x: hidden;
}

main > section:not(#inicio) {
    content-visibility: auto;
    contain-intrinsic-size: 760px;
}

body::before {
    content: '';
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none;
    background-attachment: fixed;
    background-position: calc(50% + var(--bg-x, 0px)) calc(50% + var(--bg-y, 0px));
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.2;
    z-index: -1;
    transition: background-position 0.3s ease-out;
    animation: floatBackground 20s ease-in-out infinite;
}

@keyframes floatBackground {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-20px, -15px) scale(1.05); }
    50% { transform: translate(15px, -20px) scale(1.03); }
    75% { transform: translate(-15px, 10px) scale(1.04); }
}

body > * {
    position: relative;
    z-index: 1;
}

/* ─── HEADER ─── */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    box-shadow: none;
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

header#main-header.scrolled {
    background-color: var(--primary) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.09);
    padding: 0.8rem 2rem;
}

.logo img {
    height: 36px;
    transition: filter 0.4s ease;
}

nav {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

nav a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-sm);
    transition: color 0.3s, background 0.3s;
}
nav a:hover { background: rgba(255,255,255,0.12); }

header.scrolled nav a { color: var(--text-muted); }
header.scrolled nav a:hover { background: var(--accent-light); color: var(--accent); }

.nav-cta {
    background: rgba(255,255,255,0.15) !important;
    border: 1px solid rgba(255,255,255,0.4) !important;
    color: #fff !important;
    margin-left: 0.5rem;
}
header.scrolled .nav-cta {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #fff !important;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 12px var(--glow); }

.language-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin-left: 0.5rem;
    padding: 0;
    border: 1px solid rgba(6,57,112,0.22);
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--accent-yellow) 0%, #ffd84d 100%);
    color: var(--accent);
    box-shadow: 0 5px 16px rgba(6,57,112,0.16), inset 0 1px 0 rgba(255,255,255,0.25);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.language-switcher:hover {
    transform: translateY(-1px);
    filter: saturate(1.08);
    box-shadow: 0 7px 18px rgba(6,57,112,0.22), inset 0 1px 0 rgba(255,255,255,0.25);
}

.language-switcher::after {
    content: '';
    position: absolute;
    right: 0.7rem;
    top: 50%;
    width: 0.42rem;
    height: 0.42rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    pointer-events: none;
    transform: translateY(-65%) rotate(45deg);
}

.language-switcher-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    min-width: 82px;
    padding: 0.5rem 1.7rem 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    letter-spacing: 0.02em;
}

.language-switcher-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.3em;
    height: 1.3em;
    font-size: 1rem;
    line-height: 1;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.12));
}

.language-switcher-code {
    line-height: 1;
}

.language-switcher select {
    appearance: none;
    -webkit-appearance: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 900;
    cursor: pointer;
    outline: none;
    opacity: 0;
}

.mobile-language-switcher select {
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    outline: none;
    min-width: 100%;
    opacity: 0;
    position: absolute;
    inset: 0;
}

.mobile-language-switcher {
    position: relative;
}

.mobile-language-current {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-left: auto;
    color: inherit;
    font-size: 0.85rem;
    font-weight: 900;
}

.language-switcher select option,
.mobile-language-switcher select option {
    color: var(--text);
}

header.scrolled .language-switcher {
    border-color: rgba(6,57,112,0.24);
    background: linear-gradient(135deg, var(--accent-yellow) 0%, #ffd84d 100%);
    color: var(--accent);
}

#google_translate_element,
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
.goog-logo-link,
.goog-te-gadget,
.VIpgJd-ZVi9od-ORHb-OEVmcd {
    display: none !important;
}

body {
    top: 0 !important;
}

/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: background 0.3s;
}
.hamburger span {
    display: block;
    width: 24px; height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.35s, opacity 0.35s, background 0.4s;
}
header.scrolled .hamburger span { background: var(--accent); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
    position: fixed;
    top: 0; right: -100%;
    width: 280px; height: 100dvh;
    background: var(--footer-bg);
    z-index: 999;
    padding: 6rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0,0,0,0.3);
}
.mobile-menu.open { right: 0; }
.mobile-menu a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    transition: background 0.3s, color 0.3s;
}
.mobile-menu a:hover { background: rgba(255,255,255,0.08); color: #fff; }

.mobile-language-switcher {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.25rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.88);
    font-size: 0.95rem;
    font-weight: 700;
}

.mobile-language-switcher select {
    color: #fff;
}
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}
.mobile-overlay.open { opacity: 1; pointer-events: all; }

/* ─── HERO ─── */
#inicio {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 1.5rem 14rem;
    min-height: 100vh;
    color: #fff;
    overflow: hidden;
    z-index: 1;
}

#background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -2;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(6, 20, 50, 0.6);
    z-index: -1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.85);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.35rem 0.9rem;
    border-radius: 4px;
    margin-bottom: 1.25rem;
}
.hero-badge-dot {
    width: 6px; height: 6px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.7; }
}

#inicio h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    line-height: 1.15;
    font-weight: 700;
    color: #fff;
    max-width: 800px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    margin-bottom: 1.25rem;
}

#inicio h1 em {
    font-style: normal;
    color: rgba(255,255,255,0.8);
}

#dynamic-text-container {
    display: inline;
    color: #fff;
}

#word1, #word2 {
    transition: opacity 0.45s ease;
}

#inicio .content {
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#inicio p.hero-sub {
    font-size: clamp(1rem, 2vw, 1.15rem);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    color: rgba(255,255,255,0.82);
    font-weight: 700;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.85rem 1.8rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(6,57,112,0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-primary:hover { 
    background: var(--accent-mid);
    transform: translateY(-2px); 
    box-shadow: 0 8px 24px rgba(6,57,112,0.3); 
}

.btn-outline {
    background: transparent;
    color: #fff;
    
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.9rem 2rem;
    border: 1.5px solid rgba(255,255,255,0.5);
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.25s, background 0.25s;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255,255,255,0.5);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: float-up-down 2.5s ease-in-out infinite;
}
.scroll-line {
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
}
@keyframes float-up-down {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* ─── SERVICE PREVIEW CARDS ─── */
#servicios-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 0 1.5rem;
    margin-top: -1rem;
    position: relative;
    z-index: 2;
    width: 100%;
    overflow: hidden;
}

#servicios::before,
#packages-section::before,
#contacto::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(6, 57, 112, 0.08) 1px, transparent 1px);
    background-repeat: repeat;
    background-position: center top;
    background-size: 900px auto;
    opacity: 0.025;
    pointer-events: none;
    z-index: 0;
}

#servicios > *,
#packages-section > *,
#contacto > * {
    position: relative;
    z-index: 1;
}

.preview-header {
    display: none; /* Keep it clean like original - no header above preview cards */
}

.label-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    background: var(--accent-yellow);
    color: var(--accent);
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.preview-cards {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
    justify-content: center;
    align-items: stretch;
}

.card {
    background: var(--primary);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 280px;
    text-align: center;
    flex: 1;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.13);
}

.card-icon {
    width: 44px; height: 44px;
    background: var(--accent-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.card-icon svg { stroke: var(--accent); }

.card h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.6rem;
}

.card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ─── SERVICIOS ─── */
#servicios {
    position: relative;
    overflow: hidden;
}

/* ─── SERVICES GRID ─── */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 2rem auto 0;
}

.service-item {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    cursor: pointer;
    position: relative;
}

.service-item:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: var(--accent);
}

.service-icon {
    width: 50px; height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.service-item:hover .service-icon {
    background: var(--accent-mid);
    transform: scale(1.05);
}

.service-icon svg { 
    stroke: var(--accent); 
    width: 24px; 
    height: 24px; 
    transition: all 0.3s ease;
}

.service-item:hover .service-icon svg {
    stroke: white;
}

.service-content {
    flex: 1;
    transition: all 0.3s ease;
}

.service-item:hover .service-content {
    transform: translateX(3px);
}

.service-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.service-item:hover h3 {
    color: var(--accent);
}

.service-item:hover h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-yellow);
}

.service-item p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
    display: block;
    transition: all 0.3s ease;
}

.service-item:hover p {
    color: var(--text-muted);
}

/* ─── SERVICE MODAL ─── */
.service-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
    padding: 1.5rem 0;
}

.service-modal-content {
    position: relative;
    margin: min(5vh, 3rem) auto;
    background: var(--primary);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease;
}

.service-modal.package-modal .service-modal-content {
    max-width: 1140px;
}

.service-modal.certification-modal .service-modal-content {
    max-width: 560px;
}

.service-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.service-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    padding-right: 1rem;
}

.service-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.3s;
}

.service-modal-close:hover {
    color: var(--accent);
}

.service-modal-media {
    margin-bottom: 1.5rem;
}

.service-modal-media img {
    width: 100%;
    display: block;
    border-radius: var(--radius-md);
    object-fit: cover;
    max-height: 280px;
}

.service-modal.certification-modal .service-modal-media {
    background: var(--secondary);
    border: 1px solid rgba(6,57,112,0.08);
    border-radius: var(--radius-md);
    padding: 1.4rem;
}

.service-modal.certification-modal .service-modal-media img {
    width: auto;
    max-width: min(280px, 100%);
    height: auto;
    max-height: 130px;
    margin: 0 auto;
    object-fit: contain;
}

.service-modal-body {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.certification-detail {
    margin-bottom: 1rem;
}

.certification-source-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(6,57,112,0.28);
}

.certification-source-link:hover {
    border-bottom-color: currentColor;
}

.package-modal-intro {
    margin-bottom: 0.9rem;
    max-width: 760px;
}

.package-included {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1.4rem;
}

.package-included span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    background: rgba(102, 204, 51, 0.16);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
}

.package-included .package-color-pill {
    gap: 0.45rem;
    background: rgba(6,57,112,0.08);
}

.package-included .color-swatches {
    min-height: auto;
    margin-left: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
}

.package-color-option {
    align-items: center;
    gap: 0.45rem;
}

.color-swatches {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    margin-left: 0.1rem;
}

.color-swatch {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(6,57,112,0.18);
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.9);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.color-swatch:disabled {
    cursor: default;
    opacity: 0.5;
    transform: none !important;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.9) !important;
}

.color-swatch:not(:disabled):hover,
.color-swatch.active {
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.9), 0 3px 10px rgba(6,57,112,0.16);
}

.color-swatch-white {
    background: #fff;
}

.color-swatch-black {
    background: #101214;
}

.package-components-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.package-component-card {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    align-items: center;
    gap: 1.1rem;
    min-height: 128px;
    padding: 1rem 1.2rem;
    border-radius: var(--radius-md);
    background: #f0f0f0;
}

.package-ajax-system-card {
    border: 1px solid rgba(6, 57, 112, 0.12);
    background: linear-gradient(135deg, rgba(6, 57, 112, 0.08), rgba(102, 204, 51, 0.1));
}

.package-ajax-system-card .package-component-media {
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(6,57,112,0.08);
}

.package-ajax-system-card .package-component-media img {
    width: 72px;
    height: 72px;
    max-width: 72px;
    max-height: 72px;
    border-radius: 18px;
    object-fit: cover;
    object-position: center;
}

.package-component-media {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 96px;
}

.package-component-media img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.package-component-copy h4 {
    margin: 0 0 0.45rem;
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.25;
    font-weight: 800;
}

.package-component-copy h4 span {
    display: inline-flex;
    vertical-align: middle;
    margin-left: 0.35rem;
    border-radius: 4px;
    padding: 0.08rem 0.28rem;
    background: #66cc33;
    color: #122200;
    font-size: 0.58rem;
    line-height: 1.2;
    font-weight: 800;
}

.package-component-copy p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.service-modal.package-gallery-modal .service-modal-content {
    max-width: min(1120px, calc(100vw - 2rem));
}

.package-gallery {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.72fr);
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: center;
}

.package-gallery-stage {
    position: relative;
    min-height: 440px;
    border-radius: var(--radius-md);
    background: #f4f6f8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow: hidden;
}

.package-gallery-stage img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 390px;
    object-fit: contain;
    display: block;
    filter: saturate(1.04) contrast(1.02);
    transform: translateZ(0);
    image-rendering: auto;
    user-select: none;
}

.package-gallery-stage img.compact-render {
    transform: translateZ(0) scale(2.35);
}

.package-gallery-info {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.package-gallery-count {
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.package-gallery-info h4 {
    color: var(--text);
    font-size: clamp(1.45rem, 3vw, 2.25rem);
    line-height: 1.08;
    margin-bottom: 0.75rem;
}

.package-gallery-badge {
    align-self: flex-start;
    border-radius: 4px;
    padding: 0.18rem 0.45rem;
    background: #66cc33;
    color: #122200;
    font-size: 0.7rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.package-gallery-info p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.package-gallery-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
}

.package-gallery-control {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(6,57,112,0.18);
    border-radius: 50%;
    background: #fff;
    color: var(--accent);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.25s, color 0.25s, transform 0.25s;
}

.package-gallery-control:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-1px);
}

.package-gallery-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-left: 0.2rem;
}

.package-gallery-dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 50%;
    background: rgba(6,57,112,0.22);
    cursor: pointer;
    padding: 0;
}

.package-gallery-dot.active {
    background: var(--accent);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(12px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── NOSOTROS ─── */
#nosotros {
    background: var(--primary);
    padding: 6rem 1.5rem;
    overflow: hidden;
    position: relative;
}

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

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.about-text h2 {
    
    font-size: clamp(1.9rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-text em {
    font-style: normal;
    font-weight: 700;
    color: var(--accent);
}

.about-text .btn-accent {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-sm);
    transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.about-text .btn-accent:hover {
    background: var(--accent-mid);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--glow);
}

.map-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 430px;
}

.mexico-map {
    width: 100%;
    max-width: 420px;
    height: auto;
    filter: drop-shadow(0 12px 32px rgba(6,57,112,0.15));
}

.branch-marker {
    position: absolute;
    z-index: 2;
    width: 58px;
    height: 58px;
    border: 2px solid rgba(255,255,255,0.95);
    border-radius: 50%;
    background: radial-gradient(circle at 32% 24%, #fff 0, #fff 45%, #edf5ff 100%);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(6,57,112,0.24), inset 0 0 0 7px rgba(6,57,112,0.05);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.branch-marker::before {
    content: attr(data-branch-label);
    position: absolute;
    left: 50%;
    top: calc(100% + 0.45rem);
    transform: translateX(-50%);
    min-width: 44px;
    border-radius: 999px;
    padding: 0.22rem 0.48rem;
    background: rgba(6,57,112,0.92);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: 0 10px 20px rgba(6,57,112,0.18);
}

.branch-marker::after {
    content: '';
    position: absolute;
    inset: -10px;
    border: 2px solid rgba(0,95,168,0.3);
    border-radius: inherit;
    opacity: 0.55;
    transform: scale(0.9);
    animation: branchPulse 2.6s ease-out infinite;
    transition: opacity 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}

.branch-marker:hover,
.branch-marker.active {
    transform: translateY(-4px) scale(1.04);
    border-color: #fff;
    color: #052f5e;
    box-shadow: 0 22px 48px rgba(6,57,112,0.32), inset 0 0 0 7px rgba(0,95,168,0.11);
}

.branch-marker:hover::after,
.branch-marker.active::after {
    opacity: 0.95;
    transform: scale(1.06);
    border-color: rgba(0,95,168,0.52);
    animation-duration: 1.8s;
}

.branch-marker-icon {
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 1;
}

.branch-marker-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.branch-marker-cdmx { left: 54%; top: 57%; }
.branch-marker-puebla { left: 67%; top: 61%; }
.branch-marker-guadalajara { left: 24%; top: 50%; }
.branch-marker-monterrey { left: 47%; top: 19%; }
.branch-marker-queretaro { left: 42%; top: 46%; }

@keyframes branchPulse {
    0% {
        opacity: 0.58;
        transform: scale(0.88);
        box-shadow: 0 0 0 0 rgba(0,95,168,0.28);
    }
    70% {
        opacity: 0.12;
        transform: scale(1.28);
        box-shadow: 0 0 0 12px rgba(0,95,168,0);
    }
    100% {
        opacity: 0;
        transform: scale(1.32);
        box-shadow: 0 0 0 14px rgba(0,95,168,0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .branch-marker::after {
        animation: none;
    }

    .cert-carousel-viewport {
        scroll-behavior: auto;
    }

    .cert-item,
    .certificaciones-track img,
    .cert-carousel-btn,
    .cert-carousel-dot {
        transition: none;
    }
}

.branch-card {
    position: absolute;
    z-index: 3;
    left: 5%;
    bottom: 5%;
    width: min(335px, 88vw);
    padding: 1.45rem;
    border: 1px solid rgba(6,57,112,0.12);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.96);
    box-shadow: 0 24px 58px rgba(6,57,112,0.24);
    backdrop-filter: blur(12px);
    transform-origin: left bottom;
}

.branch-card[hidden] {
    display: none;
}

.branch-card-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: rgba(6,57,112,0.08);
    color: var(--accent);
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
}

.branch-card-label {
    display: inline-flex;
    margin-bottom: 0.55rem;
    color: var(--accent-mid);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.branch-card h3 {
    margin: 0 2rem 0.75rem 0;
    color: var(--accent);
    font-size: 1.28rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.branch-card p {
    margin: 0 0 1.1rem;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.branch-card a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.25rem;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(6,57,112,0.22);
    transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.branch-card a:hover {
    background: #052f5e;
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(6,57,112,0.28);
}

/* Partners carousel */
.partners-section {
    margin-top: 5rem;
    padding-top: 4rem;
    border-top: none; /* remove section divider */
}

.partners-section h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
    text-align: center;
    margin-bottom: 2.5rem;
}

.logos-slider { width: 100%; overflow: hidden; }
.logos-track {
    display: flex;
    width: calc(200px * 20 + 40px * 19); /* Ancho exacto para loop */
    animation: scroll 40s linear infinite;
    gap: 40px;
    align-items: center;
}
.logos-track img {
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Clases individuales para cada partner */
.partner-alsea { height: 90px !important; }
.partner-bardahl { height: 90px !important; }
.partner-burgerking { height: 55px !important; }
.partner-cantia { height: 45px !important; }
.partner-chilis { height: 50px !important; }
.partner-corazondebarro { height: 90px !important; }
.partner-dominos { height: 100px !important; }
.partner-elpalaciodehierro { height: 45px !important; }
.partner-lumen { height: 105px !important; }
.partner-macstore { height: 110px !important; }
.partner-mercedesbenz { height: 40px !important; }
.partner-mundojoven { height: 120px !important; }
.partner-officedepot { height: 100px !important; }
.partner-balenciaga { height: 18px !important; }
.partner-bottega { height: 15px !important; }
.partner-pfchang { height: 110px !important; }
.partner-puma { height: 65px !important; }
.partner-soriana { height: 110px !important; }
.partner-starbucks { height: 100px !important; }
.partner-vips { height: 110px !important; }

.logos-track img {
    filter: grayscale(1);
    opacity: 0.5;
    transition: opacity 0.3s, filter 0.3s;
}
.logos-track img:hover { filter: grayscale(0); opacity: 1; }

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-200px * 20 - 40px * 19)); } /* Mover exactamente una tanda completa */
}

/* ─── WHY US (valor proposition) ─── */
#por-que {
    background: var(--accent);
    padding: 6rem 1.5rem;
    position: relative;
    overflow: hidden;
}

#por-que::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}

.por-que-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1100px;
    margin: 3rem auto 0;
}

.monitoring-apps-showcase {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.35fr);
    gap: 1.5rem;
    width: min(1120px, 100%);
    margin: 3rem auto 0;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.07);
    box-shadow: 0 28px 70px rgba(0,0,0,0.18);
    backdrop-filter: blur(10px);
}

.monitoring-apps-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
    padding: clamp(1.25rem, 3vw, 2rem);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.08);
}

.monitoring-apps-copy span {
    width: fit-content;
    margin-bottom: 0.9rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: var(--accent-yellow);
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.monitoring-apps-copy h3 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    line-height: 1.15;
}

.monitoring-apps-copy p {
    margin-top: 1rem;
    color: rgba(255,255,255,0.72);
    font-size: 0.94rem;
    line-height: 1.7;
}

.monitoring-apps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.monitoring-app-card {
    display: flex;
    flex-direction: column;
    min-height: 250px;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.95);
    box-shadow: 0 18px 36px rgba(0,0,0,0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.monitoring-app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 46px rgba(0,0,0,0.18);
}

.monitoring-app-card img {
    width: 72px;
    height: 72px;
    margin-bottom: 1rem;
    border-radius: 20px;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 12px 24px rgba(6,57,112,0.16);
}

.monitoring-app-card h4 {
    margin: 0 0 0.45rem;
    color: var(--accent);
    font-size: 0.98rem;
    line-height: 1.2;
}

.monitoring-app-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.55;
}

.monitoring-process-grid {
    margin-top: 1.5rem;
}

.por-que-header { text-align: center; max-width: 780px; margin: 0 auto; }
.por-que-header .section-label { color: rgba(255,255,255,0.6); }
.por-que-header h2 {
    
    font-size: clamp(1.9rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.por-que-header p {
    margin: 0.95rem auto 0;
    max-width: 700px;
    color: rgba(255,255,255,0.74);
    font-size: 1rem;
    line-height: 1.75;
}

.valor-item {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: background 0.3s, transform 0.3s;
}
.valor-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-3px);
}

.valor-num {
    
    font-size: 2.5rem;
    color: rgba(255,255,255,0.2);
    line-height: 1;
    margin-bottom: 0.75rem;
}

.valor-item h3 {
    font-size: 1.08rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.25;
}

.valor-item p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.7;
}

/* ─── PACKAGES ─── */
#packages-section {
    padding: 6rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    
    font-size: clamp(1.9rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
}

.section-header p {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0.75rem auto 0;
    line-height: 1.7;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.package-card {
    background: var(--primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
}

.package-card[hidden] {
    display: none;
}

.package-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(6,57,112,0.12);
}

.package-img-wrap {
    position: relative;
    overflow: hidden;
    background: #fff;
}

.package-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    display: block;
    transition: transform 0.5s ease;
}

.package-card img.package-image-white {
    object-fit: cover;
    object-position: center;
}

.package-card:hover img { transform: scale(1.04); }

.package-tag {
    position: absolute;
    top: 1rem; left: 1rem;
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
}

.package-gallery-button {
    position: absolute;
    right: 0.9rem;
    bottom: 0.9rem;
    z-index: 2;
    border: 1px solid rgba(255,255,255,0.65);
    border-radius: var(--radius-sm);
    background: rgba(6,20,50,0.82);
    color: #fff;
    min-height: 34px;
    padding: 0.45rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(6,20,50,0.24);
    transition: background 0.25s, transform 0.25s, border-color 0.25s;
}

.package-gallery-button:hover {
    transform: translateY(-2px);
    background: var(--accent);
    border-color: var(--accent-yellow);
}

.package-body {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.package-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}

.package-card ul {
    list-style: none;
    flex: 1;
}

.package-card li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.package-card li:last-child { border-bottom: none; }

.check-icon {
    flex-shrink: 0;
    width: 18px; height: 18px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.check-icon::after {
    content: '';
    display: block;
    width: 9px; height: 9px;
    background: #fff;
    -webkit-mask-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpolyline points="20 6 9 17 4 12"/%3E%3C/svg%3E');
    mask-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpolyline points="20 6 9 17 4 12"/%3E%3C/svg%3E');
}

.package-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: none; /* remove inner package divider for cleaner look */
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.btn-package {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: gap 0.25s;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}
.btn-package:hover { gap: 0.7rem; }

.btn-package-primary {
    margin-left: auto;
    padding: 0.45rem 0.65rem;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: #fff;
    font-size: 0.76rem;
    line-height: 1.2;
    text-align: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(6,57,112,0.18);
}

.btn-package-primary:hover {
    gap: 0.4rem;
    background: #052f5e;
}

/* ─── CERTIFICACIONES ─── */
#certificaciones {
    background: var(--primary);
    padding: 6rem 1.5rem;
    overflow: hidden;
    position: relative;
}

.certificaciones-carousel {
    position: relative;
    width: min(1180px, 100%);
    margin: 3rem auto 0;
    padding: 0 3.7rem 2.8rem;
}

.certificaciones-carousel::before,
.certificaciones-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 2.8rem;
    z-index: 2;
    width: 4.5rem;
    pointer-events: none;
}

.certificaciones-carousel::before {
    left: 3.7rem;
    background: linear-gradient(90deg, var(--primary) 0%, rgba(255,255,255,0) 100%);
}

.certificaciones-carousel::after {
    right: 3.7rem;
    background: linear-gradient(270deg, var(--primary) 0%, rgba(255,255,255,0) 100%);
}

.cert-carousel-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    border-radius: var(--radius-md);
}

.cert-carousel-viewport::-webkit-scrollbar {
    display: none;
}

.certificaciones-track {
    display: flex;
    gap: 1.25rem;
    align-items: stretch;
    padding: 0.35rem 0.1rem 0.7rem;
}

.cert-item {
    appearance: none;
    background: var(--secondary);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 calc((100% - 3.75rem) / 4);
    aspect-ratio: 1.45;
    scroll-snap-align: start;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s, filter 0.3s;
    min-height: 120px;
    border: 1px solid rgba(6,57,112,0.06);
    box-shadow: 0 12px 28px rgba(6,57,112,0.06);
    cursor: pointer;
    font: inherit;
}

.cert-item:hover,
.cert-item:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(6,57,112,0.15);
    box-shadow: 0 18px 36px rgba(6,57,112,0.12);
    outline: none;
}

.cert-item:focus-visible {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(6,57,112,0.16), 0 18px 36px rgba(6,57,112,0.12);
}

.certificaciones-track img {
    width: auto;
    max-width: 84%;
    height: auto;
    max-height: 66px;
    object-fit: contain;
    filter: saturate(0.8);
    transition: filter 0.3s, transform 0.3s;
}

.cert-item:hover img,
.cert-item:focus-visible img {
    filter: saturate(1);
    transform: scale(1.02);
}

.cert-item--wide img {
    max-width: 72%;
    max-height: 44px;
}

.cert-item--ajax img {
    max-width: 88%;
    max-height: 58px;
}

.cert-carousel-btn {
    position: absolute;
    top: calc(50% - 1.4rem);
    z-index: 4;
    width: 2.8rem;
    height: 2.8rem;
    border: 1px solid rgba(6,57,112,0.14);
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 14px 32px rgba(6,57,112,0.22);
    transition: transform 0.25s, background 0.25s, opacity 0.25s;
}

.cert-carousel-btn:hover {
    transform: translateY(-2px);
    background: #052f5e;
}

.cert-carousel-btn:disabled {
    cursor: default;
    opacity: 0.36;
    transform: none;
}

.cert-carousel-btn svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cert-carousel-btn--prev {
    left: 0;
}

.cert-carousel-btn--next {
    right: 0;
}

.cert-carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    transform: translateX(-50%);
}

.cert-carousel-dot {
    width: 0.55rem;
    height: 0.55rem;
    border: 0;
    border-radius: 50%;
    background: rgba(6,57,112,0.2);
    cursor: pointer;
    transition: width 0.25s, border-radius 0.25s, background 0.25s;
}

.cert-carousel-dot.active {
    width: 1.65rem;
    border-radius: 999px;
    background: var(--accent);
}

/* ─── CONTACTO ─── */
#contacto {
    padding: 6rem 1.5rem;
    background-color: var(--secondary);
    overflow: hidden;
    position: relative;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 3rem auto 0;
}

.contact-form-wrap {
    background-color: var(--primary);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    position: relative;
}

form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.form-group { position: relative; }

@media (max-width: 900px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

input, select, textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid #e0e7f0;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    
    color: var(--text);
    background: var(--secondary);
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
    appearance: none;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 4px var(--glow);
}

textarea { resize: vertical; min-height: 120px; }

.ghost { display: none; }

.error-message {
    color: #c0392b;
    font-size: 0.78rem;
    margin-top: 0.3rem;
    display: none;
    font-weight: 600;
}

.btn-submit {
    width: 100%;
    background: var(--accent);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: var(--radius-sm);
    
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.btn-submit:hover {
    background: var(--accent-mid);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--glow);
}

input.error,
select.error,
textarea.error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 320px;
    padding: 16px 20px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateX(20px);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.notification-success {
    background: #10b981;
}

.notification-error {
    background: #ef4444;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.contact-panel {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.pbox {
    background: var(--primary);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border-left: 4px solid var(--accent);
}

.pbox h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
}

.pbox a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.4rem 0;
    transition: color 0.25s;
}
.pbox a:hover { color: var(--accent); }

.pbox .icon {
    width: 20px; height: 20px;
    background-color: var(--accent);
    flex-shrink: 0;
}

.pbox p.p3 {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 1.6rem;
}

/* ─── BLOG ─── */
.blog-page {
    background: var(--secondary);
}

.blog-page header.scrolled {
    background-color: var(--primary) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.blog-page header.scrolled nav a {
    color: var(--text-muted);
}

.blog-page header:not(.scrolled) nav a {
    color: rgba(255,255,255,0.9);
}

.blog-page header:not(.scrolled) nav a:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.blog-page header.scrolled nav a:hover {
    background: var(--accent-light);
    color: var(--accent);
}

.blog-page header.scrolled .hamburger span {
    background: var(--accent);
}

.blog-hero {
    min-height: 100vh;
    padding: 7rem 1.5rem 5.5rem;
    background: #061432;
    color: #fff;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.news-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6,20,50,0.86) 0%, rgba(6,57,112,0.72) 58%, rgba(6,20,50,0.88) 100%);
    z-index: 1;
    pointer-events: none;
}

.blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(6, 57, 112, 0.08) 1px, transparent 1px);
    background-position: center;
    background-size: 900px auto;
    opacity: 0.03;
    pointer-events: none;
    z-index: 2;
}

.blog-hero-inner {
    max-width: 820px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
    text-align: center;
}

.news-scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: 2rem;
    z-index: 3;
    transform: translateX(-50%);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    animation: float-up-down 2.5s ease-in-out infinite;
}

.news-scroll-indicator span {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.55), transparent);
}

.blog-hero h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    line-height: 1.15;
    margin: 1rem auto;
    color: #fff;
}

.blog-hero p {
    max-width: 640px;
    margin: 0 auto;
    color: rgba(255,255,255,0.78);
    font-size: clamp(1rem, 2vw, 1.15rem);
    font-weight: 700;
    line-height: 1.7;
}

.news-trust-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    max-width: 620px;
    margin: 2rem auto 0;
}

.news-trust-strip div {
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    padding: 1rem;
}

.news-trust-strip strong {
    display: block;
    color: var(--accent-yellow);
    font-size: 1.35rem;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.news-trust-strip span {
    color: rgba(255,255,255,0.68);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.blog-index-section,
.related-section {
    padding: 4rem 1.5rem 6rem;
}

.news-toolbar {
    max-width: 1180px;
    margin: 0 auto 1.25rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: end;
}

.news-toolbar h2 {
    color: var(--accent);
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    line-height: 1.05;
}

.news-topic-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.news-filter {
    border: 1px solid rgba(6,57,112,0.14);
    background: var(--primary);
    color: var(--text-muted);
    border-radius: 999px;
    padding: 0.62rem 0.95rem;
    font-weight: 800;
    font-size: 0.78rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.news-filter:hover,
.news-filter.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.news-count {
    max-width: 1180px;
    margin: 0 auto 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.blog-intro-section {
    padding: 5rem 1.5rem 2rem;
    background: #fff;
}

.blog-intro-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    align-items: end;
    border-bottom: 1px solid rgba(6,57,112,0.1);
    padding-bottom: 3rem;
}

.blog-intro-copy h2,
.blog-suggestions-header h2 {
    color: var(--accent);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
    margin: 0.75rem 0 1rem;
}

.blog-intro-copy p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: 720px;
}

.blog-intro-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.5rem;
}

.blog-intro-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0.55rem 0.8rem;
    border: 1px solid rgba(6,57,112,0.14);
    border-radius: var(--radius-sm);
    color: var(--accent);
    background: var(--primary);
    font-size: 0.82rem;
    font-weight: 800;
}

.blog-intro-visual {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: 0 18px 42px rgba(6,57,112,0.14);
    background: var(--accent);
}

.blog-intro-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6,20,50,0.02) 0%, rgba(6,20,50,0.72) 100%);
    pointer-events: none;
}

.blog-intro-visual img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    display: block;
    object-fit: cover;
    object-position: center;
}

.blog-intro-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 1;
    width: min(180px, calc(100% - 2.5rem));
    padding: 1rem;
    background: rgba(255,255,255,0.94);
    border-left: 4px solid var(--accent-yellow);
    border-radius: var(--radius-sm);
    box-shadow: 0 14px 32px rgba(0,0,0,0.18);
}

.blog-intro-badge strong {
    display: block;
    color: var(--accent);
    font-size: 2.15rem;
    line-height: 1;
}

.blog-intro-badge span {
    display: block;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.35;
    margin-top: 0.35rem;
}

.blog-intro-points {
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    max-width: 92%;
}

.blog-intro-points span {
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: 0.85rem 1rem;
    background: rgba(255,255,255,0.93);
    border-left: 4px solid var(--accent-yellow);
    border-radius: var(--radius-sm);
    color: var(--accent);
    font-size: 0.92rem;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(0,0,0,0.13);
    backdrop-filter: blur(8px);
}

.blog-card-media {
    display: block;
    overflow: hidden;
    background: var(--accent-light);
}

.blog-card-media img,
.article-hero-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.blog-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-light);
    border-radius: 999px;
    padding: 0.42rem 0.72rem;
}

.article-hero h1 {
    color: var(--accent);
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.04;
    margin: 1rem 0;
}

.blog-card p,
.article-hero p,
.article-body p {
    color: var(--text-muted);
    line-height: 1.75;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 1.25rem 0;
}

.blog-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.8rem;
}

.blog-card {
    background: var(--accent);
    border: 1px solid rgba(6,57,112,0.12);
    border-radius: var(--radius-md);
    overflow: hidden;
    min-height: 100%;
    box-shadow: 0 14px 32px rgba(6,57,112,0.13);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 42px rgba(6,57,112,0.2);
    border-color: rgba(246,235,23,0.45);
}

.blog-card-media {
    aspect-ratio: 16 / 11;
    min-height: 190px;
}

.blog-card-media img {
    transition: transform 0.35s ease;
}

.blog-card:hover .blog-card-media img {
    transform: scale(1.045);
}

.blog-card-body {
    padding: 1.45rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 285px;
    position: relative;
}

.blog-card-body::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(6, 57, 112, 0.08) 1px, transparent 1px);
    background-size: 620px auto;
    background-position: center;
    opacity: 0.035;
    pointer-events: none;
}

.blog-card-body > * {
    position: relative;
    z-index: 1;
}

.blog-card h3 {
    font-size: 1.2rem;
    line-height: 1.08;
    margin: 0.65rem 0 0.8rem;
}

.blog-card h3 a {
    color: #fff;
    text-decoration: none;
}

.blog-card p {
    color: rgba(255,255,255,0.76);
    font-size: 0.92rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card .blog-kicker {
    background: rgba(255,255,255,0.12);
    color: var(--accent-yellow);
    border: 1px solid rgba(255,255,255,0.12);
}

.blog-card .blog-meta {
    color: rgba(255,255,255,0.56);
    margin: 0.85rem 0 0;
    gap: 0.55rem;
}

.blog-read-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: auto;
    color: var(--accent);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
}

.blog-card .blog-read-link {
    width: fit-content;
    min-width: 178px;
    justify-content: center;
    margin-top: auto;
    padding: 0.8rem 1rem;
    background: #fff;
    color: var(--accent);
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.blog-read-link svg {
    transition: transform 0.25s ease;
}

.blog-read-link:hover svg {
    transform: translateX(4px);
}

.article-hero {
    padding: 8rem 1.5rem 4rem;
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.article-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    font-weight: 800;
    text-decoration: none;
    margin-bottom: 1.5rem;
}

.article-back svg {
    transform: rotate(180deg);
}

.article-hero-media {
    min-height: 320px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(6,57,112,0.12);
}

.article-body {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 1.5rem 5rem;
}

.article-lead-block {
    margin-bottom: 1.5rem;
    padding: 1.35rem 1.5rem;
    border-left: 4px solid var(--accent);
    background: rgba(6,57,112,0.05);
    border-radius: var(--radius-sm);
}

.article-lead-block p {
    margin: 0;
    color: var(--text);
    font-size: 1.05rem;
}

.article-toc {
    display: grid;
    gap: 0.75rem;
    margin: 0 0 2rem;
    padding: 1.25rem;
    background: var(--primary);
    border: 1px solid rgba(6,57,112,0.1);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 28px rgba(6,57,112,0.06);
}

.article-toc span {
    color: var(--accent);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.article-toc a {
    color: var(--text-muted);
    font-weight: 750;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-toc a:hover {
    color: var(--accent);
}

.article-section {
    padding: 1.75rem 0;
    border-top: 1px solid rgba(6,57,112,0.09);
}

.article-section h2 {
    color: var(--accent);
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin-bottom: 0.8rem;
}

.monitoring-functions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0.25rem 0 2rem;
}

.monitoring-functions div {
    min-height: 96px;
    padding: 1rem;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-sm);
    position: relative;
    overflow: hidden;
}

.monitoring-functions div::after {
    content: '';
    position: absolute;
    inset: auto -26px -38px auto;
    width: 92px;
    height: 92px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
}

.monitoring-functions strong {
    display: block;
    color: var(--accent-yellow);
    font-size: 0.78rem;
    margin-bottom: 0.45rem;
}

.monitoring-functions span {
    display: block;
    max-width: 12rem;
    font-weight: 800;
    line-height: 1.2;
}

.article-figure {
    margin: 0.75rem 0 2.25rem;
    overflow: hidden;
    background: var(--primary);
    border: 1px solid rgba(6,57,112,0.1);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 36px rgba(6,57,112,0.08);
}

.article-figure img {
    display: block;
    width: 100%;
    height: min(48vw, 360px);
    object-fit: cover;
}

.article-figure figcaption {
    padding: 1rem 1.1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.protocol-list {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.25rem;
}

.protocol-list div {
    padding: 1.15rem 1.25rem;
    border: 1px solid rgba(6,57,112,0.1);
    border-radius: var(--radius-sm);
    background: var(--primary);
}

.protocol-list strong {
    display: block;
    color: var(--accent);
    margin-bottom: 0.45rem;
}

.protocol-list p {
    margin: 0;
}

.article-takeaway {
    margin-top: 1rem;
    padding: 2rem;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-md);
}

.article-takeaway span {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin-bottom: 0.7rem;
}

.article-takeaway p {
    color: rgba(255,255,255,0.88);
}

.related-section {
    background: var(--primary);
    position: relative;
}

.blog-suggestions-section {
    padding: 5rem 1.5rem 6rem;
    background: #061432;
    overflow: hidden;
}

.blog-suggestions-header {
    max-width: 1180px;
    margin: 0 auto 2rem;
}

.blog-suggestions-header h2 {
    color: #fff;
}

.blog-suggestions-header p {
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    max-width: 680px;
}

.blog-suggestions-section .section-label {
    color: var(--accent-yellow);
}

.article-footer {
    margin-top: 0;
}

.related-carousel,
.blog-suggestions-carousel {
    max-width: min(1180px, calc((280px * 3) + (1rem * 2) + 0.5rem));
    margin: 0 auto;
    overflow: hidden;
}

.related-carousel .related-grid,
.blog-suggestions-carousel .blog-suggestions-track {
    max-width: none;
    margin: 0;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 280px);
    grid-template-columns: none;
    gap: 1rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0.25rem;
    padding: 0.25rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.related-carousel .related-grid::-webkit-scrollbar,
.blog-suggestions-carousel .blog-suggestions-track::-webkit-scrollbar {
    display: none;
}

.related-carousel .blog-card,
.blog-suggestions-carousel .blog-card {
    scroll-snap-align: start;
    border-radius: var(--radius-sm);
}

.related-carousel .blog-card-media,
.blog-suggestions-carousel .blog-card-media {
    min-height: 130px;
    aspect-ratio: 16 / 9;
}

.related-carousel .blog-card-body,
.blog-suggestions-carousel .blog-card-body {
    min-height: 205px;
    padding: 1rem;
}

.related-carousel .blog-card h3,
.blog-suggestions-carousel .blog-card h3 {
    font-size: 1rem;
    line-height: 1.15;
    margin: 0.5rem 0 0.65rem;
}

.related-carousel .blog-card p,
.blog-suggestions-carousel .blog-card p {
    font-size: 0.82rem;
    line-height: 1.42;
    -webkit-line-clamp: 2;
}

.related-carousel .blog-card .blog-kicker,
.blog-suggestions-carousel .blog-card .blog-kicker {
    font-size: 0.62rem;
    padding: 0.35rem 0.55rem;
}

.related-carousel .blog-card .blog-meta,
.blog-suggestions-carousel .blog-card .blog-meta {
    font-size: 0.68rem;
    margin: 0.65rem 0 0;
}

.related-carousel .blog-card .blog-read-link,
.blog-suggestions-carousel .blog-card .blog-read-link {
    min-width: 0;
    padding: 0.65rem 0.75rem;
    font-size: 0.78rem;
}

.related-carousel-controls {
    max-width: 1180px;
    margin: 1rem auto 0;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.related-arrow {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(6,57,112,0.16);
    border-radius: 50%;
    background: var(--primary);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(6,57,112,0.08);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.related-arrow:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

.related-arrow:first-child svg {
    transform: rotate(180deg);
}

/* ─── COOKIES ─── */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 10000;
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(6,57,112,0.12);
    border-radius: var(--radius-md);
    padding: 1.1rem;
    box-shadow: 0 20px 60px rgba(6,20,50,0.2);
    backdrop-filter: blur(12px);
}

.cookie-label {
    display: block;
    font-size: 0.68rem;
    color: var(--accent);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.cookie-copy h2 {
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.cookie-copy p {
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.cookie-btn {
    border: 0;
    border-radius: var(--radius-sm);
    padding: 0.8rem 1rem;
    font-weight: 800;
    cursor: pointer;
}

.cookie-btn.primary {
    background: var(--accent);
    color: #fff;
}

.cookie-btn.secondary {
    background: var(--accent-light);
    color: var(--accent);
}

/* ─── FOOTER ─── */
footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 4rem 2rem 2rem;
    position: relative;
    overflow: hidden;
}

footer video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

footer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6, 20, 50, 0.85) 0%, rgba(10, 15, 26, 0.95) 100%);
    z-index: -1;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo img {
    height: 36px;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    max-width: 260px;
}

.footer-col h4 {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 1.2rem;
}

.footer-col a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.875rem;
    padding: 0.35rem 0;
    transition: color 0.25s;
}
.footer-col a:hover { color: #fff; }

.footer-col .icon {
    width: 15px; height: 15px;
    background-color: rgba(255,255,255,0.4);
}
.footer-col a:hover .icon { background-color: rgba(255,255,255,0.8); }

.footer-socials {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    transition: background 0.3s;
}
.footer-socials a:hover { background: rgba(255,255,255,0.15); }

.footer-socials .icon {
    width: 18px; height: 18px;
    background-color: rgba(255,255,255,0.7);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer-bottom .gsi img {
    height: 40px;
    filter: brightness(0) invert(0.7);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}

/* ─── BACK TO TOP ─── */
#back-to-top {
    position: fixed;
    bottom: 1.5rem; right: 1.5rem;
    background: var(--accent);
    width: 46px; height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 16px var(--glow);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s, background 0.3s;
    z-index: 9999;
}
#back-to-top.visible { opacity: 1; transform: translateY(0); }
#back-to-top:hover { background: var(--accent-mid); }

#back-to-top .icon {
    width: 20px; height: 20px;
    background-color: #fff;
    -webkit-mask-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"%3E%3Cline x1="12" y1="19" x2="12" y2="5"%3E%3C/line%3E%3Cpolyline points="5 12 12 5 19 12"%3E%3C/polyline%3E%3C/svg%3E');
    mask-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"%3E%3Cline x1="12" y1="19" x2="12" y2="5"%3E%3C/line%3E%3Cpolyline points="5 12 12 5 19 12"%3E%3C/polyline%3E%3C/svg%3E');
    transform: translateY(-1px);
}

/* WhatsApp Floating Button */
#whatsapp-float {
    position: fixed;
    bottom: 1.5rem; left: 1.5rem;
    background: #25d366;
    width: 56px; height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s, transform 0.3s, background 0.3s;
    z-index: 9999;
}
#whatsapp-float:hover {
    background: #128c7e;
    transform: scale(1.1);
}
#whatsapp-float svg {
    width: 28px; height: 28px;
    color: #fff;
}

/* ─── SECTION SEPARATOR ─── */
.sep {
    display: none; /* hide thin divider lines between sections */
}

/* ─── MOBILE OPTIMIZATION ─── */
@media (max-width: 900px) {
    .service-modal-content {
        padding: 1.5rem;
    }

    .monitoring-apps-showcase {
        grid-template-columns: 1fr;
    }

    .monitoring-apps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .package-components-grid {
        grid-template-columns: 1fr;
    }

    .package-gallery {
        grid-template-columns: 1fr;
    }

    .package-gallery-stage {
        min-height: 300px;
    }

    .package-gallery-stage img {
        max-width: 100%;
        max-height: 270px;
    }

    .package-gallery-stage img.compact-render {
        transform: translateZ(0) scale(2);
    }
}

@media (max-width: 639px) {
    .certificaciones-carousel {
        padding: 0 2.85rem 2.4rem;
    }

    .certificaciones-carousel::before,
    .certificaciones-carousel::after {
        width: 2.2rem;
    }

    .certificaciones-carousel::before {
        left: 2.85rem;
    }

    .certificaciones-carousel::after {
        right: 2.85rem;
    }

    .certificaciones-track {
        gap: 0.9rem;
    }

    .cert-item,
    .cert-item--wide {
        flex-basis: 100%;
        min-height: 132px;
    }

    .monitoring-apps-showcase {
        margin-top: 2rem;
        padding: 0.75rem;
    }

    .monitoring-apps-copy {
        padding: 1.1rem;
    }

    .monitoring-apps-grid {
        grid-template-columns: 1fr;
    }

    .monitoring-app-card {
        min-height: 0;
    }

    .monitoring-functions {
        grid-template-columns: 1fr;
    }

    .service-modal {
        padding: 0.75rem 0;
    }

    .service-modal-content {
        width: calc(100% - 1.5rem);
        margin: 0.75rem auto;
        padding: 1.1rem;
    }

    .service-modal-header {
        align-items: flex-start;
    }

    .service-modal-title {
        font-size: 1.15rem;
    }

    .package-component-card {
        grid-template-columns: 86px minmax(0, 1fr);
        gap: 0.8rem;
        min-height: 112px;
        padding: 0.85rem;
    }

    .package-component-media {
        height: 78px;
    }

    .package-component-copy h4 {
        font-size: 0.95rem;
    }

    .package-component-copy p {
        font-size: 0.82rem;
    }

    .package-gallery-button {
        right: 0.7rem;
        bottom: 0.7rem;
        min-height: 32px;
        padding: 0.4rem 0.62rem;
        font-size: 0.7rem;
    }

    .package-gallery-stage {
        min-height: 240px;
        padding: 1rem;
    }

    .package-gallery-stage img {
        max-width: 100%;
        max-height: 220px;
    }

    .package-gallery-stage img.compact-render {
        transform: translateZ(0) scale(1.72);
    }

    .package-gallery-controls {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .article-figure img {
        height: 240px;
    }

    /* Header */
    header {
        padding: 1rem 1.5rem;
    }
    header.scrolled {
        padding: 0.6rem 1.5rem;
    }
    .logo img {
        height: 32px;
    }
    
    /* Navigation */
    .hamburger {
        display: block;
        width: 24px;
        height: 20px;
        position: relative;
        cursor: pointer;
        z-index: 1001;
    }
    
    .hamburger span {
        display: block;
        position: absolute;
        height: 2px;
        width: 100%;
        background: var(--text);
        border-radius: 2px;
        opacity: 1;
        left: 0;
        transform: rotate(0deg);
        transition: .25s ease-in-out;
    }

    header:not(.scrolled) .hamburger span,
    .blog-page header:not(.scrolled) .hamburger span {
        background: #fff;
    }
    
    .hamburger span:nth-child(1) {
        top: 0px;
    }
    
    .hamburger span:nth-child(2) {
        top: 9px;
    }
    
    .hamburger span:nth-child(3) {
        top: 18px;
    }
    
    .hamburger.active span:nth-child(1) {
        top: 9px;
        transform: rotate(135deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
        left: -60px;
    }
    
    .hamburger.active span:nth-child(3) {
        top: 9px;
        transform: rotate(-135deg);
    }
    
    /* Mobile menu */
    #main-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 999;
        gap: 2rem;
    }
    
    #main-nav.active {
        display: flex;
    }
    
    #main-nav a {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--text);
    }
    
    #main-nav .nav-cta {
        background: var(--accent);
        color: var(--primary);
        padding: 1rem 2rem;
        border-radius: var(--radius-md);
    }
    
    /* Hero section */
    .hero {
        padding: 6rem 1.5rem 4rem;
        min-height: 90vh;
    }
    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Preview cards */
    .preview-cards {
        flex-direction: column;
        align-items: center; /* Center cards horizontally in column layout */
        gap: 1.5rem;
        padding: 0 1.5rem;
    }
    .preview-cards .card {
        min-height: auto;
        padding: 2rem;
        width: 100%;
        max-width: 320px;
    }
    .preview-cards .card-icon {
        margin: 0 auto 1rem auto; /* Center the icon */
    }
    
    /* Services grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1.5rem;
    }
    
    /* Packages */
    .packages-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1.5rem;
    }
    
    /* About section */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1.5rem;
    }
    
    /* Why choose us */
    .por-que-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1.5rem;
    }

    /* Contact */
    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1.5rem;
    }
    
    /* Certifications */
    .certificaciones-carousel {
        padding: 0 3.05rem 2.6rem;
    }

    .cert-item {
        flex-basis: calc((100% - 1rem) / 2);
        min-height: 112px;
    }

    .cert-item--wide {
        flex-basis: calc((100% - 1rem) / 2);
    }

    .certificaciones-carousel::before {
        left: 3.05rem;
    }

    .certificaciones-carousel::after {
        right: 3.05rem;
    }

    .cert-carousel-btn {
        width: 2.45rem;
        height: 2.45rem;
    }

    .cert-carousel-btn--prev {
        left: 0.1rem;
    }

    .cert-carousel-btn--next {
        right: 0.1rem;
    }

    .blog-hero {
        padding-top: 7rem;
    }

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

    .blog-grid,
    .related-grid,
    .blog-suggestions-track {
        padding: 0 0.25rem;
    }

    .article-hero {
        padding-top: 7rem;
    }

    .related-carousel .related-grid,
    .blog-suggestions-carousel .blog-suggestions-track {
        grid-auto-columns: minmax(210px, 76vw);
    }

    .related-carousel-controls {
        justify-content: center;
    }

    .cookie-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-btn {
        width: 100%;
    }
    
    /* Footer */
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem 1.5rem 2rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem 1.5rem;
        text-align: center;
    }
    .footer-socials {
        justify-content: center;
    }
    
    /* General spacing */
    section {
        padding: 4rem 0;
    }
    .container {
        padding: 0 1.5rem;
    }
    
    /* Typography */
    h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    h3 {
        font-size: 1.5rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }
    
    /* Forms */
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Map */
    .mexico-map {
        max-width: 100%;
        height: 300px;
    }
}

/* ─── RESPONSIVE ─── */
@media (min-width: 640px) {
    .preview-cards { 
        flex-direction: row; 
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
        max-width: 1050px;
    }
    .preview-cards .card { 
        min-height: 280px; 
        display: flex;
        flex-direction: column;
        flex: 1;
        min-width: 270px;
    }
    .card-icon {
        width: 44px; height: 44px;
        background: var(--accent-light);
        border-radius: var(--radius-sm);
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 1rem;
    }
    .services-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 1.5rem;
    }
    .packages-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cookie-banner { grid-template-columns: 1fr auto; align-items: center; }
}

@media (min-width: 768px) {
    header { padding: 1.2rem 3rem; }
    header.scrolled { padding: 0.8rem 3rem; }
    nav { display: flex; }
    .hamburger { display: none; }
    .about-grid { grid-template-columns: 1fr 1fr; }
    .por-que-grid { grid-template-columns: repeat(2, 1fr); }
    .contacto-grid { grid-template-columns: 2fr 1fr; }
    .footer-top { grid-template-columns: 1.5fr 1fr 1fr; }
    .footer-bottom { flex-direction: row; justify-content: space-between; }
    #packages-section { padding-top: 10rem; }
    .mexico-map { max-width: 540px; }
    .preview-cards { 
        max-width: 1050px;
        gap: 2.5rem;
    }
    .preview-cards .card {
        flex: 1;
        min-width: 280px;
    }
    .services-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 2rem;
    }
    .article-hero { grid-template-columns: 0.95fr 1.05fr; }
    .blog-intro-grid { grid-template-columns: 1.1fr 0.9fr; }
    .blog-intro-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .news-toolbar { grid-template-columns: 0.85fr 1.15fr; }
    .news-topic-filters { justify-content: flex-end; }
}

@media (min-width: 1024px) {
    .packages-grid { grid-template-columns: repeat(3, 1fr); }
    .por-que-grid { grid-template-columns: repeat(4, 1fr); }
    .preview-cards { 
        gap: 3rem;
    }
    .services-grid { 
        grid-template-columns: repeat(3, 1fr); 
        gap: 2rem;
    }
    .blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
    .preview-cards { 
        gap: 3rem;
    }
    .services-grid { 
        grid-template-columns: repeat(3, 1fr); 
        gap: 2.5rem;
    }
}

/* ─── JOBS / CAREERS PAGE STYLES ─── */
.jobs-index-section {
    padding: 6rem 1.5rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--secondary);
}

.jobs-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.jobs-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--accent);
    margin: 0.5rem 0 1rem;
    line-height: 1.2;
}

.jobs-intro-text {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.company-values-panel {
    width: 100vw;
    margin: 0 0 3.5rem calc(50% - 50vw);
    padding: clamp(2.2rem, 5vw, 4.5rem) 1.5rem;
    background: linear-gradient(135deg, #061432 0%, #063970 58%, #0b4f92 100%);
    position: relative;
    overflow: hidden;
}

.company-values-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(6, 57, 112, 0.08) 1px, transparent 1px);
    background-size: 820px auto;
    background-position: center;
    opacity: 0.055;
    pointer-events: none;
}

.company-values-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 2rem;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.company-values-media {
    min-height: 100%;
    position: relative;
    overflow: hidden;
}

.company-values-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6, 20, 50, 0.12), rgba(6, 20, 50, 0));
    pointer-events: none;
}

.company-values-media img {
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-md);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.24);
}

.company-values-copy {
    padding: clamp(1.6rem, 4vw, 3rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.company-values-copy h3 {
    color: #fff;
    font-size: clamp(1.65rem, 3vw, 2.45rem);
    line-height: 1.12;
    margin: 0.75rem 0 1.1rem;
}

.company-values-copy p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1.4rem;
}

.company-values-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.company-values-list span {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 0.55rem 0.8rem;
}

/* Update jobs-grid for 3 columns on desktop and equal card heights */
.jobs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: stretch;
}

@media (min-width: 768px) {
    .jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .jobs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.job-card {
    background: var(--primary);
    border: 1px solid rgba(6, 57, 112, 0.08);
    border-top: 5px solid var(--accent);
    border-radius: var(--radius-md);
    padding: 0;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(6, 57, 112, 0.12);
    border-color: rgba(6, 57, 112, 0.2);
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.job-card-media {
    position: relative;
    overflow: hidden;
}

.job-card-media::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(180deg, rgba(6,20,50,0) 0%, rgba(6,20,50,0.58) 100%);
    pointer-events: none;
}

.job-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

.job-card-body {
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.job-badge {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    z-index: 2;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 8px 18px rgba(0,0,0,0.18);
    backdrop-filter: blur(8px);
}

.job-badge-urgent {
    background-color: rgba(239, 68, 68, 0.94);
    color: #fff;
}

.job-badge-active {
    background-color: rgba(6, 57, 112, 0.94);
    color: #fff;
}

.job-card h3 {
    font-size: 1.35rem;
    color: var(--accent);
    margin-bottom: 0.35rem;
    line-height: 1.3;
    font-weight: 700;
}

.job-vacancy-count {
    color: var(--accent);
    font-size: 0.86rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.job-meta-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px dashed rgba(6, 57, 112, 0.15);
}

.job-meta-details span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.job-meta-icon {
    width: 14px !important;
    height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
    opacity: 0.7;
    display: inline-block;
    vertical-align: middle;
}

.job-desc {
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.job-requirements {
    margin-bottom: 1rem;
    background: #f8fafc;
    padding: 1.15rem;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent);
}

.job-requirements h4 {
    font-size: 0.88rem;
    color: var(--accent);
    margin-bottom: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

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

.job-requirements li {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 0.4rem;
}

.job-requirements li:last-child {
    margin-bottom: 0;
}

.job-requirements li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 800;
}

/* Ofrecemos block */
.job-perks {
    margin-bottom: 2rem;
    background: #fefce8; /* Soft warm yellow cream background tint */
    padding: 1.15rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(246, 235, 23, 0.25);
    border-left: 3px solid #eab308; /* Brand yellow border accent */
}

.job-perks h4 {
    font-size: 0.88rem;
    color: #854d0e; /* Dark gold/yellow-brown for readability */
    margin-bottom: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

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

.job-perks li {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 0.4rem;
}

.job-perks li:last-child {
    margin-bottom: 0;
}

.job-perks li::before {
    content: "★";
    position: absolute;
    left: 0;
    color: #eab308;
    font-size: 0.8rem;
    top: 1px;
}

.btn-job-apply {
    display: block;
    text-align: center;
    background-color: var(--accent);
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.9rem 1.5rem;
    border-radius: var(--radius-sm);
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 12px rgba(6, 57, 112, 0.15);
    margin-top: auto; /* Push buttons to the bottom so they align */
}

.btn-job-apply:hover {
    background-color: #04244c;
    transform: translateY(-1px);
}


/* CV Submission Section */
.submit-cv-section {
    background-color: #061432;
    color: #fff;
    padding: 6rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.submit-cv-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(6, 57, 112, 0.08) 1px, transparent 1px);
    background-position: center;
    background-size: 900px auto;
    opacity: 0.03;
    pointer-events: none;
    z-index: 1;
}

.submit-cv-inner {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.submit-cv-section h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: #fff;
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.submit-cv-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.btn-submit-cv {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--accent-yellow);
    color: var(--accent);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 800;
    padding: 1.1rem 2.25rem;
    border-radius: var(--radius-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    box-shadow: 0 6px 20px rgba(246, 235, 23, 0.2);
}

.btn-submit-cv:hover {
    transform: translateY(-2px);
    filter: saturate(1.1);
    box-shadow: 0 8px 25px rgba(246, 235, 23, 0.3);
}

.btn-submit-cv .btn-icon {
    width: 20px;
    height: 20px;
}

.submit-cv-note {
    font-size: 0.8rem !important;
    color: rgba(255, 255, 255, 0.5) !important;
    margin-top: 1.5rem !important;
    margin-bottom: 0 !important;
}

.careers-about-section,
.why-work-section {
    padding: 5rem 1.5rem;
    background: #fff;
}

.careers-about-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 3rem;
    align-items: center;
}

.careers-about-copy h2,
.why-work-section .jobs-header h2 {
    color: var(--accent);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.12;
    margin: 0.75rem 0 1.25rem;
}

.careers-about-copy p {
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.careers-image-stack {
    position: relative;
}

.careers-image-stack img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: 0 18px 45px rgba(6, 57, 112, 0.18);
}

.careers-stat-card {
    position: absolute;
    right: 1.5rem;
    bottom: 1.5rem;
    width: min(220px, calc(100% - 3rem));
    background: rgba(255, 255, 255, 0.94);
    border-left: 4px solid var(--accent-yellow);
    border-radius: var(--radius-sm);
    padding: 1.2rem;
    box-shadow: 0 12px 30px rgba(0,0,0,0.16);
}

.careers-stat-card strong {
    display: block;
    color: var(--accent);
    font-size: 2rem;
    line-height: 1;
}

.careers-stat-card span {
    display: block;
    color: var(--text-muted);
    font-weight: 700;
    margin-top: 0.35rem;
}

.why-work-section {
    background: var(--secondary);
}

.why-work-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.why-card {
    background: #fff;
    border: 1px solid rgba(6,57,112,0.08);
    border-radius: var(--radius-md);
    padding: 1.6rem;
    box-shadow: 0 10px 30px rgba(6,57,112,0.06);
}

.why-card span {
    color: var(--accent);
    font-weight: 900;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
}

.why-card h3 {
    color: var(--accent);
    font-size: 1.15rem;
    margin: 0.75rem 0;
}

.why-card p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.job-detail-page {
    background: #fff;
}

.job-detail-page header {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.09);
}

.job-detail-page nav a {
    color: var(--text-muted);
}

.job-detail-page nav a:hover {
    background: var(--accent-light);
    color: var(--accent);
}

.job-detail-page .nav-cta {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #fff !important;
}

.job-detail-hero {
    min-height: 78vh;
    padding: 8rem 1.5rem 4rem;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 3rem;
    align-items: center;
    max-width: 1180px;
    margin: 0 auto;
}

.job-detail-hero-copy h1 {
    color: var(--accent);
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 0.95;
    margin: 0.8rem 0 1rem;
}

.job-detail-hero-copy p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 620px;
}

.job-detail-hero img {
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: 0 18px 45px rgba(6, 57, 112, 0.18);
}

.back-link {
    color: var(--accent);
    display: inline-flex;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-decoration: none;
}

.job-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.job-detail-meta span {
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 999px;
    padding: 0.55rem 0.85rem;
    font-size: 0.84rem;
    font-weight: 800;
}

.job-detail-content {
    max-width: 1180px;
    margin: 0 auto;
    padding: 2rem 1.5rem 6rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 2rem;
    align-items: start;
}

.job-detail-info {
    display: grid;
    gap: 1rem;
}

.job-detail-info article,
.job-apply-panel {
    background: var(--secondary);
    border: 1px solid rgba(6,57,112,0.08);
    border-radius: var(--radius-md);
    padding: 1.6rem;
}

.job-detail-info h2,
.job-apply-panel h2 {
    color: var(--accent);
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.job-detail-info ul {
    padding-left: 1.1rem;
    color: var(--text-muted);
    line-height: 1.75;
}

.job-apply-panel {
    position: sticky;
    top: 6rem;
    background: #fff;
    box-shadow: 0 18px 42px rgba(6, 57, 112, 0.1);
}

.file-upload {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    border: 1.5px dashed rgba(6,57,112,0.28);
    border-radius: var(--radius-sm);
    background: var(--secondary);
    color: var(--accent);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 800;
    padding: 0.9rem 1rem;
    text-align: center;
}

.file-upload input {
    display: none;
}

.job-application-form .g-recaptcha {
    max-width: 100%;
    overflow: hidden;
}

@media (max-width: 980px) {
    .careers-about-grid,
    .company-values-inner,
    .why-work-grid,
    .job-detail-hero,
    .job-detail-content {
        grid-template-columns: 1fr;
    }

    .company-values-media img {
        min-height: 300px;
    }

    .branch-marker {
        width: 46px;
        height: 46px;
    }

    .branch-marker-icon {
        width: 24px;
        height: 24px;
    }

    .branch-card {
        left: 50%;
        bottom: 0;
        transform: translateX(-50%);
    }

    .job-detail-hero {
        min-height: auto;
        padding-top: 7rem;
    }

    .job-apply-panel {
        position: static;
    }
}

@media (max-width: 380px) {
    .job-application-form .g-recaptcha {
        transform: scale(0.88);
        transform-origin: left top;
        margin-bottom: -9px;
    }
}

@media (max-width: 640px) {
    .jobs-index-section,
    .careers-about-section,
    .why-work-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .job-card-body,
    .company-values-copy,
    .why-card,
    .job-detail-info article,
    .job-apply-panel {
        padding: 1.2rem;
    }

    .map-container {
        min-height: 360px;
    }

    .branch-marker {
        width: 40px;
        height: 40px;
    }

    .branch-marker-icon {
        width: 21px;
        height: 21px;
    }

    .branch-card {
        width: min(300px, calc(100vw - 2rem));
        padding: 1.1rem;
    }

    .company-values-media img {
        min-height: 240px;
    }
}
