/**
 * Custom styles para Tu Cerrajería theme

 * @package Tu_Cerrajeria
 */

/* Aplicando fuente Montserrat a todo el sitio */
body {
    font-family: 'Montserrat', sans-serif;
}

.site-header{
    background: transparent;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

/* Estilo para el header cuando se hace scroll */
.site-header.scrolled {
    background-color: #000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.site-header.not-home {
    background-color: #000 !important;
}

/* Ejemplo de uso de la fuente personalizada FONTSPRING DEMO - Avionic */

.hero-title {
    font-family: 'FONTSPRING DEMO - Avionic', sans-serif;
    font-weight: 900;
    font-style: normal;
}

.subtitle {
    font-family: 'FONTSPRING DEMO - Avionic Book', sans-serif;
    font-weight: normal;
    font-style: normal;
    position: relative;
}

.subtitle::before{
    content: "";
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 114px;
    height: 4px;
    background-color: #FF0000;
    display: block;
}

.light-text {
    font-family: 'FONTSPRING DEMO - Avionic', sans-serif;
    font-weight: normal;
    font-style: normal;
}

.italic-text {
    font-family: 'FONTSPRING DEMO - Avionic Oblique', sans-serif;
    font-weight: normal;
    font-style: normal;
}

.condensed-text {
    font-family: 'FONTSPRING DEMO - Avionic Cond', sans-serif;
    font-weight: normal;
    font-style: normal;
}

.extra-wide-text {
    font-family: 'FONTSPRING DEMO - Avionic ExWide', sans-serif;
    font-weight: normal;
    font-style: normal;
}

/**
 * Estilos para el menú principal
 */
.main-navigation {
    display: flex !important;
    width: 100%;
}

#primary-menu-container {
    display: flex !important;
    width: 100%;
}

.header-extras{
    display: flex;
}

.navbar-nav {
    display: flex;
    flex-direction: row;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.navbar-nav .nav-item {
    margin-right: 1rem;
    position: relative;
}

/* Estilos para elementos activos en el menú */
.navbar-nav > .nav-item.active::after,
.navbar-nav > .nav-item.current::after,
.navbar-nav > .menu-anchor-item.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #FF0000;
    transition: width 0.3s ease;
}

.navbar-nav > .nav-item.active-parent::after,
.navbar-nav > .nav-item.active-ancestor::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.7);
}

/* Evitar que los elementos del dropdown tengan la línea roja */
.navbar-nav .dropdown-menu .nav-item::after,
.navbar-nav .dropdown-menu .nav-item.active::after,
.navbar-nav .dropdown-menu .nav-item.current::after {
    display: none;
}

.navbar-nav .nav-link {
    color: #fff;
    padding: 0.5rem 0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link:active {
    color: #f8f9fa;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link.active-parent,
.navbar-nav .nav-link.active-ancestor {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.navbar-nav .dropdown-menu {
    position: absolute;
    background-color: #000;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.5rem 0;
    margin: 0;
    border-radius: 0.25rem;
}

.navbar-nav .dropdown-item {
    color: #fff;
    padding: 0.25rem 1.5rem;
    font-weight: 400;
}

.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-nav .dropdown-item.active {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

/**
 * Hero banner
 */
#hero-banner{
background-color: #000;
background-image: url(https://tucerrajeria.co/wp-content/uploads/2025/09/fondo-mainbanner-scaled.png);
background-size: cover;
background-position: center;
min-height: 638px;
color: #FFF;
}

#hero-banner .container{
height: calc(638px - 96px);
}

#hero-banner .container .row{
height: 100%;
}

#hero-banner .container .row .col-md-8{
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: center;
}
#hero-banner .display-4{
font-size: 48px;
margin-bottom: 37px;
font-weight: 700;
}

#hero-banner .lead{
    font-size: 20px;
    margin-bottom: 37px;
}


/* Carrusel */
#brands-slider{
   margin-top: -50px;
   margin-bottom: 60px;
}
.container-carousel{
    background: #fff;
    padding: 30px 0;
    background-image: url(../media/icons/Corner-black.svg);
    background-position: top left;
    background-repeat: no-repeat;
}

.carousel-inner {
    padding: 20px 60px;
    border-radius: 0;
    position: relative;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    color: #000;
    font-size: 2rem;
    opacity: 1;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    color: #444;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background: none;
    border: solid #000;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 6px;
}

.carousel-control-prev-icon {
    transform: rotate(135deg);
}

.carousel-control-next-icon {
    transform: rotate(-45deg);
}

/* Mejoras para botones del carrusel en dispositivos móviles */
@media (max-width: 768px) {
    .carousel-control-prev,
    .carousel-control-next {
        width: 10%;
        background-color: rgba(255, 255, 255, 0.5);
        border-radius: 50%;
        height: 40px;
        width: 40px;
        top: 50%;
        transform: translateY(-50%);
        position: absolute;
    }
    
    .carousel-control-prev {
        left: 5px;
    }
    
    .carousel-control-next {
        right: 5px;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        padding: 8px;
        border-width: 0 3px 3px 0;
    }
}

.brand-logo img {
    height: 30px;    
    transition: transform 0.3s ease, filter 0.3s ease;
}

.brand-logo img:hover {
    transform: scale(1.1);
    filter: grayscale(0%);
}

/* Ajustes para móvil - mostrar solo 2 marcas por slide */
@media (max-width: 768px) {
    #brandsCarousel .brand-logo:nth-child(n+3) {
        display: none;
    }
    
    #brandsCarousel .d-flex {
        justify-content: space-around;
    }
    
    #brandsCarousel .brand-logo img {
        max-width: 80px;
    }
}

.carousel-inner::before,
.carousel-inner::after {
    content: "";
    position: absolute;
    top: 0;
    width: 40px;
    height: 100%;
    background: #fff;
    clip-path: polygon(0 0, 100% 10%, 100% 90%, 0 100%);
}

.carousel-inner::before {
    left: -40px;
}

.carousel-inner::after {
    right: -40px;
    transform: scaleX(-1);
}
.carousel-indicators{
    bottom: -40px;
}


/*Botones*/
.btn-primary{
    background-color: #FFF !important;
    color: #000 !important;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 24px;
    border-radius: 0 !important;    
    border: 0;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #ff0000;
  z-index: 0;
  transition: left 0.25s ease-out;
}

.btn-primary:hover::before {
  left: 0;
}

.btn-primary:hover {
  color: #fff;
}

.btn-primary {
  z-index: 1;
}
.btn-primary:hover span {
  color: #FFF;
}
.btn-primary span,
.btn-primary img {
  position: relative;
  z-index: 2;
}

.btn-primary.alter1{
    padding: 8px 12px;
    font-size: 14px;
    font-family: 'FONTSPRING DEMO - Avionic', sans-serif;
    border: 1px solid #FF0000;
    min-width: max-content;
} 

.btn-primary.alter2{
    background: #000 !important;
    color: #FFF !important;
}

/*Search control*/
.search-form{
    min-width: 100%;
}
.search-form .form-control{
    font-size: 14px;
    height: 39px;
    min-width: 100%;
    border-radius: 0;
    background-color: #616061;  
    border: 0;
    color: #FFF;
}
.search-form .form-control::placeholder{
    color: #C3C3C3;
}
.search-form .input-group{
    position: relative;
}
.search-form .input-group .btn{
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 40px;
    border-radius: 0;
    border: 0;
    background-image: url(../media/icons/iconamoon_search-light.svg) !important;
    background-position: center right 8px;
    background-repeat: no-repeat;
}

/* Tarjetas servicios */
.wrap-service-card{
    margin-top: 70px;
}
.service-card{
  width: 100%;
  background: #fff;
  border: 1px solid #000;
  padding: 12px 12px 53px 12px;
  position: relative;
  box-sizing: border-box;
  clip-path: polygon(10px 0, 100% 0, 100% 96%, calc(100% - 10px) 100%, 0 100%, 0 10px);
  color: #111;
  text-align: left;
  overflow: visible;
  height: 100%;
  transition: all .25s ease-in-out;
}

.service-card:hover{
    transform: translateY(-10px);
}

.service-card .service-icon i,
.service-card .service-icon .fa-3x{
  font-size: 18px !important;
  line-height: 1;
  color: #111;
}

.service-icon img{
	width: 100%;
	object-fit: cover;
}

.service-card h3{
  margin: 6px 0 10px 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.service-card p{
  margin: 0 0 50px 0;
  font-size: 14px;
  color: #333;
  line-height: 1.6;
}

.service-card::before{
    content: "";
    position: absolute;
    top: -3px;
    left: 0;    
    height: 12px;
    background: #000;
    width: 5px;
    transform: rotate(45deg);
}
.service-card::after{
    content: "";
    position: absolute;
    bottom: -3px;
    right: 0;
    height: 16px;
    background: #000;
    width: 5px;
    transform: rotate(40deg);
}

.service-card .btn{
  position: absolute;
  right: 12px;
  bottom: 0;
  background: transparent;
  border: none;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 14px;
  color: #111;
  text-decoration: none;
  text-align: right;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  display: block;
  width: calc(100% - 24px);  
  border-top: 1px solid #000;
  border-radius: 0;
}

.service-card .btn::after{
  content: "→";
  transition: transform .18s ease;
}

.service-card .btn:hover::after{
  transform: translateX(4px);
}

/*Secciones de contenido */
.section-content h2{
    font-family: 'FONTSPRING DEMO - Avionic', sans-serif;
    position: relative;
    margin-bottom: 30px;
}

.section-content h2::before{
    content: "";
    width: 114px;
    height: 4px;
    background-color: #FF0000;
    position: absolute;
    bottom: -6px;
    left: 0;
}

.section-content p{
    margin-bottom: 30px;
}

#alternating-section-1{
    margin-top: 120px;
}

#alternating-section-3{
    margin-bottom: 120px;
}

#alternating-section-1,
#alternating-section-3{
    background-image: url(https://tucerrajeria.co/wp-content/uploads/2025/09/patron-section.png);
    background-position: top right;
    background-repeat: no-repeat;
}

#alternating-section-2{
    background-image: url(https://tucerrajeria.co/wp-content/uploads/2025/09/patron-section-2.png);
    background-position: top left;
    background-repeat: no-repeat;
}

#additional-services-banner{
    background: url(https://tucerrajeria.co/wp-content/uploads/2025/09/banner-aditional.png) no-repeat center;
    background-size: cover;
}

#additional-services-banner h2{
    margin-bottom: 30px;
    margin-top: 60px;
}

#additional-services-banner p{
    margin-bottom: 60px;
}

#additional-services-cards .card{
    width: 100%;
    background: #fff;
    border: 1px solid #000;
    padding: 18px 12px;
    position: relative;
    box-sizing: border-box;
    clip-path: polygon(10px 0, 100% 0, 100% 98%, calc(100% - 10px) 100%, 0 100%, 0 10px);  
    color: #111;
    text-align: left;
    overflow: visible;
    height: 100%;
}

#additional-services-cards .card::before{
    content: "";
    position: absolute;
    top: -3px;
    left: 0;
    height: 12px;
    background: #000;
    width: 5px;
    transform: rotate(45deg);
}

#additional-services-cards .card::after {
    content: "";
    position: absolute;
    bottom: -4px;
    right: 0;
    height: 18px;
    background: #000;
    width: 4px;
    transform: rotate(44deg);
}

#additional-services-cards .card .card-footer .btn{  
    background: transparent;
    border: none;
    padding: 16px 20px;
    font-weight: 700;
    font-size: 14px;
    color: #111;
    text-decoration: none;
    text-align: right;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 0;
}

#additional-services-cards .card .card-footer .btn::after{
    content: "→";
    transition: all .18s ease;
    margin-right: -20px;
    margin-left: 12px;
}

#additional-services-cards .card .card-footer .btn:hover::after{
    transform: translateX(4px);
}

#additional-services-cards .card h5{
    font-size: 18px;
    font-weight: 700;
}

#additional-services-cards .card ul li{
    font-size: 14px;
    font-weight: 500;
}

/* Footer transversal */
#contact-section{
    background-color: #f8f9fa;
}
.contact-title{
    font-family: 'FONTSPRING DEMO - Avionic', sans-serif;
    margin-bottom: 30px;
    position: relative;
}

.contact-title::before{
    content: "";
    width: 114px;
    height: 4px;
    background-color: #FF0000;
    position: absolute;
    left: 0;
    bottom: -6px;
}

#contact-section .social-icon{
    width: 36px;
    height: 36px;
    display: inline-block;
    margin-right: 18px;
}

#contact-section .social-icon img{
    width: 100%;
    height: 100%;
}

.contact-info h3{
    font-size: 18px;
    font-weight: 400;
}

address a{
    text-decoration: none;
    color: #333;
}

address a:hover{
    color: #000;
    text-decoration: underline;
}

.site-footer{
    background-color: #000;
    color: #FFF;    
    padding-bottom: 0 !important;
}

.site-footer a{
    color: #FFF;
    text-decoration: none;
}

.site-footer a:hover{
    color: #FFF;
    text-decoration: underline;
}

.site-footer .description-logo{
    font-size: 14px;
}

.site-footer h4{
    font-size: 16px;
    font-weight: 700;
}

.site-footer .copyright.py-3.mt-4 {
    background-color: #D5D5D5;
    color: #000;
    font-size: 12px;
    font-weight: 700;
}

/* Estilos de las páginas internas */
.page-banner{
    margin-top: 72px;
}

.page-banner img{
    object-fit: cover;    
    min-width: 100%;
    height: 250px;
}

.page-banner .container {
    position: relative;
    min-height: 100%;
}

.page-banner .container h1{
    position: absolute;
    top: 50%;
    transform: translateY(140%);
    left: 0;
    color: #FFF;
    font-family: 'FONTSPRING DEMO - Avionic', sans-serif;    
}

.page-banner .container h1::before{
    content: "";
    width: 114px;
    height: 4px;
    background-color: #FF0000;
    position: absolute;
    left: 0;
    bottom: -6px;
}

/*Resultados de búsqueda*/
.search-results {
    margin-top: 72px;
}

.search-results .card{
    border-radius: 0;
}

.search-results .card img{
    width: 100%;
}

.search-results .card .btn{
    width: 100%;
    border-radius:0;
    color: #FFF;
    background-color: #000;
    border: 0;
}

.search-results .card .entry-header h2 a{
    color: #000;
}

.menu-toggle{
    display: none;
}



@media (max-width: 768px) {
	.page-banner{
		margin-top: 0;
	}
    .site-header{
        position: fixed !important;
        top: 0;
        left: 0;
        background-color: #000;
        width: 100%;
        z-index: 1000;
    }
    .site-header .row.py-3.align-items-center .col-lg-2{
        display: flex;
        justify-content: space-between;
        width: 100vw;
    }
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        z-index: 1001;
    }
    .menu-toggle .line {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #fff;
        margin: 5px 0;
        transition: all 0.3s ease;
    }    
    /* Estilo para el botón toggle activo */
    .menu-toggle.is-active .line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.is-active .line:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.is-active .line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }    
    nav#site-navigation {
        flex-direction: column;
        height: calc(100vh - 80px);
        background: #000;
        position: fixed;
        top: 0;
        left: 0;
        padding: 30px;
        width: 100vw;
        margin-top: 80px;
        display: none !important;
        z-index: 999;
		overflow: scroll;
    }    
    nav#site-navigation.show {
        display: flex !important;
    }    
    nav#site-navigation ul{
        flex-direction: column;
        width: 100%;
    }
    nav#site-navigation #primary-menu-container{
        order: 2;
        margin-top: 30px
    }
    nav#site-navigation .header-extras{
        flex-direction: column;
        order: 1;
    }
    nav#site-navigation .header-extras .search-form{
        margin-bottom: 10px;
    }
    nav#site-navigation .header-extras .header-cta .btn{
        width: 100%;    
    }
    .menu-toggle{
        display: block;
    }    
    /* Ajuste para el contenido principal cuando el header es fixed */
    .site-content {
        padding-top: 80px;
    }
    .search-results{
        margin-top: 0 !important;
    }
    #hero-banner .container {
        height: calc(560px - 96px);
    }
    #hero-banner .col-md-8{
         text-align: center;
    }
    #hero-banner .col-md-8 h1{
        width: 100%;
    }
    #hero-banner .col-md-8 .btn{
        margin: 0 auto;
    }
    #services-section .wrap-service-card .col-md-3{
        margin-bottom: 24px;
    }
    #alternating-section-1 .section-image img, 
    #alternating-section-3 .section-image img, 
    #alternating-section-2 .section-image img{
        width: 100%;
        margin: 60px 0 24px 0;
    }
    #alternating-section-2 .section-content h2{
        margin-top: 60px;
    }
    #additional-services-cards .col-md-3{
        margin-bottom: 24px;
    }
    #additional-services-cards .card .card-img-top img{
        min-width: 100%;
        height: 250px;
        object-fit: cover;
        border-radius: 12px;
    }
    .contact-info h3{
        margin-top: 30px;
    }
    .page-banner .container h1{
        left: 12px;
    }
    .page-banner img{
        object-position: calc(100% + 30px) center;
    }
}

@media (max-width: 380px){
  .service-card{ width: 92%; padding-left: 28px; }
  .service-card::before{ bottom: 56px; }
}

