@import url("https://use.typekit.net/smb2pzm.css");
/*@import url('https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css');*/
@import url("desktop.css");
/*@import url("responsive.css");*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #ffffff;
    --primary-text: #0957a5;
    --slogan-text: #4d4d4d;
    --button-bg: transparent;
    --button-hover-bg: #3ba9d5;
    --button-hover-text: #ffffff;
    --button-active: #ffffff;
    --submenu-bg: #f3f4f6;
    --submenu-button: #4b5563;
    --scroll-bg: #1e3a8a;
    --scroll-brand: #60a5fa;
    --scroll-slogan: #ffffff;
    --scroll-button: #ffffff;
    --overlay-bg: rgba(0, 0, 0, 0.5);
    --icon-hover: #87CEEB;
    --submenu-hover-bg: #87CEEB;

    --azul-oscuro: #0957a5;
    --azul-claro: #3ba9d5;
}
/*:root {
    --primary-color: #4d4d4d;
    --accent-color: #3ba9d5;
    --bg-color: #ffffff;
    --overlay-color: rgba(0, 0, 0, 0.7);
    --nav-height: 70px;
    --azul-oscuro: #0957a5;
    --azul-claro: #3ba9d5;
}*/
.azul-oscuro {
    color: var(--azul-oscuro);
}
.azul-claro {
    color: var(--azul-claro);
}

/* Configuración global */


*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-size: 1rem;
    line-height: 1.5;
    font-family: sarvatrik-latin-variable, 'Open Sans', sans-serif;
    font-variation-settings: "wght" 300;
    /*background: transparent;
    transition: background .3s, padding .3s;*/
    overflow-x: hidden;
    width: 100%;
}

img {
  display: block;
  vertical-align: middle;
  height: auto;
}
strong {
  font-variation-settings: "wght" 700;
}
sub,
sup {
  font-size: 60%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sup {
  top: -0.45em;
}
sub {
  bottom: -0.25em;
}
/** {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}*/

p, h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1rem 0; /* Ejemplo: margen inferior de 1rem */
}

h1, h3, h5, h6 {
    color:var(--azul-oscuro);
    font-family: balboa-condensed, sans-serif;
    font-weight: 400;
    font-weight: normal;
    font-style: normal;
}

p { font-size: 1rem; }

table {
    border-collapse: collapse;
    width: 100%; 
    margin: 0;
    font: 1rem; 
}
th, td {
    padding: 0.5rem; 
    text-align: left;
    vertical-align: middle;
    border: none; 
    font-size: 1rem;
}
th {
    text-align: center;
    line-height: 1.2rem;
}

/*body.nav-open {
    overflow: hidden;
}*/

/*body {
    overflow-x: hidden;
}*/

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--primary-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    transition: all 0.3s ease;
    z-index: 1000;
    height: auto; /* Permitir altura dinámica */
}

.navbar.scrolled {
    background: var(--scroll-bg);
    background-image: url('img/noise.jpg');
    background-size: cover;
    background-repeat: no-repeat;
}

.brand-container {
    display: flex;
    flex-direction: column;
}

.brand {
    color: var(--primary-text);
    font-family: balboa-condensed, sans-serif;
    font-weight: 400;
    font-size: 1.25rem;
    text-decoration: none;
    letter-spacing: 0.03rem;
}

.navbar.scrolled .brand {
    color: var(--scroll-brand);
}

.slogan {
    color: var(--slogan-text);
    font-variation-settings: "wght" 400;
    font-size: 0.9rem;
    text-decoration: none;
}

.navbar.scrolled .slogan {
    color: var(--scroll-slogan);
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    flex-wrap: nowrap;
    margin-left: auto;
    width: 100%;
    max-width: 900px;
    justify-content: flex-end;
}

.nav-item {
    position: relative;
    margin-left: 10px;
    flex: none;
    text-align: center;
}

.nav-item.icon-links {
    flex: 0;
    margin-left: 10px;
    align-self: center;
}

.nav-link {
    color: #4d4d4d;
    font-variation-settings: "wght" 500;
    font-size: 0.8125rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background: var(--button-bg, transparent);
    text-decoration: none;
    line-height: 1.1;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 60px;
    justify-content: center;
    width: auto;
}

.nav-link span {
    margin: 0;
}

.navbar.scrolled .nav-link:not(.icon-links a) {
    color: var(--scroll-button);
}


.nav-item.selected > .nav-link:not(.icon-links a),
.nav-link:hover:not(.icon-links a) {
    background: var(--button-hover-bg, #3ba9d5);
    color: var(--button-hover-text, #ffffff);
}

.nav-item.selected > .nav-link:not(.icon-links a)::before,
.nav-link:hover:not(.icon-links a)::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 1s forwards;
}

@keyframes shine {
    100% { left: 100%; }
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--submenu-bg);
    list-style: none;
    min-width: 200px;
    opacity: 0;
    transform: translateY(10px);
    visibility: hidden;
    transition: all 0.3s ease;
    width: 100%;
    z-index: 1001;

    /*Chrome
    overflow: hidden;
    transition: max-height 0.3s ease;*/
}

.nav-item:hover .submenu {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.submenu li {
    padding: 0;
    text-align: left;
}

.submenu a {
    display: flex;
    align-items: center;
    padding: 6px 15px;
    color: var(--submenu-button);
    text-decoration: none;
    font-size: 0.8rem;
    line-height: 1.4;
    transition: all 0.3s ease;
}
.submenu li.t-portafolio {
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--submenu-button);
    padding: 6px 15px;
    font-variation-settings: "wght" 500;
}
.submenu li.tab {
    padding-left: 10px;
}

.submenu a [class^="icon-"] {
    /*display: inline-block;
    margin-right: 0;
    vertical-align: text-bottom;*/

}

.submenu a [class^="icon-"]:before {
    font-size: 0.7rem;
    margin-left: 3px;
    position: relative;
    top: -2px;
    color: var(--submenu-button);
}
.submenu a:hover [class^="icon-"]:before {
    color: white;
}

.submenu a:hover {
    background: var(--submenu-hover-bg, #87CEEB);
    color: var(--button-hover-text, #ffffff);
}

/*.submenu a:has(br) {
    line-height: 1.2;
    padding: 8px 15px;
}

.submenu a br {
    display: block;
    margin-bottom: 4px;
}*/

.nav-item.icon-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    transition: transform 0.3s ease;
    background: var(--primary-bg);
}

.icon-links .icon-row li:last-child a [class^="icon-"]:before {
    font-size: 16px;
}

.navbar.scrolled .nav-item.icon-links a:hover {
    background: var(--primary-bg, #ffffff);
}

.navbar.scrolled .nav-item.icon-links a:hover [class^="icon-"]:before {
    color: var(--icon-hover, #87CEEB);
}

.nav-item.icon-links .nav-link {
    background: none !important;
}

.icon-links .icon-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    list-style: none;
    position: relative;
}

.tooltip {
    position: absolute;
    top: 0;
    left: 0;
    background: #111827;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    max-width: 200px;
    white-space: normal;
    text-align: center;
    z-index: 1003;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.nav-item.icon-links a:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hamburger {
    display: none;
    width: 24px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    order: 1;
    z-index: 1004;
    padding-top: 0;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--primary-text);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.navbar.scrolled .hamburger span {
    background: var(--scroll-brand);
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 8px;
}

.hamburger span:nth-child(3) {
    top: 16px;
}

.hamburger.close span:nth-child(1) {
    transform: rotate(45deg);
    top: 8px;
}

.hamburger.close span:nth-child(2) {
    opacity: 0;
}

.hamburger.close span:nth-child(3) {
    transform: rotate(-45deg);
    top: 8px;
}
@font-face {
  font-family: 'fontello';
  src: url('font/fontello.eot?83198506');
  src: url('font/fontello.eot?83198506#iefix') format('embedded-opentype'),
       url('font/fontello.woff2?83198506') format('woff2'),
       url('font/fontello.woff?83198506') format('woff'),
       url('font/fontello.ttf?83198506') format('truetype'),
       url('font/fontello.svg?83198506#fontello') format('svg');
  font-weight: normal;
  font-style: normal;
}

[class^="icon-"]:before {
    font-family: "fontello";
    font-style: normal;
    display: inline-block;
    font-size: 20px;
    /*color: #111827;*/
    transition: color 0.3s ease;
    vertical-align: middle;
}

.navbar.scrolled [class^="icon-"]:before {
    color: var(--scroll-button);
}

.nav-item.icon-links a:hover [class^="icon-"]:before {
    color: var(--icon-hover);
}

.icon-contact:before { content: '\e800'; }
.icon-download:before { content: '\e801'; }
.icon-language:before { content: '\e805'; }
.icon-link:before { content: '\e803'; }
.icon-plus:before { content: '\e804'; }
.icon-circle:before { content: '\f111'; }

.icon-espanol:before { content: '\e802'; }
/*.icon-english:before { content: '\e805'; }*/

footer {
    background: url(img/noise.jpg) center center / cover no-repeat;
    text-align: center;
    color: white;
    height: 110px;
    margin-top: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
footer a {
    position: absolute;
    top: 30px;
    left: 30px;
}
footer a img {
    width:50px;
}
.overlay {
  pointer-events: none;
}
.overlay.active {
  pointer-events: auto;
}

@media (min-width: 1141px) {
  .nav-item.active .submenu {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }
}



@media (max-width: 1140px) {

    .navbar {
        padding: 10px 20px;
        height: auto;
    }
    .hamburger {
        display: block;
        margin: 0;
    }
    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--overlay-bg);
        opacity: 1;
        visibility: hidden;
        z-index: 999;
    }
    .overlay.active {
        visibility: visible;
    }
    .nav-menu {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        height: 100%;
        width: 80%;
        max-width: 300px;
        background: var(--primary-bg);
        flex-direction: column;
        padding: 60px 0 0 0;
        transition: right 0.5s ease-in-out;
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }
    .nav-item {
        margin: 0;
        padding: 0;
        width: 100%;
    }
    .nav-link {
        flex-direction: row;
        justify-content: center;
        gap: 5px;
        height: auto;
        font-size: 1rem;
        line-height: 1.2;
        padding: 10px;
    }
    .submenu {
        position: static;
        display: none;
        background: var(--submenu-bg);
        list-style: none;
        padding: 0;
        margin: 0;
        transition: none; /* Desactivar transiciones en responsive */
        transform: none; /* Desactivar transformaciones */
        opacity: 1; /* Forzar opacidad completa */
        visibility: visible; /* Forzar visibilidad */
        transition: max-height 0.3s ease;
        overflow: hidden;
    }
    .submenu a {
        display: block;
        padding: 6px 15px;
        color: var(--submenu-button);
        text-decoration: none;
        font-size: 0.8rem;
        line-height: 1.4;
        transition: all 0.3s ease;
        text-align: center;
    }
    /*.nav-item.selected .submenu {
        display: block;
    }*/
    .nav-item.icon-links {
        /*display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        margin-top: 20px;
        margin-left: 0;*/
        display:;
    }
    .nav-item.icon-links {
        margin-left: 0;
    }
    .navbar.scrolled .nav-link:not(.icon-links a),
    .navbar.scrolled .icon-row [class^="icon-"]:before {
        color: #4d4d4d;
    }
    .navbar.scrolled .nav-link:not(.icon-links a):hover {
        color: #ffffff;
        background: var(--button-hover-bg, #3ba9d5);
    }
    .navbar.scrolled [class^="icon-"]:before {
        color: #4d4d4d;
    }
    .navbar.scrolled .nav-item.icon-links a:hover [class^="icon-"]:before {
        color: var(--icon-hover, #87CEEB);
    }
}
@media (max-width: 990px) {
    body {
        /*font-size: 0.8rem;
        line-height: 1.3rem;*/
    }
    p, h1, h2, h3, h4, h5, h6 {
      margin: 0 0 .8rem 0;
    }
    table {
        font: .8rem; 
    }
    th, td {
        padding: 0.4rem; 
        font-size: .8rem;
    }
    th, td {
        line-height: .96rem;
    }
}
@media (max-width: 540px) {
    footer {
        gap: 10px;
        padding: 0 20px;
    }
    footer a {
        position: relative;
        top: 0;
        left: 0;
    }
    footer div {
        text-align: left;
        line-height: 1rem;
    }
}