/* ==============================================
   KORALTEC LANDING STYLES 
   ============================================== */

:root {
    --koraltec-orange: #f59d3a;
    --koraltec-dark: #030303;
    --koraltec-header-gradient: linear-gradient(-47deg, #4f4f4f 0%, #4f4f4f 1%, #2f2f37 99%, #2f2f37 100%);
    --font-main: 'HelveticaNeue', sans-serif;
}

body {
    font-family: var(--font-main);
}

/* ── Tipografía ───────────────────────────────── */
.ff_hvn {
    font-family: 'HelveticaNeue', sans-serif;
}

.fw-black {
    font-weight: 900;
}

.fw-bold {
    font-weight: 700;
}

.fw-heavy {
    font-weight: 800;
}

.fw-medium {
    font-weight: 500;
}

.fw-regular {
    font-weight: 400;
}

.fw-light {
    font-weight: 300;
}

/* Título de sección: la parte en negro + parte naranja */
.section-title {
    color: var(--koraltec-orange);
}

.section-title-light {
    color: #000;
    font-weight: 400;
}


/* ══════════════════════════════
   HERO SECTION
══════════════════════════════ */
.hero-koraltec {
    min-height: 100vh;
    background: var(--koraltec-header-gradient);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 30px 0;
    color: #fff;
}

.hero-tagline {
    font-size: 1.2rem;
    color: var(--koraltec-orange);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.hero-tagline img {
    width: 50px;
}

.hero-separador {
    background-image: linear-gradient(90deg, #3e3e43 0%, #ecdcb1 50%, #3e3e43 100%);
    height: 2px;
    width: 90%;
    margin: 5% 0;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    color: #fff;
}

/* ── Botones CTA ─────────────────────────────── */

/* Botón naranja grande (Hero + fondo del panel proyectos) */
.btn-koraltec-hero {
    display: inline-block;
    background-color: var(--koraltec-orange);
    color: #fff;
    font-family: 'HelveticaNeue', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    border: none;
    transition: background-color 0.3s, transform 0.2s;
    cursor: pointer;
}

.btn-koraltec-hero:hover {
    background-color: #e08828;
    color: #fff;
    transform: scale(1.03);
    text-decoration: none;
}

/* Botón pequeño con ícono (cabecera sección Proyectos) */
.btn-koraltec-sm {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--koraltec-orange);
    color: #fff;
    font-family: 'HelveticaNeue', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
    white-space: nowrap;
}

.btn-koraltec-sm:hover {
    background-color: #e08828;
    color: #fff;
    transform: scale(1.03);
    text-decoration: none;
}


.hero-images-container {
    position: relative;
    height: 600px;
}

.img-pair {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    gap: 20px;
    opacity: 0;
    visibility: hidden;
}

.img-pair.active {
    opacity: 1;
    visibility: visible;
}

.hero-img-box {
    width: 48%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.hero-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ══════════════════════════════
   TICKER / MARQUEE
══════════════════════════════ */
.ticker-container {
    background-color: var(--koraltec-orange);
    padding: 10px 0;
    overflow: hidden;
}

.ticker-content {
    display: flex;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
}

.ticker-item {
    font-size: 0.9rem;
    font-weight: 700;
    color: #000;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ticker-item::after {
    content: '•';
    margin-left: 2rem;
}

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

    100% {
        transform: translateX(-50%);
    }
}


/* ══════════════════════════════
   SECCIONES GENÉRICAS
══════════════════════════════ */
.section-koraltec {
    padding: 80px 0;
    background-color: #fff;
    color: #000;
}

.section-bg-image {
    background-size: cover;
    background-position: center;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    text-transform: uppercase;
}


/* ══════════════════════════════
   BENEFICIOS
══════════════════════════════ */
.benefit-card {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background: #ffffff52;
    transition: transform 0.3s;
    height: 100%;
}

.benefit-card:hover {
    transform: translateY(-10px);
}

.benefit-icon {
    width: 60px;
    margin-bottom: 1.5rem;
}

.benefit-title {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}


/* ══════════════════════════════
   PROYECTOS SLIDER
══════════════════════════════ */

/* Flechas de navegación del slider */
.proj-nav-btn {
    background: #fff;
    border: none;
    border-radius: 3px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    padding: 0;
    flex-shrink: 0;
}

.proj-nav-btn:hover {
    background: var(--koraltec-orange);
    transform: scale(1.05);
}

.proj-nav-btn:hover img {
    filter: invert(1);
}

.proj-nav-btn img {
    width: 40px;
    transition: filter 0.3s;
}

/* Flecha "anterior" apuntando a la izquierda */
.next-proj img {
    transform: rotate(180deg);
}

/* Textos de proyecto: ocultos hasta que JS los activa */
.proj-text-content {
    display: none;
}

.proj-text-content.active {
    display: block;
    animation: fadeInText 0.4s ease;
}

@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Swiper con crossFade correcto */
.swiper-projects {
    aspect-ratio: 4/3;
}

.swiper-projects .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ══════════════════════════════
   FORMULARIO DE COTIZACIÓN
══════════════════════════════ */
.section-form-koraltec {
    padding: 80px 0;
    background-color: #fff;
}

/* Columna izquierda */
.form-solicita-label {
    font-weight: 700;
    color: var(--koraltec-orange);
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.form-solicita-title {
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.form-solicita-desc {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Badge LATAM */
.latam-badge {
    background-color: var(--koraltec-orange);
    padding: 2rem 2.5rem;
    border-radius: 20px 0 0 20px;
    color: #fff;
    display: inline-block;
    width: 100%;
    z-index: 1;
    position: relative;

    &::after {
        content: '';
        position: absolute;
        top: 0;
        right: -125px;
        width: 250px;
        height: 100%;
        z-index: 0;
        background-color: var(--koraltec-orange);
        /* clip-path: polygon(0 0, 100% 50%, 0 100%); */
    }
}

.latam-badge h3 {
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0;
    line-height: 1.3;
    position: relative;
    z-index: 2;
}

.testimonial-card {
    background-color: #fff;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Wrapper del formulario (sin fondo blanco, directo) */
.koraltec-form-wrap {
    padding: 0;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    background-color: #fff;
    z-index: 1;
}

/* Inputs del formulario tipo Koraltec */
.kform-input {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 9px;
    background-color: #f0f0f0;
    font-family: 'HelveticaNeue', sans-serif;
    font-size: 0.95rem;
    color: #333;
    outline: none;
    transition: background 0.2s, box-shadow 0.2s;
    display: block;
    margin-bottom: 8px;
}

.kform-input::placeholder {
    color: #888;
}

.kform-input:focus {
    background-color: #e8e8e8;
    box-shadow: 0 0 0 3px rgba(245, 157, 58, 0.2);
}

/* Estilos específicos para el Select */
.kform-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: calc(100% - 15px) center !important;
    background-size: 14px !important;
    padding-right: 40px !important;
    cursor: pointer;
    height: 52px;
}

.kform-select:hover {
    background-color: #e8e8e8;
}

/* Mejora de apariencia de options (limitado por navegador) */
.kform-select option {
    background-color: #fff;
    color: #333;
    padding: 12px;
    font-size: 1rem;
}

.kform-select option:first-child {
    color: #888;
}

/* Ajustes para intl-tel-input */
.iti {
    width: 100%;
    margin-bottom: 8px;
}

.iti__country-list {
    z-index: 100;
    border-radius: 8px;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
}

.iti__country {
    padding: 10px 15px;
    transition: background 0.2s;
}

.iti__country.iti__highlight {
    background-color: rgba(245, 157, 58, 0.1);
}

.iti--separate-dial-code .iti__selected-dial-code {
    font-family: 'HelveticaNeue', sans-serif;
    font-size: 0.95rem;
    color: #333;
}

/* Fix Flags 404 - Overriding with CDN paths */
.iti__flag {
    background-image: url("https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.8/img/flags.png") !important;
}

@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .iti__flag {
        background-image: url("https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.8/img/flags@2x.png") !important;
    }
}

/* Select2 Custom Styles - Perfeccionados */
.select2-container--default .select2-selection--single {
    background-color: #f0f0f0 !important;
    border: none !important;
    border-radius: 9px !important;
    height: 52px !important;
    display: flex;
    align-items: center;
    transition: background 0.2s, box-shadow 0.2s;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #333 !important;
    font-family: 'HelveticaNeue', sans-serif !important;
    font-size: 0.95rem !important;
    line-height: 52px !important;
    padding-left: 20px !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #888 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 52px !important;
    right: 15px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #888 transparent transparent transparent !important;
    border-width: 6px 5px 0 5px !important;
}

.select2-container--default.select2-container--open .select2-selection--single {
    background-color: #e8e8e8 !important;
    box-shadow: 0 0 0 3px rgba(245, 157, 58, 0.2) !important;
}

.select2-dropdown {
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden;
    background-color: #fff !important;
    margin-top: 5px;
}

.select2-search--dropdown {
    padding: 10px !important;
}

.select2-search--dropdown .select2-search__field {
    border: 1px solid #eee !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    outline: none !important;
}

.select2-results__option {
    padding: 12px 20px !important;
    font-size: 0.9rem !important;
    color: #444 !important;
    transition: background 0.2s;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--koraltec-orange) !important;
    color: #fff !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #f8f8f8 !important;
}

/* Botón de envío */
.kform-submit-btn {
    border: 2px solid #1a1a1a;
    border-radius: 50px;
    background: transparent;
    padding: 12px 40px;
    font-family: 'HelveticaNeue', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.3s;
}

.kform-submit-btn:hover {
    background: #1a1a1a;
    color: #fff;
}

/* Custom Checkbox T&C */
.kform-checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    cursor: pointer;
    font-size: 0.85rem;
    color: #555;
    user-select: none;
    margin-top: 10px;
}

.kform-checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.kform-checkmark {
    position: relative;
    height: 18px;
    width: 18px;
    background-color: #f0f0f0;
    border-radius: 4px;
    flex-shrink: 0;
    transition: all 0.2s;
}

.kform-checkbox-container:hover input~.kform-checkmark {
    background-color: #e8e8e8;
}

.kform-checkbox-container input:checked~.kform-checkmark {
    background-color: var(--koraltec-orange);
}

.kform-checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.kform-checkbox-container input:checked~.kform-checkmark:after {
    display: block;
}

.kform-checkbox-container .kform-checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.kform-checkbox-text a {
    color: var(--koraltec-orange);
    text-decoration: none;
    font-weight: 700;
}

.kform-checkbox-text a:hover {
    text-decoration: underline;
}


/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
.footer-koraltec {
    background-color: var(--koraltec-dark);
    color: #fff;
}


/* ══════════════════════════════
   BOTÓN FLOTANTE (CTA)
══════════════════════════════ */
.btn-float-cotizacion {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    background-color: transparent;

    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
    overflow: hidden;
    filter: drop-shadow(0 8px 25px rgba(245, 157, 58, 0.45));

    /* Empieza invisible y desplazada */
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.3s ease;
}

/* Visible cuando el JS añade la clase .visible */
.btn-float-cotizacion.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.btn-float-cotizacion:hover {
    filter: drop-shadow(0 12px 35px rgba(245, 157, 58, 0.6));
    transform: translateY(-3px);
}

/* Icono izquierdo */
.btn-float-icon {
    background-color: #25d366;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    left: 10px;
    text-decoration: none;
}

.btn-float-icon .fa-whatsapp {
    color: #ece5dd;
    font-size: 32px;
    /* filter: invert(1); */
}

/* Texto derecho */
.btn-float-text {
    font-family: 'HelveticaNeue', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: #000;
    line-height: 1.3;
    padding: 5px 20px 5px 25px;
    border-radius: 0 50px 50px 0;
    background-color: var(--koraltec-orange);

}


/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 991px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-images-container {
        height: 400px;
        margin-top: 4rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .btn-float-cotizacion {
        bottom: 20px;
        right: 16px;
    }

    .latam-badge {
        border-radius: 20px;

        &::after {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 1px;
            height: 1px;
            z-index: 0;
            background-color: var(--koraltec-orange);
            /* clip-path: polygon(0 0, 100% 50%, 0 100%); */

        }
    }

}

@media (max-width: 576px) {
    .btn-float-text {
        display: none;
    }

    .btn-float-icon {
        border-radius: 50%;
        left: 0px;
        width: 56px;
        height: 56px;
    }

    .btn-float-cotizacion {
        border-radius: none;
    }
}