:root {
    --primary-color: #ecc465;
    --secondary-color: #00ccff;
    --dark-bg: #0a0a0a;
    --neon-glow: 0 0 10px var(--primary-color),
                 0 0 20px var(--primary-color),
                 0 0 30px var(--primary-color);
    --whatsapp-green: #25D366;
    --whatsapp-dark: #075E54;
    --whatsapp-light: #DCF8C6;
    --whatsapp-chat-bg: #E5DDD5;
    --primary: #ec994b;
    --white: #ffffff;
    --bg: #050678;
    --dark-bg: #01063E;
    --darker-bg: #020f41;
    --blue-gradient: linear-gradient(#04134a, #0b2a9c);
    --gold-gradient: linear-gradient(to right, var(--primary-color), #b97a35);
   
    
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style-type: none;
  text-decoration: none;
}

html {
  overflow-x: hidden;
  width: 100%;
}

body {
    /*font-family: 'Verdana', sans-serif; Letras principales anteriores*/
    font-family: 'Merriweather', serif;
    background: #01063E;
    overflow-x: hidden;
}

h1 {
    font-family: 'Merriweather', serif;
    font-weight: 900;
    font-size: 2.3125rem;
    text-align: center;
    margin: 20px 0; 
    background: linear-gradient(to right, var(--primary-color), #b97a35);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent; /* Agrega esta línea para asegurar el degradado en todos los navegadores */
}

/* Estilos para imágenes destacadas responsive */
.post-featured-image {
    width: 100%;
    margin-bottom: 30px;
    text-align: center;
}

.post-featured-image img {
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.blog-card-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .post-featured-image img {
        max-width: 100%;
        object-fit: contain;
    }
    
    .blog-card-image img {
        height: 200px;
        object-fit: cover;
    }
}

/* Estilos para los botones de compartir */
.social-sharing {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sharing-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    text-decoration: none;
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.whatsapp-share {
    background-color: #25D366;
}

.whatsapp-share:hover {
    background-color: #128C7E;
    color: white;
}

.facebook-share {
    background-color: #1877F2;
}

.facebook-share:hover {
    background-color: #166FE5;
    color: white;
}

.copy-link {
    background-color: #6c757d;
}

.copy-link:hover {
    background-color: #5a6268;
}

/* Estilos para el contenido del post */
.post-content {
    color: #333 !important;
    line-height: 1.8;
}

.post-content p {
    color: #333 !important;
    margin-bottom: 1.5rem;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: #222 !important;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content ul,
.post-content ol {
    color: #333 !important;
}

.post-content li {
    color: #333 !important;
    margin-bottom: 0.5rem;
}

.post-content blockquote {
    color: #555 !important;
    border-left: 4px solid #007bff;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
}

.post-content a {
    color: #007bff !important;
}

.post-content a:hover {
    color: #0056b3 !important;
}

/* Estilos para el sidebar de servicios */
.services-sidebar {
    position: sticky;
    top: 20px;
}

.services-widget {
    background: linear-gradient( #0b2a9c, #050678,#04134a );
    border-radius: 15px;
    padding: 25px;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.widget-header {
    text-align: center;
    margin-bottom: 25px;
}

.sidebar-logo {
    width: 150px;
    height: auto;
    margin-bottom: 15px;
    filter: brightness(0) invert(1);
}

.widget-header h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.widget-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.services-list {
    margin-bottom: 25px;
}

.service-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.service-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.services-sidebar .service-icon i,
.service-icon i {
    font-size: 18px;
    color: var(--primary-color) !important;
}

.service-content h4 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
}
.service-content h2 {
    margin-top:15px;
    font-size: 1.6rem;
    background: linear-gradient(to right, var(--primary-color), #b97a35);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent; /* Agrega esta línea para asegurar el degradado en todos los navegadores */
}


.service-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 0;
}

.cta-section {
    text-align: center;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.cta-section h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.cta-section p {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #128C7E;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.cta-button i {
    font-size: 16px;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .service-content h1 {
        font-size: 1.6rem;
        text-align: start;

    }
    .post-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .social-sharing {
        margin-left: 0 !important;
        align-self: flex-end;
    }
    
    .sharing-label {
        display: none;
    }
    
    .services-sidebar {
        position: static;
        margin-top: 30px;
    }
    
    .services-widget {
        padding: 20px;
    }
    
    .service-item {
        padding: 12px;
    }
    
    .service-icon {
        width: 35px;
        height: 35px;
        margin-right: 12px;
    }
    
    .services-sidebar .service-icon i,
    .service-icon i {
        font-size: 16px;
        color: #FFD700 !important;
    }
}

/* Navbar */
/* Estilos iniciales del navbar */
.navbar {
    backdrop-filter: blur(1px);
    
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Estilos cuando el navbar se desplaza */
.navbar.scrolled {
    background: linear-gradient(#04134a, #0b2a9c );
    border-bottom: 1px solid #07248d;
    backdrop-filter: blur(10px);
    
}

/* Estilos para el texto de la navbar */
.navbar-brand {
    color: #ecc465;
    font-weight: bold;
    text-shadow: var(--neon-glow);
    
}



.navbar.scrolled .navbar-brand {
    color: #ffffff; /* Cambiar el color del texto cuando se haga scroll */
}
.navbar a {
    color: #ecc465;
    
}
.navbar-nav .nav-item {
    margin-right: 20px; /* Ajusta el valor según el espacio que quieras */
}
.underline {
  
  
    display: inline-block;
    position: relative;
  }
  
  .underline:after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 4px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transform-origin: bottom right;
    transition: transform 0.6s ease-out;
    color: #ffffff;
  }
  
  .underline:hover:after {
      color: var(--primary-color);
      
    transform: scaleX(1);
    transform-origin: bottom left;
  }
  .underline.active:after {
    transform: scaleX(1);
}


/* Opcional: Si quieres que el <ul> ocupe toda la pantalla */

/* Carousel */
@keyframes breathing-vertical {
    0%, 100% {
      transform: translateY(0); /* Posición inicial */
    }
    50% {
      transform: translateY(-10px); /* Mueve el texto hacia arriba */
    }
  }
  @keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
@keyframes slideInRightWithLight {
    0% {
        transform: translateX(-100%);
        opacity: 0;
        box-shadow: none; /* Sin sombra al inicio */
    }
    50% {
        opacity: 1;
        transform: translateX(50%); /* A mitad del deslizamiento */
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.6); /* Efecto de luz */
    }
    100% {
        transform: translateX(0);
        opacity: 1;
        box-shadow: none; /* Sin sombra al finalizar */
    }
}
 
  
  #inicio {
    height: 100vh;
    position: relative;
    overflow: hidden;
}
/* Contenedor del slider de clientes */
.clientes-slider-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Slider de clientes */
.clientes-slider {
    width: 100%;
    height: 100%;
}

.clientes-slider .swiper-wrapper {
    align-items: center;
}

.clientes-slider .swiper-slide {
    width: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 30px;
}

/* Estilo de las imágenes */
.clientes-slider img {
    width: 12vw;
    max-width: 120px;
    height: auto;
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
    object-fit: contain;
}

/* Efecto de hover para agrandar las imágenes */
.clientes-slider img:hover {
    transform: scale(1.2);
}

/* Media Queries para móviles */
@media (max-width: 768px) {
    #contacto .formulario .col-md-4 {
    padding-right: 0px !important;
  }
    .service-btn {
        flex: 1 1 calc(50% - 10px); /* En tablets, 2 botones por fila */
    }

    .clientes-slider img {
        width: 20vw;
        max-width: 80px;
    }

    .clientes-slider .swiper-slide {
        margin-right: 20px; /* Ajusta el espacio entre imágenes */
    }
}

@media (max-width: 480px) {
    .hero-content img{
        height: 300px !important;
    }
    a.service-link{
        padding: 0px !important;
    }
    
    .service-btn {
        flex: 1 1 100%; /* En móviles, un botón por fila */
    }
    
    #contacto{
        padding: 2rem 0rem 2rem !important;
    }

    .quienes-somos p {
        transform: translate(0, 0);
    }
    
    .clientes-slider img {
        width: 25vw;
        max-width: 120px;
    }

    .clientes-slider-container {
        height: 120px; /* Reduce el contenedor */
    }
}


.clientes{
    background: linear-gradient(#020f41,#000,#000, #020f41);
}
.clientes h2{
    z-index: 1;
    font-family: 'Merriweather', serif;
    font-weight: 900;
    font-size: 1.5rem;
    padding: 20px  30px 0px;
    background: linear-gradient(to right, var(--primary-color), #b97a35);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent; /* Agrega esta línea para asegurar el degradado en todos los navegadores */
}


.carousel {
    background-image: url('../img/fondo.webp'); /* Cambia la URL con la ruta de tu imagen */
    height: 100vh;
    background-size: cover; /* Ajusta la imagen para que cubra todo el contenedor */
    background-position: center; /* Centra la imagen */
    position: relative;
    overflow: hidden; /* Asegura que los contenidos no se desborden */
    animation: slideInRightWithLight 2s ease-out;
    animation-delay: 0.3s;
    animation-fill-mode: both;
}
.diseno-page .carousel{
    background-image: url('../img/diseno-web-bg.png'); /* Cambia la URL con la ruta de tu imagen */

}
.software-page .carousel{
    background-image: url('../img/software-bg.png'); /* Cambia la URL con la ruta de tu imagen */

}
.marketing-page .carousel{
    background-image: url('../img/marketing-bg.png'); /* Cambia la URL con la ruta de tu imagen */

}   

/* Degradado en la parte inferior del carousel */
.carousel::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px; /* Altura del degradado */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #020f41 100%);
    z-index: 3; /* Asegura que el degradado esté encima del fondo */
    pointer-events: none; /* No interfiere con clics u otros eventos */
}
.diseno-page .carousel::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px; /* Altura del degradado */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #01063E 100%);
    z-index: 3; /* Asegura que el degradado esté encima del fondo */
    pointer-events: none; /* No interfiere con clics u otros eventos */
}
.software-page .carousel::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px; /* Altura del degradado */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #01063E 100%);
    z-index: 3; /* Asegura que el degradado esté encima del fondo */
    pointer-events: none; /* No interfiere con clics u otros eventos */
}
.marketing-page .carousel::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px; /* Altura del degradado */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #01063E 100%);
    z-index: 3; /* Asegura que el degradado esté encima del fondo */
    pointer-events: none; /* No interfiere con clics u otros eventos */
}

.carousel-item {
    height: 100vh;
    background-size: cover; /* Ajusta la imagen para que cubra todo el contenedor */
    background-position: center; /* Centra la imagen */
    position: relative;
    z-index: 1;

}
.index-page .carousel-item {
    background-image: url('../img/bg-2-2.png'); /* Cambiar a formato WebP si está disponible */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}




.carousel-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    
}

.carousel-content h1 {
    font-family: 'Merriweather', serif;
    font-size: 2.1rem;
    color: #ecc465;
    text-shadow: var(--neon-glow);
    display: inline-block; /* Para permitir transformaciones */
    animation: breathing-vertical 3s ease-in-out infinite; /* Aplica la animación */
}
.carousel-content h2{
    font-family: 'Merriweather', serif;
    font-size: 1.1rem;
    color:#fff;
    text-shadow:var(--secondary-color);
    display: inline-block; /* Para permitir transformaciones */
    animation: breathing-vertical 3s ease-in-out infinite; /* Aplica la animación */

}
.rounded-button {
    display: inline-block;
    margin-top: 15px; /* Espacio entre el texto y el botón */
    padding: 10px 20px; /* Ajusta el tamaño del botón */
    background: linear-gradient(#b97a35, var(--primary-color),#d3a14f  ,#b97a35);  /* Color de fondo del botón */
    color: #07248d; /* Color del texto */
    text-decoration: none; /* Sin subrayado */
    font-size: 16px; /* Tamaño del texto */
    font-weight: bold; /* Texto en negrita */
    border-radius: 25px; /* Bordes redondeados */
    transition: background-color 0.3s ease; /* Animación suave */
}

.rounded-button:hover {
    background-color: var(--primary-color) ; /* Color de fondo al pasar el mouse */
    color:#fff;
}


/* Particles */
#particles-js,
#particles-js-2,
#particles-js-3 {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

/* Servicios */
.servicios{
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
    background: linear-gradient(#020f41, #0b2a9c);
}
.servicios h2 {
    font-family: 'Merriweather', serif;
    font-weight: 900;
    font-size: 2rem;
    text-align: center;
    margin: 10px 0; 
    background: linear-gradient(to right, var(--primary-color), #b97a35);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent; /* Agrega esta línea para asegurar el degradado en todos los navegadores */
}



.service-circle {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, var(--dark-bg), #1a1a1a);
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-circle:hover {
    transform: translateY(-10px);
    box-shadow: var(--neon-glow);
}
a.service-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    padding: 20px 0; /* espacio arriba y abajo para que la sombra respire */
    box-sizing: content-box; /* asegura que el width/height no incluya padding */
  }
  
  


.more-info {
    text-align: center; /* Centrar el botón horizontalmente */
    margin-top: 20px; /* Ajustar el espacio superior según sea necesario */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.btn-more-info {
    display: none;
    margin-top: 15px; /* Espacio entre el texto y el botón */

    padding: 10px 20px; /* Ajusta el tamaño del botón */
    background: linear-gradient(#b97a35, var(--primary-color),#d3a14f  ,#b97a35); /* Color de fondo del botón */
    color: #07248d; /* Color del texto */
    text-decoration: none; /* Sin subrayado */
    font-size: 16px; /* Tamaño del texto */
    font-weight: bold; /* Texto en negrita */
    border-radius: 25px; /* Bordes redondeados */
    cursor: pointer;
    opacity: 0; /* Inicialmente invisible para aplicar animación */
    transition: all 0.3s ease; /* Para asegurarse cambios de estilo suave */
    position:relative;

   

   
}

.btn-more-info:hover {
    background: linear-gradient( var(--primary-color),#d3a14f  ,#b97a35);
    color:#fff;
}




.service-circle i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* quienes-somoss */

.quienes-somos {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    background: #01063E;

}
.ultimos-articulos {
    background-color: linear-gradient(#01063E, #01063E);
}
.ultimos-articulos h2{
    font-family: 'Merriweather', serif;
    font-weight: 900;
    font-size: 2rem;
    text-align: center;
    margin: 0; 
    background: linear-gradient(to right, var(--primary-color), #b97a35);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent; /* Agrega esta línea para asegurar el degradado en todos los navegadores */
}
.ultimos-btn {
    background: var(--gold-gradient);
    color: var(--dark-bg);
    /**/
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: inherit;
    
}

.ultimos-btn:hover,
.ultimos-btn.active {

    color: var(--bg);
    text-decoration: none;
    transform: translateY(-2px);
}


.card {
    background: rgb(0 0 0 / 38%);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px 5px var(--primary-color);
}

.quienes-somos-info {
    padding: 1.5rem;
}
.quienes-somos h1 {
    font-family: 'Merriweather', serif;
    font-weight: 900;
    font-size: 2.3125rem;
    text-align: center;
    margin: 20px 0; 
    background: linear-gradient(to right, var(--primary-color), #b97a35);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent; /* Agrega esta línea para asegurar el degradado en todos los navegadores */
}
.quienes-somos .row{
    padding: 0 50px 0; 
}
.quienes-somos p {
    padding: inherit;
    text-align: start;
    transform: translate(0, 50%);
    color: #ffffff;
}
.quienes-somos strong{

    background: linear-gradient(to right, var(--primary-color), #b97a35,var(--primary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent; /* Agrega esta línea para asegurar el degradado en todos los navegadores */
}
.quienes-somos video{
    width : 80%;
     height : 80%;
}
#contacto video{
    width : 80%;
    height : 80%;
}


/* WhatsApp Button */
#whatsappButton {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
 
}

#whatsappButton i {
    font-size: 2rem;
    color: white;
}

#whatsappButton:hover {
    transform: scale(1.1);
}

/* WhatsApp Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.3s ease;
}

.whatsapp-widget.active {
    border-radius: 41px 41px 31px 31px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

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

.whatsapp-header {
    border-radius: 30px 30px 0px 0px;
    background: var(--whatsapp-dark);
    padding: 15px;
    display: flex;
    align-items: center;
    color: white;
}

.whatsapp-profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.whatsapp-header-info h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.whatsapp-header-info p {
    margin: 0;
    font-size: 12px;
    opacity: 0.8;
}

.whatsapp-close {
    position: absolute;
    right: 15px;
    top: 15px;
    color: white;
    cursor: pointer;
    padding: 5px;
}

/* Ajustes para el chat de WhatsApp */
.whatsapp-messages {
    max-height: 300px; /* Altura máxima del área de mensajes */
    overflow-y: auto; /* Habilitar desplazamiento vertical */
    background-image: url('../img/fondowapp.jpg');
    background-size: cover;
    background-position: center;
    padding: 10px;
}

.whatsapp-message {
    margin-bottom: 10px;
    padding: 8px 16px; /* Ajuste de padding */
    border-radius: 15px; /* Más redondeado */
    max-width: 80%;
    word-wrap: break-word;
    word-break: break-word; /* Agregado para forzar el salto de línea */
    overflow-wrap: break-word; /* Agregado para mejor compatibilidad */
    font-size: 12px; /* Tamaño de letra más pequeño */
    line-height: 1.4; /* Agregado para mejor legibilidad */
    transition: all 0.3s ease;
    transform-origin: bottom left;
}

.whatsapp-message.sent {
    background-color: var(--whatsapp-light);
    align-self: flex-end;
    margin-left: auto;
    padding-right: 20px; /* Padding a la derecha */
}

.whatsapp-message.received {
   /*background-color: var(--whatsapp-chat-bg); */
   background-color: #fff;
    align-self: flex-start;
    padding-left: 20px; /* Padding a la izquierda */
}

.whatsapp-input {
    border-radius: 0px 0px 30px 30px;
    display: flex;
    align-items: center;
    background: white;
    padding: 10px;
    border-top: 1px solid #eee;
    overflow: hidden; /* Agregado */
}


.whatsapp-input textarea {
    flex: 1;
    border: none;
    padding: 8px 10px;
    border-radius: 20px;
    resize: none;
    height: 40px;
    line-height: 24px;
    font-size: 16px; /* Cambiado de 14px a 16px para evitar zoom en iOS */
}

.whatsapp-input textarea:focus {
    outline: none;
}

.whatsapp-send {
    background: var(--whatsapp-green);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.whatsapp-send:hover {
    background: #128C7E;
}

/* Animación de escritura de WhatsApp */
.typing-indicator {
    background-color: #fff;
    align-self: flex-start;
    padding: 12px 20px;
    border-radius: 15px;
    margin-bottom: 10px;
    max-width: 80%;
    display: flex;
    align-items: center;
    gap: 4px;
    animation: slideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.typing-dots {
    display: flex;
    gap: 3px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #999;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
    animation-delay: 0s;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* WhatsApp Modal */


.whatsapp-chat {
    background-color: #ECE5DD;
    padding: 1rem;
    border-radius: 10px;
}

.message-box textarea {
    width: 100%;
    border: none;
    border-radius: 20px;
    padding: 10px 15px;
    resize: none;
    height: 100px;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    color: white;
}

/* Footer */
.footer {
    padding: 2rem 0rem 1rem;
    
   
    background: linear-gradient(#b97a35, #9B631F,#d3a14f  ,#b97a35);
}
.footer .list-unstyled {
    padding-left: 10px;
}
.footer h3{
    font-family: 'Merriweather', serif;
    color:#fff;
    font-size: 1.5rem;

}
.footer h5{
    color:  #0b2a9c;
    --bs-text-opacity: 1;
    font-size: 1.25rem;
}
.footer p{
    padding-top: 1rem;
    font-family: 'Merriweather', serif;

    color:#ffffff;
    font-size: 13px;
    text-align: center;
    opacity: 0.5;
    letter-spacing: 0;

}
.footer li {

    color:#fff;
}
.footer hr{
   border: 1px solid;

    color: #102171 ;

}

.contact-info {
    list-style: none;
    padding: 0;
}

.contact-info li {
    margin-bottom: 1rem;
}

.contact-info i {
    color: #0b2a9c;
    margin-right: 10px;
}

.social-links a {
    color: #0b2a9c;
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color);
    text-shadow: var(--neon-glow);
}

/* Responsive Design */
@media (max-width: 768px) {
    .service-btn {
        padding: 5px 0 !important;
    }
    .carousel {
        background-image: url('../img/fondo-mob.webp'); 
        /* Imagen para móviles */
    }

    .index-page .carousel-item {
        background-image: url('../img/bg-mobile-ver.svg'); /* Imagen para móviles */
    }
    .carousel-content h2 {
        font-size:1.5rem;
    }
    .carousel-content h1 {
        font-size:2.5rem;
    }

    .service-circle {
        width: 150px;
        height: 150px;
        margin-bottom: 2rem;
    }

    .card {
        margin-bottom: 2rem;
    }
    .navbar{
        background: linear-gradient(#04134a8a, #0b2a9c8a );
    }
    .btn-more-info{
        
        margin-bottom:30px;
    }
}
#scrollUpBtn {
    display: none; /* Oculto inicialmente */
    position: fixed;
    bottom: 30px;
    left: 20px; /* Cambiado a la izquierda */
    z-index: 9999; /* Asegura que el botón esté siempre por encima de otros elementos */
    background-color: #00000085; /* Color de fondo del botón */
    border: none; /* Sin bordes */
    color: white; /* Color del texto */
    padding: 8px 10px 4px 10px; /* Espaciado interior del botón reducido */
    border-radius: 20%; /* Bordes redondeados */
    text-align: center; /* Centra el texto */
    cursor: pointer; /* Muestra un cursor de mano al pasar sobre el botón */
    transition: transform 0.3s ease; /* Transición suave para la animación */
}

#scrollUpBtn:hover {
    background-color: #000000e3;; /* Cambia el color de fondo al hacer hover */
    transform: translateY(-5px); /* Mueve el botón hacia arriba 10px */
}






.container {
  max-width: 100%;
  padding: 0 1rem;
  margin: 0 auto;
  overflow-x: hidden;
}

/* Prevenir overflow horizontal en todos los elementos */
.row {
  margin-left: 0;
  margin-right: 0;
  overflow-x: hidden;
}

/* Aplicar padding solo a columnas fuera del formulario de contacto */
.row:not(#contacto .row) .col-md-4,
.row:not(#contacto .row) .col-md-6,
.row:not(#contacto .row) .col-md-12 {
  padding-left: 15px;
  padding-right: 15px;
}

.text-center {
  text-align: center;
}

.section-heading {
  font-size: 3rem;
  color: var(--primary);
  padding: 2rem 0;
}

#proyectos {
  padding: 1rem 0;
  background: linear-gradient(#0b2a9c, #0524a3 , #03053C);
}
#proyectos p{
    color: #ffffff;

    margin-bottom: 0rem;
}
#proyectos h3{

    color: #ffffff;
    font-size: 1.5rem;
}
#proyectos h2{
    font-family: 'Merriweather', serif;
    font-weight: 900;
    font-size: 2rem;
    text-align: center;
    margin: 10px 0; 
    background: linear-gradient(to right, var(--primary-color), #b97a35);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent; /* Agrega esta línea para asegurar el degradado en todos los navegadores */
}

@media (max-width:1440px) {
  #proyectos {
    padding: 1rem 0;
  }
}

#proyectos .proyectos-slider {
  margin: 0 25px 0;
  padding: 0 2rem 0;
  height: 34rem; /* Altura po alto del proyectos-slider*/
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

@media (max-width:500px) {
    .proyectos-slider-control {
        display: none !important;
    }
    .quienes-somos p {
    
        transform: translate(0, 0);
       
    }
    .quienes-somos .row{
        padding: 0 30px 0; 
    }
  #proyectos .proyectos-slider {
    height: 31rem;
    margin: 0px;
  }
  #proyectos h3{

    font-size: 1rem;
    font-weight: bold;
}
.proyectos-slide {
    width: 20rem !important;
    height: 26rem !important;
  }
  .proyectos-slide .proyectos-slide-img img {
    width: 13rem !important;
    height: 19rem !important;
  }
  .quienes-somos video{
    width : 100%;
     height : 100%;
}

#contacto img{
    height: 200px !important;
    transition: height .5s;
  }
  #contacto img:hover{
    height: 225px !important;
  }
  
}

.proyectos-slide {
    width: 23rem; /* Tamaño de los CARDS en los slider o carousel*/
    height: 29.5rem; /* Altura de la sombra de los slider de los lados*/
    position: relative;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: blur(0px); /* Inicialmente sin difuminado */
    z-index: 1; /* Asegura que las slides estén en capas correctas */
  }
  
  .proyectos-slide:not(.swiper-slide-active) {
    filter: blur(1px); /* Difuminado para las slides no activas */
  }
  
  .swiper-slide-shadow-left,
  .swiper-slide-shadow-right {
    display: block;
    z-index: -1; /* Asegura que las sombras se vean bajo las slides */
  }
  

/* Ajustar tamaño de imagen dentro de la slide */
.proyectos-slide .proyectos-slide-img img {
    width: 18rem;  /* Tamaño reducido */
    height: 23rem; /* Tamaño reducido */
    border-radius: 2rem;
    object-fit: cover;
}





.proyectos-slide .proyectos-slide-content {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
}



.proyectos-slide-content .proyectos-slide-content-bottom {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  color: var(--white);
}


.rating ion-icon {
  color: var(--primary);
}


.proyectos-slider-control {
  position: relative;
  bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.proyectos-slider-control .swiper-button-next {
  left: 58% !important;
  transform: translateX(-58%) !important;
}

@media (max-width:990px) {
  .proyectos-slider-control .swiper-button-next {
    left: 70% !important;
    transform: translateX(-70%) !important;
  }
}

@media (max-width:450px) {
  .proyectos-slider-control .swiper-button-next {
    left: 80% !important;
    transform: translateX(-80%) !important;
  }
}



.proyectos-slider-control .slider-arrow {
  background: var(--white);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  left: 42%;
  transform: translateX(-42%);
  filter: drop-shadow(0px 8px 24px rgba(18, 28, 53, 0.1));
}

.proyectos-slider-control .slider-arrow ion-icon {
  font-size: 1.5rem;
  color: #222224;
}

.proyectos-slider-control .slider-arrow::after {
  content: '';
}

.proyectos-slider-control .swiper-pagination {
  position: relative;
  width: 15rem;
  bottom: 1rem;
}

.proyectos-slider-control .swiper-pagination .swiper-pagination-bullet {
  filter: drop-shadow(0px 8px 24px rgba(18, 28, 53, 0.1));
}

.proyectos-slider-control .swiper-pagination .swiper-pagination-bullet-active {
  background: var(--primary);
}
.swiper-slide {
    transition: transform 0.3s ease;
  }
  
  #videoContainer video {
    display: block;
    outline: none;
    border: none;
}

#contacto h2{
    font-family: 'Merriweather', serif;
    font-weight: 900;
    font-size: 2rem;
    text-align: center;
    margin: 0; 
    background: linear-gradient(to right, var(--primary-color), #b97a35);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent; /* Agrega esta línea para asegurar el degradado en todos los navegadores */
}
#contacto{
    background: linear-gradient(#01063E, #07248d,#01063E);
    padding: 1rem 6rem 2rem;
    text-align: justify !important;
    scroll-margin-top: 100px; /* Ajusta según la altura de tu navbar */
}
/* Ajusta el tamaño y la responsividad de los embeds de Instagram */
#contacto .container {
    padding: 0 3rem;
  }
  
  /* Espaciado extra entre columnas si es necesario */
  #contacto .col-md-4 {
    margin-bottom: 30px;
  }
  
  /* Restaurar padding original de Bootstrap para las columnas del formulario */
  #contacto .formulario .col-md-4 {
    padding-left: 0px;
    padding-right: 20px;
  }
  .formulario{
    backdrop-filter: blur(10px);
  }
  #contacto .form-check-label{
    color:#fff !important;
  }
  #contacto .text-muted{
    color:#fff !important;
  }
  #contacto .btn{
    background:linear-gradient(#b97a35,#d3a14f  ,#b97a35);
    color: #fff;
  }
  #contacto .btn:hover{
    background:linear-gradient(#b97a35, var(--primary-color),#d3a14f  ,#b97a35);
    color: #fff;
  }
  #contacto img{
    height: 300px;
    transition: height .5s;
  }
  #contacto img:hover{
    height: 325px;
  }
  #contacto .form-check-input:checked {
    background-color: #b97a35 !important;
    border-color: #b97a35 !important;
}
.mensaje-exito {
    background-color: #4CAF50;
    color: white;
    padding: 15px;
    margin-top: 10px;
    border-radius: 5px;
    text-align: center;
}


.services {
    padding: 0px 1rem;
    background: #01063E;
    position: relative; /* Necesario para que ::before funcione */

}


/* Degradado en la parte superior */
.services::before {

    background: linear-gradient(#020f41,#01063E);

}
.services ul {
    padding-left: 20px;
    list-style-type: disc;  /* Disc agrega los puntos */
}
.services ul li, p, h3,h4{
    color: #fff;
}
.services h3 {
    font-family: 'Merriweather', serif;
    font-weight: 900;
    font-size: 2.3125rem;
    text-align: center;
    margin: 20px 0;     
    background: linear-gradient(to right, var(--primary-color), #b97a35);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent; /* Agrega esta línea para asegurar el degradado en todos los navegadores */
}
/* Contenedor de servicios */
.service-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.service-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 15px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1rem;
    flex: 1 1 calc(33.333% - 20px); /* Para que se acomoden 3 por fila en pantallas grandes */
    min-width: 150px;
    text-align: center;
    border-radius: 8px; /* Borde redondeado */
}

.service-btn:hover, .service-btn.active {
    background:linear-gradient( var(--primary-color),#b97a35,#d3a14f  );
    color: #fff;
}

/* Contenedor de información (ocupa toda la pantalla horizontalmente) */
.service-content {
    width: 100%;
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    margin: auto;
}

#service-list li {
    list-style: none; /* Elimina el estilo de lista por defecto */
    background-image: url('../img/cerebropng.png'); /* Cambia a la ruta de tu imagen */
    background-size: 20px 20px; /* Ajusta el tamaño de la imagen */
    background-repeat: no-repeat;
    background-position: 0 50%; /* Centra verticalmente la imagen */
    padding-left: 30px; /* Añade espacio para la imagen */
}

/* Styles for li elements in new pages (politica-privacidad and terminos-condiciones) */
.page li {
    list-style: none;
    background-image: url(../img/cerebropng.png);
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: 0 50%;
    padding-left: 30px;
    color:#fff;
}

/* Styles for links inside li elements in footer */
.footer li a {
    color: #fff !important;
    text-decoration: none;
}

.footer li a:hover {
    color: #ccc !important;
    text-decoration: none;
}
.footer .my-4 {
    margin-top: 0% !important;
    margin-bottom: 0% !important;
}

/* Blog Page Hero Section */
.blog-page #inicio {
    height: 100vh;
    background-image: url('../img/blog-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.blog-page #inicio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

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

.blog-page .hero-logo {
    max-width: 100%;
    height: auto;
}

.blog-page .hero-section {
    background-image: url('../img/fondo.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Blog specific styles */
.blog-filters {
    background: linear-gradient(#002665,#050678,#04134a,#01063E );
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    /**/
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: inherit;
    
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gold-gradient);
    color: var(--dark-bg);
    text-decoration: none;
    transform: translateY(-2px);
}

.search-box {
    max-width: 400px;
    margin: 0 auto;
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.blog-card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.1);
}

.blog-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-category {
    display: inline-block;
    background: var(--primary-color);
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    text-decoration: none;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.blog-title a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1.4;
}

.blog-title a:hover {
    color: var(--primary-color);
}

.blog-excerpt {
    color: #666;
    margin: 1rem 0;
    line-height: 1.6;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #888;
    border-top: 1px solid #eee;
    padding-top: 1rem;
    margin-top: auto;
}

.blog-author-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-stats {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.blog-stats i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.pagination .page-link {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #000;
}

.no-posts {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.no-posts i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Estilos para el scroll indicator del blog */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.scroll-indicator:hover {
    transform: translateX(-50%) translateY(-5px);
}

.scroll-arrow {
    width: 50px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    animation: bounce 2s infinite;
    background: rgba(255, 215, 0, 0.1);
    backdrop-filter: blur(10px);
}

.scroll-arrow i {
    color: var(--primary-color);
    font-size: 20px;
}

.scroll-text {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Blog Post Page Styles */
.blog-post-page {
    background-color: #f8f9fa;
}

.post-header {
    background: linear-gradient( #0b2a9c, #050678,#04134a );
    color: white;
    padding: 100px 0 60px;
    position: relative;
}

.post-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.post-header .container {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    margin-bottom: 30px;
    font-size: 14px;
    opacity: 0.9;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 0.8;
}

.breadcrumb span {
    margin: 0 10px;
    opacity: 0.7;
}

.post-meta {
    max-width: 800px;
}

.post-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 20px;
    transition: background 0.3s ease;
}

.post-category:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.post-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: white;
}

.post-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    line-height: 1.4;
    margin-bottom: 30px;
    opacity: 0.9;
}

.post-info {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    font-size: 14px;
    opacity: 0.9;
}

.author-name {
    font-weight: 500;
}

.post-date, .post-views, .post-comments-btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-comments-btn .comments-link {
    color: #666;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.post-comments-btn .comments-link:hover {
    color: var(--primary-color);
}

.post-comments-btn .comments-link i {
    color: var(--primary-color);
}
.post-meta .post-comments-btn .comments-link,
.post-meta .post-comments-btn .comments-link:link,
.post-meta .post-comments-btn .comments-link:visited,
.post-meta .post-comments-btn .comments-link:hover,
.post-meta .post-comments-btn .comments-link:active {
    color: var(--primary-color) !important;
    text-decoration: none !important;
}
.post-meta .post-comments-btn .comments-link:hover{
    color: var(--primary) !important;
    text-decoration: none !important;

}

.post-comments-btn .comments-link,
.post-comments-btn .comments-link:link,
.post-comments-btn .comments-link:visited,
.post-comments-btn .comments-link:hover,
.post-comments-btn .comments-link:active {
    color: #fff !important;
    text-decoration: none !important;
}

.post-main {
    padding: 60px 0;
}

.post-article {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 60px;
}

.post-featured-image {
    width: 100%;
    height: auto;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.post-content {
    padding: 40px;
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 700;
}

.post-content h2 {
    font-size: 2rem;
    border-bottom: 2px solid #f1c40f;
    padding-bottom: 10px;
}

.post-content h3 {
    font-size: 1.5rem;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content ul,
.post-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.post-content li {
    margin-bottom: 8px;
}

.post-content blockquote {
    border-left: 4px solid #f1c40f;
    padding: 20px;
    margin: 30px 0;
    background: #f8f9fa;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.post-content a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.post-content a:hover {
    border-bottom-color: #667eea;
}

.post-tags {
    padding: 0 40px 40px;
}

.post-tags h4 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.1rem;
}

.tag {
    display: inline-block;
    background: #e9ecef;
    color: #495057;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    margin-right: 10px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #667eea;
    color: white;
}

.author-bio {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 60px;
}

.author-bio h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.author-details h4 {
    color: #04134a;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.author-details p {
    color: #666;
    line-height: 1.6;
}

.related-posts {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.related-posts h3 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 1.8rem;
    text-align: center;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.related-post {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.related-post-image {
    height: 200px;
    overflow: hidden;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.related-post-content {
    padding: 20px;
}

.related-post-category {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 10px;
    transition: background 0.3s ease;
}

.related-post-category:hover {
    background: #5a6fd8;
    color: white;
}

.related-post-content h4 {
    margin-bottom: 10px;
}

.related-post-content h4 a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.related-post-content h4 a:hover {
    color: #667eea;
}

.related-post-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.related-post-date {
    color: #999;
    font-size: 12px;
    font-weight: 500;
}



.comments-title {
    color: #01063E !important;
    font-weight: bold;
}

/* Fix for mobile scroll issue in últimos artículos section */
@media (max-width: 768px) {
    .ultimos-articulos {
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
    }
    
    .ultimos-articulos .container {
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
    }
    
    .ultimos-articulos .row {
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
    }
    
    .blog-card {
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
    }
    
    /* Fix scroll issues for quienes-somos section */
    .quienes-somos {
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
    }
    
    .quienes-somos .container {
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
    }
    
    .quienes-somos .row {
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
    }
    
    /* Fix scroll issues for proyectos destacados section */
    #proyectos {
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
    }
    
    #proyectos .container {
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
    }
    
    .proyectos-slider {
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
    }
    
    .proyectos-slide {
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
    }
}

/* Responsive adjustments for blog */
@media (max-width: 768px) {
    .blog-page #inicio {
        background-image: url('../img/blog-bg.png');
        height: 100vh;
    }
    
    .blog-page .hero-logo {
        height: 200px !important;
    }
    
    .blog-hero {
        padding: 100px 0 60px;
    }
    
    .filter-buttons {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .filter-btn {
        white-space: nowrap;
    }
    
    .scroll-indicator {
        bottom: 20px;
    }
    
    .scroll-arrow {
        width: 40px;
        height: 40px;
    }
    
    .scroll-arrow i {
        font-size: 16px;
    }
    
    .scroll-text {
        font-size: 12px;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .post-subtitle {
        font-size: 1.1rem;
    }
    
    .post-info {
        gap: 15px;
        font-size: 13px;
    }
    
    .post-content {
        padding: 30px 20px;
        font-size: 16px;
    }
    
    .post-tags {
        padding: 0 20px 30px;
    }
    
    .author-bio,
    .related-posts {
        padding: 30px 20px;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
