:root {
    --bg-color: #F7F7F7;
    --text-main: #0A0A0A;
    --text-muted: #666666;
    --accent: #111111;
    --border: rgba(0, 0, 0, 0.08);
    --nav-height: 80px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
    /* Ocultar cursor por defecto para usar el custom */
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

html::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari/Opera */
}

/* Custom Cursor (+) */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cursor-x,
.cursor-y {
    position: absolute;
    background: #fff;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.cursor-x {
    width: 16px;
    height: 1.5px;
}

.cursor-y {
    width: 1.5px;
    height: 16px;
}

.cursor.hovered {
    transform: scale(1.5) rotate(90deg);
}

/* Subtle Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0.8;
    pointer-events: none;
}

/* Typography */
h1,
h2,
.syncopate {
    font-family: 'Syncopate', sans-serif;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2rem, 6vw, 7rem);
    font-weight: 700;
    line-height: 1.05;
    word-break: break-word;
    overflow-wrap: break-word;
}

h2 {
    font-size: clamp(1.8rem, 3vw, 3.5rem);
    font-weight: 400;
    line-height: 1.2;
}

p {
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    line-height: 1.6;
    color: var(--text-muted);
    font-weight: 300;
}

b,
strong {
    color: var(--text-main);
    font-weight: 600;
}

a,
button {
    text-decoration: none;
    color: var(--text-main);
    background: none;
    border: none;
    outline: none;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4vw;
    z-index: 100;
    background: transparent;
    color: var(--text-main);
}

nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150%;
    background: linear-gradient(to bottom, rgba(247, 247, 247, 0.95) 0%, rgba(247, 247, 247, 0.6) 60%, rgba(247, 247, 247, 0) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    z-index: -1;
    pointer-events: none;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 4vw;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2vw;
}

.nav-logo {
    height: 60px;
    width: auto;
}

.nav-indicator {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-main);
}

.nav-indicator::after {
    content: '';
    display: block;
    width: 50px;
    height: 1px;
    background: var(--text-main);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.hamburger span {
    width: 30px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.logo {
    font-family: 'Syncopate', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2.5vw;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: inherit;
    transition: opacity 0.3s ease;
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    white-space: nowrap;
}

.nav-link:hover {
    opacity: 0.6;
}

.nav-link-cta {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--bg-color);
    background: var(--text-main);
    padding: 0.6rem 1.6rem;
    border: 1px solid var(--text-main);
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    white-space: nowrap;
}

.nav-link-cta:hover {
    background: transparent;
    color: var(--text-main);
}

/* Intermediate screen sizes (Laptop/small Desktop) */
@media (min-width: 1025px) and (max-width: 1350px) {
    nav {
        padding: 0 2vw;
    }
    .nav-left {
        gap: 2vw;
    }
    .nav-menu {
        gap: 1.5vw;
    }
    .nav-link, .nav-link-cta {
        font-size: 0.75rem;
        letter-spacing: 0.08em;
    }
    .nav-link-cta {
        padding: 0.5rem 1.2rem;
    }
    .logo {
        font-size: 1rem;
    }
}

/* Horizontal Scroll Layout */
.scroll-track {
    position: relative;
    /* La altura se calcula con JS para permitir scroll */
}

.scroll-container {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    will-change: transform;
}

.panel {
    position: relative;
    height: 100vh;
    padding: calc(var(--nav-height) + 2vh) 4vw 6vh 4vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--border);
    flex-shrink: 0;
}

#hero {
    width: 100vw;
}

#about {
    width: 65vw;
}

#services {
    width: 230vw;
    flex-direction: row;
    align-items: center;
    gap: 3vw;
}

#testimonials {
    width: 100vw;
    flex-direction: column;
    align-items: center;
    padding: calc(var(--nav-height) + 2vh) 4vw 6vh 4vw;
}

#faq-cta {
    width: 100vw;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
}

#partner {
    width: 65vw;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Hero */
.hero-content {
    max-width: 90%;
}

.hero-subtitle {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
    display: block;
}

.hero-desc {
    margin-top: 3rem;
    max-width: 550px;
}

/* About */
.about-text {
    max-width: 900px;
}

/* Services */
.services-intro {
    width: 40vw;
    padding-right: 5vw;
    flex-shrink: 0;
}

.service-card {
    width: 450px;
    height: 60vh;
    min-height: 580px;
    border: 1px solid var(--border);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    background: #fff;
    transition: transform 0.5s ease;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--text-main);
}

.service-num {
    font-family: 'Syncopate', sans-serif;
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 700;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.service-cta-card {
    background: var(--text-main);
    color: white;
    border: none;
}

.service-cta-card p,
.service-cta-card .service-title {
    color: white;
}

.btn-luxury {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    margin-top: auto;
    transition: all 0.3s ease;
}

.btn-luxury:hover {
    background: white;
    color: var(--text-main);
}

.btn-more-info {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 1rem 2rem;
    border: 1px solid var(--text-main);
    color: var(--text-main);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    margin-top: auto;
    transition: all 0.3s ease;
    background: transparent;
    width: 100%;
}

.btn-more-info:hover {
    background: var(--text-main);
    color: white;
}

.service-card .btn-luxury {
    width: 100%;
    justify-content: flex-start;
}

/* Testimonials */
.testimo-carousel {
    width: 70vw;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 0 auto;
}

.testimo-slides {
    position: relative;
    width: 100%;
    min-height: 400px;
}

.testimo-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.testimo-slide.active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
    /* para que el contenedor adquiera la altura del slide activo */
}

.testimo-slide:not(.active) {
    position: absolute;
}

.testimo-quote {
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
    line-height: 1.4;
    color: var(--text-main);
    margin-bottom: 3rem;
    font-weight: 300;
}

.author-name {
    font-family: 'Syncopate', sans-serif;
    font-size: 1rem;
    font-weight: 700;
}

.author-role {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.testimo-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.testimo-btn {
    font-size: 1.5rem;
    font-family: 'Manrope', sans-serif;
    background: transparent;
    border: none;
    color: var(--text-main);
    transition: opacity 0.3s ease;
    padding: 0.5rem;
}

.testimo-btn:hover {
    opacity: 0.5;
}

.testimo-counter {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* FAQ & CTA */
.faq-section {
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: calc(var(--nav-height) + 6vh);
    padding-right: 5vw;
}

.cta-section {
    width: 50%;
    padding-left: 5vw;
    border-left: 1px solid var(--border);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: calc(var(--nav-height) + 6vh);
}

.cta-section .btn-luxury {
    margin-top: 1.5rem;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
}

.faq-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-main);
    font-family: 'Manrope', sans-serif;
    transition: color 0.3s ease;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-content p {
    padding-top: 1rem;
    font-size: 0.95rem;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 200;
    transition: transform 0.3s ease;
}

.faq-item.faq-open .faq-icon {
    transform: rotate(45deg);
}

.btn-dark {
    background: var(--text-main);
    color: white;
    border: 1px solid var(--text-main);
}

.btn-dark:hover {
    background: transparent;
    color: var(--text-main);
}

/* Animations & Reveal */
.reveal {
    opacity: 0;
    transform: translateX(40px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateX(0);
}

/* Hero CSS-only entrance animation (no JS dependency for LCP) */
@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#hero .hero-content > * {
    animation: heroFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

#hero .hero-content > *:nth-child(1) { animation-delay: 0.05s; }
#hero .hero-content > *:nth-child(2) { animation-delay: 0.15s; }
#hero .hero-content > *:nth-child(3) { animation-delay: 0.25s; }
#hero .hero-content > *:nth-child(4) { animation-delay: 0.35s; }

/* Letras tipo máquina de escribir fina */
.typewriter-word {
    position: relative;
    display: inline-block;
}

.typewriter-word::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 10%;
    height: 80%;
    width: 2px;
    background: var(--text-main);
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Responsive Mobile - Vertical Fallback */
@media (max-width: 1024px) {
    html,
    body {
        overflow-x: hidden !important;
        cursor: auto !important;
        width: 100%;
    }

    * {
        cursor: auto !important;
    }

    .cursor {
        display: none !important;
    }

    /* ---- Navigation ---- */
    nav {
        background: transparent;
        color: var(--text-main);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding: 0 5vw;
        height: 70px;
    }

    .nav-left {
        overflow: hidden;
    }

    .nav-logo {
        height: 45px;
        filter: none;
    }

    .logo {
        font-size: 1rem;
    }

    .nav-indicator {
        display: none;
    }

    .hamburger {
        display: flex;
        z-index: 102;
    }

    .hamburger span {
        background: var(--text-main);
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

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

    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 100;
        padding-top: var(--nav-height);
        visibility: hidden;
    }

    .nav-menu.active {
        transform: translateX(0);
        visibility: visible;
    }

    .nav-link {
        font-size: 1.3rem;
        color: var(--text-main);
    }

    .nav-link-cta {
        font-size: 1.1rem;
        color: var(--bg-color);
        background: var(--text-main);
        border-color: var(--text-main);
        padding: 0.8rem 2rem;
    }

    .nav-link-cta:hover {
        background: transparent;
        color: var(--text-main);
    }

    /* ---- Horizontal → Vertical Layout ---- */
    .scroll-track {
        height: auto !important;
    }

    .scroll-container {
        position: relative;
        display: flex;
        flex-direction: column;
        height: auto;
        width: 100% !important;
        transform: none !important;
    }

    .panel {
        width: 100% !important;
        height: auto;
        min-height: auto;
        padding: 100px 6vw 50px 6vw;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    /* ---- Hero ---- */
    #hero {
        min-height: 85vh;
        display: flex;
        align-items: center;
    }

    .hero-content {
        max-width: 100%;
    }

    h1 {
        font-size: clamp(1.6rem, 7vw, 3.5rem);
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 0.75rem;
        letter-spacing: 0.15em;
        margin-bottom: 1.5rem;
    }

    .hero-desc {
        margin-top: 2rem;
        max-width: 100%;
        font-size: 0.95rem;
    }

    /* ---- About ---- */
    #about {
        min-height: 60vh;
    }

    .about-text h2 {
        font-size: clamp(1.2rem, 4.5vw, 2rem);
    }

    /* ---- Services ---- */
    #services {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding-bottom: 50px;
    }

    .services-intro {
        width: 100%;
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .services-intro h2 {
        font-size: clamp(1.3rem, 5vw, 2rem);
    }

    .services-intro p {
        margin-top: 1rem !important;
        font-size: 0.95rem;
    }

    .service-card {
        width: 100%;
        height: 550px;
        padding: 2.5rem;
        margin-bottom: 1rem;
        display: flex;
        flex-direction: column;
    }

    .service-num {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .service-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .service-card p {
        font-size: 0.9rem;
    }

    .service-card .btn-more-info,
    .service-card .btn-luxury {
        margin-top: auto;
        padding: 0.8rem 1.5rem;
        font-size: 0.75rem;
    }

    /* ---- Partner ---- */
    #partner {
        min-height: 60vh;
    }

    #partner .cta-section {
        padding-left: 0;
        border-left: none;
    }

    #partner .cta-section h2 {
        font-size: clamp(1.2rem, 5vw, 2rem);
    }

    #partner .cta-section p {
        font-size: 0.95rem !important;
        margin: 1.5rem auto !important;
    }

    /* ---- Testimonials ---- */
    #testimonials {
        flex-direction: column;
        align-items: flex-start;
        min-height: auto;
        padding-bottom: 50px;
    }

    .testimo-carousel {
        width: 100%;
        margin-bottom: 0;
    }

    .testimo-slides {
        min-height: 280px;
    }

    .testimo-quote {
        font-size: clamp(1.1rem, 4vw, 1.6rem);
        margin-bottom: 1.5rem;
    }

    .author-name {
        font-size: 0.85rem;
    }

    .author-role {
        font-size: 0.8rem;
    }

    /* ---- FAQ & CTA ---- */
    #faq-cta {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 50px;
    }

    .faq-section {
        width: 100%;
        padding: 0;
        padding-top: 0;
        margin-bottom: 3rem;
    }

    .faq-section h2 {
        font-size: 1.3rem !important;
        margin-bottom: 1.5rem !important;
    }

    .faq-btn {
        font-size: 0.95rem;
        padding: 0.3rem 0;
    }

    .faq-item {
        padding: 1.2rem 0;
    }

    .faq-content p {
        font-size: 0.85rem;
    }

    .cta-section {
        width: 100%;
        padding: 0;
        padding-left: 0;
        border: none;
        border-left: none;
        margin-bottom: 0;
    }

    .cta-section h2 {
        font-size: clamp(1.2rem, 5vw, 2rem);
    }

    .cta-section p {
        font-size: 0.95rem !important;
        margin: 1rem 0 !important;
    }

    .cta-section .btn-luxury {
        align-self: flex-start !important;
        font-size: 0.75rem;
        padding: 0.8rem 1.5rem;
    }

    /* ---- Reveal animations ---- */
    .reveal {
        transform: translateY(30px);
    }

    .reveal.active {
        transform: translateY(0);
    }

    /* ---- Footer ---- */
    .site-footer {
        position: relative;
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 2rem 6vw;
    }

    .footer-brand {
        flex-direction: column;
        align-items: center;
        max-width: 100%;
    }

    .footer-logo {
        height: 35px;
    }

    .footer-slogan {
        font-size: 0.8rem;
        text-align: center;
    }

    .footer-legal {
        flex-direction: column;
        gap: 0.8rem;
    }

    .footer-link {
        font-size: 0.75rem;
    }

    .footer-copy p {
        font-size: 0.7rem;
    }

    /* ---- Overlays ---- */
    .overlay-content {
        width: 95%;
        max-width: 100%;
        padding: 2.5rem 1.5rem;
        max-height: 90vh;
        overflow-y: auto;
    }

    .form-step h2 {
        font-size: 1.3rem;
        margin-bottom: 2rem;
    }

    .form-selector .btn-luxury {
        font-size: 0.75rem;
        padding: 0.8rem 1.2rem;
    }

    .locksphere-form input,
    .locksphere-form textarea,
    .locksphere-form select {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .btn-luxury {
        font-size: 0.75rem;
        padding: 0.8rem 1.5rem;
    }
}

/* Footer */
.site-footer {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3rem 4vw;
    background: var(--text-main);
    color: #fff;
    gap: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    max-width: 500px;
}

.footer-logo {
    height: 40px;
    width: auto;
}

.footer-slogan {
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    margin: 0;
}

.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-linkedin {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-linkedin:hover {
    color: #fff;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-link {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 300;
}

.footer-link:hover {
    color: #fff;
}

.footer-copy {
    display: flex;
    align-items: center;
}

.footer-copy p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

/* Contact Overlay */
.contact-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.contact-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.overlay-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    background: #111;
    padding: 4rem 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.close-overlay {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    color: #fff;
    background: transparent;
    border: none;
    transition: transform 0.3s ease;
}

.close-overlay:hover {
    transform: rotate(90deg);
}

.service-content {
    width: 50%;
    height: 60%;
    max-width: none;
    display: flex;
    flex-direction: column;
    transform: perspective(1000px) scale(0.95) rotateX(10deg);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.contact-overlay.active .service-content {
    transform: perspective(1000px) scale(1) rotateX(0deg);
}

@media (max-width: 1024px) {
    .service-content {
        width: 95% !important;
        height: auto !important;
        max-height: 85vh;
        overflow-y: auto;
    }
}

/* Extra small devices (phones < 375px) */
@media (max-width: 374px) {
    h1 {
        font-size: 1.4rem !important;
    }

    .hero-subtitle {
        font-size: 0.65rem;
    }

    .logo {
        font-size: 0.85rem;
    }

    .nav-logo {
        height: 35px;
    }

    nav {
        height: 60px;
    }

    .panel {
        padding: 80px 5vw 40px 5vw;
    }

    .nav-link {
        font-size: 1.1rem;
    }

    .nav-link-cta {
        font-size: 0.95rem;
    }

    .service-card {
        padding: 1.2rem;
    }

    .overlay-content {
        padding: 2rem 1.2rem;
    }
}

.form-step {
    display: none;
    flex-direction: column;
    animation: fadeIn 0.5s ease;
}

.form-step.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.form-step h2 {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    text-align: center;
}

.form-selector {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-selector .btn-luxury {
    width: 100%;
    justify-content: center;
}

.btn-back {
    align-self: flex-start;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.btn-back:hover {
    color: #fff;
}

.locksphere-form .form-group {
    margin-bottom: 1.5rem;
}

.locksphere-form label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
}

.locksphere-form input,
.locksphere-form textarea,
.locksphere-form select {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem;
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.locksphere-form input:focus,
.locksphere-form textarea:focus,
.locksphere-form select:focus {
    outline: none;
    border-color: #fff;
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '▼';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
    font-size: 0.8rem;
}

.locksphere-form select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 3rem;
}

.locksphere-form select option {
    background: var(--text-main);
    color: #fff;
}

.form-actions {
    margin-top: 2rem;
}

.form-actions .btn-luxury {
    width: 100%;
    justify-content: center;
    background: #fff;
    color: var(--text-main);
}

.form-actions .btn-luxury:hover {
    background: transparent;
    color: #fff;
}

.form-status {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

.form-status.success {
    color: #4ade80;
}

.form-status.error {
    color: #f87171;
}