/* ======================================================
   HERO – CONTENEDORES ALLENDE (ESTRUCTURA REAL)
====================================================== */

.hero-ca {
    position: relative;
    height: 70vh;
    overflow: hidden;
}

/* VIDEO FONDO */

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* OVERLAY AZUL COMO LA REFERENCIA */

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        #0f3c5c 0%,
        #0f3c5c 40%,
        rgba(15,60,92,0.85) 55%,
        rgba(15,60,92,0.45) 70%,
        rgba(15,60,92,0.15) 85%,
        rgba(15,60,92,0) 100%
    );
}

/* CONTENIDO ENCIMA */

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;

    display: flex;
    align-items: center;

    padding-left: 4vw;   /* separación tipo agencia */
    padding-right: 2rem;

    max-width: none;     /* quitamos límite */
    margin: 0;           /* quitamos centrado */
}

.hero-panel {
    max-width: 600px;
    color: #ffffff;
}

/* ======================================================
   TITULOS (BLANCOS REALES)
====================================================== */

.hero-title {
    font-size: clamp(3rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #ffffff !important;
}

.hero-title span {
    display: block;
}

.hero-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.9);
}

/* ======================================================
   BADGE
====================================================== */

.hero-badge {
    background: #f59e0b; /* 🔥 sólido como mockup */
    color: #fff;

    padding: 6px 16px;
    border-radius: 999px;

    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.hero-badge-icon {
    width: 16px;
    height: 16px;
}
/* ======================================================
   TAGS
====================================================== */

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 2rem;
}

.hero-tag {
    text-decoration: none;

    background: none;
    border: none;

    padding: 0;
    border-radius: 0;

    font-size: 0.85rem;
    font-weight: 600;

    color: #f59e0b;
    transition: all .25s ease;
}

.hero-tag:hover {
    color: #fbbf24;
    transform: translateY(-1px);
}

.hero-tag::after {
    content: "•";
    margin-left: 12px;
    color: rgba(255,255,255,.3);
}

.hero-tag:last-child::after {
    display: none;
}

/* ======================================================
   BOTONES
====================================================== */

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-btn-primary {
    background: #f59e0b;
    color: #fff;

    border-radius: 40px;
    border-color: #f59e0b;
    padding: 14px 28px;

    font-size: 0.9rem;
    font-weight: 700;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    transition: .25s ease;
}

.hero-btn-primary:hover {
    background: #fbbf24;
    color: #000;
}

.hero-btn-secondary {
    background: #ffffff;
    color: #0f3c5c;
    border-radius: 40px;
    padding: 14px 28px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

/* ======================================================
   FORM COTIZACIÓN
====================================================== */

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 14px 28px;
    border-radius: 999px;

    font-size: 0.9rem;
    font-weight: 700;

    text-decoration: none;
    border: none; /* 🔥 quita bordes raros */

    cursor: pointer;
}

/* 🔥 BOTONES NARANJA (AMBOS) */
.hero-btn-main {
    background: #f59e0b;
    color: #fff;

    box-shadow: none; /* 🔥 adiós sombra fea */
}

/* HOVER FINO */
.hero-btn-main:hover {
    background: #fbbf24;
    color: #000;
}

/* ======================================================
   HERO FORM PREMIUM
====================================================== */

.hero-panel-cotizacion {

    max-width: 540px;

    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(12px);

    padding: 40px 36px;
    border-radius: 22px;

    border: 1px solid rgba(255,255,255,0.15);

    box-shadow: 0 20px 60px rgba(0,0,0,0.35);

    color: #ffffff;
}

.hero-cot-title {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #ffffff;
}

/* Campo contenedor */
.hero-field {
    margin-bottom: 16px;
}

.hero-input {
    width: 100%;
    padding: 14px 18px;

    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.2);

    background: rgba(255,255,255,0.1);
    color: #ffffff;

    font-size: 0.95rem;
    transition: all .25s ease;
}

.hero-input::placeholder {
    color: rgba(255,255,255,0.65);
}

.hero-input:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245,158,11,0.2);
}

.hero-input select,
.hero-input {
    appearance: none;
}

/* Flechita blanca */
select.hero-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 20 20'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px;
}

/* Textarea */
.hero-input textarea {
    resize: none;
}

/* Select */
.hero-input select {
    appearance: none;
}

/* Botones */
.hero-cot-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
}

/* Botón volver elegante */
.hero-btn-link {
    background: none;
    border: none;
    color: rgba(255,255,255,0.75);
    font-weight: 500;
    cursor: pointer;
    transition: .2s ease;
}

.hero-btn-link:hover {
    color: #ffffff;
}

/* ======================================================
   HERO SELECT NATIVO BONITO
====================================================== */

.hero-select {
    width: 100%;
    padding: 14px 18px;

    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.2);

    background-color: rgba(255,255,255,0.1);
    color: #ffffff;

    font-size: 0.95rem;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 20 20'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px;
}

.hero-select:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245,158,11,0.2);
}

/* Opciones (solo funcionan en algunos navegadores) */
.hero-select option {
    background: #1e4159;
    color: #ffffff;
}

/* ======================================================
   BOTÓN REPLAY
====================================================== */

.hero-video-replay {
    position: absolute;
    top: 50%;
    right: 15%;
    transform: translateY(-50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.9);
    color: #0f3c5c;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 3;
}

/* ======================================================
   HERO BOTTOM BAR
====================================================== */

.hero-bottom-bar {
    background: #ffffff;
    padding: 30px 0;
    border-top: 1px solid #e5e7eb;
}

.hero-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Redes */

.hero-social {
    display: flex;
    gap: 18px;
}

.hero-social a {
    font-size: 2.5rem;
    color: #0f3c5c;
    transition: .2s ease;
}

.hero-social a:hover {
    color: #f59e0b;
}

/* Categorías */

.hero-categories {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 🔥 separadores automáticos */
.hero-cat-item {
    position: relative;
    padding: 0 40px;
}

/* línea */
.hero-cat-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);

    width: 1px;
    height: 50px;

    background: #cbd5e1; /* gris elegante */
}

.hero-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #0f3c5c;
    font-weight: 600;
    cursor: pointer;
    transition: .25s ease;
}

.hero-cat-item i {
    font-size: 2rem;
}

.hero-cat-item:hover {
    color: #f59e0b;
    transform: translateY(-4px);
}

/* ======================================================
   RESPONSIVE HERO
====================================================== */

@media (max-width: 991px) {

    .hero-ca {
        height: auto;        /* quitar vh en móvil */
        min-height: 90vh;
    }

    .hero-content {
        padding: 5rem 1.5rem 3rem 1.5rem;
        align-items: flex-start;
    }

    .hero-panel {
        max-width: 100%;
    }

    /* Título más compacto */
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.15;
    }

    .hero-text {
        font-size: 1rem;
    }

    /* Overlay vertical */
    .hero-overlay {
        background: linear-gradient(
            to bottom,
            #0f3c5c 0%,
            rgba(15,60,92,0.9) 35%,
            rgba(15,60,92,0.7) 55%,
            rgba(15,60,92,0.3) 75%,
            rgba(15,60,92,0) 100%
        );
    }

    .hero-tags {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;

        margin-bottom: 1.5rem;
    }

    .hero-tag {
        font-size: 0.75rem;
        white-space: nowrap;
    }

    /* Botones en columna */
    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }

    .hero-btn-primary,
    .hero-btn-secondary {
        width: 100%;
        justify-content: center;
    }

    /* Replay centrado */
    .hero-video-replay {
        right: 50%;
        transform: translate(50%, -50%);
    }

    /* BOTTOM BAR */
    .hero-bottom-inner {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }

    .hero-categories {
        gap: 25px;
        flex-wrap: wrap;
        justify-content: center;
    }

}

.hero-cat-item img {
    width: 80px;  
    height: 80px;
    object-fit: contain;

    transition: .25s ease;
}

/* TEXTO */
.hero-cat-item span {
    font-size: 0.9rem;
    font-weight: 600;
}

/* HOVER GENERAL */
.hero-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;

    color: #0f3c5c;
    cursor: pointer;
    transition: .25s ease;
}

/* HOVER EFECTO */
.hero-cat-item:hover {
    transform: translateY(-5px);
}

/* 🔥 ICONO CAMBIO DE COLOR (si SVG lo permite) */
.hero-cat-item:hover img {
    filter: brightness(0) saturate(100%) invert(64%) sepia(98%) saturate(456%) hue-rotate(359deg) brightness(101%) contrast(101%);
}

@media (max-width: 768px) {

    .hero-categories {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 🔥 2 columnas */
        gap: 25px;
        width: 100%;
    }

}

/* CARRUSEL HERO */

.hero-carousel{
    position:absolute;
    inset:0;
    z-index:0;
}

/* cada slide */

.hero-slide{
    position:absolute;
    inset:0;

    background-size:cover;
    background-position:center;

    opacity:0;
    transition: opacity 1.2s ease;
}

/* slide activo */

.hero-slide.active{
    opacity:1;
}

/* transición suave con el video */

.hero-video.fade-out{
    opacity:0;
    transition: opacity 1s ease;
}