/* /public/assets/css/styles.css */

:root {
    --brand-blue: #009fe3;
    --brand-blue-dark: #0A4D84;
    --brand-green: #00E676;
    --brand-bg-light: #F8F9FA;
}

/* =============================================
   BASE
   ============================================= */
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a {
    text-decoration: none;
}


/* =============================================
   HERO SLIDER — SPLIT LAYOUT 60/40
   ============================================= */

.hero-carousel {
    width: 100%;
    overflow: hidden;
}

/* Estructura compartida por ambos modos */
.hero-split {
    display: flex;
    flex-direction: row;
    align-items: center;
    min-height: 520px;
    padding: 60px 6%;
}

/* -----------------------------------------------
   MODO LIGHT (default): gradiente azul → blanco
   ----------------------------------------------- */
.hero-split.hero-light {
    background: linear-gradient(100deg,
            #009fe3 0%,
            #42b8eb 35%,
            #d0eef9 65%,
            #ffffff 100%);
}

/* -----------------------------------------------
   MODO DARK: degradado azul completo
   ----------------------------------------------- */
.hero-split.hero-dark {
    background: linear-gradient(135deg,
            #0a3d6e 0%,
            #0878b8 45%,
            #009fe3 100%);
}

/* En dark: imagen sin caja blanca, flota sobre el fondo */
.hero-dark .hero-media-box {
    border: none;
    background: transparent;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
    border-radius: 0;
}

.hero-dark .hero-media-img {
    border-radius: 0;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

/* -----------------------------------------------
   ELEMENTOS COMPARTIDOS (split)
   ----------------------------------------------- */

.hero-text-col {
    flex: 0 0 60%;
    max-width: 60%;
    padding-right: 48px;
}

.hero-media-col {
    flex: 0 0 40%;
    max-width: 40%;
}


.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    margin-bottom: 14px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 16px;
    text-shadow: 0 2px 12px rgba(0, 80, 140, 0.2);
}

.hero-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 32px;
    max-width: 460px;
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: #ffffff;
    color: var(--brand-blue);
    font-weight: 700;
    padding: 11px 28px;
    border-radius: 8px;
    border: 2px solid #ffffff;
    transition: all 0.25s ease;
    font-size: 0.95rem;
}

.btn-hero-primary:hover {
    background: var(--brand-blue);
    color: #ffffff;
    border-color: #ffffff;
}

.btn-hero-outline {
    background: transparent;
    color: #ffffff;
    font-weight: 700;
    padding: 11px 28px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    transition: all 0.25s ease;
    font-size: 0.95rem;
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    color: #ffffff;
}

.hero-media-box {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 80, 140, 0.25);
    background: rgba(255, 255, 255, 0.15);
    border: 3px solid rgba(255, 255, 255, 0.35);
}

.hero-media-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s ease;
}

.hero-media-box:hover .hero-media-img {
    transform: scale(1.04);
}

/* Indicadores */
.hero-indicators {
    bottom: 20px;
    left: 6%;
    justify-content: flex-start;
    margin: 0;
}

.hero-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    transition: all 0.3s;
}

.hero-indicators .active {
    background-color: #ffffff;
    width: 28px;
    border-radius: 5px;
}

/* Flechas */
.hero-prev,
.hero-next {
    width: 44px !important;
    height: 44px !important;
    background: rgba(0, 159, 227, 0.55) !important;
    border-radius: 50% !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    opacity: 1 !important;
    transition: background 0.25s !important;
}

.hero-prev:hover,
.hero-next:hover {
    background: rgba(0, 159, 227, 0.9) !important;
}

.hero-prev {
    left: 16px !important;
}

.hero-next {
    right: 16px !important;
}

/* MOBILE — split */
@media (max-width: 768px) {
    .hero-split {
        flex-direction: column;
        min-height: auto;
        padding: 36px 5% 28px;
    }

    .hero-split.hero-light {
        background: linear-gradient(170deg,
                #009fe3 0%, #42b8eb 40%, #d0eef9 70%, #ffffff 100%);
    }

    .hero-split.hero-dark {
        background: linear-gradient(170deg,
                #0a3d6e 0%, #0878b8 50%, #009fe3 100%);
    }

    .hero-text-col,
    .hero-media-col {
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 0;
    }

    .hero-text-col {
        text-align: center;
        margin-bottom: 24px;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .hero-desc {
        font-size: 1rem;
        max-width: 100%;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-indicators {
        left: 50%;
        transform: translateX(-50%);
        justify-content: center;
    }
}


/* =============================================
   HERO SLIDER — FULLBLEED LAYOUT
   Fondo = imagen completa, texto izquierda,
   imagen/logo flotante derecha (opcional)
   ============================================= */

.hero-fullbleed {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    min-height: 520px;
    padding: 60px 6%;
    overflow: hidden;

    /* La imagen de fondo se pasa via style en el HTML */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Overlay oscuro degradado: opaco a izquierda, transparente a derecha */
.hero-fullbleed::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
            rgba(10, 20, 40, 0.82) 0%,
            rgba(10, 20, 40, 0.65) 40%,
            rgba(10, 20, 40, 0.20) 70%,
            rgba(10, 20, 40, 0.05) 100%);
    z-index: 1;
}

/* Columnas dentro del fullbleed */
.hero-fullbleed .hero-text-col {
    position: relative;
    z-index: 2;
    flex: 0 0 55%;
    max-width: 55%;
    padding-right: 40px;
}

.hero-fullbleed .hero-media-col {
    position: relative;
    z-index: 2;
    flex: 0 0 35%;
    max-width: 45%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Imagen/logo flotante derecha del fullbleed */
.hero-fullbleed .hero-float-img {
    max-height: 280px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(10px 10px 20px rgba(0, 0, 0, 0.95));
    animation: hero-float 4s ease-in-out infinite;
}

@keyframes hero-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Texto sobre fullbleed: sombra más fuerte para legibilidad */
.hero-fullbleed .hero-title {
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.55);
    font-size: clamp(1.8rem, 3.5vw, 3.2rem);
}

.hero-fullbleed .hero-desc {
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

/* MOBILE — fullbleed */
@media (max-width: 768px) {
    .hero-fullbleed {
        flex-direction: column;
        min-height: 420px;
        padding: 40px 5% 36px;
        background-position: center right;
    }

    /* En mobile el overlay cubre casi todo para legibilidad */
    .hero-fullbleed::before {
        background: linear-gradient(to bottom,
                rgba(10, 20, 40, 0.55) 0%,
                rgba(10, 20, 40, 0.78) 100%);
    }

    .hero-fullbleed .hero-text-col {
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 0;
        text-align: center;
        margin-bottom: 0;
    }

    /* En mobile ocultamos la imagen flotante — el fondo ya habla */
    .hero-fullbleed .hero-media-col {
        display: none;
    }

    .hero-fullbleed .hero-ctas {
        justify-content: center;
    }

    .hero-fullbleed .hero-title {
        font-size: 1.9rem;
    }
}


/* =============================================
   SLIDER INFINITO DE CLIENTES
   ============================================= */
.slider-clientes {
    background: white;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, .125);
    height: 150px;
    margin: auto;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.slider-clientes::before,
.slider-clientes::after {
    background: linear-gradient(to right, white 0%, rgba(255, 255, 255, 0) 100%);
    content: "";
    height: 150px;
    position: absolute;
    width: 200px;
    z-index: 2;
}

.slider-clientes::after {
    right: 0;
    top: 0;
    transform: rotateZ(180deg);
}

.slider-clientes::before {
    left: 0;
    top: 0;
}

.slide-track {
    animation: scroll 60s linear infinite;
    display: flex;
    width: calc(250px * 52);
}

.cliente-slide {
    height: 150px;
    width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 30px;
}

.cliente-logo {
    max-height: 120px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cliente-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-250px * 26));
    }
}


/* =============================================
   CONTACTO / FOOTER
   ============================================= */
.contact-section {
    position: relative;
    overflow: hidden;
}

.contact-info-panel {
    background-color: var(--brand-blue-dark);
    color: white;
    padding: 60px 40px;
    position: relative;
    z-index: 1;
}

.contact-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.contact-list i {
    font-size: 1.2rem;
    margin-right: 15px;
    opacity: 0.8;
}

.contact-list a {
    color: white;
}

.decorative-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    background: #4ade80;
    z-index: 0;
}

.circle-1 {
    width: 300px;
    height: 300px;
    bottom: -100px;
    right: -50px;
}

.circle-2 {
    width: 100px;
    height: 100px;
    top: 100px;
    right: 50px;
}

.circle-3 {
    width: 50px;
    height: 50px;
    bottom: 150px;
    left: 20%;
    background: #0ea5e9;
}

.contact-form-panel {
    background-color: white;
    padding: 60px 40px;
}

.form-custom-input {
    background-color: #F0F2F5;
    border: none;
    padding: 12px 15px;
    border-radius: 4px;
}

.form-custom-input:focus {
    background-color: #e9ecef;
    box-shadow: none;
    border: 1px solid var(--brand-blue-dark);
}

.btn-brand-success {
    background-color: var(--brand-green);
    color: #003d29;
    font-weight: bold;
    padding: 10px 40px;
    border: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-brand-success:hover {
    background-color: #00c853;
    transform: translateY(-2px);
}

/* Wrapper con flechas */
.cat-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
}

/* Track scroll */
.cat-slider-track {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex: 1;
    padding: 4px 2px;
}

/* Flechas base */
.cat-arrow {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .10);
    transition: background .2s, color .2s, opacity .2s;
    z-index: 2;
    opacity: 1;
}

.cat-arrow:hover {
    background: #0d6efd;
    color: #fff;
}

.cat-arrow.hidden {
    opacity: 0;
    pointer-events: none;
}

.cat-arrow-left {
    margin-right: 6px;
}

.cat-arrow-right {
    margin-left: 6px;
}

/* En mobile las flechas se ocultan (swipe nativo) */
@media (max-width: 768px) {
    .cat-arrow {
        display: none;
    }
}

/* Badge de colores en listado */
.product-img-wrap {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    height: 200px;
}

.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}

.color-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    gap: 3px;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 9999px;
    padding: 3px 8px 3px 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .14);
    pointer-events: none;
    z-index: 2;
}

.color-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 0, 0, .15);
    margin-left: -4px;
    flex-shrink: 0;
}

.color-dot:first-child {
    margin-left: 0;
}

.color-badge-label {
    font-size: 10px;
    font-weight: 600;
    color: #6c757d;
    margin-left: 3px;
    white-space: nowrap;
}

.color-badge.single {
    padding: 4px;
}

.color-badge.single .color-badge-label {
    display: none;
}

.color-badge-more {
    font-size: 10px;
    font-weight: 700;
    color: #6c757d;
    margin-left: 2px;
}

.product-img-wrap {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    height: 200px;
    /* Hereda los bordes redondeados superiores del card de Bootstrap */
    border-radius: calc(var(--bs-card-border-radius) - 1px) calc(var(--bs-card-border-radius) - 1px) 0 0;
}

.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    display: block;
}