/* 
 * Visual AI Media - Joomla Template User CSS
 * Concept: Visual Silence, Cognitive Sovereignty, Technical Precision
 * Loaded AFTER all template assets.
 */

:root {
    /* --- DESIGN TOKENS (From sitio-web_prueba/assets/css/style.css) --- */

    /* Base Colors */
    --bg-color: #FFFFFF;
    --bg-alt: #F7F8FA;
    --text-main: #242D36;
    --text-sec: #455564;
    --accent: #FF007F;
    --border: rgba(36, 45, 54, 0.12);

    /* Typography */
    --font-main: 'Lato', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 120px;
    --section-spacing: 120px;

    /* --- JOOMLA / CASSIOPEIA OVERRIDES --- */
    --cassiopeia-color-primary: var(--accent);
    --cassiopeia-color-link: var(--accent);
    /* LINKS = ACCENT COLOR */
    --cassiopeia-color-hover: var(--text-main);
    --cassiopeia-font-family-body: var(--font-main);
    --cassiopeia-font-family-headings: var(--font-main);
    --cassiopeia-font-weight-headings: 600;
}

html {
	zoom: 1.2;
    scroll-behavior: smooth;
}

/* =========================================
   BASE STYLES
   ========================================= */

body {
    font-family: var(--font-main) !important;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    padding-top: var(--header-height);
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

.container-header,
.site-grid,
.container-footer {
    position: relative;
}

.site-grid,
.container-footer {
    z-index: 1;
}

.container-header {
    z-index: 1000;
}

/* Typography Scale (Exact specs from Design System) */
h1,
.h1 {
    font-size: clamp(2.8rem, 5.5vw, 3.5rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
}

h2,
.h2 {
    font-size: 2.3rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: var(--accent);
    letter-spacing: -0.015em;
	font-variant: all-small-caps;
}

section#lab h1 {
    color: white;
}

section#lab h2 {
    color: #E6FF00;
}

h3,
.h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    font-weight: 500;
}

.hero-subtitle{
    display: block;
    font-size: 1.25rem;
    color: var(--accent);
    /*margin-bottom: 24px;*/
    font-weight: 600;
}

p {
    margin-bottom: 1.8rem;
    font-size: 1.45rem;
    color: var(--text-sec);
	line-height: 1.55;
	
}

section#lab p {
    color: rgba(255, 255, 255, 0.85);
	margin-bottom: 6rem;
}


blockquote.vam-quote {
    font-size: 1.45rem;
    color: var(--text-sec);
    line-height: 1.55;
}

	
	

p.vam-lead-hero {
    margin-bottom: 4rem;
    font-size: 1.45rem;
    color: var(--text-sec);
	line-height: 1.55;
}

/* Hero private infrastructure background */
.vam-hero {
    position: relative;
    isolation: isolate;
    overflow: visible;
}

.vam-hero::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 0;
    left: 50%;
    width: 100vw;
    height: clamp(560px, 58vw, 840px);
    transform: translateX(-50%);
    pointer-events: none;
    background-image: url("../images/vam-hero-private-infra-transparent.png");
    background-repeat: no-repeat;
    background-position: right top;
    background-size: 100vw auto;
    opacity: .45;
    filter: blur(.65px);
}

.vam-hero > * {
    position: relative;
    z-index: 1;
}


a {
    transition: all 0.4s ease-in-out;
    text-decoration: none;
    color: var(--accent);
}

/* Mejor señal + accesibilidad */
a:hover {
    color: var(--accent);
    text-decoration: none; /*anterior*/
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

/* Focus visible (teclado) */
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
}

/* =========================================
   COMPONENT ADAPTATION
   ========================================= */

/* --- Header & Navbar --- */
.container-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(36, 45, 54, 0.05);
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 2rem;
    position: fixed;
    top: 0;
    left: 50%;
    width: 100%;
    transform: translateX(-50%);
    transition: all 0.4s ease-in-out;
    will-change: width, min-height, top, box-shadow, background-color;
}

.container-header,
.container-header .grid-child,
.container-header .navbar-brand,
.container-header .brand-logo,
.container-header .brand-logo img,
.container-header .container-topbar,
.container-header .container-nav {
    transition: all 0.4s ease-in-out;
}

.container-header.vam-header-scrolled {
    top: 12px;
    width: min(calc(100% - clamp(48px, 9vw, 160px)), 1180px);
    min-height: 56px;
    height: 56px;
    padding: 0 clamp(1rem, 3vw, 2rem);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(36, 45, 54, 0.08);
    box-shadow: 0 18px 42px rgba(36, 45, 54, 0.10);
    border-radius: 50px 50px;
    overflow: hidden;
}

/* Logo */
.brand-logo img {
    width: clamp(180px, 18vw, 240px);
    height: auto;
    filter: none;
    max-height: 71px;
    transition: all 0.4s ease-in-out;
}

.container-header.vam-header-scrolled .brand-logo img {
    width: auto;
    max-height: 52px;
}

.navbar-brand {
    padding: 0;
    margin: 0;
}

/* Navigation Menu (Cassiopeia MetisMenu) */
.metismenu.mod-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.metismenu.mod-menu>.metismenu-item {
    border: none;
    /* Remove Cassiopeia borders */
}

.metismenu.mod-menu>.metismenu-item>a {
    color: var(--text-sec);
    font-weight: 500;
    font-size: 0.95rem;
    /* Spec */
    padding: 0;
    /* Remove default padding */
    display: block;
}

.metismenu.mod-menu>.metismenu-item>a:hover,
.metismenu.mod-menu>.metismenu-item.active>a {
    color: var(--accent);
    background: transparent;
    /* Remove active bg */
}

button.btn.btn-primary {
    min-width: 65px;
}

/* Language Switcher */
.mod-languages {
    display: flex;
    align-items: center;
}

form#login-form-16:not(.vam-login-form):not(.vam-login-logout) {
    line-height: 0;
}

/* Header login */
.vam-login-shell,
.vam-login-logout {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.vam-login-trigger,
.vam-login-logout-button {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--text-main);
    min-width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: all 0.4s ease-in-out;
}

.vam-login-trigger {
    width: 40px;
}

.vam-login-trigger:hover,
.vam-login-trigger:focus-visible,
.vam-login-trigger[aria-expanded="true"],
.vam-login-logout-button:hover,
.vam-login-logout-button:focus-visible {
    color: var(--accent);
    background: rgba(255, 0, 127, 0.06);
    outline: none;
}

.vam-login-trigger:focus-visible,
.vam-login-logout-button:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 0, 127, 0.16);
}

.vam-login-icon {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.vam-login-dialog {
    width: min(420px, calc(100vw - 32px));
    padding: 0;
    border: 1px solid rgba(36, 45, 54, 0.16);
    border-radius: 8px;
    background: #fff;
    color: var(--text-main);
    box-shadow: 0 24px 70px rgba(36, 45, 54, 0.22);
}

.vam-login-dialog::backdrop {
    background: rgba(36, 45, 54, 0.22);
    backdrop-filter: blur(4px);
}

.vam-login-panel {
    padding: 26px 24px 24px;
}

.vam-login-modal-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.vam-login-title {
    margin: 0;
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

.vam-login-close {
    appearance: none;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-sec);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1;
}

.vam-login-close:hover,
.vam-login-close:focus-visible {
    color: var(--accent);
    border-color: rgba(255, 0, 127, 0.45);
    outline: none;
}

.vam-login-form {
    display: grid;
    gap: 14px;
    margin: 0;
    line-height: 1.4 !important;
}

.vam-login-form .mod-login__userdata {
    display: grid;
    gap: 14px;
}

.vam-login-form .form-group {
    margin: 0;
}

.vam-login-field {
    display: grid;
    gap: 0;
    text-align: left;
}

.vam-login-field label,
.vam-login-remember label {
    margin: 0;
    color: var(--text-main);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
}

.vam-login-field .input-group {
    display: flex;
    align-items: stretch;
}

.vam-login-field .form-control {
    min-height: 42px;
    border: 1px solid var(--border);
    border-radius: 4px 0 0 4px;
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.4;
}

.vam-login-field .form-control:focus {
    border-color: rgba(255, 0, 127, 0.55);
    box-shadow: 0 0 0 3px rgba(255, 0, 127, 0.12);
}

.vam-login-field .input-group-text,
.vam-login-field .input-password-toggle {
    min-width: 42px;
    min-height: 42px;
    border: 1px solid var(--border);
    border-left: 0;
    border-radius: 0 4px 4px 0;
    background: #fff;
    color: var(--text-sec);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.vam-login-field .input-password-toggle:hover,
.vam-login-field .input-password-toggle:focus-visible {
    color: var(--accent);
    background: rgba(255, 0, 127, 0.04);
}

.vam-login-remember .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 22px;
    padding-left: 0;
}

.vam-login-remember .form-check-input {
    float: none;
    margin: 0;
}

.vam-login-submit-row .btn-primary {
    min-height: 42px;
    border: 0;
    border-radius: 4px;
    background: var(--accent);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
}

.vam-login-submit-row .btn-primary:hover,
.vam-login-submit-row .btn-primary:focus-visible {
    background: var(--text-main);
    color: #fff;
}

.vam-login-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
    margin: 8px 0 0;
    padding: 0;
    text-align: center;
}

.vam-login-options li {
    line-height: 1.2;
}

.vam-login-options a {
    font-size: 0.82rem;
    line-height: 1.2;
}

.vam-login-dialog p,
.vam-login-dialog .pretext p,
.vam-login-dialog .posttext p {
    margin: 0;
    color: var(--text-sec);
    font-size: 0.9rem;
    line-height: 1.45;
}

/* Language switcher: forzar sobre mod_languages (carga después) */
.mod-languages__list.lang-inline {
    display: flex;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
    color: var(--text-sec);
}

.mod-languages__list.lang-inline li.lang-active,
.mod-languages__list.lang-inline li.lang-active a {
    background-color: transparent;
    color: var(--accent);
    border: none;
    box-shadow: none;
    pointer-events: none;
}

.container-topbar {
    min-width: 35% /*anterior*/;
    min-width: 35%;
}

/* --- Layout Sections --- */

.container-topbar,
.container-topbar .grid-child {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

/* Main Content Area */
.container-component {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 60px 20px;
}

/* Article/Page Content */
.com-content-article {
    /*max-width: 900px; /*anterior*/
    max-width: 1200px;
    /* Readability width */
}

/* Page Header */
.page-header h1 {
    /* Inherits from global h1, adding overrides if needed */
    margin-top: 0;
}

/* Article Info (Details) */
.article-info {
    font-size: 0.9rem;
    color: var(--text-sec);
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

/* Content Grid (Desktop Default) */
.content-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(20px, 4vw, 40px);
}

.col-left, .col-right  {
    grid-column: span 12;
    min-width: 0;
}

 .col-right {
		margin-top: -6em;
    }

@media (min-width: 1024px) {
    .col-left {
        grid-column: span 6;
    }

    .col-right {
        grid-column: span 6;
		margin-top: -5.5em;
    }
	section#lab .col-right {

		margin-top: 0;
        padding-left: 20px;
		text-align: right;
    }
}

.feature-list {
    list-style: none;
    margin-top: 40px;
}

.feature-list_2 {
    list-style: none;
    margin-top: 28px;
	padding: 0 .5em;
	text-align: right;
}

section#como .col-left p {
    margin-bottom: 0;
}

#como {
  margin-bottom: 20vh;
}

.feature-list li, .feature-list_2 li {
    padding: 24px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    color: var(--text-sec);
    font-size: 1.10rem;
}


/* --- Lab --- */

section#lab {
    background-color: transparent;
    background-image: linear-gradient(-15deg, rgba(36, 45, 54, 0.80) 30%, rgba(36, 45, 54, .92) 40%, rgb(36, 45, 54) 100%);
    min-height: 35vh;
    padding: 96px 50px;
    padding-top: 80px;
    display: block;
    min-width: 400%;
    margin-left: -150%;
	margin-top: 20vh;
}

section#lab .container {
    max-width: 830px;
}

.site-grid {
    overflow: hidden;
}



/* --- ORIGIN / CONTINUITY --- */

section#continuity,
section#origen {
   /* margin-top: 5vh;*/
    min-height: 0;
	border: none;
	margin-bottom: 0;
}

section#continuity .vam-alt,
section#origen .vam-alt {
    margin-bottom: 0;
    min-height: initial;
}

section#origen .vam-container {
    max-width: var(--container-width);
    margin: 0 auto;
}

section#origen p {
    max-width: 74rem;
}




/* --- Footer --- */
.container-footer {
    background-color: #fff;
    color: var(--text-main);
    border-top: 1px solid var(--border);
    padding: 40px 0;
    /*margin-top: 60px;*/
}

.vam-image-module {
    max-width: 250px;
    /* width: 50%; */
}



footer.container-footer .grid-child{
  grid-template-columns: auto auto; /* antes: 1fr 1fr */
  justify-content: center;          /* antes: space-between */
  column-gap: 20%;
  width: 100%;
}
/* Evita que los módulos estiren raro */
footer.container-footer .grid-child > .mod-custom{
  width: auto;

}


.footer {
    color: var(--text-main);
    background-color: white;
    background-image: linear-gradient(170deg, white 60%, var(--text-main) 100%);
    margin-top: 0;
    border: none;
}

.vam-footer {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: space-between;
    align-items: center;
    zoom: 1.5;
    margin: 20px 0;
}

.vam-footer__inner {
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  white-space: nowrap;
}

.vam-footer__tagline {
  font-weight: 500;
}

.vam-footer__contact {
  text-align: center;
}

.vam-footer__meta {
  font-size: 0.9rem;
  opacity: 0.8;
}

footer.container-footer.footer.full-width{
    
        margin-top: -120px;
}


/* -----------------------------------------
   Section background alternation
   ----------------------------------------- */

.vam-section {
  padding: 18px 0;
  /*padding-top: 76px;*/
  min-height: 70vh;
  border-bottom: solid var(--accent) thin;
  margin-bottom: 46px;
}

/*section#que {
    margin-bottom: 96px;
}*/

section#que p {
    margin: 0 !important;
}

section#dashboard {
    margin-bottom: 46px;
}

.vam-alt {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 30px 0;
  min-height: inherit;
  margin-bottom: 20vh;
}



/* Secciones con fondo: dar aire lateral */
.vam-alt > * {
  padding-left: 40px;
  padding-right: 40px;
}

/* Asegurar que no rompa el ancho de lectura */
.vam-alt > * {
  box-sizing: border-box;
}

.vam-alt2 {
 background-color: var(--bg-alt);
    border-left: 3px solid var(--accent);
    border-bottom: none;
    padding: 80px 0;
    min-height: inherit;
    margin: 30px 0;
    margin-left: 20px;
	padding-left: 30px;
}




/* =========================================
   MOBILE OPTIMIZATION
   ========================================= */
   
   
   @media (max-width: 768px) {
  .vam-footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    white-space: normal;
    gap: 1rem;
  }

  .vam-footer__contact br {
    display: none;
  }

  .vam-footer__contact a {
    display: block;
  }
}

@media (max-width: 1024px) {
	
	html {
	zoom: inherit;
}

    body {
        padding-top: 196px;
    }
	
	
    .container-header {
        position: fixed !important;
        top: 0;
        left: 50%;
        width: 100%;
        transform: translateX(-50%);
        min-height: auto;
        padding: 20px 1rem;
        flex-direction: column;
        align-items: center;
        /* Center align on mobile */
        gap: 20px;
    }
	
    .grid-child {
        width: 100%;
        text-align: center;
        display: flex;
        justify-content: center;
    }

    .brand-logo img {
        width: min(160px, 72vw);
        height: auto;
        max-height: 47px;
    }

    .container-header.vam-header-scrolled {
        position: fixed !important;
        top: 8px;
        width: calc(100% - 32px);
        min-height: auto;
        height: auto;
        padding: 14px 1rem;
        gap: 12px;
        overflow: visible;
    }

    .container-header.vam-header-scrolled .brand-logo img {
        width: min(140px, 64vw);
        max-height: 42px;
    }

    /* Stack navigation vertically */
    .metismenu.mod-menu {
        flex-direction: column;
        gap: 15px;
        padding: 10px 0;
    }
	/* Mantener centrado SOLO lo que corresponde al header */
  .container-header .grid-child { text-align: center; justify-content: center; }

  /* Forzar contenido principal a lectura normal */
  .container-component,
  .com-content-article,
  .com-content-article * {
    text-align: left;
  }

  /* Listas: que no queden raras en mobile */
  .com-content-article ul,
  .com-content-article ol {
    padding-left: 1.1rem;
  }
  
  /* Base: lectura a la izquierda */
  .container-component,
  .com-content-article { text-align: left; }

  .com-content-article p,
  .com-content-article li,
  .com-content-article ul,
  .com-content-article ol { text-align: left; }

  /* Solo HERO centrado */
  .com-content-article .vam-hero { text-align: center; }
  .com-content-article .vam-hero h1,
  .com-content-article .vam-hero .vam-kicker,
  .com-content-article .vam-hero .vam-meta { text-align: center; }

  /* Headings fuera del hero: por defecto left */
  .com-content-article h2 { text-align: left; }
  
  /* Mobile: reducir aire, mantener criterio */	
	  .vam-section {
    padding: 64px 0;
  }
  .vam-alt > * {
    padding-left: 20px;
    padding-right: 20px;
  }
   /* footer */	
   .vam-footer__inner {
    flex-direction: column;
    gap: 20px;
  }
  .vam-footer__inner { flex-direction: column; gap: 18px;
}

section#lab {
    background-color: transparent;
    background-image: linear-gradient(-15deg, rgba(36, 45, 54, 0.80) 30%, rgba(36, 45, 54, .92) 40%, rgb(36, 45, 54) 100%);
    min-height: 35vh;
    padding: 96px 50px;
    padding-top: 80px;
    display: block;
    min-width: 110%;
    margin-left: -5%;
	margin-top: 20vh;
}

}

/* =========================================
   Visual AI Media footer module + desktop scale
   ========================================= */

@media (min-width: 1025px) {
    html {
        zoom: 1;
    }

    h1,
    .h1 {
        font-size: 3.6rem;
        line-height: 1.12;
    }

    h2,
    .h2 {
        font-size: 2.3rem;
    }

    p,
    p.vam-lead-hero,
    blockquote.vam-quote {
        font-size: 1.16rem;
        line-height: 1.65;
    }

    .hero-subtitle {
        font-size: 1.7rem;
    }
}

footer.container-footer.footer.full-width {
    margin-top: 0;
}

.container-footer {
    padding: 34px 0 38px;
}

footer.container-footer .grid-child {
    display: block;
    width: calc(100% - clamp(48px, 10vw, 160px));
    max-width: 1280px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    text-align: left;
}

.mod-vam-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 18px;
    width: 100%;
    max-width: var(--container-width);
    color: var(--text-main);
    font-size: 0.92rem;
    line-height: 1.55;
    text-align: left;
}

.mod-vam-footer__content {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.mod-vam-footer__descriptor,
.mod-vam-footer__meta {
    margin: 0;
}

.mod-vam-footer__descriptor {
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
}

.mod-vam-footer__contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    margin: 0;
    color: var(--text-sec);
    font-style: normal;
}

.mod-vam-footer__contact a,
.mod-vam-footer__links a {
    color: var(--text-main);
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.mod-vam-footer__contact a:hover,
.mod-vam-footer__contact a:focus,
.mod-vam-footer__links a:hover,
.mod-vam-footer__links a:focus {
    color: var(--accent);
}

.mod-vam-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
}

.mod-vam-footer__meta {
    color: var(--text-sec);
    font-size: 0.82rem;
    opacity: 0.78;
}

.mod-vam-footer__logo {
    flex: 0 0 auto;
}

.mod-vam-footer__logo img {
    display: block;
    width: 72px;
    height: auto;
}

@media (max-width: 768px) {
    body {
        padding-top: 188px;
    }

    footer.container-footer .grid-child {
        width: calc(100% - 48px);
        padding: 0;
        text-align: left;
    }

    .mod-vam-footer {
        align-items: flex-start;
        gap: 18px;
    }

    .mod-vam-footer__contact,
    .mod-vam-footer__links {
        flex-direction: column;
        gap: 0.25rem;
    }

    .mod-vam-footer__logo img {
        width: 68px;
    }
}

/* VAM Newsletter and expanded Visual Systems Lab block */
section#lab.vam-lab-block {
    min-height: 0;
    padding-top: clamp(84px, 9vw, 132px);
    padding-bottom: clamp(84px, 10vw, 148px);
}

section#lab .vam-lab-inner {
    max-width: min(1180px, calc(100vw - clamp(48px, 9vw, 160px)));
}

section#lab .content-grid {
    align-items: start;
}

section#lab p {
    margin-bottom: 0;
}

section#lab .vam-lab-intro {
    margin-bottom: clamp(72px, 9vw, 118px);
}

section#lab .vam-lab-systems {
    padding-top: clamp(56px, 7vw, 92px);
    border-top: 0;
}

section#lab .vam-lab-systems h2,
section#lab .vam-lab-notes h2 {
    color: var(--accent);
}

section#lab .vam-lab-list {
    margin-top: 0;
}

section#lab .vam-lab-list--grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(38px, 7vw, 92px);
    padding-left: 0;
}

section#lab .vam-lab-list li {
    color: rgba(255, 255, 255, .78);
    border-top-color: rgba(255, 255, 255, .18);
    border-bottom-color: rgba(255, 255, 255, .18);
}

section#lab .vam-lab-list strong {
    color: #fff;
}

section#lab .vam-lab-github {
    display: block;
    margin-top: 1.1rem;
    text-align: right;
}

section#lab .vam-lab-github a {
    color: #E6FF00;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
}

section#lab .vam-lab-github a:hover,
section#lab .vam-lab-github a:focus-visible {
    color: var(--accent);
    text-decoration: none;
}

section#lab .vam-lab-cta {
    margin-top: clamp(34px, 5vw, 28px);
    text-align: right;
}

section#lab .vam-lab-cta a {
    color: #E6FF00;
    font-weight: 600;
    text-decoration: none;
}

section#lab .vam-lab-cta a:hover,
section#lab .vam-lab-cta a:focus-visible {
    color: #FF007F;
    text-decoration: none;
}

section#lab .vam-lab-notes {
    margin-top: clamp(72px, 8vw, 112px);
    padding: clamp(30px, 5vw, 54px);
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(11, 14, 19, .16);
}

section#lab .vam-lab-notes .mod-vamnewsletter-signup p {
    max-width: 52rem;
    color: rgba(255, 255, 255, .82);
}

section#lab .vam-lab-notes .mod-vamnewsletter-signup h2 {
    margin-bottom: 0;
}

@media (max-width: 860px) {
    section#lab.vam-lab-block {
        padding-left: 20px;
        padding-right: 20px;
    }

    section#lab .vam-lab-inner {
        max-width: min(100%, calc(100vw - 40px));
    }

    section#lab .vam-lab-notes {
        padding: 26px 20px;
    }

    section#lab .vam-lab-list--grid {
        grid-template-columns: 1fr;
        column-gap: 0;
    }

    section#lab .vam-lab-cta {
        text-align: left;
    }
}

/* ES content refinement: semantic headings, compact Lab block, external Lab updates panel */
section#lab .h1 {
    color: #fff;
}

section#lab.vam-lab-block {
    margin-top: clamp(96px, 10vw, 150px);
    padding-top: clamp(64px, 7vw, 46px);
    padding-bottom: clamp(64px, 7vw, 46px);
}

section#lab .vam-lab-intro {
    margin-bottom: clamp(44px, 5vw, 24px);
}

section#lab .col-right {
    margin-top: 0;
}

section#lab .vam-lab-systems {
    padding-top: clamp(18px, 3vw, 10px);
}

section#lab .vam-lab-systems h2 {
    color: #E6FF00;
}

#notas {
  margin-bottom: 8vh;
}

.vam-newsletter-panel-section {
    min-height: 0;
    margin: 0;
    padding: clamp(44px, 6vw, 78px) 0 clamp(66px, 8vw, 108px);
    border-bottom: 0;
    background: #fff;
}

.vam-newsletter-panel {
    max-width: min(1180px, calc(100vw - clamp(48px, 9vw, 160px)));
    margin: 0 auto;
    padding: clamp(22px, 4.4vw, 32px);
    color: #fff;
    background-color: transparent;
    background-image: linear-gradient(-15deg, rgba(36, 45, 54, 0.80) 30%, rgba(36, 45, 54, .92) 40%, rgb(36, 45, 54) 100%);
    border: 1px solid rgba(36, 45, 54, .12);
    border-radius: 7px;
}

.vam-newsletter-panel .mod-vamnewsletter-signup h2 {
    margin-bottom: 0;
    color: #E6FF00;
}

.vam-newsletter-panel .mod-vamnewsletter-signup p {
    max-width: 58rem;
    margin: 0;
    color: rgba(255, 255, 255, .84);
}

.vam-newsletter-panel .mod-vamnewsletter-signup__message {
    color: rgba(255, 255, 255, .82);
}

@media (max-width: 860px) {
    section#lab.vam-lab-block {
        margin-top: 72px;
        padding-top: 58px;
        padding-bottom: 68px;
    }

    .vam-newsletter-panel-section {
        padding: 28px 20px 70px;
    }

    .vam-newsletter-panel {
        max-width: 100%;
        padding: 28px 20px;
    }

    .vam-hero::before {
        top: 58px;
        height: 440px;
        background-position: right top;
        background-size: 980px auto;
        opacity: .34;
        filter: blur(.55px);
    }
}

/*
   Hero private infrastructure background reserved.
   Asset preserved for future use:
   ../images/vam-hero-private-infra-transparent.png
*/
.vam-hero::before {
    content: none;
    display: none;
    background-image: none;
}

/* Contact modal */
.mod-vam-contact-modal {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.vam-contact-trigger {
    appearance: none;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    background: transparent;
    cursor: pointer;
    transition: all 0.4s ease-in-out;
}

.vam-contact-trigger:hover,
.vam-contact-trigger:focus-visible,
.vam-contact-trigger[aria-expanded="true"] {
    color: var(--accent);
    background: rgba(255, 0, 127, 0.06);
    outline: none;
}

.vam-contact-trigger:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 0, 127, 0.16);
}

.vam-contact-icon {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.vam-contact-dialog {
    width: min(500px, calc(100vw - 32px));
    padding: 0;
    border: 1px solid rgba(36, 45, 54, 0.16);
    border-radius: 12px;
    color: var(--text-main);
    background: #fff;
    box-shadow: 0 24px 70px rgba(36, 45, 54, 0.22);
}

.vam-contact-dialog::backdrop {
    background: rgba(36, 45, 54, 0.22);
    backdrop-filter: blur(4px);
}

.vam-contact-panel {
    padding: 24px;
}

.vam-contact-modal-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.vam-contact-close {
    appearance: none;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(36, 45, 54, 0.14);
    border-radius: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(36, 45, 54, 0.72);
    background: #fff;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1;
    transition: all 0.4s ease-in-out;
}

.vam-contact-close:hover,
.vam-contact-close:focus-visible {
    color: var(--accent);
    border-color: rgba(255, 0, 127, 0.45);
    outline: none;
}

.vam-contact-form {
    display: grid;
    gap: 12px;
    margin: 0;
}

.vam-contact-form input,
.vam-contact-form textarea {
    width: 100%;
    border: 1px solid rgba(36, 45, 54, 0.16);
    border-radius: 40px;
    padding: 0 14px;
    color: var(--text-main);
    background: #fff;
    font: inherit;
    transition: all 0.4s ease-in-out;
}

.vam-contact-form input {
    min-height: 44px;
}

.vam-contact-form textarea {
    min-height: 130px;
    padding-top: 12px;
    resize: vertical;
    border-radius: 12px;
}

.vam-contact-form input:focus,
.vam-contact-form textarea:focus {
    border-color: rgba(255, 0, 127, 0.55);
    box-shadow: 0 0 0 3px rgba(255, 0, 127, 0.12);
    outline: none;
}

.vam-contact-submit {
    min-height: 44px;
    border: 0;
    border-radius: 40px;
    color: #fff;
    background: var(--accent);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease-in-out;
}

.vam-contact-submit:hover,
.vam-contact-submit:focus-visible {
    color: #fff;
    background: var(--text-main);
    outline: none;
}

.vam-contact-submit:disabled {
    opacity: 0.65;
    cursor: wait;
}

.vam-contact-message {
    min-height: 1.3em;
    color: rgba(36, 45, 54, 0.72);
    font-size: 0.88rem;
    text-align: center;
}

.vam-contact-message.is-error {
    color: #b42318;
}

.vam-contact-trap {
    position: absolute;
    left: -100vw;
    width: 1px;
    height: 1px;
}

.vam-contact-captcha-wrap {
    display: flex;
    justify-content: center;
    min-height: 1px;
}

.mod-vam-footer__contact-trigger {
    appearance: none;
    border: 0;
    padding: 0;
    color: var(--text-main);
    background: transparent;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 0.16em;
    cursor: pointer;
    transition: all 0.4s ease-in-out;
}

.mod-vam-footer__contact-trigger:hover,
.mod-vam-footer__contact-trigger:focus-visible {
    color: var(--accent);
    outline: none;
}

@media (max-width: 640px) {
    .vam-contact-panel {
        padding: 22px 18px;
    }
}

/* Responsive refinement 2026-05-12: reduce mobile visual scale without changing desktop. */
@media (max-width: 1024px) {
    body {
        padding-top: 128px;
    }

    .container-header {
        min-height: 128px;
        padding: 12px 1rem;
        gap: 10px;
    }

    .container-header .grid-child {
        min-height: 0;
        padding: 6px 8px;
    }

    .container-header .container-topbar,
    .container-header .container-nav {
        min-height: 0;
    }

    .container-header .navbar-brand {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .container-header .brand-logo {
        display: inline-flex;
        justify-content: center;
        align-items: center;
    }

    .container-header .brand-logo img,
    .brand-logo img {
        width: min(150px, 58vw);
        max-height: 42px;
    }

    .container-header.vam-header-scrolled {
        min-height: 58px;
        height: auto;
        padding: 8px 1rem;
        gap: 8px;
    }

    .container-header.vam-header-scrolled .brand-logo img {
        max-height: 38px;
    }

    .vam-section {
        padding: 52px 0;
    }

    .vam-hero {
        padding-top: 44px;
        padding-bottom: 56px;
    }

    h1,
    .h1,
    .com-content-article .vam-hero h1,
    .vam-hero h1 {
        font-size: clamp(2.25rem, 9.2vw, 2.55rem);
        line-height: 1.1;
    }

    h2,
    .h2 {
        font-size: clamp(1.6rem, 6vw, 1.9rem);
        line-height: 1.18;
        margin-bottom: 1.35rem;
    }

    h3,
    .h3 {
        font-size: clamp(1.25rem, 4.8vw, 1.55rem);
        line-height: 1.25;
    }

    p,
    .com-content-article p,
    #estudio p,
    #como p,
    #origen p,
    section#lab p {
        font-size: clamp(1.05rem, 4.1vw, 1.125rem);
        line-height: 1.56;
        margin-bottom: 1.25rem;
    }

    p.vam-lead-hero,
    .vam-hero p,
    .hero-subtitle {
        font-size: clamp(1.1rem, 4.4vw, 1.22rem);
        line-height: 1.45;
    }

    .hero-subtitle {
        margin-bottom: 0.25rem;
    }

    #estudio h3,
    #estudio .h1,
    #como h3,
    #como .h1,
    section#lab .h1 {
        font-size: clamp(2rem, 8vw, 2.35rem);
        line-height: 1.12;
    }

    section#lab.vam-lab-block,
    section#lab {
        padding: 68px 28px;
        margin-top: 12vh;
    }

    section#lab .vam-lab-list li {
        font-size: clamp(1rem, 3.8vw, 1.08rem);
        line-height: 1.56;
    }

    .vam-newsletter-panel {
        padding: 30px 22px;
    }

    .vam-newsletter-panel .mod-vamnewsletter-signup h2,
    .vam-newsletter-panel h2 {
        font-size: clamp(1.55rem, 6vw, 1.85rem);
        line-height: 1.18;
    }
}

@media (max-width: 640px) {
    body {
        padding-top: 116px;
    }

    .container-header {
        min-height: 116px;
        padding: 10px 0.875rem;
        gap: 8px;
    }

    .container-header .grid-child {
        padding: 4px 8px;
    }

    .container-header .brand-logo img,
    .brand-logo img {
        width: min(140px, 56vw);
        max-height: 38px;
    }

    .vam-container,
    .com-content-article > * {
        width: min(100% - 48px, var(--max-width));
    }

    .vam-section {
        padding: 46px 0;
    }

    .vam-hero {
        padding-top: 38px;
        padding-bottom: 50px;
    }

    h1,
    .h1,
    .com-content-article .vam-hero h1,
    .vam-hero h1 {
        font-size: clamp(2.15rem, 10vw, 2.42rem);
        line-height: 1.08;
    }

    p,
    .com-content-article p,
    #estudio p,
    #como p,
    #origen p,
    section#lab p {
        font-size: 1.0625rem;
        line-height: 1.58;
    }

    p.vam-lead-hero,
    .vam-hero p,
    .hero-subtitle {
        font-size: 1.12rem;
        line-height: 1.42;
    }

    #estudio h3,
    #estudio .h1,
    #como h3,
    #como .h1,
    section#lab .h1 {
        font-size: clamp(1.9rem, 8.8vw, 2.18rem);
    }

    section#lab.vam-lab-block,
    section#lab {
        padding: 58px 24px;
        min-width: 100%;
        margin-left: 0;
        margin-top: 10vh;
    }

    .vam-newsletter-panel-section {
        padding: 42px 0 54px;
    }

    .vam-newsletter-panel {
        width: min(100% - 48px, 560px);
        padding: 26px 18px;
    }
}

/* Responsive refinement 2026-05-12 pass 2: Android scale and floating header. */
@media (max-width: 1024px) {
    body {
        padding-top: 108px;
    }

    .container-header {
        min-height: 104px;
        padding: 8px 14px;
        gap: 6px;
        border-radius: 0;
    }

    .container-header .grid-child {
        min-height: 0;
        height: auto;
        padding: 2px 8px;
        gap: 10px;
    }

    .container-header .grid-child:first-child {
        min-height: 34px;
    }

    .container-header .vam-login-shell,
    .container-header .mod-vam-contact-modal,
    .container-header .vam-contact-trigger,
    .container-header [data-vam-login-open] {
        width: 34px;
        height: 34px;
        min-width: 34px;
        min-height: 34px;
    }

    .container-header .mod-languages {
        gap: 14px;
        font-size: .95rem;
        line-height: 1.2;
    }

    .container-header .navbar-brand {
        min-height: 0;
        height: 34px;
    }

    .container-header .brand-logo img,
    .brand-logo img {
        width: min(132px, 52vw);
        max-height: 34px;
    }

    .container-header.vam-header-scrolled {
        top: 8px;
        width: calc(100% - 24px);
        min-height: 78px;
        padding: 7px 12px;
        gap: 4px;
        border-radius: 28px;
        overflow: hidden;
    }

    .container-header.vam-header-scrolled .grid-child {
        min-height: 0;
        padding: 0 6px;
    }

    .container-header.vam-header-scrolled .grid-child:first-child {
        min-height: 30px;
    }

    .container-header.vam-header-scrolled .navbar-brand {
        height: 28px;
    }

    .container-header.vam-header-scrolled .brand-logo img {
        width: min(112px, 46vw);
        max-height: 28px;
    }

    .vam-hero {
        padding-top: 30px;
        padding-bottom: 44px;
    }

    h1,
    .h1,
    .com-content-article .vam-hero h1,
    .vam-hero h1 {
        font-size: clamp(1.95rem, 7.8vw, 2.28rem);
        line-height: 1.1;
        max-width: 12.5em;
        text-wrap: balance;
    }

    h2,
    .h2 {
        font-size: clamp(1.42rem, 5vw, 1.72rem);
    }

    h3,
    .h3 {
        font-size: clamp(1.16rem, 4.1vw, 1.42rem);
    }

    p,
    .com-content-article p,
    #estudio p,
    #como p,
    #origen p,
    section#lab p {
        font-size: clamp(1rem, 3.5vw, 1.06rem);
        line-height: 1.55;
    }

    p.vam-lead-hero,
    .vam-hero p,
    .hero-subtitle {
        font-size: clamp(1.02rem, 3.7vw, 1.1rem);
        line-height: 1.42;
    }

    #estudio h3,
    #estudio .h1,
    #como h3,
    #como .h1,
    section#lab .h1 {
        font-size: clamp(1.7rem, 6.8vw, 2.05rem);
        line-height: 1.12;
    }
}

@media (max-width: 640px) {
    body {
        padding-top: 98px;
    }

    .container-header {
        min-height: 94px;
        padding: 7px 12px;
        gap: 5px;
    }

    .container-header .grid-child {
        padding: 1px 6px;
    }

    .container-header .grid-child:first-child {
        min-height: 32px;
    }

    .container-header .vam-login-shell,
    .container-header .mod-vam-contact-modal,
    .container-header .vam-contact-trigger,
    .container-header [data-vam-login-open] {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
    }

    .container-header .mod-languages {
        gap: 12px;
        font-size: .92rem;
    }

    .container-header .navbar-brand {
        height: 31px;
    }

    .container-header .brand-logo img,
    .brand-logo img {
        width: min(124px, 50vw);
        max-height: 31px;
    }

    .container-header.vam-header-scrolled {
        width: calc(100% - 20px);
        min-height: 72px;
        padding: 6px 10px;
        border-radius: 24px;
    }

    .container-header.vam-header-scrolled .grid-child:first-child {
        min-height: 28px;
    }

    .container-header.vam-header-scrolled .navbar-brand {
        height: 25px;
    }

    .container-header.vam-header-scrolled .brand-logo img {
        width: min(104px, 44vw);
        max-height: 25px;
    }

    .vam-container,
    .com-content-article > * {
        width: min(100% - 40px, var(--max-width));
    }

    .vam-hero {
        padding-top: 26px;
    }

    h1,
    .h1,
    .com-content-article .vam-hero h1,
    .vam-hero h1 {
        font-size: clamp(1.78rem, 8.2vw, 2.05rem);
        line-height: 1.1;
    }

    p,
    .com-content-article p,
    #estudio p,
    #como p,
    #origen p,
    section#lab p {
        font-size: 1rem;
        line-height: 1.54;
    }

    p.vam-lead-hero,
    .vam-hero p,
    .hero-subtitle {
        font-size: 1.02rem;
    }

    #estudio h3,
    #estudio .h1,
    #como h3,
    #como .h1,
    section#lab .h1 {
        font-size: clamp(1.62rem, 7.2vw, 1.9rem);
    }
}
