*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --header-height: 110px;
    --black: #080808;
    --white: #f5f5f0;
    --gray: #1a1a1a;
    --mid: #333;
    --light: #aaa;
    --accent: #fff;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--black);
    color: var(--white);
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    overflow-x: hidden;
    cursor: none;
}

/* CUSTOM CURSOR */
.cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--white);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
}

.cursor-ring {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s;
}

.cursor-ring.expand {
    width: 60px;
    height: 60px;
    border-color: rgba(255, 255, 255, 0.9);
}

/* NOISE OVERLAY */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
    z-index: 1000;
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 28px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid transparent;
    transition: border-color 0.4s, background 0.4s, padding 0.4s;
}

header.scrolled {
    border-bottom-color: rgba(255, 255, 255, 0.08);
    background: rgba(8, 8, 8, 0.92);
    backdrop-filter: blur(16px);
    padding: 18px 60px;
}

.service-icons {
    width: 5vh;
    height: auto;
}

.arrow-icon {
    width: 3vh;
    height: auto;
}

.logo-image {
    width: 15vh;
    height: auto;
}

nav {
    display: flex;
    gap: 40px;
    list-style: none;
}

nav a {
    color: var(--light);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--white);
    transition: width 0.3s;
}

nav a:hover {
    color: var(--white);
}

nav a:hover::after {
    width: 100%;
}

.nav-cta {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 24px;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
    cursor: pointer;
    background: transparent;
    transition: background 0.3s, color 0.3s;
}

.nav-cta:hover {
    background: #08CB00;
    color: var(--black);
}

/* HAMBURGER */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 26px;
    height: 1px;
    background: var(--white);
    transition: all 0.3s;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--black);
    z-index: 99;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav a {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 48px;
    letter-spacing: 6px;
    color: var(--white);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.mobile-nav a:hover {
    opacity: 1;
}

/* HERO */
#hero {
    height: calc(100vh - var(--header-height));
    margin-top: var(--header-height);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 60px 80px;
    position: relative;
    z-index: 2;
    overflow: hidden;
}


.hero-tower {
    position: absolute;
    right: 25%;
    /* antes 8% → la mueve hacia la izquierda */
    top: 50%;
    transform: translateY(-50%);
}

.hero-tower .kt-tower {
    scale: 7;
    /* antes 3 → más grande */
}

.hero-bg-lines {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-bg-lines span {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.04);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
}

.hero-label {
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--light);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    opacity: 0;
}

.hero-label::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--light);
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    /* font-size: clamp(64px, 10vmin, 160px); */
    font-size: clamp(80px, 14vmin, 200px);
    line-height: 0.9;
    letter-spacing: -1px;
}

.hero-title-line {
    overflow: hidden;
}

.hero-title-inner {
    display: block;
    transform: translateY(110%);
}

.hero-sub {
    margin-top: 40px;
    max-width: 420px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--light);
    opacity: 0;
}

.hero-cta-row {
    margin-top: 48px;
    display: flex;
    gap: 20px;
    align-items: center;
    opacity: 0;
}

.btn-primary {
    background: var(--white);
    color: var(--black);
    padding: 16px 36px;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    transition: background 0.3s, transform 0.2s;
}

/* .btn-primary:hover {
    background: #08CB00;
    transform: translateY(-2px);
} */

.btn-primary:not(:disabled):hover {
    background: #ddd;
    transform: translateY(-2px);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    padding: 16px 36px;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: border-color 0.3s, transform 0.2s;
}

.btn-ghost:hover {
    border-color: var(--white);
    transform: translateY(-2px);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    right: 60px;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--light);
    writing-mode: vertical-rl;
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-scroll::after {
    content: '';
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--light), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {

    0%,
    100% {
        opacity: 0.3;
        height: 60px;
    }

    50% {
        opacity: 1;
        height: 80px;
    }
}

/* BIG NUMBER COUNTER */
.stat-band {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    overflow: hidden;
}

.stat-item {
    flex: 1;
    padding: 60px 40px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    position: relative;
}

.stat-item:last-child {
    border-right: none;
}

.stat-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(48px, 6vw, 80px);
    letter-spacing: 2px;
    line-height: 1;
}

.stat-label {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--light);
    margin-top: 8px;
}

/* SECTION SHARED */
section {
    padding: 120px 60px;
}

.section-tag {
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--light);
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.section-tag::before {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--light);
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(40px, 6vw, 90px);
    line-height: 0.95;
    letter-spacing: 1px;
    margin-bottom: 60px;
}

/* ABOUT */
#about {
    background: var(--black);
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.about-visual {
    max-width: 480px;
    margin: 0 auto;
}

.about-box {
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    background: var(--gray);
}

.about-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.about-box:hover img {
    transform: scale(1.05);
}

.about-box::before {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 100px;
    letter-spacing: 10px;
    color: rgba(255, 255, 255, 0.04);
}

/* 
.about-box-accent {
    position: absolute;
    bottom: -1px;
    left: -1px;
    width: 50%;
    height: 40%;
    border: 1px solid rgba(255, 255, 255, 0.2);
} */

.about-text p {
    font-size: 16px;
    line-height: 1.9;
    color: var(--light);
    margin-bottom: 24px;
}

.about-text p strong {
    color: var(--white);
    font-weight: 400;
}

.about-divider {
    width: 60px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin: 36px 0;
}

.about-values {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.value-item {
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
}

/* SERVICES */
#services {
    background: #0d0d0d;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 20px;
}

.service-card {
    background: #0d0d0d;
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
    transition: background 0.4s;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gray);
    transform: translateY(101%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.18, 1);
}

.service-card:hover::before {
    transform: translateY(0);
}

.service-card:hover .service-num {
    color: rgba(255, 255, 255, 0.15);
}

.service-card:hover .service-name {
    color: var(--white);
}

.service-card:hover .service-desc {
    color: rgba(255, 255, 255, 0.7);
}

.service-card>* {
    position: relative;
    z-index: 1;
}

.service-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 60px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.06);
    transition: color 0.4s;
    margin-bottom: 20px;
}

.service-name {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 16px;
    transition: color 0.4s;
}

.service-desc {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.4s;
}

.service-arrow {
    margin-top: 30px;
    font-size: 20px;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s, transform 0.3s;
}

.service-card:hover .service-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* PORTFOLIO */
#portfolio {
    background: var(--black);
}

.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 20px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto;
    gap: 16px;
}

.port-item {
    position: relative;
    overflow: hidden;
    background: var(--gray);
    aspect-ratio: 16/9;
    cursor: pointer;
}

.port-item:nth-child(1) {
    grid-column: span 5;
}

.port-item:nth-child(2) {
    grid-column: span 4;
}

.port-item:nth-child(3) {
    grid-column: span 4;
}

.port-item:nth-child(4) {
    grid-column: span 8;
}

.port-bg {
    position: absolute;
    inset: 0;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.port-item:hover .port-bg {
    transform: scale(1.06);
}

.port-item:nth-child(1) .port-bg {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
}

.port-item:nth-child(2) .port-bg {
    background: linear-gradient(135deg, #111, #222);
}

.port-item:nth-child(3) .port-bg {
    background: linear-gradient(135deg, #0f0f0f, #1f1f1f);
}

.port-item:nth-child(4) .port-bg {
    background: linear-gradient(135deg, #161616, #262626);
}

.port-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.15;
}

.port-item:nth-child(1) .port-pattern {
    background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0.08) 1px, transparent 0, transparent 50%);
    background-size: 20px 20px;
}

.port-item:nth-child(2) .port-pattern {
    background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 24px 24px;
}

.port-item:nth-child(3) .port-pattern {
    background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0, rgba(255, 255, 255, 0.06) 1px, transparent 0, transparent 30px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0, rgba(255, 255, 255, 0.06) 1px, transparent 0, transparent 30px);
}

.port-item:nth-child(4) .port-pattern {
    background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.06) 0, rgba(255, 255, 255, 0.06) 1px, transparent 0, transparent 40px);
}

.port-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
    transform: translateY(101%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.18, 1);
}

.port-item:hover .port-overlay {
    transform: translateY(0);
}

.port-tag {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--light);
    margin-bottom: 8px;
}

.port-name {
    font-size: 20px;
    font-weight: 400;
}

.port-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.port-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.port-item:hover .port-bg img {
    transform: scale(1.06);
}

/* CONTACT */
#contact {
    background: #0d0d0d;
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: start;
}

.contact-info p {
    font-size: 16px;
    line-height: 1.9;
    color: var(--light);
    margin-bottom: 15px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    letter-spacing: 1px;
    color: var(--light);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-link span {
    width: 30px;
    height: 1px;
    background: currentColor;
}

.contact-link:hover {
    color: var(--white);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-whatsapp {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.whatsapp-text {
    font-size: 14px;
    line-height: 1.8;
    color: var(--light);
}

.whatsapp-text strong {
    color: var(--white);
    font-weight: 400;
}

.whatsapp-btn {
    align-self: flex-start;
    text-decoration: none;
}

.form-field {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 24px 0;
    transition: border-color 0.3s;
}

.form-field:focus-within {
    border-bottom-color: rgba(255, 255, 255, 0.5);
}

.form-field label {
    display: block;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--light);
    margin-bottom: 12px;
}

.form-field input,
.form-field textarea {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--white);
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 300;
    resize: none;
}

.form-field textarea {
    min-height: 100px;
}

.form-submit {
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.form-success {
    margin-top: 20px;
    font-size: 14px;
    color: #4ade80;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-success.show {
    opacity: 1;
}

#submitBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}



/* FOOTER */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    letter-spacing: 4px;
    color: var(--white);
}

.footer-copy {
    font-size: 12px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    /* antes 0.3 */
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    /* antes 0.35 */
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

/* ===== SUCCESS MODAL ===== */

.success-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9999;
}

.success-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.success-box {
    background: var(--white);
    color: var(--black);
    padding: 50px 60px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.success-modal.show .success-box {
    transform: translateY(0);
}

.success-text {
    font-size: 16px;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

.success-close {
    background: var(--black);
    color: var(--white);
    padding: 14px 30px;
    border: none;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
}

.success-close:hover {
    opacity: 0.8;
}

/* ===== PRIVACY MODAL SIMPLE ===== */

.privacy-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 11000;
}

.privacy-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.privacy-box {
    background: var(--white);
    color: var(--black);
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 40px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.privacy-modal.active .privacy-box {
    transform: translateY(0);
}

.privacy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.privacy-header h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    letter-spacing: 2px;
}

.privacy-close {
    background: var(--black);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ===== FULLSCREEN LOADER ===== */

.loader-wrapper {
    position: fixed;
    inset: 0;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader-wrapper.hide {
    opacity: 0;
    visibility: hidden;
}

/* Ajustar tamaño para tu estética */
.loader {
    --size: 180px;
    --logo-color: rgba(255, 255, 255, 0.6);
}

body.loading {
    overflow: hidden;
}

.loader-image {
    width: 4vh;
    height: auto;
}

/* From Uiverse.io by Smit-Prajapati */
.loader {
    --size: 250px;
    --duration: 2s;
    --logo-color: grey;
    --background: linear-gradient(0deg,
            rgba(50, 50, 50, 0.2) 0%,
            rgba(100, 100, 100, 0.2) 100%);
    height: var(--size);
    aspect-ratio: 1;
    position: relative;
}

.loader .box {
    position: absolute;
    background: rgba(100, 100, 100, 0.15);
    background: var(--background);
    border-radius: 50%;
    border-top: 1px solid rgba(100, 100, 100, 1);
    box-shadow: rgba(0, 0, 0, 0.3) 0px 10px 10px -0px;
    backdrop-filter: blur(5px);
    animation: ripple var(--duration) infinite ease-in-out;
}

.loader .box:nth-child(1) {
    inset: 40%;
    z-index: 99;
}

.loader .box:nth-child(2) {
    inset: 30%;
    z-index: 98;
    border-color: rgba(100, 100, 100, 0.8);
    animation-delay: 0.2s;
}

.loader .box:nth-child(3) {
    inset: 20%;
    z-index: 97;
    border-color: rgba(100, 100, 100, 0.6);
    animation-delay: 0.4s;
}

.loader .box:nth-child(4) {
    inset: 10%;
    z-index: 96;
    border-color: rgba(100, 100, 100, 0.4);
    animation-delay: 0.6s;
}

.loader .box:nth-child(5) {
    inset: 0%;
    z-index: 95;
    border-color: rgba(100, 100, 100, 0.2);
    animation-delay: 0.8s;
}

.loader .logo {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    padding: 30%;
}

.loader .logo svg {
    fill: var(--logo-color);
    width: 100%;
    animation: color-change var(--duration) infinite ease-in-out;
}

/* ===== SCROLL TO TOP ===== */

.scroll-top {
    position: fixed;
    bottom: 15px !important;
    right: 15px !important;
    width: 40px;
    height: 40px;
    background: var(--white);
    color: var(--black);
    border: none;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 9000;
    border-radius: 50%;
}

.scroll-top.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-top:hover {
    transform: translateY(-4px);
}


/* ===== ANIMACION ===== */
/* ===== KORITEK TOWER ANIMATION ===== */

.kt-tower {
    scale: 3;
    height: 50px;
    width: 40px;
}

.kt-box {
    position: relative;
    opacity: 0;
    left: 10px;
}

/* 🔥 Adaptado a blanco minimal */
.kt-side-left {
    position: absolute;
    background-color: #8b9095;
    width: 19px;
    height: 5px;
    transform: skew(0deg, -25deg);
    top: 14px;
    left: 10px;
}

.kt-side-right {
    position: absolute;
    background-color: #BFC9D1;
    width: 19px;
    height: 5px;
    transform: skew(0deg, 25deg);
    top: 14px;
    left: -9px;
}

.kt-side-top {
    position: absolute;
    background-color: #ffffff;
    width: 20px;
    height: 20px;
    rotate: 45deg;
    transform: skew(-20deg, -20deg);
}

/* Animaciones */
.kt-box-1 {
    animation: kt-from-left 4s infinite;
}

.kt-box-2 {
    animation: kt-from-right 4s infinite;
    animation-delay: 1s;
}

.kt-box-3 {
    animation: kt-from-left 4s infinite;
    animation-delay: 2s;
}

.kt-box-4 {
    animation: kt-from-right 4s infinite;
    animation-delay: 3s;
}

.g-recaptcha{
    margin-top: 2vw;
}
/* Keyframes renombrados */
@keyframes kt-from-left {
    0% {
        z-index: 20;
        opacity: 0;
        translate: -20px -6px;
    }

    20% {
        z-index: 10;
        opacity: 1;
        translate: 0px 0px;
    }

    40% {
        z-index: 9;
        translate: 0px 4px;
    }

    60% {
        z-index: 8;
        translate: 0px 8px;
    }

    80% {
        z-index: 7;
        opacity: 1;
        translate: 0px 12px;
    }

    100% {
        z-index: 5;
        translate: 0px 30px;
        opacity: 0;
    }
}

@keyframes kt-from-right {
    0% {
        z-index: 20;
        opacity: 0;
        translate: 20px -6px;
    }

    20% {
        z-index: 10;
        opacity: 1;
        translate: 0px 0px;
    }

    40% {
        z-index: 9;
        translate: 0px 4px;
    }

    60% {
        z-index: 8;
        translate: 0px 8px;
    }

    80% {
        z-index: 7;
        opacity: 1;
        translate: 0px 12px;
    }

    100% {
        z-index: 5;
        translate: 0px 30px;
        opacity: 0;
    }
}


@media (max-width: 900px) {
    .scroll-top {
        right: 30px;
        bottom: 30px;
    }
}

@keyframes ripple {
    0% {
        transform: scale(1);
        box-shadow: rgba(0, 0, 0, 0.3) 0px 10px 10px -0px;
    }

    50% {
        transform: scale(1.3);
        box-shadow: rgba(0, 0, 0, 0.3) 0px 30px 20px -0px;
    }

    100% {
        transform: scale(1);
        box-shadow: rgba(0, 0, 0, 0.3) 0px 10px 10px -0px;
    }
}

@keyframes color-change {
    0% {
        fill: var(--logo-color);
    }

    50% {
        fill: white;
    }

    100% {
        fill: var(--logo-color);
    }
}



/* FADE-IN UTILITY */
.reveal {
    opacity: 0;
    transform: translateY(40px);
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 3px;
}

::-webkit-scrollbar-track {
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    header {
        padding: 24px 30px;
    }

    header.scrolled {
        padding: 16px 30px;
    }

    nav,
    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    section {
        padding: 80px 30px;
    }

    #hero {
        padding: 20px 30px 60px;
    }

    .about-inner {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .portfolio-grid {
        display: flex;
        flex-direction: column;
    }

    .port-item:nth-child(n) {
        grid-column: auto;
    }

    .contact-inner {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    footer {
        padding: 30px 30px;
        flex-direction: column;
        text-align: center;
    }

    .stat-band {
        flex-wrap: wrap;
    }

    .stat-item {
        flex: 0 0 50%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .hero-scroll {
        display: none;
    }

    .hero-tower {
        display: none;
    }
}

@media (max-height: 750px) {
    .hero-title {
        font-size: clamp(56px, 8vmin, 120px);
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .stat-item {
        flex: 0 0 100%;
    }
}