

.navbar {
    background-color: #0d6efd !important;  /* #0d6efd; #0277BD Azul del nav */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Agregar sombra */
    padding: 0.5rem 0; /* Menos padding vertical */
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-link{
    font-size: 1.5rem;
    font-family: Roboto, sans-serif;
    font-weight: 800;
}

/*ANIMACIONES */

@import "../node_modules/open-props/open-props.min.css";
@import "../node_modules/open-props/normalize.min.css";

@keyframes giro-parcial-eje-x {
  0%   { transform: rotateX(0deg); }
  50%  { transform: rotateX(60deg); } /* grado máximo hacia adelante */
  100% { transform: rotateX(0deg); }
}

.logo-animado {
  animation: giro-parcial-eje-x 3s ease-in-out infinite alternate;
  transform-style: preserve-3d; /* necesario para rotación 3D */
}

/*ANIMACIONES */



/* Hover para los links del nav */
.nav-link:hover {
    color: #ffc107 !important; /* Color amarillo dorado */
    transform: translateY(-2px); /* Pequeño movimiento hacia arriba */
}


/*btn mejorado-----------------------------------------------------------------------*/
.btn-login {
    background-color: #ffc107 !important;
    color: black;
    padding: 0.5rem 1.5rem;
    font-size: 23px;
    border-radius: 0.25rem;
    text-decoration: none;
    font-weight: 600;
    height: auto; /* Cambiado de 3.1rem a auto */
    width: auto; /* Cambiado de 7rem a auto */
    min-width: 7rem; /* Para mantener un ancho mínimo */
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-flex; /* Cambiado a inline-flex */
    align-items: center; /* Centra verticalmente */
    justify-content: center; /* Centra horizontalmente */
    gap: 0.5rem; /* Espacio entre ícono y texto */
}

.btn-login:hover {
    background-color: #000000;
    transform: scale(1.05);
    color: #ffffff;
}

.btn-login i {
    font-size: 1.3rem; /* Ajusta el tamaño del ícono */
}
/* btn mejorado------------------------------------------------------------------------------*/

/* ========== SECCIÓN BLOG ========== */
/* ========== SECCIÓN BLOG ========== */
#blog {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    padding: 4rem 0;
    font-family: 'Roboto', sans-serif;
}

/* ========== ENCABEZADO BLOG ========== */
.blog-header {
    margin-bottom: 3rem;
}

.blog-main-title {
    font-size: 2.75rem;
    font-weight: 900;
    color: #212529;
    margin-bottom: 1rem;
    font-family: 'Roboto', sans-serif;
}

.blog-subtitle {
    font-size: 1.125rem;
    color: #6c757d;
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ========== FILTROS Y BÚSQUEDA ========== */
.blog-filters-section {
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.search-box {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    color: #212529;
    background-color: #ffffff;
    border: 2px solid #dee2e6;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-input:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 4px 20px rgba(13, 110, 253, 0.15);
}

.filter-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    color:black; /*#6c757d;*/
    background-color: #ffffff;
    border: 4px solid #dee2e6;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #0d6efd;
    color: #0d6efd;
}

.filter-btn.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #ffffff;
}

/* ========== GRID DE ARTÍCULOS ========== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ========== TARJETAS DE ARTÍCULOS ========== */
.blog-card {
    background-color: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.card-image-container {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .card-image {
    transform: scale(1.1);
}

.card-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    background-color: #0d6efd;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-category-mantenimiento {
    background-color: #ffc107;
    color: #212529;
}

.card-category-tecnologia {
    background-color: #198754;
}

.card-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.meta-date,
.meta-reading-time {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.card-title {
    font-size: 1.375rem;
    font-weight: 800;
    color: #212529;
    margin-bottom: 1rem;
    line-height: 1.4;
    font-family: 'Roboto', sans-serif;
}

.card-excerpt {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #0d6efd;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.card-link:hover {
    gap: 0.75rem;
    color: #0056b3;
}

/* ========== PAGINACIÓN ========== */
.blog-pagination {
    max-width: 1200px;
    margin: 4rem auto 0;
}

.pagination-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-item {
    margin: 0;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: #ffffff;
    color: #495057;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination-link:hover {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #ffffff;
}

.pagination-link.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #ffffff;
}

.pagination-prev,
.pagination-next {
    font-size: 1.25rem;
}

/* ========== NEWSLETTER ========== */
.newsletter-section {
    max-width: 800px;
    margin: 5rem auto 0;
}

.newsletter-container {
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
    padding: 3rem 2rem;
    border-radius: 25px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 10px 40px rgba(13, 110, 253, 0.3);
}

.newsletter-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.newsletter-title {
    font-size: 1.875rem;
    font-weight: 900;
    margin-bottom: 0.75rem;
}

.newsletter-text {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    font-family: 'Roboto', sans-serif;
}

.newsletter-input:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
}

.newsletter-button {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    background-color: #ffc107;
    color: #212529;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
    white-space: nowrap;
}

.newsletter-button:hover {
    background-color: #ffffff;
    transform: scale(1.05);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    #blog {
        padding: 3rem 0;
    }

    .blog-main-title {
        font-size: 2rem;
    }

    .blog-subtitle {
        font-size: 1rem;
    }

    .filter-buttons {
        justify-content: center;
    }

    .filter-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .card-image-container {
        height: 200px;
    }

    .card-title {
        font-size: 1.25rem;
    }

    .newsletter-container {
        padding: 2rem 1.5rem;
    }

    .newsletter-title {
        font-size: 1.5rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-button {
        width: 100%;
    }

    .pagination-link {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .blog-grid {
        padding: 0 0.5rem;
    }

    .card-content {
        padding: 1.5rem;
    }

    .search-input {
        font-size: 0.9rem;
        padding: 0.875rem 1.25rem;
    }

    .newsletter-icon {
        font-size: 2.5rem;
    }
}


/* En móviles, ajustes completos */
@media (max-width: 991px) {
    .navbar-nav {
        margin-left: 0 !important;
        gap: 0.3rem !important; /* Reducir espacio entre items */
    }
    
    .nav-link {
        font-size: 1.2rem !important;
        padding: 0.3rem 0;
    }
    
    .btn-login {
        margin-top: 1rem;
        margin-bottom: 1rem;
        width: 100%;
        text-align: center;
    }
    
    /* Hacer el menú desplegable scrolleable si es muy largo */
    .navbar-collapse {
        max-height: 75vh;
        overflow-y: auto;
    }
}
/* ========== ANIMACIÓN DE CARGA ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-card {
    animation: fadeIn 0.6s ease-out;
}

.blog-card:nth-child(1) { animation-delay: 0.1s; }
.blog-card:nth-child(2) { animation-delay: 0.2s; }
.blog-card:nth-child(3) { animation-delay: 0.3s; }
.blog-card:nth-child(4) { animation-delay: 0.4s; }
.blog-card:nth-child(5) { animation-delay: 0.5s; }
.blog-card:nth-child(6) { animation-delay: 0.6s; }

/* ========== SECCIÓN BLOG ========== */
/* Footer Styles--------------------------------------------------------------------------- */
footer {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #212529;
    padding: 0.7rem 0 1rem 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

/* Alinear verticalmente las columnas */
footer .row {
    align-items: center !important;
}

/* Efecto decorativo de fondo */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 300% 300%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Columnas del footer */
.footer-section {
    padding: 0rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.footer-section h5 {
    font-weight: 900;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    position: relative;
    display: inline-block;
}

.footer-section:first-child h5::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: #212529;
    border-radius: 2px;
}

/* Información de contacto */
.contact-info {
    line-height: 1.8;
}

.contact-info p {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.contact-info p:hover {
    transform: translateX(5px);
}

/* Efecto tap para móviles */
.contact-info p:active {
    transform: translateX(8px);
}

.contact-info i {
    margin-right: 12px;
    font-size: 1.3rem;
    color: #212529;
    flex-shrink: 0;
}

/* Mapa mejorado */
.map-container {
    width: 100%;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.map-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

/* Efecto tap para móviles en el mapa */
.map-container:active {
    transform: translateY(-5px) scale(0.98);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Redes sociales */
.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid #212529;
    border-radius: 50%;
    color: #212529;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    /* Mejorar táctil en móviles */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

/* Efectos hover para escritorio */
.social-links a:hover::before {
    width: 100%;
    height: 100%;
}

.social-links a:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: #212529;
}

/* Efectos táctiles para móviles */
.social-links a:active::before {
    width: 100%;
    height: 100%;
}

.social-links a:active {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: #212529;
}

.social-links a i {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

/* Colores específicos por red social - hover escritorio */
.social-links a.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.social-links a.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #bc1888;
}

.social-links a.whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
}

.social-links a.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
}

.social-links a:hover i {
    color: #fff;
}

/* Colores específicos por red social - táctil móviles */
.social-links a.facebook:active {
    background: #1877f2;
    border-color: #1877f2;
}

.social-links a.instagram:active {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #bc1888;
}

.social-links a.whatsapp:active {
    background: #25d366;
    border-color: #25d366;
}

.social-links a.linkedin:active {
    background: #0077b5;
    border-color: #0077b5;
}

.social-links a:active i {
    color: #fff;
}

/* Copyright */
.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(33, 37, 41, 0.2);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    footer {
        padding: 2rem 0 1rem 0;
    }

    .footer-section h5 {
        font-size: 1.4rem;
        text-align: center;
        display: block;
        margin-bottom: 1.5rem;
    }

    .footer-section h5::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-info {
        text-align: left;
        padding: 0 1rem;
    }

    .contact-info p {
        justify-content: flex-start;
        font-size: 1rem;
        margin-bottom: 1.2rem;
        padding: 0.5rem;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .contact-info p:active {
        background: rgba(255, 255, 255, 0.2);
        transform: translateX(5px);
    }

    .contact-info i {
        margin-right: 15px;
        font-size: 1.4rem;
        min-width: 25px;
        text-align: center;
    }

    .map-container {
        height: 200px;
        margin-bottom: 1.5rem;
    }

    .social-links {
        margin-top: 1rem;
        gap: 1.2rem;
    }

    .social-links a {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }
}

/* Para pantallas muy pequeñas */
@media (max-width: 480px) {
    .contact-info {
        padding: 0 0.5rem;
    }

    .contact-info p {
        font-size: 0.95rem;
        padding: 0.6rem 0.8rem;
    }

    .contact-info i {
        font-size: 1.3rem;
        margin-right: 12px;
    }
}

/* Animación de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-section {
    animation: fadeInUp 0.8s ease-out;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }

/* Optimización para dispositivos táctiles */
@media (hover: none) and (pointer: coarse) {
    /* Aumentar área táctil en móviles */
    .social-links a {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }
    
    /* Asegurar que las animaciones funcionen en táctil */
    .contact-info p {
        cursor: pointer;
    }
}
/* footer mejorado------------------------------------------------------------------------------*/




/* Responsive */
@media (max-width: 768px) {
    .service-img {
        height: 200px;
    }
    
    .service-card .card-body {
        padding: 1.5rem;
    }
}