:root {
    --primary-color: #4a8ebd;        /* Azul brillante cósmico */
    --secondary-color: #ffffff;      /* Texto claro sobre fondo oscuro */
    --accent-color: #00c9db;         /* ff4dff Rosa neón * #00c9db; Cian tecnológico #6f42c1;  Morado profundo tipo “IA premium */
    --highlight-color: #c056c0;      /* 00d4ff Cian claro para detalles brillantes c056c0 Morado neón*/
    --light-color: rgba(255, 255, 255, 0.1); /* Luz suave para efectos */
    --dark-color: #111b2d;         /* Fondo principal profundo #0a1a40*/
    --text-color: #ffffff;           /* Blanco para mejor contraste */
    --link-hover-color: #00f7ff;
    --btn-text-color: #000000;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
}

h1, h2, h3, h4, h5, h6, p{
    font-family: 'Montserrat', sans-serif ;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

h1 {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.5px;
  }
  
  h2 {
    font-size: 2.2rem;
    margin-bottom: var(--spacing-sm);
    position: relative;
    display: inline-block;
    color: var(--primary-color);
  }
  
  h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--secondary-color);
    margin: var(--spacing-xs) auto 0;
  }
  
  h3 {
    font-size: 1.4rem;
    margin-bottom: var(--spacing-sm);
    color: var(--accent-color);
  }

body, p, li, span {
    font-family: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--dark-color);
    color: var(--secondary-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}
.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header {
    background-color: var(--dark-color);
    color: var(--secondary-color);
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(255, 77, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;    
}

.logo-container {
    display: flex;
    align-items: center;
    margin-bottom: 0.3rem;
    flex-direction: column;
}

.logo-link {
    outline: none;
}


.logo-link:focus:not(:focus-visible) {
    outline: none;
}

.logo {
    max-height: 60px;
    margin-right: 15px;
}

.main-nav {
    display: flex;
    align-items: flex-end;
    justify-content: right;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  }
  
.nav-links{
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    list-style: none;
    margin: 0;
}
  
.nav-links li a {
    position: relative;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    
}
.nav-links li :hover  {
    display: inline-block;
    background: var(--dark-color);
    color: var(--link-hover-color);
    border-radius: 2px;
    text-decoration: none;
}
  
.nav-links a:focus {
    outline: none;
    box-shadow: none;
}

.nav-links li a:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
}

.nav-links a.active::after {
    width: 100%;
}
  
.btn-nav {
    display: block;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--highlight-color) 100%);
    color: var(--btn-text-color);
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    padding: 10px 20px;
}

/*___________________________________________*/

.services, .benefits, .experience, .client, .testimonials, .cta {
    background-color: var(--dark-color);
}

.img-all {
    width: 250px;
    height: 150px;
    margin-bottom: 1rem;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.benefits, .services, .testimonials, .client, .cta, .chatbot-section, .hero {
    padding: var(--spacing-xl) 0;
    text-align: center;
    border-top: 3px solid var(--light-color);
}

.benefit-card, .service-card {
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    border-top: 3px solid var(--primary-color);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(255, 77, 255, 0.1);
    color: var(--text-color);
    text-align: center;
    font-size: 1rem;
}

.btn, .benefit-card, .service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}  
/*_____________________________*/
.hero {
    background-color: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.hero-text {
    display: flex;
    flex: 1 1 40%;
    min-width: 300px;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-img-container {
    flex: 1 1 40%;
    display: flex;
    max-width: 100%;
    justify-content: center;
    align-items: center;
}

.hero-imagen {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 180px;
    box-shadow: 0 0 2px var(--dark-color);
    transition: transform 0.3s ease;
    object-fit: contain;
}

.hero-img:hover {
    transform: scale(1.03);
}

.slogan {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.highlight {
    color: var(--accent-color);
    font-weight: 700;
}

/*___________________________*/

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

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 201, 219, 0.15);
}

.benefit-card h3 {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.benefit-card h3 span {
    margin-right: 0.5rem;
}

/*________________________________*/

.experience-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    justify-content: space-between;
    flex-wrap: wrap;
}

.experience-text {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.experience-subtitle {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--text-color);
}

.experience-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-weight: bold;
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.experience-link:hover {
    color: var(--primary-color);
}

.experience-image-wrapper {
    flex: 1;
    max-width: 300px;
    margin: 0 auto;
}

.experience-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.experience a:hover{
    color: var(--accent-color);
    text-decoration: underline;
    text-decoration-color: white;
}

.experience a:focus:not(:focus-visible){
    outline: none;
}
/*______________________________________________*/

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

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 201, 219, 0.15);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--highlight-color);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/*___________________________________________*/

.client {
    display: block;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.logo-slider-container {
   overflow: hidden;
   padding: 15px;
   border-radius: 20px;
   margin: 10px;
   display: flex;
   position: relative;
   box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

.logo-slider {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
}

 .logo-slide {
    padding: 0 5px;
    width: 100%;
    height: 150px;
    border-radius: 8px;
     box-shadow: 0 2px 10px rgba(255, 77, 255, 0.1);
    display: flex;
    flex: 0 0 14.28%;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.logo-slide:hover::before {
    left: 100%;
}

.logo-slide img {
    transition: filter 0.3s ease, transform 0.3s ease;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    display: block;
    border-radius: 8px;
     box-shadow: 0 2px 10px rgba(255, 77, 255, 0.1);
}

.logo-slide:hover img {
    transform: scale(1.05);
}

.carrusel-controls {
    position: absolute;
    top: 40%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 10px;
    z-index: 2;
}

.carrusel-btn {
    background: var(--accent-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.carrusel-btn:hover {
    background: var(--primary-color);
    box-shadow: 0 4px 10px var(--dark-color);
}

.prev-btn {
    left: 25%;
}

.next-btn {
    right: 25%;
}
.carousel-btn svg {
    width: 20px;
    height: 20px;
    fill: #333;
}


.logo-slider-container, .logo-slider, .logo-slide {
         box-sizing: border-box;
}
@media (max-width: 768px) {
    .logo-slide {
    flex: 0 0 33.33%;
    padding: 0 15px;
    }

    .logo-slide img {
       width: 100%;
       height: auto;
       max-height: 80px;
    }

    .logo-slider-container {
    display: block;
   }

   .carrusel-controls {
        position: static;
        margin-top: 20px;
        display: flex;
        justify-content: center;
        gap: 60px; /* Separación entre flechas */
    }

    .carrusel-btn {
        position: static;
        transform: none;
    }

    .carousel-indicator {
        margin-top: 10px;
    }
}
        
@media (max-width: 480px) {
    .logo-slide {
        flex: 0 0 50%;
    }
            
    .logo-slide img {
        width: 100%;
        height: auto;
        max-height: 60px;
    }

    .logo-slider-container {
        padding:  20px 10px;
        margin: var(--spacing-sm);
    }


    /* Indicador de página para móviles */
    .carousel-indicator {
        display: flex;
        justify-content: center;
        margin-top: 5px;
    }
            
    .indicator-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: #ccc;
        margin: 0 4px;
        transition: background-color 0.3s ease;
    }
            
    .indicator-dot.active {
        background-color: var(--accent-color);
    }
}
/*_______________________________________

.testimonial-card:before {
    content: "";
    font-size: 5rem;
    color: rgba(251, 127, 71, 0.1);
    position: absolute;
    top: 10px;
    left: 20px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: bold;
    text-align: right;
}*/
/*__________________________________*/
.cta p {
    margin-bottom: var(--spacing-xl);
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--highlight-color) 100%);
    color: var(--text-color);
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1.5rem;
}

.btn:hover {
    background: var(--dark-color);
    color: var(--link-hover-color);
    border-radius: 6px;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(var(--accent-color-rgb), 0.2);

}
.btn:active {
    transform: translateY(1px);
}

.btn:focus {
    box-shadow: none;
}
.btn:focus:not(:focus-visible) {
    outline: none;
}

.contact-form {
    max-width: 600px;
    margin: 1rem auto;
    padding: 2rem;
    background: var(--dark-color);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(255, 77, 255, 0.1);
    align-items: flex-start;
}
  
.form-group {
    margin-bottom: 1.5rem;
    margin-top: var(--spacing-xm);
}

.input-container {
    position: relative;
    width: 100%;
}
  
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
  
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    font-size: 1rem;
}

.floating-label {
    position: absolute;
    left: 0.75rem;
    top: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.25s ease;
    pointer-events: none;
}

.input-container input:focus + .floating-label,
.input-container textarea:focus + .floating-label,
.input-container input:not(:placeholder-shown) + .floating-label,
.input-container textarea:not(:placeholder-shown) + .floating-label {
  transform: translateY(-130%);
  font-size: 0.85rem;
  color: var(--accent-color);
  background-color: rgba(10, 26, 64, 0.8);
  padding: 0 5px;
}
  
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(255, 77, 255, 0.2);
}

.form-messag
e {
    max-width: 600px;
    margin: 1rem auto;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    transition: all 0.3s ease;
}

.form-message.success {
    background-color: var(--dark-color);
    border: 2px solid var(--accent-color)
    color: var(var(--text-color));
}

.form-message.error {
    background-color: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff5555;
}

/*___________________________________________________*/
.chatbot-section {
    background: var(--dark-color);
    color: #000;
  }
  .chatbot-section h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 2rem;
  }
  .chatbot-section p {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.5rem;
    color: var(--text-color);
  }
  .chatbot-window {
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(250, 247, 247, 0.479);
    overflow: hidden;
  }
  .chatbot-header {
    background: var(--dark-color);
    color: white;
    padding: 1rem;
    font-weight: bold;
    text-align: center;
    font-size: 2rem;
  }
  .chatbot-messages {
    flex: 1;
    padding: 1rem;
    background: linear-gradient(135deg, #02071e 0%, #051c3b 50%, #0a1a40 100%);;
    min-height: 200px;
    overflow-y: auto;
    font-size: 0.9rem;
  }
  .chatbot-form {
    display: flex;
    background: #fff;
  }
  .chatbot-form input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    background: transparent;
    font-size: 0.9rem;
  }
  .chatbot-form button {
    color: var(--);
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--highlight-color) 100%);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-size: 1rem;
  }
  .bot-msg, .user-msg {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border-radius: 5px;
    max-width: 80%;
    clear: both;
  }
  .bot-msg {
    background: white;
    float: left;
  }
  .user-msg {
    background: var(--text-color);
    float: right;
  }
/*______________________________________________*/
footer {
    background: linear-gradient(135deg, #02071e 0%, #051c3b 50%, #0a1a40 100%);
    color: white;
    padding: 3rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    outline: none;
}

.footer-column ul li a:hover {
    color: var(--highlight-color);
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--light-color);
}

/*:::::::::::::::::::::::::::::::::::::::::::::::::::*/
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1002;
    color: var(--text-color);
}

.hamburger-icon {
    display: block;
    position: relative;
    width: 24px;
    height: 3px;
    background-color: var(--accent-color);
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 3px;
    background-color: var(--accent-color);
}

.hamburger-icon::before {
    top: -8px;
}


.hamburger-icon::after {
    bottom: -8px;
}

/* Cambio de estado cuando el menú está abierto */
.menu-open .hamburger-icon {
    background-color: transparent;
}

.menu-open .hamburger-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-open .hamburger-icon::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Overlay básico */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.menu-open .menu-overlay {
    display: block;
    opacity: 1;
}

/* Microformato Schema.org para SEO */
.schema-hidden {
    display: none;
}

/* dispositivos móviles :::::::::::::::::::*/
@media (max-width: 768px) {

    .mobile-menu-toggle {
        display: block;
    }

    .header-flex {
        position: relative; 
    }

    .logo-container {
        margin: 0 auto;
    }

    .slogan {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
        
    .benefits-grid, .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card, .benefit-card {
        padding: 1.5rem;
    }

    .benefit-card h3, .service-card h3 {
        font-size: 1.2rem;
    }

    .logo-slide{
        min-width: 120px;
        padding: 0 10px;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
    }

    .logo {
        max-height: 50px;
    }

    .nav-links {
        flex-direction: column;
        display: flex;
        gap: 10px;
        width: 100%;
    }
    
    .nav-links li {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .nav-links li a {
        display: block;
        padding: 8px 15px;
        width: 100%;
        text-align: left;
        font-weight: 500;
        font-size: 16px;
    }

    .header-flex {
        flex-direction: column;
    }
      
    .main-nav {
        position: fixed; 
        top: 80px; 
        right: 60%;
        width: 80%; 
        background:  linear-gradient(135deg, #02071e 0%, #051c3b 50%, #0a1a40 100%);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        z-index: 1001;
        padding: 15px; 
        border-radius: 0 0 0 10px; /* Bordes redondeados */
        overflow-y: auto;
        max-height: calc(100vh - 80px); 
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateX(100%);
    }

    .menu-open .main-nav {
        right: 0;
        visibility: visible;
        opacity: 1;
        transform: translateX(0);
    }
    
    /* Alinear botón de demo en móvil */
    .nav-links li .btn-nav {
        margin-top: 10px;
        width: 200px;
        text-align: center;
        display: block;
    }
    
    /* Mejorar la navegación por teclado */
    .mobile-menu-toggle:focus {
        outline: 2px solid var(--accent-color);
        outline-offset: 2px;
    }
     
}

body.inactive {
    animation-play-state: paused;
}

body.inactive .main-nav,
body.inactive .mobile-menu-toggle {
    animation-play-state: running;
    transition: all 0.3s ease;
}

/* Media query para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
      padding: 0 15px;
    }
    
    .benefits-grid, .services-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
/* Mejoras de accesibilidad */
.btn:focus, a:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
}

/* Animaciones optimizadas */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animated {
    animation: fadeIn 1s ease-out;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes twinkle {
    0%, 100% {
      opacity: 0.2;
    }
    50% {
      opacity: 1;
    }
  }

.cosmic-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255, 77, 255, 0.2);
    opacity: 0.5;
    z-index: 0;
}

.circle1 {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
    border-width: 4px;
    animation: rotate 80s linear infinite;
}

.circle2 {
    width: 600px;
    height: 600px;
    bottom: -200px;
    right: -200px;
    animation: rotate 100s linear infinite reverse;
}

.glow {
    position: absolute;
    background: radial-gradient(circle, rgba(255, 77, 255, 0.2) 0%, rgba(255, 77, 255, 0) 70%);
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(30px);
    z-index: 0;
}

.glow1 {
    top: 20%;
    left: 10%;
}

.glow2 {
    bottom: 10%;
    right: 20%;
}

.cosmic-circle, .glow {
    position: absolute;
    /* Asegurar que no desborden */
    max-width: 100vw;
}

/* Classes para optimizar imágenes */
.lazy-load {
    transition: opacity 0.5s;
    opacity: 0;
}

.lazy-loaded {
    opacity: 1;
}

/*::::::::::::::::::::::::::::::blog::::::::::::::::::::::::::::*/
/* Estilos para la sección Hero del Blog */
.blog-hero {
    position: relative;
    padding: var(--spacing-xs) 0;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.blog-hero-content {
    position: relative;
    z-index: 1;
}

.blog-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
}

.blog-hero .subtitle-text {
    font-size: 2.2rem;
    color: var(--accent-color);
}

.blog-subtitle {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto var(--spacing-md);
    line-height: 1.6;
}

/* Categorías del Blog */

.blog-categories {
    padding: var(--spacing-xs) 0;
    background-color: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.visually-hidden {
    position: absolute !important;
    height: 1px; 
    width: 100px; 
    clip: rect(1px, 1px, 1px, 1px); 
    border: 0;
    padding: 0;
    margin: 0;
}
.categories-wrapper {
    overflow-x: auto;
    padding-bottom: 10px;
    padding-top: var(--spacing-xl);
    -ms-overflow-style: none;  /* Ocultar scrollbar en IE y Edge */
    scrollbar-width: none;  /* Ocultar scrollbar en Firefox */
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    position: relative;
    
}

.categories-wrapper::-webkit-scrollbar {
    display: none;  /* Ocultar scrollbar en Chrome y Safari */
}

.category-list {
    display: flex;
    list-style: none;
    gap: 3.5rem;
    margin: 0;
    padding: 0 10px;
    flex-wrap: wrap;
    align-items: center;
}

.category-tag {
    display: inline-block;
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.category-tag:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

.category-tag:active {
    transform: scale(0.95);
}

.category-tag.active {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--highlight-color) 100%);
    color: var(--dark-color);
    font-weight: 500;
}

.category-tag:focus:not(:focus-visible) {
    outline: none;
}

/* Artículos Destacados */
.blog-featured {
    padding: var(--spacing-xl) 0;
}

.featured-post {
    display: flex;
    flex-wrap: wrap;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(255, 77, 255, 0.1);
    position: relative;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.featured-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 201, 219, 0.15);
}

.featured-image {
    position: relative;
    flex: 1 1 40%;
    min-width: 300px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16/9;
}

.featured-label {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--highlight-color) 100%);
    color: var(--dark-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.featured-content {
    flex: 1 1 50%;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.85rem;
}

.post-category {
    color: var(--accent-color);
    font-weight: 500;
}

.post-date {
    color: rgba(255, 255, 255, 0.6);
}

.featured-content h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.featured-content h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-content h3 a:hover {
    color: var(--accent-color);
}
.featured-content h3 a:focus:not(:focus-visible) {
    outline: none;
}

.featured-content p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
    flex-grow: 1;
}

.read-more {
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    align-self: flex-start;
    margin-top: auto;
}

.read-more:hover {
    color: var(--highlight-color);
    text-decoration: underline;
}

.read-more:focus:not(:focus-visible) {
    outline: none;
}

/* Grid de artículos */
.blog-grid {
    padding: var(--spacing-xl) 0;
    background-color: #111b2d;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: var(--spacing-lg);
}

.post-card {
    background-color: #111b2d;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(255, 77, 255, 0.08);
    transition: transform 0.3s ease, box
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 201, 219, 0.12);
}

.post-image {
    overflow: hidden;
}

.post-image img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.post-content h3 a:focus:not(:focus-visible) {
    outline: none;
}

.post-content h3 a {
    color: var(--secondary-color);  
}

.post-content h3 a:hover {
    color: var(--link-hover-color);  
}

.post-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    flex-grow: 1;
}

/* Paginación */
.pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: var(--spacing-xl);
    width: 100%;
}

.current-page {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

.pagination-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 100%;
    padding: 0 10px;
}

.pagination-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    font-weight: 500;
}

.pagination-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

.pagination-btn:active {
    transform: scale(0.95);
}

.pagination-btn.active {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--highlight-color) 100%);
    color: var(--dark-color);
    font-weight: 600;
    box-shadow: 0 0 10px rgba(0, 201, 219, 0.3);
}

.pagination-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

/* Estilos para animación de lazy loading */
.lazy-load {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Media queries para responsividad */
@media (max-width: 992px) {
    .blog-hero h1 {
        font-size: 2.4rem;
    }
    
    .blog-hero .subtitle-text {
        font-size: 1.8rem;
    }
    
    .featured-content h3 {
        font-size: 1.4rem;
    }
}

.blog-categories {
    padding: var(--spacing-sm) 0;
}

.categories-wrapper {
    padding-bottom: 8px;
    padding-top: 4px;
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch; /* Para scroll suave en iOS */
}

.category-list {
    gap: 10px;
    padding: 0 15px;
}

.category-tag {
    padding: 6px 14px;
    font-size: 0.85rem;
}
/* Media queries para pantallas pequeñas */
@media (max-width: 768px) {
    .blog-categories {
        padding: var(--spacing-sm) 0;
    }

    .categories-wrapper {
        padding-bottom: 8px;
        padding-top: 4px;
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch; /* Para scroll suave en iOS */
    }

    .category-list {
        gap: 10px;
        padding: 0 15px;
    }

    .category-tag {
        padding: 6px 14px;
        font-size: 0.85rem;
    }
    .pagination {
        margin-top: var(--spacing-lg);
    }
    
    .pagination-buttons {
        gap: 10px;
    }
    
    .pagination-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .blog-hero h1 {
        font-size: 1.8rem;
    }
    
    .blog-hero .subtitle-text {
        font-size: 1.4rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

/* Media query para dispositivos muy pequeños */
@media (max-width: 480px) {
    .category-tag {
        padding: 5px 12px;
        font-size: 0.8rem;
    }
    
    .category-list {
        gap: 8px;
    }
    .pagination-buttons {
        gap: 8px;
    }
    
    .pagination-btn {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    
    .page-nav-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .pagination-btn.optional {
        display: none;
    }
}

/* :::::::::::::::::::::Estilos para artículos individuales:::::::::::::::::::::::::::::::*/
.body-article {
     background-color: var(--dark-color);
}
.article-content {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-xs) 0;
    position: sticky;
    background-color: var(--dark-color);
    box-shadow: 0 4px 20px rgba(255, 77, 255, 0.1);
}

.back-to{
    margin-bottom: var(--spacing-xm);
    margin-top: var(--spacing-xs);
}
.back-to-blog {
    font-size: 1rem;
    color: var(--link-hover-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
  
.back-to-blog:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}
.back-to-blog:focus:not(:focus-visible) {
    outline: none;
    }

.article-header {
    margin-top: var(--spacing-xs);
    margin-bottom: var(--spacing-lg);  
    background-color: transparent;
    position: relative;
}

.article-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    text-align: center;
    font-style: oblique;
    
}
.container-meta {
   margin-bottom: var(--spacing-lg);
   margin-right: var(--spacing-lg);
}
.article-meta {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    align-items: ;
    flex-direction: row;  
    list-style-type: none;
    float: right;
}

.article-meta li{
    color: var(--accent-color);
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    margin: var(--spacing-md);
}

.article-body p {
    margin-bottom: var(--spacing-sm);
}

.article-body h2 {
    font-size: 1.5rem;
    margin: var(--spacing-sm) 0;

}

.article-body h3 {
    font-size: 1.3rem;
    margin: var(--spacing-md) 0;

}

.article-body ul, .article-body ol {
    margin-bottom: var(--spacing-md);
    padding-left: 20px;
}

.article-body li {
    margin-bottom: 10px;
}

.external-link-container .external-link{ 
    font-weight: bold;
    transition: color 0.3s ease;
    text-decoration: none;
    color: var(--accent-color);
}

.external-link-container .external-link:hover { 
    color: var(--primary-color);
    text-decoration: underline;
}
.article-image {
    margin: var(--spacing-md) 0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    
}

.article-image img {
    height: 300px;
    width: 300px;
    display: block;
}

.featured-image-container {
    float: left;
    width: 300px;
    margin: 0 var(--spacing-md) var(--spacing-sm) 0;
    border-radius: 8px;
    overflow: hidden;
}

.featured-image-container img {
    width: 100%;
    display: block;
}

.article-navigation {
    margin: 3rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
  }
  
  .nav-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .nav-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    max-width: 48%;
    transition: transform 0.2s ease;
  }
  
  .nav-link:hover {
    transform: translateY(-3px);
    color: var(--accent-color);
  }

  .nav-link a:focus {
    outline: none;
    box-shadow: none;
    }

  .nav-link:focus:not(:focus-visible) {
    outline: none;
    }

  .prev-link {
    margin-right: auto;
  }
  
  .next-link {
    margin-left: auto;
    text-align: right;
  }
  
  .nav-text {
    display: flex;
    flex-direction: column;
  }
  
  .nav-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
    margin-bottom: 0.25rem;
  }
  
  .nav-title {
    font-weight: 600;
  }
  
  .nav-arrow {
    font-size: 1.25rem;
    padding: 0 0.75rem;
  }

 /* Responsive */
 @media (max-width: 768px) {

    .article-content {
       
        margin: var(--spacing-sm);
        padding: var(--spacing-xl) 0;
    }
    .article-title {
        font-size: 1.5rem;
    }
    
    .featured-image-container {
        float: none;
        width: 100%;
        margin: 0 0 var(--spacing-md) 0;
    }
    
    .article-meta {
        float: none;
        width: auto;
        margin: var(--spacing-md) 0;
    }

    .nav-container {
      flex-direction: column;
    }
    
    .nav-link {
      max-width: 100%;
    }
}

    
/* Efecto de resaltado en scroll */
.highlight-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.highlight-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}