
:root {
    --sinte-teal: #004b4d;
    --sinte-yellow: #fecb00;
    --sinte-light-teal: #00818d;
    --nav-height: 70px; /* Altura estimada del navbar */
}

body { font-family: "Roboto", -apple-system; overflow-x: hidden; }

/* --- NAVBAR RESPONSIVE --- */
.navbar { background-color: var(--sinte-teal); min-height: var(--nav-height); }
.search-bar { border-radius: 20px; }
.navbar-toggler { border: none; }
.navbar-toggler:focus { box-shadow: none; }

@media (max-width: 767px) {
    .navbar-collapse {
        background-color: var(--sinte-teal);
        padding: 15px;
        border-radius: 0 0 10px 10px;
    }
}

@media (max-width: 767.98px) {
  .navbar + * {
    margin-top: 0 !important;
  }
}

@media (max-width: 767.98px) {
  .buscador-wrapper .mx-md-4 {
    margin-left: 0;
    margin-right: 0;
  }
  .buscador-wrapper .my-3 {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
  }
  .navbar-nav {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
  }
}

@media (max-width: 767.98px) {
  .navbar {
    min-height: 56px; /* similar a altura con toggler cerrado */
    transition: min-height 0.2s ease;
  }
}


.logo-text{
    color:white;
    font-size: 12px;
    padding-right: 10px;
    padding-top: 13px;
}

.search-bar{
    max-width: 600px;
    font-size: 14px;
}
.search-bar::placeholder {
    color: #747474;
    font-weight: 400;
}

.search-bar-container{
    position: relative;
}
.search-bar-container i{
    position: absolute;
    right: 13px;
    top:7px;
    color:#383838;
    font-size: 22px;
    z-index: 200;
}
.buscador-wrapper {
    display: flex;
    align-items: center;
}

/* Nuevos estilos para los resultados */
#resultados-busqueda {
    position: absolute;
    top: 100%; /* Aparece justo debajo del input */
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 150; /* Por debajo del icono pero sobre el resto */
    max-height: 250px;
    overflow-y: auto;
    display: none; /* Se activa por JS */
}

.resultado-item {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #f1f1f1;
    transition: background 0.2s;
}

.resultado-item:last-child {
    border-bottom: none;
}

.resultado-item:hover {
    background-color: #f8f9fa;
    color: #000;
}

@media (max-width: 767.98px) {
  .navbar {
    transition: padding 0.2s ease, background-color 0.2s ease;
  }
  #navSinteplast {
    transition: height 0.2s ease;
  }
}

.go-down-mark{
    position: absolute;
    z-index: 100;
    bottom:50px;
    left: 47%;
    text-align: center;
    display: none;
}
.go-down-mark p{
    font-weight: bold;
    color: var(--sinte-teal);
    margin:0
}
.go-down-mark i{
    position: relative; 
    left: -10px;
    color: var(--sinte-teal);
    font-size: 35px;

}
#miSliderMobile{margin-top:-55px}
/* --- HERO SLIDER FULL SCREEN --- */
/* Eliminamos alturas fijas para que mande la proporción de la imagen */
.carousel-item img {
    width: 100%;
    height: auto; /* Altura automática según la imagen */
    display: block;
}

/* Estilización de los puntos (indicadores) */
.carousel-indicators {
    margin-bottom: 1rem; /* Espacio desde el borde inferior */
}

.carousel-indicators [data-bs-target] {
    width: 16px;
    height: 16px;
    border-radius: 50%; /* Puntos circulares */
    margin: 0 5px;
    background-color: #fff;
    border: 0px;
    opacity: 1;
}

.carousel-indicators .active {
    opacity: 1;
    background-color: var(--sinte-teal); /* Color diferente para el punto activo */
}

/* --- VIDEO SECTION --- */
.video-container {
        width: 100%;
        aspect-ratio: 16 / 9; 
        max-height: 80vh;
        background-color: #000;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        overflow: hidden; /* Asegura que nada sobresalga de las esquinas */
    }

    #videoPlaceholder {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        /* Usamos la miniatura de YouTube directamente */
        background: url('https://img.youtube.com/vi/ySDziHJtEP0/sddefault.jpg') center/cover no-repeat;
    }

    .play-btn { 
        font-size: 4rem; 
        color: white; 
        opacity: 0.8; 
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    /* Efecto hover recomendado */
    #videoPlaceholder:hover .play-btn {
        transform: scale(1.1);
        opacity: 1;
    }

    #videoPlayer {
        width: 100%;
        height: 100%;
    }

    iframe {
        border: none;
    }

/* --- LÓGICA DEL SLIDER (AÑADIR ESTO) --- */
.custom-slider-wrapper {
    touch-action: pan-y; /* Permite scroll vertical normal pero bloquea el horizontal nativo para que el JS mande */
    user-select: none;   /* Evita que se azulen los textos al arrastrar */
}

@media (min-width: 769px) {
    /* 1. Definimos el ancho/alto de la barra de scroll */
    .custom-slider-wrapper::-webkit-scrollbar {
        height: 4px; /* Grosor de la línea (fina) */
        display: block; /* Aseguramos que sea visible */
    }

    /* 2. El fondo de la barra (la vía por la que corre) */
    .custom-slider-wrapper::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1); /* Un gris muy suave o transparente */
        margin: 0 10%; /* Opcional: hace que la barra sea más corta que el contenedor */
    }

    /* 3. La parte que se mueve (el indicador) */
    .custom-slider-wrapper::-webkit-scrollbar-thumb {
        background: #ff0000; /* Tu color rojo */
        border-radius: 10px;
        transition: background 0.3s ease;
    }

    /* 4. Efecto al pasar el ratón sobre la barra */
    .custom-slider-wrapper::-webkit-scrollbar-thumb:hover {
        background: #cc0000; /* Rojo un poco más oscuro al tocarlo */
    }
}

@media (min-width: 769px) {
    .custom-slider-wrapper {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important; /* Permite el scroll pero sin forzar rueda */
        cursor: grab;
        user-select: none;
        /* Quitamos smooth para que el drag sea preciso */
        scroll-behavior: auto; 
    }

    .custom-slider-wrapper.active-drag {
        cursor: grabbing;
    }

    /* Estilo de la barra roja */
    .custom-slider-wrapper::-webkit-scrollbar {
        height: 4px; /* Fina y elegante */
    }

    .custom-slider-wrapper::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05); /* Carril casi invisible */
    }

    .custom-slider-wrapper::-webkit-scrollbar-thumb {
        background: #ff0000; /* Roja */
        border-radius: 10px;
    }

    .product-strip {
        flex: 0 0 25% !important;
        min-width: 25%;
    }
}

@media (max-width: 768px) {
    .product-strip {
        width: 100%; /* Se apilan al 100% de ancho */
        height: 500px; /* Reducimos un poco la altura en móvil para UX */
    }
    .product-hover h2 {
        font-size: 30px; /* Texto un poco más pequeño en móvil */
    }
}

/* En móvil ocultamos el espacio extra */
@media (max-width: 768px) {
    .custom-slider-wrapper {
        overflow-x: hidden;
        padding-bottom: 0;
    }
}

/* Estilos para las flechas del carrusel */
.carousel-control-next{
    right: 20px;
}
.carousel-control-prev{
    left: 20px;
}
.custom-arrow {
    width: 50px;
    opacity: 1;
}
.arrow-img {
    width: 40px;
    transition: content 0.3s;
}
.prev-img {
    transform: rotate(180deg); /* Volteamos la flecha para el lado izquierdo */
}
/* Efecto Hover usando la segunda imagen */
.custom-arrow:hover .arrow-img {
    content: url('../images/flecha_hover.png');
}

.prod-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    z-index: 1000;
    cursor: pointer;
}
.prod-nav-btn.prev { left: 20px; }
.prod-nav-btn.next { right: 20px; }
.prod-nav-btn:hover .arrow-img { content: url('../images/flecha_hover.png'); }

/* --- TUS ESTILOS ACTUALES (MANTENIDOS) --- */
.product-strip {
    position: relative; /* Importante para los absolutos internos */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: white;
    overflow: hidden;
    cursor: pointer;
}

/* Tus fondos específicos */
.bg-repara-maderas { background: url('../images/background_producto_home_/Background_Producto_REPARA_MADERAS_.png') 50% 50% no-repeat #a5661f; background-size: cover; }
.bg-repara-paredes { background: url('../images/background_producto_home_/Background_Producto_REPARA_PAREDES_.png') 50% 50% no-repeat #43b0e0; background-size: cover; }
.bg-repara-pastina { background: url('../images/background_producto_home_/Background_Producto_REPARA_PASTINA_.png') 50% 50% no-repeat #c01e7f; background-size: cover; }
.bg-repara-grietas { background: url('../images/background_producto_home_/Background_Producto_REPARA_GRIETAS_.png') 50% 50% no-repeat #699a3a; background-size: cover; }
.bg-sella-todo { background: url('../images/background_producto_home_/Background_Producto_SELLA_TODO_.png') 50% 50% no-repeat #f4d912; background-size: cover; }
.bg-tapa-rayones { background: url('../images/background_producto_home_/Background_Producto_TAPA_RAYONES_.png') 50% 50% no-repeat #6a4319; background-size: cover; }
.bg-chau-caidas { background: url('../images/background_producto_home_/Background_Producto_CHAU_CAIDAS_.png') 50% 50% no-repeat #c5c5c5; background-size: cover; }

.product-glow {
    position: absolute;
    left: 50%; /* Corregido para centrar mejor */
    top: 200px;
    transform: translateX(-50%);
    z-index: 200;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #b37036, #b87338, transparent 100%);
    filter: blur(20px);
    pointer-events: none;
}

.bg-repara-maderas .product-glow{background: radial-gradient(circle, #b88248, #b88248, transparent 100%);}
.bg-repara-paredes .product-glow{background: radial-gradient(circle, #80c6e5, #80c6e5, transparent 100%);}
.bg-repara-pastina .product-glow{background: radial-gradient(circle, #c64a85, #c64a85, transparent 100%);}
.bg-repara-grietas .product-glow{background: radial-gradient(circle, #7cbe52, #7cbe52, transparent 100%);}
.bg-sella-todo .product-glow{background: radial-gradient(circle, #efe158, #efe158, transparent 100%);}
.bg-tapa-rayones .product-glow{background: radial-gradient(circle, #986e3f, #986e3f, transparent 100%);}
.bg-chau-caidas .product-glow{background: radial-gradient(circle, #d7d7d5, #d7d7d5, transparent 100%);}

.img-prod-home { position: relative; z-index: 201; max-height: 450px; transition: transform 0.3s ease; }
.img-prod-home.xl {max-height: 600px;}
.product-strip:hover .img-prod-home { transform: scale(1.05); }

/* Hover y Botón */
.product-hover {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    gap: 15px; opacity: 0; transition: opacity 0.4s ease;
    color: white; text-align: center; z-index: 300;
}
.product-strip:hover .product-hover { opacity: 1; }

.product-hover h2 {
    font-size: 40px; font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px; text-transform: uppercase; padding: 0 15%;
}

.btn-product {
    padding: 10px 30px; background-color: #20bbe3;
    border: none; color: white; border-radius: 25px;
    font-weight: bold; transition: background 0.3s;
}
.btn-product:hover { background-color: #0598bd; color: white; }

/* Paso a paso */
.step-icon {
    width: 80px; height: 80px; background-color: var(--sinte-teal);
    border-radius: 50%; display: flex; align-items: center;
    justify-content: center; margin: 0 auto 15px; color: white; font-size: 2rem;
}

footer { background-color: var(--sinte-teal); color: white; padding: 40px 0; }
footer h2{
    font-size: 44px;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px; 
    line-height: 40px;
    text-transform: uppercase;
}
footer .logo-text{
  position: relative;
  top:6px;
}
.li-footer p, .li-footer a{
  color:#FFFFFF;
  display: inline-block;
  width: 100%;
  margin-bottom: 8px;
  text-decoration: none;
}
.li-footer a:hover{
  text-decoration: underline;
}

.li-links{
  font-size: 18px;
  font-weight: bold;
}

.li-color a{
  color:white!important
}

.text-underline{text-decoration: underline!important;}
.fix-mt{
  margin-top: 9px;
}





/* Header Producto - Fondo Amarillo con Rayos */
.product-header {
    background: url('../images/Img_espiral_/Img_Espiral_1200x1200px_SELLA_TODO_.png') 0 50% no-repeat #f4d912;
    padding: 10px 0 0px;
    position: relative;
    overflow: hidden;
}

.product-header.repara-madera {
    background: url('../images/Img_espiral_/Img_Espiral_1200x1200px_REPARA_MADERAS_.png') 0 50% no-repeat #a5661f;
}


.product-header.repara-paredes {
    background: url('../images/Img_espiral_/Img_Espiral_1200x1200px_REPARA_PAREDES_.png') 0 50% no-repeat #43b0e0;
}

.product-header.repara-grietas {
    background: url('../images/Img_espiral_/Img_Espiral_1200x1200px_REPARA_GRIETAS_.png') 0 50% no-repeat #699a3a;
}

.product-header.repara-pastina {
    background: url('../images/Img_espiral_/Img_Espiral_1200x1200px_REPARA_PASTINA_.png') 0 50% no-repeat #c01e7f;
}

.product-header.chau-caidas {
    background: url('../images/Img_espiral_/Img_Espiral_1200x1200px_CHAU_CAIDAS_.png') 0 50% no-repeat #c5c5c5;
}

.product-header.tapa-rayones {
    background: url('../images/Img_espiral_/Img_Espiral_1200x1200px_TAPA_RAYONES_.png') 0 50% no-repeat #6a4319;
}

.product-header .container{
    padding: 0;
    position: relative;
    overflow: hidden;
}

.product-main-img {
    max-width: 100%;    
}

.product-title {
    margin-top: 110px;
    color: var(--sinte-teal);
    font-weight: 400;
    margin-bottom: 20px;
    font-size: 72px;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 2px; 
    line-height: 66px;
    text-transform: uppercase;
}

.c-white{
    color:#FFFFFF!important;
}

@media (max-width: 1200px) {
    .product-title {
      margin-top: 80px;
  }
}

@media (max-width: 992px) {
    .product-title {
      margin-top: 40px;
  }
}

@media (max-width: 768px) {
  .product-main-img {
      max-width: 80%;    
      margin-left: 10%;
  }
    .product-title {
      margin-top: 10px;
  }
  .fix-mobile{
    padding: 0 10%;
  }
}

.subtitle-badge {
    color: var(--sinte-teal);
    font-weight: bold;
    display: block;
    margin-bottom: 15px;
}

.product-description {
    color: var(--sinte-teal);
    font-size: 1.1rem;
    max-width: 500px;
}

.btn-video {
    background-color: var(--sinte-teal);
    color: white;
    border-radius: 25px;
    padding: 10px 40px;
    font-weight: bold;
    border: none;
}

.btn-video:hover{
    background-color: var(--sinte-light-teal);
    color:white;
}

.link-ficha {
    color: var(--sinte-teal);
    text-decoration: underline;
    font-weight: bold;
    position: relative;
    top:-10px;
}


/* Sección "Así de fácil" */
.section-easy { padding: 80px 0; background-color: white; }
.section-title {
    color: var(--sinte-teal);
    font-size: 40px;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 2px; 
    line-height: 36px;
    font-weight: 600;
    margin-bottom: 50px;
}

.step-card { text-align: center; padding: 0 15px; }
.step-icon-circle {
    width: 90px;
    height: 90px;
    background-color: var(--sinte-teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2.2rem;
}
.step-text { font-size: 1rem; line-height: 1.4; color: var(--sinte-teal); }

/* Grilla inferior (Relacionados) */
.related-products { display: flex; flex-wrap: wrap; }
.related-col {
    flex: 1;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    color: white;
}

@media (max-width: 768px) {
    .related-col { min-width: 100%; }
}

/* Ajuste para Modal Vertical */
.modal-vertical .modal-dialog {
    max-width: 400px; /* Ancho máximo para que no se vea gigante en PC */
    margin: 1.75rem auto;
}

/* Ratio 9:16 (Vertical) */
.ratio-9x16 {
    --bs-aspect-ratio: 177.77%; /* (16 / 9) * 100 */
}

/* Estilo del botón de cerrar para que flote sobre el video */
.btn-close-overlap {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 1060;
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    padding: 10px;
    filter: invert(1);
}