/* =========================================
   1. BREADCRUMB
========================================= */
.bg__breadcrumb {
    background: #fff;
    padding: 18px 0;
    text-align: left;
}

.custom-breadcrumb {
    justify-content: left;
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.custom-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: " > ";
    color: #9ca3af;
}

.custom-breadcrumb a {
    color: var(--Gris, #000);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 300;
    text-decoration: none;
}

.custom-breadcrumb a:hover {
    text-decoration: underline;
}

.custom-breadcrumb .active {
    color: var(--Gris, #000);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
}

/* =========================================
   2. CAROUSEL & HERO
========================================= */
.carousel-video-wrapper {
    height: 760px;
    overflow: hidden;
    position: relative;
}

.carousel-video,
.carousel-imagen {
    width: 100%;
    height: 760px;
    object-fit: cover;
    display: block;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #8DB3F4 35.68%, #FFF 100%);
    mix-blend-mode: multiply;
    z-index: 1;
    pointer-events: none; /* Let clicks pass through */
}

.carousel-caption {
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 2;
    padding-bottom: 3rem; /* Give some space from bottom */
}

.carousel-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 68px;
    line-height: 120%;
}

.carousel-subtitle {
    font-size: 18px;
    line-height: 1.4;
}

/* Banner Hero Home */
.hero-home {
    min-height: 350px;
    background-size: cover;
    background-position: center;
    position: relative; /* Needed for overlay */
}

.hero-home::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.hero-content {
    z-index: 1;
    position: relative;
}

.hero-title {
    color: #FFF;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.32px;
}

.hero-subtitle {
    color: #FFF;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: clamp(16px, 1.2vw, 16px);
    font-weight: 400;
    letter-spacing: -0.16px;
}

.hero-subtitle p {
    margin-bottom: 0;
}

/* =========================================
   3. SECTIONS & TYPOGRAPHY
========================================= */
.bg-grey {
    background: #f8f9fa;
}

.titulo-secciones {
    color: var(--Grey, #151414);
    font-family: "Inter", sans-serif;
    font-size: 32px !important;
    font-weight: 600;
    line-height: 120%;
}

/* Inicio Section */
.titulo-inicio {
    color: var(--Gris, #000);
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.32px;
}

.descripcion-inicio {
    color: var(--Negro, #111010);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
}

.inicio-imagen {
    background-size: cover;
    background-position: center;
    min-height: 600px;
    position: relative;
}

.inicio-imagen::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
}

    /* Empresa Section - List */
.contenido-empresa {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
}

.contenido-empresa ul {
    list-style: none;
    padding-left: 0;
    margin-top: 16px;
}

.contenido-empresa ul li {
    position: relative;
    padding-left: 34px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.contenido-empresa ul li::before{
  content:"";
  position:absolute;
  left:0;
  top:3px;
  width:20px;
  height:20px;
  background-repeat:no-repeat;
  background-size:contain;

  /* OJO: # => %23 */
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23FFEC00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3C/svg%3E");
}

/* =========================================
   4. COMPONENTS (Buttons, Forms, Cards)
========================================= */
.btn-inicio {
    background: #FFEC00;
    border-radius: 8px;
    border: 1px solid #FFEC00;
    color: #000;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 28px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-inicio:hover {
    background: #E6D500;
    border-color: #E6D500;
    color: #000;
}

.btn-secondary {
    border-radius: 6px;
    border: 1px solid #FFEC00;
    background: #FFF;
    color: #000;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 14px 28px;
    text-decoration: none;
    display: inline-block;
    transition: background-color .3s ease, border-color .3s ease;
}

.btn-secondary:hover {
    border-color: #E6D500;
    color: #000;
}

/* Forms */
.form-label {
  font-family: 'Inter';
  font-weight: 400;
  font-style: 'Regular';
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0%;

}

.form-control,
.form-select {
    height: 38px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
}

.form-control::placeholder {
    color: #636363;
    font-size: 16px;
    font-weight: 400;
}

/* Cards (Generic) */
.bg__card {
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 322px;
    display: flex;
    align-items: stretch;
}

.card__contenido {
    padding: 2rem;
    text-align: left;
}

.card__titulo {
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #131313;
}

.card__texto {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #555555;
    line-height: 150%;
}

.card__icono {
    height: 50px;
    width: 50px;
    object-fit: contain;
}

/* Product Mini Card */
.prod-mini-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0;
    overflow: hidden;
    transition: .15s ease;
    height: 100%; /* Ensure full height in grid */
}

.prod-mini-card:hover {
    border-color: #ced4da;
    transform: translateY(-1px);
}

.prod-mini-card__img {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #f8f9fa;
    display: flex; /* Centering image */
    align-items: center;
    justify-content: center;
}

.prod-mini-card__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.prod-mini-card__label {
    position: absolute;
    top: 8px;
    left: 0;
    background: #000;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 12px;
    padding: .28rem .5rem;
    text-transform: uppercase;
}

.prod-mini-card__body {
    padding: .55rem .6rem .7rem;
}

.prod-mini-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .68rem;
    color: #6c757d;
    margin-bottom: .25rem;
}

.prod-mini-card__meta .code {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 12px;
    color: #212529;
}

.prod-mini-card__title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #000;
    line-height: 22px;
    text-transform: uppercase;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.2em * 2);
}

/* Blog/Novedades Card */
.bg__novedades .card {
    transition: box-shadow .25s ease, transform .25s ease;
    will-change: transform;
}

.bg__novedades .card:hover {
    transform: translateY(-4px);
}

.blog-card__img {
    height: 260px;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform .35s ease, filter .35s ease;
}

.bg__novedades .card:hover .blog-card__img {
    transform: scale(1.03);
    filter: saturate(1.05);
}

.card-categorie {
    color: var(--Gris, #000);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 800;
    line-height: normal;
}

.card-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    color: var(--Gris, #000);
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

/* =========================================
   5. MOBILE & RESPONSIVE
========================================= */

/* Tablet (max 991px) */
@media (max-width: 991.98px) {
    .carousel-title {
        font-size: 34px;
    }
    .carousel-subtitle {
        font-size: 16px;
    }
}

/* Mobile (max 767px) */
@media (max-width: 767px) {
    /* Carousel */
    .carousel-video-wrapper,
    .carousel-video,
    .carousel-imagen {
        height: 400px !important;
    }
    
    .carousel-caption {
        padding-bottom: 2rem; /* Less padding on mobile */
    }

    .carousel-title {
        font-size: 24px;
        line-height: 1.2;
    }

    .carousel-subtitle {
        font-size: 14px;
        margin-top: 1rem !important; /* Override my-sm-5 */
        margin-bottom: 1.5rem !important;
    }

    .carousel-caption .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Titles & Sections */
    .titulo-secciones {
        font-size: 26px !important; /* Smaller on mobile */
    }

    /* Inicio Block */
    .inicio-imagen {
        min-height: 280px;
    }

    .titulo-inicio {
        font-size: 24px;
        text-align: center;
    }

    .descripcion-inicio {
        font-size: 15px;
        text-align: center;
    }

    .btn-secondary {
        padding: 12px 20px;
        font-size: 15px;
        width: 100%; /* Full width button on mobile feels better */
        text-align: center;
    }

    /* Cards */
    .bg__card {
        height: auto;
        flex-direction: column;
    }

    .card__contenido {
        padding: 1.75rem 1.5rem;
        text-align: center;
    }

    .card__icono {
        margin: 0 auto 1rem;
        display: block;
    }

    .card__titulo {
        font-size: 20px;
        margin-bottom: 1rem;
    }

    .prod-mini-card__title {
        font-size: 16px; /* Slightly smaller product titles */
    }

    /* Spacing adjustments */
    .container {
        padding-left: 20px; /* More breathing room */
        padding-right: 20px;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important; /* Reduce huge margins */
    }
    
    .mt-5 {
        margin-top: 2rem !important;
    }
    
    /* Form inputs mobile friendly */
    .form-control, .form-select {
        font-size: 16px; /* prevent zoom on ios */
    }
}