/* ==========================================================================
   HERO CAROUSEL
   ========================================================================== */
.main-hero-fullscreen,
.main-hero-fullscreen .carousel-inner,
.main-hero-fullscreen .carousel-item {
    height: 100vh;
    min-height: 550px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 5;
}

.hero-content h1,
.hero-content h2 {
    font-family: var(--fuente-titulos);
    color: #ffffff !important;
}

.text-secondary-custom {
    color: var(--secundario);
    font-weight: 600;
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

.btn-outline-white {
    border: 2px solid #fff;
    color: #fff;
    background: transparent;
    text-transform: uppercase;
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 0;
    transition: all 0.3s ease;
}

.btn-outline-white:hover {
    background: #fff;
    color: var(--negro-texto);
}


/* ==========================================================================
   DIFERENCIALES (ICONOS)
   ========================================================================== */
.icono-wrapper {
    width: 160px;
    height: 160px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.icono-wrapper img {
    border: 2px solid var(--principal);
    border-radius: 50%;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease;
}

.icono-wrapper:hover {
    transform: scale(1.1);
    background-color: #e9d7c1;
    border-color: #ca9e67;
}

/* ==========================================================================
   PRODUCTOS & CATEGORÍAS (SVG)
   ========================================================================== */
.volanta-productos {
    font-family: var(--fuente-titulos);
    font-style: italic;
    color: var(--principal);
    font-size: 1.2rem;
}

.titulo-productos {
    font-family: var(--fuente-titulos);
    color: var(--negro-texto);
    font-weight: 700;
    font-size: 2.5rem;
}

.categoria-item {
    display: block;
    height: 400px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: all 0.5s ease;
    text-decoration: none !important;
}

.cat-panificados {
    background-image: url('../img/cat-panificados.webp');
}

.cat-salados {
    background-image: url('../img/cat-salados.webp');
}

.cat-dulces {
    background-image: url('../img/cat-dulces.webp');
}

.categoria-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    transition: background 0.4s ease;
}

.svg-linea {
    max-width: 80%;
    max-height: 60%;
    height: auto;
    width: auto;
    display: block;
    transition: all 0.4s ease;
    filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.3));
}

.categoria-item:hover .categoria-overlay {
    background: rgba(0, 0, 0, 0.3);
}

.categoria-item:hover .svg-linea {
    transform: scale(1.1) translateY(-5px);
    filter: drop-shadow(0px 8px 12px rgba(0, 0, 0, 0.5));
}

/* ==========================================================================
   TECNOLOGÍA & CONTACTO
   ========================================================================== */
.bg-light-custom {
    background-color: #f8f9fa;
}

.volanta-tecnologia {
    font-family: var(--fuente-titulos);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--negro-texto);
}

.titulo-tecnologia {
    font-family: var(--fuente-titulos);
    color: var(--secundario);
    font-size: 3.5rem;
    line-height: 1.2;
}

.texto-tecnologia {
    font-family: var(--fuente-cuerpo);
    max-width: 850px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ==========================================================================
   MEDIA QUERIES
   ========================================================================== */

@media (max-width: 991px) {
    .parallax-bg {
        background-attachment: scroll;
    }

    .seccion-empresa {
        height: auto;
        padding: 80px 0;
    }

    .logo-empresa-seccion {
        max-width: 200px;
    }
}

@media (max-width: 768px) {

    .main-hero-fullscreen,
    .main-hero-fullscreen .carousel-inner,
    .main-hero-fullscreen .carousel-item {
        height: auto;
        padding-top: 100px;
        padding-bottom: 80px;
    }

    .main-hero-fullscreen,
    .main-hero-fullscreen .carousel-inner {
        padding-top: 0
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-logo {
        width: 140px;
    }

    .titulo-tecnologia {
        font-size: 1.8rem !important;
    }

    .card-contacto {
        padding: 25px;
    }

    .texto-tecnologia {
        font-size: 1rem;
    }
}

@media (max-width: 767px) {
    .categoria-item {
        height: 280px;
    }

    .svg-linea {
        max-width: 70%;
    }
}

@media (max-width: 576px) {
    .icono-wrapper {
        width: 130px;
        height: 130px;
        padding: 20px;
    }

    .icono-wrapper:hover {
        transform: scale(1.05);
    }
}