html { overflow-x: hidden; }

body {
    margin: 0;
    padding: 0;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 19px;
    line-height: 2em;
    overflow-x: hidden;
}

p, span { color: #999; }
hr { 
    border-top-color: #CCC; 
    margin-top: 10px;
    margin-bottom: 10px;
}
.form-control::-webkit-input-placeholder { color: #999; }  
.form-control:-ms-input-placeholder { color: #999; }  
.form-control::placeholder { color: #999; }

.tm-header {
    background-color: rgb(0, 0, 0);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    width: 400px;
    overflow-y: visible;     
}

.tm-header-wrapper {
    overflow-y: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 30px;
    width: 100%;
    height: 100%; 
}
.tm-header-wrapper::-webkit-scrollbar { width: 0; height: 0; }

.tm-site-header { margin-top: 50px; margin-bottom: 115px; }

.tm-site-logo {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background-color: white;    
    display: flex;
    align-items: center;
    justify-content: center;
}
.tm-site-logo i { color: rgb(0, 0, 0); }

.tm-main { margin-left: 400px; padding: 80px 100px 25px; }
.tm-post { max-width: 470px; }
.tm-row { max-width: 980px; justify-content: space-between; }

.tm-nav { margin-bottom: 100px; }
.tm-nav-item { list-style: none; margin-bottom: 30px; }
.tm-nav-link {
    color: white;
    background-color: transparent;
    height: 75px;
    width: 100%;
    max-width: 300px;    
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    padding: 30px;
}
.tm-nav-item:hover .tm-nav-link,
.tm-nav-item.active .tm-nav-link {
    color: rgb(0, 0, 0);
    background-color: white;
    text-decoration: none;
}
.tm-nav ul { position: relative; }
.tm-nav-item:hover:after,
.tm-nav-item.active:after {
    content: '';
    width: 100%;
    max-width: 300px;    
    height: 75px;
    display: block;
    border: 1px solid white;
    margin-left: 10px;
    margin-top: -65px;
    position: absolute;
    z-index: -1000;
}
.tm-nav-link i { margin-right: 37px; }

ul { margin: 0; padding: 0; }
.tm-nav { margin-left: -30px; }

.tm-social-link {
    display: inline-block;
    background-color: white;    
    font-size: 1.4rem;
    width: 50px;
    height: 50px;
    text-align: center;
    padding-top: 8px; 
    margin-right: 15px;   
    margin-bottom: 15px;
}
.tm-social-icon { 
    color: rgb(0, 0, 0);    
    transition: all 0.3s ease;
}
.tm-social-link:hover .tm-social-icon.fa-facebook { color: #01081a; }
.tm-social-link:hover .tm-social-icon.fa-twitter { color: #000000; }
.tm-social-link:hover .tm-social-icon.fa-instagram { color: #002008; }
.tm-social-link:hover .tm-social-icon.fa-linkedin { color: #000305; }

.navbar-toggler { display: none; }

.tm-search-form {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.form-inline .form-control.tm-search-input {
    display: block;
    height: 60px;
    width: 480px;
    margin-right: 30px;
    border-radius: 0;
    border-color: rgb(0, 15, 15);
    font-size: 1.2rem;
}
.tm-search-button {
    width: 60px;
    height: 60px;
    border: none;
    background-color: rgb(0, 0, 0);
    transition: all 0.3s ease;
}
.tm-search-button:hover { background-color: #000000; }
.tm-search-icon { color: white; font-size: 1.3rem; }

.tm-post-link {
    display: block;
    position: relative;
    cursor: pointer;
    text-decoration: none !important;
    color: inherit !important;
}
.tm-post-link-inner { overflow: hidden; background: #000000; }
.tm-post-link img {
    position: relative;
    display: block;
    min-height: 100%;
    max-width: 100%;
    opacity: 0.8;
}
.effect-lily img {
    max-width: none;
    width: calc(100% + 50px);
    opacity: 0.7;
    transition: opacity 0.35s, transform 0.35s;
    transform: translate3d(-40px,0,0);
}
.effect-lily:hover img { opacity: 1; transform: translate3d(0,0,0); }

.tm-post { margin-bottom: 75px; }

.tm-new-badge {
    top: 25px;
    right: -10px;
    background-color: rgb(0, 0, 0);
    color: white;
    padding: 5px 20px;
}

.tm-post-title {
    font-size: 1.7rem;
    transition: all 0.3s ease;
}

/* ✅ Color controlado para los títulos */
a.tm-post-link h2.tm-post-title {
    color: #007bff !important;   /* Azul del título */
    text-decoration: none !important;
}
a.tm-post-link:hover h2.tm-post-title {
    color: #0056b3 !important;   /* Azul más oscuro al hover */
}

.tm-h3 { font-size: 1.3rem; color: #999; }

/* Cambié: antes decía que tm-color-primary era negro fijo */
.tm-color-primary, span.tm-color-primary { color: inherit; }

.tm-post-link:hover .tm-post-title { color: #0056b3; }

.tm-btn {
    display: inline-block;
    border-radius: 5px;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}
.tm-btn-primary {    
    background-color: rgb(0, 0, 0);
    color: white;  
    padding: 8px 43px;
    border: none;
}
.tm-btn-small { padding: 8px 33px; }
.tm-btn-primary:hover { background-color: #000000; color: white; }

.tm-paging-nav ul li { list-style: none; display: inline-block; margin-right: 10px; }
.tm-paging-nav ul li:last-child { margin-right: 0; }
.tm-paging-link {
    background-color: #F0F0F0;
    color: #999;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;    
}
.tm-paging-item .tm-paging-link:hover,
.tm-paging-item.active .tm-paging-link {
    background-color: rgb(0, 0, 0);
    color: white;
}
.tm-btn.disabled {
    background-color: #F0F0F0;
    color: #999;
    cursor: not-allowed;
}
.tm-external-link { color: rgb(0, 0, 0); }
.tm-external-link:hover { color: #000000; }

.tm-paging-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.tm-prev-next-wrapper,
.tm-paging-wrapper {
    flex: 0 0 50%;
    max-width: 50%;
    padding-left: 15px;
    padding-right: 15px;
}
.tm-copyright { text-align: right; }

/* Single Post page */
hr.tm-hr-primary { border-top: 5px solid rgb(0, 0, 0); }
video { width: 100%; height: auto; }

.tm-comment { display: flex; align-items: flex-start; }
.tm-comment-figure { margin-top: 10px; margin-right: 30px; }
.tm-comment-reply { padding-left: 37px; }

.form-control {
    height: 45px;
    border-color: rgb(0, 0, 0);
    border-radius: 0;
}
.tm-comment-form { max-width: 360px; }
.tm-category-list { list-style-type: none; }
figure { margin: 0; }
figcaption { line-height: 1.4; }
.tm-post-full { max-width: 600px; }
.tm-post-sidebar { max-width: 280px; margin-left: auto; margin-right: 0; }

.tm-pt-20 { padding-top: 20px; }
.tm-pt-30 { padding-top: 30px; }
.tm-pt-45 { padding-top: 45px; }
.tm-pt-60 { padding-top: 60px; }
.tm-mb-40 { margin-bottom: 40px; }
.tm-mb-45 { margin-bottom: 45px; }
.tm-mb-55 { margin-bottom: 55px; }
.tm-mb-60 { margin-bottom: 60px; }
.tm-mb-65 { margin-bottom: 65px; }
.tm-mb-75 { margin-bottom: 75px; }
.tm-mb-80 { margin-bottom: 80px; }
.tm-mb-120 { margin-bottom: 120px; }
.tm-mt-40 { margin-top: 40px; }
.tm-mt-100 { margin-top: 100px; }
.tm-mr-20 { margin-right: 20px; }

a.tm-color-gray, .tm-color-gray { color: #999; }
a.tm-color-gray:hover { color: rgb(0, 0, 0); }
.tm-bg-gray { background-color: #f4c542; }
button:focus { outline: none; }
a:hover { text-decoration: none; color: #000000; }
a:hover figcaption { color: #000000; }

.img-thumbnail { max-width: none; }
.tm-about-pad { padding: 40px 35px; }
.tm-person { max-width: 430px; }
.tm-line-height-short { line-height: 1.8; }

.gmap_canvas {
    overflow:hidden;
    background:none!important;
    height:477px;
    width:100%;
}

.tm-social-links li { list-style: none; display: inline-block; }
.tm-social-links li a {
    display: block;
    color: white;
    background-color: rgb(0, 0, 0);
    width: 45px;
    height: 45px;    
    margin-right: 15px;    
}
.tm-social-links li a i { transition: all 0.3s ease; }
.tm-social-links li a:hover i.fa-facebook { color: #000000; }
.tm-social-links li a:hover i.fa-twitter { color: #000000; }
.tm-social-links li a:hover i.fa-youtube { color: #000000; }
.tm-social-links li a:hover i.fa-instagram { color: #000000; }

.tm-contact-right { padding-left: 55px; }
.tm-contact-form { max-width: 488px; }
.tm-contact-form input, .tm-contact-form textarea { max-width: 360px; }
.tm-contact-form label { font-size: 1.4rem; }
.tm-contact-form .form-group { display: flex; }

@media (max-width: 1540px) {
    .tm-header { width: 320px; }
    .tm-main { margin-left: 320px; width: calc(100% - 320px); }
}
@media (max-width: 1300px) {
    .tm-about-col { flex: 0 0 100%; max-width: 100%; margin-bottom: 30px; }
}
@media (max-width: 1288px) { .tm-social-link { margin-right: 10px; } }
@media (max-width: 1199px) {
    .tm-post-sidebar { max-width: 440px; }
    .form-inline .form-control.tm-search-input { width: 420px; }
}
@media (max-width: 1086px) {
    .form-inline .form-control.tm-search-input {
        width: 80%;
        margin-right: 15px;
    }
}

/* Hide sidebar */
@media (max-width: 991px) {
    .tm-header { width: 320px; left: -320px; transition: all 0.3s ease; }
    .tm-header.show { left: 0; }
    .tm-header-wrapper { padding: 15px; }
    .navbar-toggler {
        display: block;
        position: fixed;
        left: 0;
        top: 0;
        background-color: rgba(0, 0, 0, 0.75);
        color: white;
        padding: 10px 15px;
        transition: all 0.3s ease;
        border-radius: 0;
        top: 5px;
    }
    .tm-header.show .navbar-toggler { left: 320px; }
    .tm-main { margin-left: 0; padding: 50px 40px; width: 100%; }
    .tm-post-sidebar { margin-left: 0; margin-right: auto; }
    .tm-person-col { width: 50%; }
    .tm-person { flex-direction: row; }
    .tm-contact-left { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .tm-contact-right { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .tm-post-full { max-width: none; }
}
@media (max-width: 767px) {
    .form-inline .form-control.tm-search-input { width: 70%; max-width: 375px; margin-right: 15px; }
    .tm-search-form { justify-content: flex-start; }
    .tm-main { padding: 60px 10px; }
    .tm-prev-next-wrapper,
    .tm-paging-wrapper { flex: 0 0 100%; max-width: 100%; }
    .tm-paging-wrapper { margin-top: 50px; justify-content: flex-start; }
    .tm-copyright { text-align: left; }
}
@media (max-width: 1199px) and (min-width: 992px) {
    .tm-person-col,
    .tm-contact-left,
    .tm-contact-right { flex: 0 0 100%; max-width: 100%; }
    .tm-contact-right { padding-left: 15px; }
    .tm-post-col,
    .tm-aside-col { flex: 0 0 100%; max-width: 100%; }
    .tm-post-sidebar { margin-left: 0; margin-right: auto; }
}
@media (max-width: 709px) { .tm-person-col { width: 100%; } }
@media (max-width: 991px) and (min-width: 826px) {
    .tm-about-col { flex: 0 0 33.3333%; max-width: 33.3333%; }
    .tm-person { flex-direction: row; }
}
@media (max-width: 630px) {
    .tm-contact-left,
    .tm-contact-right { flex: 0 0 100%; max-width: 100%; }
    .tm-contact-right { padding-left: 15px; }
}
@media (max-width: 575px) {
    .tm-contact-form input, .tm-contact-form textarea { max-width: 100%; }
}
@media (max-width: 480px) {
    .tm-person-col { width: 100%; }
    .tm-person { flex-direction: row; }
}
@media (max-width: 380px) { .tm-person img { max-width: 120px; } }

footer {
    background-color: #1a1a1a;
    color: #ccc;
    padding: 40px 0;
    font-size: 15px;
    line-height: 1.6;
}
footer h4 { color: #fff; margin-bottom: 15px; font-weight: bold; }
footer p { margin: 8px 0; }
footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}
footer a:hover { color: #f4c542; }
.footer-links, .social-media-list { list-style: none; padding: 0; margin: 0; }
.footer-links li, .social-media-list li { margin-bottom: 8px; }
.footer-links li a { display: inline-block; }
.social-media-list { display: flex; gap: 15px; }
.social-media-list li { margin: 0; }
.social-media-list i { transition: transform 0.3s ease, color 0.3s ease; }
.social-media-list i:hover { transform: scale(1.2); color: #f4c542; }
footer .contact-info i { margin-right: 8px; color: #f4c542; }
.footer-bottom {
    border-top: 1px solid #444;
    margin-top: 20px;
    padding-top: 15px;
    font-size: 14px;
    text-align: center;
}

.img-publicacion {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}
/* El enlace no pinta color ni subrayado */
a.tm-post-link {
  text-decoration: none !important;
  color: inherit !important;
}
/* Quitar color y subrayado de los títulos dentro de los enlaces */
a.tm-post-link h2.tm-post-title {
  color: #000 !important;         /* Negro o el color que quieras */
  text-decoration: none !important;
}

/* Evitar que cambie en estados especiales */
a.tm-post-link:visited h2.tm-post-title,
a.tm-post-link:hover h2.tm-post-title,
a.tm-post-link:active h2.tm-post-title {
  color: #000 !important;         /* Igual que arriba */
  text-decoration: none !important;
}
/* Elimina color azul y subrayado de los títulos dentro del enlace */
article.tm-post a.tm-post-link h2.tm-post-title {
  color: #000 !important;          /* o el color que quieras */
  text-decoration: none !important;
}

/* Que tampoco cambie en hover, visitado o activo */
article.tm-post a.tm-post-link:link h2.tm-post-title,
article.tm-post a.tm-post-link:visited h2.tm-post-title,
article.tm-post a.tm-post-link:hover h2.tm-post-title,
article.tm-post a.tm-post-link:active h2.tm-post-title {
  color: #000 !important;
  text-decoration: none !important;
}
#quienes-somos h2,
#quienes-somos p,
#blog h1,
#blog h3,
#blog p,
#blog span,
#blog .tm-post-title {
    color: #fff !important;
}

/* Fondo dorado y textos en blanco desde servicios hasta footer */
.tm-bg-gold,
#servicios,
#quienes-somos,
#blog,
#contacto,
footer {
    background-color: #f4c542 !important;
    color: #fff !important;
}
.tm-bg-gold h1, .tm-bg-gold h2, .tm-bg-gold h3, .tm-bg-gold h4, .tm-bg-gold h5, .tm-bg-gold h6,
#servicios h2, #quienes-somos h2, #blog h1, #blog h2, #contacto h2, footer h2, footer p, footer a {
    color: #fff !important;
}
