/* =============================================
   TEXTYPLOT - CSS CORREGIDO PARA PROBLEMAS MÓVIL
   Servicios profesionales de patronaje digital
   CORRIGE: Imagen hero + texto TEXTYPLOT cortado + scroll horizontal
   ============================================= */

/* =============================================
   1. RESET Y CONFIGURACIÓN BASE - CORREGIDO PARA MÓVIL
   ============================================= */

* {
    box-sizing: border-box;
    border-radius: 0 !important;
}

/* CORRECCIÓN SCROLL HORIZONTAL - AGREGADO */
html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden !important;
    /* EVITA SCROLL HORIZONTAL */
    width: 100% !important;
    max-width: 100vw !important;
}

body {
    font: 16px/2.8 Helvetica, "Noto Sans", YuGothic, "Hiragino Kaku Gothic Pro", sans-serif;
    color: #000;
    letter-spacing: 1px;
    font-family: 'Noto Sans', sans-serif;
    font-weight: 300;
    background: #fff;
}

.open {
    overflow: hidden;
}

/* =============================================
   2. SISTEMA DE NAVEGACIÓN POR SECCIONES
   ============================================= */

.page-section {
    display: none;
    opacity: 0;
    transition: opacity 0.6s ease;
    padding-top: 70px;
    padding-left: 0;
    padding-right: 0;
}

.page-section.active {
    display: block;
    opacity: 1;
}

.page-section.fade-in {
    animation: fadeInSection 0.6s ease;
}

@keyframes fadeInSection {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   3. HEADER FIJO COMPLETO SIN SOMBRAS
   ============================================= */

#nav-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 70px !important;
    background: #ffffff !important;
    z-index: 1000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 30px !important;
    box-sizing: border-box !important;
}

#nav-container h1 {
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    order: 2 !important;
}

#nav-container h1 a {
    display: block !important;
    text-decoration: none !important;
    color: #000 !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    letter-spacing: 4px !important;
    text-transform: uppercase !important;
    transition: all 0.3s ease !important;
}

#nav-container h1 a:hover {
    opacity: 0.7;
}

/* =============================================
   4. ICONO HOME EN HEADER
   ============================================= */

.home-icon-container {
    position: relative !important;
    cursor: pointer !important;
    order: 1 !important;
}

.home-icon-png {
    width: 28px !important;
    height: 28px !important;
    display: block !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1)) !important;
}

.home-icon-png:hover {
    transform: scale(1.1) !important;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2)) !important;
}

/* =============================================
   5. BOTÓN HAMBURGER EN HEADER
   ============================================= */

#nav-toggle {
    position: relative !important;
    width: 40px !important;
    height: 35px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    order: 3 !important;
}

#nav-toggle div {
    position: relative !important;
    width: 40px !important;
    height: 35px !important;
}

#nav-toggle span {
    display: block !important;
    position: absolute !important;
    height: 1.5px !important;
    width: 100% !important;
    background: #000 !important;
    opacity: 1 !important;
    left: 0 !important;
    transform: rotate(0deg) !important;
    transition: .25s ease-in-out !important;
}

#nav-toggle span:nth-child(1) {
    top: 8px !important;
}

#nav-toggle span:nth-child(2) {
    top: 17px !important;
}

#nav-toggle span:nth-child(3) {
    top: 26px !important;
}

.open #nav-toggle span:nth-child(1) {
    top: 17px !important;
    transform: rotate(135deg) !important;
}

.open #nav-toggle span:nth-child(2) {
    opacity: 0 !important;
    left: -60px !important;
}

.open #nav-toggle span:nth-child(3) {
    top: 17px !important;
    transform: rotate(-135deg) !important;
}

/* =============================================
   6. MENÚ NAVEGACIÓN COMPLETO
   ============================================= */

#gloval-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #ffffff;
    z-index: 999;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    padding-right: 6rem;
}

.open #gloval-nav {
    right: 0;
}

.menu-background-image {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background-image: url('IMAGENES/pexels-pavel-danilyuk-6461103.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: all 0.6s ease;
    z-index: 1;
}

.menu-background-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
}

.open .menu-background-image {
    opacity: 1;
}

#gloval-nav nav {
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.98);
    padding: 4rem 0;
    margin-top: 4rem;
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
}

#gloval-nav nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
    width: 100%;
}

#gloval-nav nav ul li.nav-item {
    margin: 0;
    padding: 18px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.3s ease;
}

#gloval-nav nav ul li.nav-separator {
    height: 1px;
    background: rgba(0, 0, 0, 0.15);
    margin: 0;
    opacity: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
}

#gloval-nav nav ul li.nav-separator::before {
    content: '';
    position: absolute;
    top: 0;
    right: 100%;
    width: 100vw;
    height: 1px;
    background: rgba(0, 0, 0, 0.15);
}

#gloval-nav nav ul li.nav-separator::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 1px;
    background: rgba(0, 0, 0, 0.15);
}

.open #gloval-nav nav ul li.nav-item,
.open #gloval-nav nav ul li.nav-separator {
    opacity: 1;
    transform: translateY(0);
}

/* Animaciones escalonadas */
.open #gloval-nav nav ul li:nth-child(1) {
    transition-delay: 0.1s;
}

.open #gloval-nav nav ul li:nth-child(2) {
    transition-delay: 0.15s;
}

.open #gloval-nav nav ul li:nth-child(3) {
    transition-delay: 0.2s;
}

.open #gloval-nav nav ul li:nth-child(4) {
    transition-delay: 0.25s;
}

.open #gloval-nav nav ul li:nth-child(5) {
    transition-delay: 0.3s;
}

.open #gloval-nav nav ul li:nth-child(6) {
    transition-delay: 0.35s;
}

.open #gloval-nav nav ul li:nth-child(7) {
    transition-delay: 0.4s;
}

.open #gloval-nav nav ul li:nth-child(8) {
    transition-delay: 0.45s;
}

.open #gloval-nav nav ul li:nth-child(9) {
    transition-delay: 0.5s;
}

.open #gloval-nav nav ul li:nth-child(10) {
    transition-delay: 0.55s;
}

.open #gloval-nav nav ul li:nth-child(11) {
    transition-delay: 0.6s;
}

/* Enlaces del menú */
#gloval-nav nav ul li.nav-item a {
    color: #000;
    text-decoration: none;
    font-size: clamp(16px, 3.5vw, 24px);
    font-weight: 500;
    letter-spacing: clamp(3px, 1.2vw, 8px);
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    display: block;
    text-align: right;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
}

#gloval-nav nav ul li.nav-item a:hover {
    opacity: 0.6;
    color: #333;
}

#gloval-nav nav ul li.lang-switch {
    margin-top: 30px;
    padding-top: 30px;
}

/* Cambio de idioma con icono */
#gloval-nav nav ul li.lang-switch a {
    font-size: clamp(10px, 1.8vw, 14px);
    letter-spacing: clamp(1px, 0.6vw, 2px);
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    color: #000;
    text-transform: none;
    font-weight: 400;
}

/* Icono del globo terráqueo */
.globe-icon {
    display: inline-block !important;
    width: 12px !important;
    height: 12px !important;
    color: currentColor !important;
    flex-shrink: 0 !important;
}

#gloval-nav nav ul li.lang-switch a:hover {
    opacity: 1;
    color: #333;
}

/* =============================================
   7. VENTANA MODAL DE CAMBIO DE IDIOMA
   ============================================= */

.language-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.language-message .modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 3rem 4rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    font-family: inherit;
    text-align: center;
    max-width: 500px;
    width: 90%;
    border-radius: 0;
}

.language-message .modal-icon {
    display: none !important;
}

.language-message .modal-title {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 2rem;
    color: #000;
    text-transform: uppercase;
}

.language-message .modal-text {
    font-size: 14px;
    line-height: 2.2;
    margin-bottom: 3rem;
    opacity: 0.8;
    letter-spacing: 0.5px;
}

.language-message .modal-button {
    background: transparent;
    color: #000;
    border: 2px solid #000;
    padding: 1rem 3rem;
    font-family: inherit;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 300;
    border-radius: 0;
}

.language-message .modal-button:hover {
    background: #000;
    color: white;
}

.language-message .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
}

/* =============================================
   8. SECCIÓN HERO HOME - CORREGIDO PARA MÓVIL
   ============================================= */

.contentsTop {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 70px);
    text-align: center;
    padding: 0;
    margin: 0;
    width: 100%;
    /* CORRECCIÓN MÓVIL - EVITAR OVERFLOW */
    overflow: hidden;
}

/* CORRECCIÓN PRINCIPAL - IMAGEN HERO OCUPA TODO EL ANCHO EN MÓVIL */
.hero-image-container {
    width: 100%;
    max-width: 1200px;
    height: calc(100vh - 70px);
    margin: 0 auto;
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 2rem;
    margin-right: 2rem;
    margin-top: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.titleOuter {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 4rem;
    z-index: 2;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* =============================================
   9. LOGOS PNG RESPONSIVE - TEXTO TEXTYPLOT CORREGIDO
   ============================================= */

.logo-main-png {
    width: 800px;
    max-width: 800px;
    min-width: 800px;
    height: auto;
    display: block;
    margin: 0 auto;
    padding: 0;
    border: none;
    object-fit: contain;
    z-index: 3;
}

.logo-secondary-png {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    max-width: 180px;
    min-width: 180px;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
    object-fit: contain;
    z-index: 3;
}

/* =============================================
   10. FOOTER EN SECCIÓN HOME
   ============================================= */

.home-footer-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    z-index: 3;
}

.contact-info-home {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    font-size: 12px;
    line-height: 2;
}

.contact-info-home p {
    margin: 0.5rem 0;
    opacity: 0.8;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.contact-info-home strong {
    font-weight: 400;
    opacity: 1;
    color: #000;
}

/* =============================================
   11. SECCIONES PRINCIPALES
   ============================================= */

section {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

section h3 {
    font-size: 2.2rem;
    font-weight: 300;
    margin-bottom: 4rem;
    text-align: center;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #000;
}

/* =============================================
   12. SECCIÓN TEXTYPLOT CON IMAGEN
   ============================================= */

.textyplot {
    background: #fafafa;
    text-align: center;
}

.textyplot-content {
    max-width: 700px;
    margin: 0 auto;
}

.textyplot-content p {
    font-size: 15px;
    line-height: 2.4;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.textyplot-image-container {
    margin-top: 4rem;
    text-align: center;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.textyplot-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    object-fit: cover;
    border-radius: 0;
}

.textyplot-image:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* =============================================
   13. SECCIÓN SERVICIOS
   ============================================= */

.servicios {
    background: #ffffff;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 4rem;
    margin-top: 4rem;
}

.service-item {
    text-align: center;
    padding: 2rem 1rem;
}

.service-item h4 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #000;
}

.service-item p {
    font-size: 14px;
    line-height: 2.4;
    opacity: 0.85;
    max-width: 300px;
    margin: 0 auto;
}

/* =============================================
   14. SECCIÓN CLIENTES CON GRID DE LOGOS
   ============================================= */

.clientes {
    background: #fafafa;
    text-align: center;
}

.clients-content {
    max-width: 700px;
    margin: 0 auto;
}

.clients-content p {
    font-size: 15px;
    line-height: 2.4;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.clients-logos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
    padding: 2rem 0;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
}

.client-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    pointer-events: auto;
    position: relative;
    border-radius: 0;
}

.client-logo-item:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.client-logo-img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    border-radius: 0;
}

.client-logo-item:hover .client-logo-img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

.client-logo-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    background: transparent;
    pointer-events: auto;
}

/* =============================================
   15. SECCIÓN BLOG
   ============================================= */

.blog {
    background: #ffffff;
    text-align: center;
}

.blog-content {
    max-width: 700px;
    margin: 0 auto;
}

.blog-content p {
    font-size: 15px;
    line-height: 2.4;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* =============================================
   16. SECCIÓN CONTACTO
   ============================================= */

.contacto {
    background: #fafafa;
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto 4rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1.2rem 0;
    margin-bottom: 2rem;
    border: none;
    border-bottom: 1px solid #ddd;
    background: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 1px;
    outline: none;
    transition: all 0.3s ease;
    color: #000;
    border-radius: 0;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-bottom-color: #000;
}

.contact-form select {
    width: 100%;
    padding: 1.2rem 0;
    margin-bottom: 2rem;
    border: none;
    border-bottom: 1px solid #ddd;
    background: #ffffff !important;
    color: #000 !important;
    font-family: inherit;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 1px;
    outline: none;
    transition: all 0.3s ease;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border-radius: 0;
}

.contact-form select:focus {
    border-bottom-color: #000;
}

.contact-form select option {
    background: #ffffff !important;
    color: #000 !important;
    padding: 0.5rem;
}

.contact-form button {
    background: transparent;
    border: 2px solid #000;
    color: #000;
    padding: 1rem 3rem;
    font-family: inherit;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 2rem;
    border-radius: 0;
}

.contact-form button:hover {
    background: #000;
    color: #fff;
}

.contact-info {
    margin-top: 4rem;
    font-size: 14px;
    line-height: 2.4;
}

.contact-info p {
    margin: 1rem 0;
    opacity: 0.8;
}

.contact-info strong {
    font-weight: 400;
    opacity: 1;
}

/* =============================================
   17. FOOTER CON INSTAGRAM MINIMALISTA
   ============================================= */

footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid #eee;
    background: #ffffff;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-main {
    flex: 1;
    min-width: 300px;
}

.footer-main p {
    font-size: 12px;
    opacity: 0.6;
    margin: 0;
    line-height: 1.8;
}

.legal-separator {
    margin: 0 1rem;
    opacity: 0.5;
}

.legal-link {
    color: #000;
    text-decoration: none;
    font-weight: 300;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.legal-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: auto;
}

.footer-social a {
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    transform: scale(1.1);
}

.footer-social svg {
    width: 28px;
    height: 28px;
    color: #333;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.footer-social a:hover svg {
    color: #000;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transform: scale(1.05);
}

/* =============================================
   18. MODAL DE CONDICIONES LEGALES
   ============================================= */

.legal-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    font-family: 'Noto Sans', sans-serif;
}

.legal-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.legal-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0;
}

.legal-modal-header {
    padding: 2rem 3rem 1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 1;
}

.legal-modal-header h3 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #000;
}

.legal-close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    border-radius: 0;
}

.legal-close-btn:hover {
    color: #000;
    background: rgba(0, 0, 0, 0.05);
}

.legal-modal-body {
    padding: 2rem 3rem;
    line-height: 2.2;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h4 {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #000;
    opacity: 0.9;
}

.legal-section p {
    margin: 0;
    opacity: 0.8;
    text-align: justify;
}

.legal-modal-footer {
    padding: 1.5rem 3rem 2rem;
    border-top: 1px solid #eee;
    text-align: center;
    background: #fafafa;
}

.legal-accept-btn {
    background: transparent;
    border: 2px solid #000;
    color: #000;
    padding: 1rem 3rem;
    font-family: inherit;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
}

.legal-accept-btn:hover {
    background: #000;
    color: #fff;
}

/* =============================================
   19. RESPONSIVE DESIGN - CORRECCIONES MÓVIL CRÍTICAS
   ============================================= */

/* Pantallas extra grandes */
@media (min-width: 1400px) {
    .logo-main-png {
        width: 900px;
        max-width: 900px;
        min-width: 900px;
    }

    .logo-secondary-png {
        width: 200px;
        max-width: 200px;
        min-width: 200px;
    }

    .titleOuter {
        padding-top: 5rem;
    }

    #gloval-nav nav ul li.nav-item a {
        font-size: 22px;
        letter-spacing: 6px;
        font-weight: 500;
    }

    #gloval-nav nav ul li.lang-switch a {
        font-size: 12px;
        letter-spacing: 1.5px;
    }

    .globe-icon {
        width: 11px !important;
        height: 11px !important;
    }

    .menu-background-image {
        height: 35%;
    }

    #gloval-nav nav {
        margin-bottom: 3rem;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .logo-main-png {
        width: 850px;
        max-width: 850px;
        min-width: 850px;
    }

    .logo-secondary-png {
        width: 190px;
        max-width: 190px;
        min-width: 190px;
    }

    .titleOuter {
        padding-top: 4.5rem;
    }

    #gloval-nav nav ul li.nav-item a {
        font-size: 20px;
        letter-spacing: 5px;
        font-weight: 500;
    }

    #gloval-nav nav ul li.lang-switch a {
        font-size: 11px;
        letter-spacing: 1.2px;
    }

    .globe-icon {
        width: 10px !important;
        height: 10px !important;
    }
}

/* TABLETS - Sin márgenes laterales */
@media (max-width: 1024px) {
    #nav-container {
        padding: 0 20px;
        height: 60px;
    }

    .page-section {
        padding-top: 60px;
        padding-left: 0;
        padding-right: 0;
    }

    section {
        padding: 6rem 1rem;
    }

    .textyplot-content,
    .clients-content,
    .blog-content {
        padding: 0 2rem;
    }

    .contact-info {
        padding: 0 2rem;
    }

    .contentsTop {
        min-height: calc(100vh - 60px);
        margin: 0;
        padding: 0;
        width: 100%;
    }

    /* CORRECCIÓN TABLET - IMAGEN HERO SIN MÁRGENES */
    .hero-image-container {
        height: calc(100vh - 60px);
        margin: 0 !important;
        /* FORZAR SIN MÁRGENES */
        max-width: none !important;
        width: 100% !important;
    }

    .home-icon-png {
        width: 24px;
        height: 24px;
    }

    #nav-container h1 a {
        font-size: 16px;
        letter-spacing: 3px;
    }

    #nav-toggle {
        width: 35px;
        height: 30px;
    }

    #nav-toggle div {
        width: 35px;
        height: 30px;
    }

    .logo-main-png {
        width: 400px;
        max-width: 400px;
        min-width: 400px;
    }

    .logo-secondary-png {
        width: 120px !important;
        max-width: 120px !important;
        min-width: 120px !important;
    }

    .titleOuter {
        padding-top: 2rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .textyplot-image-container {
        max-width: 700px;
        margin-top: 3rem;
        padding: 0 1rem;
    }

    section h3 {
        font-size: 2rem;
        letter-spacing: 3px;
    }

    #gloval-nav {
        padding-right: 4rem;
    }

    #gloval-nav nav {
        padding: 3rem 0;
        margin-top: 3rem;
    }

    #gloval-nav nav ul li.nav-item a {
        font-weight: 500;
    }

    .menu-background-image {
        height: 35%;
    }

    .service-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 3rem;
    }

    .clients-logos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .contact-info-home {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 0.8rem;
        padding: 0 1rem;
    }

    .contact-info-home p {
        font-size: 10px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-main {
        min-width: auto;
    }

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

    .legal-modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .legal-modal-header,
    .legal-modal-body,
    .legal-modal-footer {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .globe-icon {
        width: 9px !important;
        height: 9px !important;
    }
}

/* MÓVILES - CORRECCIONES CRÍTICAS APLICADAS */
@media (max-width: 768px) {
    #nav-container {
        padding: 0 15px;
        height: 55px;
    }

    .page-section {
        padding-top: 55px;
        padding-left: 0;
        padding-right: 0;
    }

    /* CORRECCIÓN CRÍTICA - EVITAR SCROLL HORIZONTAL */
    body {
        margin: 0;
        padding: 0;
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    section {
        padding: 6rem 1rem;
        width: 100%;
        max-width: none;
        margin: 0;
        /* ASEGURAR QUE SECCIONES NO CAUSEN OVERFLOW */
        overflow-x: hidden;
    }

    /* TEXTOS MÁS SEPARADOS DE LOS LATERALES EN MÓVIL */
    .textyplot-content,
    .clients-content,
    .blog-content {
        padding: 0 3rem !important;
    }

    .contact-info {
        padding: 0 3rem !important;
    }

    .contact-form {
        padding: 0 2.5rem;
    }

    .contentsTop {
        min-height: calc(100vh - 55px);
        margin: 0;
        padding: 0;
        width: 100%;
        /* CORRECCIÓN - EVITAR OVERFLOW EN CONTENEDOR PRINCIPAL */
        overflow: hidden;
    }

    /* CORRECCIÓN CRÍTICA - IMAGEN HERO OCUPA TODO EL ANCHO SIN MÁRGENES */
    .hero-image-container {
        height: calc(100vh - 55px);
        margin: 0 !important;
        /* SIN MÁRGENES LATERALES */
        max-width: none !important;
        width: 100vw !important;
        /* ANCHO COMPLETO DE VIEWPORT */
        left: 0 !important;
        right: 0 !important;
        position: relative !important;
    }

    .home-icon-png {
        width: 20px;
        height: 20px;
    }

    /* TÍTULO TEXTYPLOT OCULTO EN MÓVILES */
    #nav-container h1 {
        display: none !important;
    }

    #nav-container h1 a {
        font-size: 14px;
        letter-spacing: 2px;
    }

    #nav-toggle {
        width: 30px;
        height: 25px;
    }

    #nav-toggle div {
        width: 30px;
        height: 25px;
    }

    #nav-toggle span:nth-child(1) {
        top: 6px;
    }

    #nav-toggle span:nth-child(2) {
        top: 12px;
    }

    #nav-toggle span:nth-child(3) {
        top: 18px;
    }

    .open #nav-toggle span:nth-child(1) {
        top: 12px;
    }

    .open #nav-toggle span:nth-child(3) {
        top: 12px;
    }

    /* CORRECCIÓN CRÍTICA - TEXTO TEXTYPLOT MÁS ESTRECHO PARA QUE SE VEA COMPLETO */
    .logo-main-png {
        width: 250px !important;
        /* REDUCIDO DE 280px A 250px PARA QUE SE VEA LA "T" */
        max-width: 250px !important;
        min-width: 250px !important;
    }

    /* LOGO NARANJA MÁS GRANDE EN MÓVIL */
    .logo-secondary-png {
        width: 130px !important;
        max-width: 130px !important;
        min-width: 130px !important;
    }

    /* PADDING LATERAL PARA EVITAR QUE EL TEXTO SE CORTE */
    .titleOuter {
        padding-top: 3.5rem !important;
        padding-left: 2rem !important;
        padding-right: 2rem !important;
        gap: 2rem;
        /* ASEGURAR QUE EL CONTENEDOR NO CAUSE OVERFLOW */
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .textyplot-image-container {
        max-width: 100%;
        margin-top: 2.5rem;
        padding: 0 0.5rem;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    section h3 {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }

    #gloval-nav {
        padding-right: 2rem;
    }

    #gloval-nav nav {
        padding: 2rem 0;
        margin-top: 2rem;
    }

    #gloval-nav nav ul li.nav-item a {
        font-weight: 500;
    }

    .menu-background-image {
        height: 30%;
    }

    .clients-logos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1.5rem 0;
    }

    .client-logo-img {
        max-height: 60px;
    }

    .home-footer-container {
        padding: 1.5rem 0.5rem;
        margin: 0;
        width: 100%;
    }

    .contact-info-home {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 0 0.5rem;
    }

    .contact-info-home p {
        font-size: 9px;
        margin: 0.3rem 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        padding: 0 0.5rem;
    }

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

    .legal-modal-content {
        width: 95%;
        max-height: 95vh;
        margin: 2.5vh auto;
    }

    .legal-modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }

    .legal-modal-header h3 {
        font-size: 1.4rem;
        letter-spacing: 2px;
    }

    .legal-modal-body {
        padding: 1.5rem;
        font-size: 13px;
    }

    .legal-modal-footer {
        padding: 1rem 1.5rem 1.5rem;
    }

    .legal-accept-btn {
        padding: 0.8rem 2rem;
        font-size: 11px;
    }

    .globe-icon {
        width: 8px !important;
        height: 8px !important;
    }
}

/* MÓVILES PEQUEÑOS - CORRECCIONES ADICIONALES */
@media (max-width: 480px) {
    #nav-container {
        padding: 0 10px;
        height: 45px !important;
    }

    .page-section {
        padding-top: 45px;
        padding-left: 0;
        padding-right: 0;
    }

    /* ASEGURAR ANCHO COMPLETO EN MÓVILES PEQUEÑOS */
    body {
        margin: 0;
        padding: 0;
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    section {
        padding: 4rem 0.5rem;
        width: 100%;
        max-width: none;
        margin: 0;
    }

    /* TEXTOS TODAVÍA MÁS SEPARADOS */
    .textyplot-content,
    .clients-content,
    .blog-content {
        padding: 0 3.5rem !important;
    }

    .contact-info {
        padding: 0 3.5rem !important;
    }

    .contact-form {
        padding: 0 3rem !important;
    }

    .contentsTop {
        min-height: calc(100vh - 45px);
        margin: 0;
        padding: 0;
        width: 100%;
        overflow: hidden;
    }

    /* IMAGEN HERO OCUPA TODO EL ANCHO EN MÓVILES PEQUEÑOS */
    .hero-image-container {
        height: calc(100vh - 45px);
        margin: 0 !important;
        max-width: none !important;
        width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
    }

    .home-icon-png {
        width: 18px;
        height: 18px;
    }

    /* TEXTO TEXTYPLOT OCULTO EN MÓVILES PEQUEÑOS */
    #nav-container h1 {
        display: none !important;
    }

    #nav-toggle {
        width: 25px;
        height: 20px;
    }

    #nav-toggle div {
        width: 25px;
        height: 20px;
    }

    #nav-toggle span:nth-child(1) {
        top: 4px;
    }

    #nav-toggle span:nth-child(2) {
        top: 10px;
    }

    #nav-toggle span:nth-child(3) {
        top: 16px;
    }

    .open #nav-toggle span:nth-child(1) {
        top: 10px;
    }

    .open #nav-toggle span:nth-child(3) {
        top: 10px;
    }

    /* TEXTO TEXTYPLOT AÚN MÁS ESTRECHO PARA MÓVILES PEQUEÑOS */
    .logo-main-png {
        width: 220px !important;
        /* REDUCIDO PARA ASEGURAR VISIBILIDAD COMPLETA */
        max-width: 220px !important;
        min-width: 220px !important;
    }

    /* LOGO NARANJA MÁS GRANDE EN MÓVILES PEQUEÑOS */
    .logo-secondary-png {
        width: 110px !important;
        max-width: 110px !important;
        min-width: 110px !important;
    }

    /* PADDING LATERAL AUMENTADO */
    .titleOuter {
        padding-top: 3rem !important;
        padding-left: 2.5rem !important;
        padding-right: 2.5rem !important;
        gap: 1.5rem;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .textyplot-image-container {
        margin-top: 2rem;
        padding: 0 0.25rem;
    }

    #gloval-nav {
        padding-right: 1.5rem;
    }

    #gloval-nav nav ul li.nav-item a {
        font-weight: 600 !important;
    }

    #gloval-nav nav ul li.lang-switch a {
        font-size: 9px;
        letter-spacing: 0.8px;
        gap: 6px;
    }

    #gloval-nav nav {
        padding: 1.5rem 0;
        margin-top: 1.5rem;
    }

    .menu-background-image {
        height: 25%;
    }

    .clients-logos-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        padding: 1rem 0;
    }

    .client-logo-item {
        padding: 0.8rem;
    }

    .client-logo-img {
        max-height: 50px;
    }

    .home-footer-container {
        padding: 1rem 0.25rem;
        margin: 0;
        width: 100%;
    }

    .contact-info-home p {
        font-size: 8px;
        letter-spacing: 0.3px;
    }

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

    .legal-modal-header h3 {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    .legal-close-btn {
        width: 35px;
        height: 35px;
        font-size: 1.8rem;
    }

    .legal-modal-body {
        font-size: 12px;
        line-height: 2;
    }

    .legal-section h4 {
        font-size: 1rem;
    }

    .globe-icon {
        width: 7px !important;
        height: 7px !important;
    }

    footer {
        padding: 2rem 0.5rem;
    }

    .footer-content {
        padding: 0;
        margin: 0;
    }
}

/* MÓVILES MUY PEQUEÑOS - MÁXIMAS CORRECCIONES */
@media (max-width: 320px) {
    #nav-container {
        height: 40px !important;
        padding: 0 8px;
    }

    .page-section {
        padding-top: 40px;
        padding-left: 0;
        padding-right: 0;
    }

    section {
        padding: 3rem 0.25rem;
        width: 100%;
        margin: 0;
    }

    /* MÁXIMA SEPARACIÓN PARA PANTALLAS MUY PEQUEÑAS */
    .textyplot-content,
    .clients-content,
    .blog-content {
        padding: 0 2.5rem !important;
    }

    .contact-info {
        padding: 0 2.5rem !important;
    }

    .contact-form {
        padding: 0 2rem !important;
    }

    .contentsTop {
        min-height: calc(100vh - 40px);
        margin: 0;
        padding: 0;
        width: 100%;
        overflow: hidden;
    }

    /* IMAGEN HERO ANCHO COMPLETO */
    .hero-image-container {
        height: calc(100vh - 40px);
        margin: 0 !important;
        width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
    }

    .home-icon-png {
        width: 16px;
        height: 16px;
    }

    #nav-toggle {
        width: 20px;
        height: 18px;
    }

    #nav-toggle div {
        width: 20px;
        height: 18px;
    }

    /* TEXTO TEXTYPLOT MÁXIMO ESTRECHO */
    .logo-main-png {
        width: 180px !important;
        /* MÁXIMO REDUCIDO PARA PANTALLAS MUY PEQUEÑAS */
        max-width: 180px !important;
        min-width: 180px !important;
    }

    /* LOGO NARANJA AJUSTADO */
    .logo-secondary-png {
        width: 75px !important;
        max-width: 75px !important;
        min-width: 75px !important;
    }

    .titleOuter {
        padding-top: 2.5rem !important;
        padding-left: 2rem !important;
        padding-right: 2rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    #gloval-nav nav ul li.nav-item a {
        font-weight: 600 !important;
    }

    .globe-icon {
        width: 6px !important;
        height: 6px !important;
    }

    footer {
        padding: 1.5rem 0.25rem;
    }

    .home-footer-container {
        padding: 0.75rem 0.125rem;
        margin: 0;
        width: 100%;
    }

    .textyplot-image-container {
        padding: 0 0.125rem;
    }
}

/* Pantallas ultra grandes - Optimización adicional */
@media (min-width: 1920px) {
    #gloval-nav nav ul li.nav-item a {
        font-size: 28px;
        letter-spacing: 10px;
        font-weight: 500;
    }

    #gloval-nav nav ul li.lang-switch a {
        font-size: 14px;
        letter-spacing: 2px;
    }

    .globe-icon {
        width: 13px !important;
        height: 13px !important;
    }

    #gloval-nav nav {
        padding: 5rem 0;
        margin-top: 4rem;
        margin-bottom: 4rem;
    }

    .contact-info-home {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .contact-info-home p {
        font-size: 13px;
    }

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

    .menu-background-image {
        height: 30%;
    }
}

@media (min-width: 2560px) {
    #gloval-nav nav ul li.nav-item a {
        font-size: 32px;
        letter-spacing: 12px;
        font-weight: 500;
    }

    #gloval-nav nav ul li.lang-switch a {
        font-size: 16px;
        letter-spacing: 2.5px;
    }

    .globe-icon {
        width: 15px !important;
        height: 15px !important;
    }

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

    .menu-background-image {
        height: 25%;
    }

    #gloval-nav nav {
        margin-bottom: 5rem;
    }
}

/* =============================================
   20. FALLBACKS Y OPTIMIZACIONES
   ============================================= */

@supports not (font-size: clamp(1rem, 4vw, 2rem)) {
    .logo-main-png {
        width: 200px;
        max-width: 200px;
    }

    .logo-secondary-png {
        width: 50px;
        max-width: 50px;
    }

    @media (max-width: 768px) {
        .logo-main-png {
            width: 120px;
            max-width: 120px;
        }

        .logo-secondary-png {
            width: 35px;
            max-width: 35px;
        }
    }
}

@supports not (width: 100vw) {
    #gloval-nav nav ul li.nav-separator::before {
        width: 2000px;
        right: 100%;
    }

    #gloval-nav nav ul li.nav-separator::after {
        width: 2000px;
        left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Precargar imagen de fondo del menú */
#gloval-nav::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    z-index: -999;
    background-image: url('IMAGENES/pexels-pavel-danilyuk-6461103.jpg');
}

/* =============================================
   21. UTILIDADES Y CLASES AUXILIARES
   ============================================= */

.mobile-hidden {
    display: block;
}

@media (max-width: 768px) {
    .mobile-hidden {
        display: none;
    }
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }
}

.center-content {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.responsive-text {
    font-size: clamp(14px, 2.5vw, 18px);
    line-height: clamp(1.4, 2vw, 1.8);
}

.no-overlap {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

@media print {

    .no-print,
    #nav-container,
    #gloval-nav,
    .home-icon-container,
    #nav-toggle,
    .footer-social {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000 !important;
        background: #fff !important;
    }

    .page-section {
        display: block !important;
        opacity: 1 !important;
        padding-top: 0 !important;
    }
}

/* Solución específica para cursor Chrome */
* {
    caret-color: transparent !important;
}

body,
html,
div,
section,
nav,
header,
footer {
    -webkit-user-select: none !important;
    user-select: none !important;
    cursor: default !important;
}

/* Solo permitir selección en elementos de formulario */
input,
textarea,
select {
    -webkit-user-select: text !important;
    user-select: text !important;
    caret-color: auto !important;
    cursor: text !important;
}

/* Enlaces y botones */
a,
button {
    -webkit-user-select: none !important;
    user-select: none !important;
    cursor: pointer !important;
}

/* =============================================
   FIN DEL ARCHIVO CSS - TEXTYPLOT CORREGIDO PARA MÓVIL
   ============================================= */