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

@font-face {
    font-family: 'Good Times';
    src: url('../fonts/GoodTimesRg-Regular/good-times.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Atures';
    src: url('../fonts/Atures/Atures-300_PERSONAL_USE.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


/* Reveal animations on scroll */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.2, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal.reveal-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

:root {
    --primary-dark: #1a1a1a;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f8f8;
    --white: #ffffff;
    --accent-brown: #6b3a2a;
    --accent-yellow: #f5d547;
    --border-color: #e0e0e0;
}

body {
    font-family: 'Avenir Next', 'Avenir', 'Montserrat', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0 40px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.45s ease, backdrop-filter 0.45s ease,
        -webkit-backdrop-filter 0.45s ease, box-shadow 0.45s ease,
        border-color 0.45s ease, height 0.45s ease;
}

/* Liquid glass al hacer scroll: translucido para no tapar el contenido */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    backdrop-filter: blur(22px) saturate(180%);
    height: 70px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(31, 38, 60, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.logo-valuarte {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 60px;
}

.logo-frame {
    width: 45px;
    height: 60px;
    border: 1.5px solid #CAA874;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    background: transparent;
}

.nav-logo-svg {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
}

.logo-text-stack {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
    min-width: 180px;
    /* Asegurar espacio para la alineación */
}

.logo-constructora {
    font-family: 'Atures', sans-serif;
    font-size: 14px;
    text-transform: lowercase;
    color: var(--text-dark);
    letter-spacing: 4px;
    font-weight: 300;
    margin-bottom: 2px;
    text-align: center;
    /* Centrado */
    width: 100%;
}


.logo-main {
    font-family: 'Good Times', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #2F3B4A;
    letter-spacing: -0.5px;
    margin-bottom: 2px;
    display: flex;
    justify-content: center;
}



.logo-main .arte {
    color: #CAA874;
}

.logo-slogan {
    font-family: 'Mistral', 'Dancing Script', cursive;
    font-size: 17px;
    color: var(--text-light);
    text-align: right;
    /* Alineado a la derecha */
    width: 100%;
}



.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-family: 'Good Times', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: color 0.3s;
    position: relative;
    text-transform: uppercase;
}


.nav-links a:hover {
    color: var(--accent-brown);
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    border: 1px solid var(--text-dark);
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-cta:hover {
    background: var(--text-dark);
    color: var(--white);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    margin-top: 80px;
    /* Hero alto: el recorrido de scroll que mantiene la casa fija (sticky)
       mientras se deconstruye por fases */
    height: 300vh;
    background: #2b3647;
}

/* Capa pegajosa: la casa permanece fija en pantalla hasta terminar la deconstrucción */
.hero-sticky {
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow: hidden;
}

/* Panel de fases de deconstrucción (lado derecho) */
.hero-phases {
    position: absolute;
    right: 80px;
    top: 64%;
    width: 320px;
    max-width: 38vw;
    z-index: 3;
    pointer-events: none;
    padding: 20px 22px;
    /* Fondo translúcido sólido (sin backdrop-filter): el panel está sobre el lienzo
       3D que se repinta cada frame, así que un blur se recalcularía constantemente. */
    background: rgba(18, 24, 34, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.hero-phases-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.hero-phases-label {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.hero-phases-pct {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.hero-phases-track {
    height: 2px;
    width: 100%;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
    margin-bottom: 16px;
}

.hero-phases-bar {
    height: 100%;
    width: 100%;
    background: #ffffff;
    transition: width 0.3s ease-out;
}

.hero-phases-name {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 6px;
}

.hero-phases-desc {
    font-size: 12px;
    line-height: 1.55;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 14px;
}

.hero-phases-foot {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-family: 'Courier New', monospace;
    font-size: 10px;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.4);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    opacity: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 80px;
    pointer-events: none;
}

.hero-text {
    max-width: 600px;
    text-align: left;
    pointer-events: auto;
}

.hero-image-geometric {
    position: relative;
    width: 600px;
    height: 450px;
    overflow: hidden;
    isolation: isolate;
    clip-path: path("M 78 0 H 485 Q 505 0 519 14 L 586 81 Q 600 95 600 115 V 372 Q 600 450 522 450 H 120 Q 95 450 78 432 L 18 372 Q 0 355 0 330 V 78 Q 0 0 78 0 Z");
}

/* Variant for Valuarte Logo */
.hero-image-geometric.logo-variant {
    clip-path: none;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 550px;
}

.hero-image-geometric.logo-variant::after {
    display: none;
}


.hero-image-geometric::after {
    content: '';
    position: absolute;
    inset: 0;
    background: center / 100% 100% no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 450' preserveAspectRatio='none'%3E%3Cpath d='M78 1 H485 Q505 1 519 15 L586 82 Q599 95 599 115 V372 Q599 449 522 449 H120 Q96 449 79 432 L19 372 Q1 355 1 330 V78 Q1 1 78 1 Z' fill='none' stroke='rgba(255,255,255,0.92)' stroke-width='3'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 2;
}

.hero-image-geometric img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    clip-path: path("M 78 0 H 485 Q 505 0 519 14 L 586 81 Q 600 95 600 115 V 372 Q 600 450 522 450 H 120 Q 95 450 78 432 L 18 372 Q 0 355 0 330 V 78 Q 0 0 78 0 Z");
}

.hero-image-geometric.logo-variant .hero-logo-composite {
    width: auto;
    height: 100%;
    max-height: 550px;
    clip-path: none;
    object-fit: contain;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.5));
    animation: float 6s ease-in-out infinite;
    -webkit-animation: float 6s ease-in-out infinite;
    overflow: visible;
    z-index: 10;
}

@keyframes float {

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

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

@-webkit-keyframes float {

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

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

/* Entrance Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

@-webkit-keyframes fadeInDown {
    from {
        opacity: 0;
        -webkit-transform: translateY(-20px);
    }

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

@-webkit-keyframes fadeInUp {
    from {
        opacity: 0;
        -webkit-transform: translateY(40px);
    }

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@-webkit-keyframes fadeInScale {
    from {
        opacity: 0;
        -webkit-transform: scale(0.9);
    }

    to {
        opacity: 1;
        -webkit-transform: scale(1);
    }
}

.navbar {
    animation: fadeInDown 0.8s ease-out both;
    -webkit-animation: fadeInDown 0.8s ease-out both;
}

.hero-title .serif-title {
    animation: fadeInUp 1s ease-out 0.2s both;
    -webkit-animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-title .modern-title {
    animation: fadeInUp 1s ease-out 0.4s both;
    -webkit-animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-subtitle {
    animation: fadeInUp 1s ease-out 0.6s both;
    -webkit-animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-btn {
    animation: fadeInUp 1s ease-out 0.8s both;
    -webkit-animation: fadeInUp 1s ease-out 0.8s both;
}

.hero-logo-composite {
    animation: fadeInScale 1.2s cubic-bezier(0.2, 1, 0.3, 1) 0.5s both, float 6s ease-in-out infinite 1.7s;
    -webkit-animation: fadeInScale 1.2s cubic-bezier(0.2, 1, 0.3, 1) 0.5s both, float 6s ease-in-out infinite 1.7s;
}


.hero-title {
    margin-bottom: 32px;
    line-height: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-title .serif-title {
    font-family: 'Playfair Display', serif;
    font-size: 72px;
    font-weight: 500;
    color: var(--white);
    letter-spacing: 2px;
    display: flex;
    align-items: baseline;
    gap: 20px;
}

.hero-title .serif-title .de {
    font-size: 42px;
    font-weight: 400;
    opacity: 0.9;
}

.hero-title .modern-title {
    font-family: 'Good Times', sans-serif;
    font-size: 100px;
    font-weight: 400;
    color: var(--white);
    letter-spacing: 8px;
    line-height: 0.9;
    text-transform: uppercase;
}



.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 40px;
}

.hero-btn {
    display: inline-block;
    padding: 16px 48px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: #CAA874;
    /* Gold color from the image */
    text-decoration: none;
    font-size: 18px;
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
    transition: all 0.3s;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
}

.hero-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #CAA874;
}


.hero-image-frame {
    position: absolute;
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 350px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    overflow: hidden;
}

.hero-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}


/* ===== SECTION: QUIENES SOMOS (MODULAR) ===== */
/* Los estilos se encuentran en /assets/css/sections/quienes-somos.css */


.tiempo-btn:hover {
    background: var(--text-dark);
    color: var(--white);
}

/* ===== SECTION: COMBINACIONES ===== */
.section-combinaciones {
    padding: 100px 80px;
    background: var(--white);
    text-align: center;
}

.section-combinaciones h2 {
    font-size: 42px;
    margin-bottom: 60px;
    color: var(--text-dark);
}

.combinaciones-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.combo-card {
    position: relative;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
    clip-path: polygon(15% 0%, 100% 0%, 100% 85%, 85% 100%, 0% 100%, 0% 15%);
}

.combo-card:hover {
    transform: translateY(-8px);
}

.combo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.combo-card:hover img {
    transform: scale(1.05);
}

.combo-label {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    text-align: left;
    line-height: 1.4;
}

.catalogo-btn {
    display: inline-block;
    padding: 16px 48px;
    border: 1px solid var(--text-dark);
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    border-radius: 4px;
    margin-top: 20px;
}

.catalogo-btn:hover {
    background: var(--text-dark);
    color: var(--white);
}

/* ===== SECTION: TRANSFORMACION SOSTENIBLE ===== */
.section-transformacion {
    padding: 120px 80px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    gap: 80px;
    position: relative;
    overflow: hidden;
}

.transformacion-text {
    flex: 1;
    max-width: 500px;
}

.transformacion-text h2 {
    font-size: 42px;
    margin-bottom: 24px;
    color: var(--text-dark);
    line-height: 1.2;
}

.transformacion-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 30px;
}

.transformacion-image-container {
    flex: 1;
    position: relative;
}

.transformacion-image {
    width: 100%;
    max-width: 600px;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    position: relative;
    z-index: 2;
}

.yellow-shape {
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--accent-yellow);
    border-radius: 20px;
    z-index: 1;
}

.yellow-shape.top {
    top: -40px;
    right: 80px;
    transform: rotate(15deg);
}

.yellow-shape.bottom {
    bottom: -40px;
    left: 80px;
    transform: rotate(-15deg);
}

.novopan-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 120px;
    height: 120px;
    z-index: 3;
}

.novopan-badge svg {
    width: 100%;
    height: 100%;
}

/* ===== SECTION: IDEAS Y PROYECTOS ===== */
.section-ideas {
    padding: 100px 80px;
    background: var(--white);
    text-align: center;
}

.section-ideas h2 {
    font-size: 42px;
    margin-bottom: 60px;
    color: var(--text-dark);
}

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

.ideas-nav {
    display: flex;
    gap: 12px;
}

.ideas-nav button {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background: transparent;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
}

.ideas-nav button:hover {
    background: var(--text-dark);
    color: var(--white);
    border-color: var(--text-dark);
}

.ideas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.idea-card {
    text-align: left;
    cursor: pointer;
    transition: transform 0.3s;
}

.idea-card:hover {
    transform: translateY(-4px);
}

.idea-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
}

.idea-tag {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.idea-title {
    font-size: 18px;
    color: var(--text-dark);
    line-height: 1.4;
    font-family: 'Avenir Next', 'Avenir', 'Montserrat', sans-serif;
    font-weight: 400;
}

/* ===== SECTION: FILOSOFIA ===== */
.section-filosofia {
    padding: 120px 80px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    gap: 80px;
}

.filosofia-image-container {
    flex: 1;
    position: relative;
}

.filosofia-image {
    width: 100%;
    max-width: 550px;
    height: 450px;
    object-fit: cover;
    border-radius: 12px;
    position: relative;
    z-index: 2;
}

.filosofia-label {
    position: absolute;
    bottom: 60px;
    left: 40px;
    background: rgba(0, 0, 0, 0.6);
    color: var(--white);
    padding: 20px 30px;
    border-radius: 12px;
    font-size: 28px;
    font-family: 'Playfair Display', serif;
    z-index: 3;
    backdrop-filter: blur(5px);
}

.filosofia-text {
    flex: 1;
    max-width: 500px;
}

.filosofia-text h2 {
    font-size: 42px;
    margin-bottom: 24px;
    color: var(--text-dark);
    line-height: 1.2;
}

.filosofia-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

.filosofia-text a {
    color: var(--text-dark);
    text-decoration: underline;
    font-weight: 500;
}

.filosofia-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 16px 40px;
    border: 1px solid var(--text-dark);
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    border-radius: 4px;
}

.filosofia-btn:hover {
    background: var(--text-dark);
    color: var(--white);
}

/* ===== FOOTER ===== */
.footer {
    background: #2b3647;
    color: var(--white);
    padding: 60px 80px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Avenir Next', 'Avenir', 'Montserrat', sans-serif;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--white);
}

.footer-contact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s;
}

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

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
}

/* ===== FOOTER MARQUEE REFINADO ===== */
.footer-marquee-container {
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
    position: relative;
    margin-bottom: 20px;
}

.footer-marquee-content {
    display: flex;
    white-space: nowrap;
    animation: footer-marquee 40s linear infinite;
    gap: 30px;
    align-items: center;
}

.footer-marquee-content span {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 1px;
    text-transform: none;
    /* Quitamos el mayúsculas para que sea más suave */
}

.footer-marquee-content .sep {
    color: rgba(255, 255, 255, 0.1);
    font-weight: 300;
}


@keyframes footer-marquee {
    0% {
        transform: translateX(0);
    }

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

.footer-social {
    display: flex;
    gap: 16px;
    align-items: center;
}

.footer-social span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: #CAA874;
}

.footer-logo-valuarte {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.footer-logo-valuarte .logo-text-stack {
    min-width: 220px;
}

.footer-logo-valuarte .logo-constructora,
.footer-logo-valuarte .logo-main,
.footer-logo-valuarte .logo-slogan {
    color: var(--white) !important;
}

.footer-logo-valuarte .logo-main .arte {
    color: #CAA874 !important;
}


.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none !important;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 999;
    transition: transform 0.3s;
    border: none !important;
}

.whatsapp-float i {
    text-decoration: none !important;
    display: block;
    line-height: 1;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    text-decoration: none !important;
    color: var(--white);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1280px) {
    .combinaciones-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ideas-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 769px) and (max-width: 1280px) {
    .navbar {
        padding: 0 28px !important;
        height: 76px !important;
    }

    .logo-valuarte {
        gap: 12px !important;
        height: 54px !important;
    }

    .logo-frame {
        width: 40px !important;
        height: 54px !important;
        flex: 0 0 40px !important;
        padding: 4px !important;
    }

    .logo-text-stack {
        min-width: 150px !important;
    }

    .logo-constructora {
        font-size: 10px !important;
        letter-spacing: 1.6px !important;
    }

    .logo-main {
        font-size: 21px !important;
    }

    .logo-slogan {
        font-size: 14px !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
    }

    .nav-links {
        display: none !important;
    }

    .hero {
        margin-top: 76px !important;
        min-height: calc(100vh - 76px) !important;
    }

    #three-canvas {
        touch-action: pan-y !important;
    }

    .hero-content {
        padding: 40px 40px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 40px !important;
    }

    .hero-text {
        max-width: 58% !important;
        flex: 1 1 auto !important;
    }

    .hero-title {
        margin-bottom: 24px !important;
    }

    .hero-title .serif-title {
        font-size: 42px !important;
        gap: 12px !important;
    }

    .hero-title .serif-title .de {
        font-size: 24px !important;
    }

    .hero-title .modern-title {
        font-size: 60px !important;
        letter-spacing: 3px !important;
    }

    .hero-btn {
        padding: 14px 32px !important;
        font-size: 15px !important;
    }

    /* Reducir y encajar perfectamente el logotipo en tabletas landscape */
    .hero-image-geometric.logo-variant {
        width: 200px !important;
        height: 380px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        margin-top: 0 !important;
        margin-right: 0 !important;
        align-self: center !important;
        clip-path: none !important;
        overflow: visible !important;
    }

    .hero-image-geometric.logo-variant .hero-logo-composite {
        width: 100% !important;
        height: 100% !important;
        max-height: 380px !important;
        clip-path: none !important;
        object-fit: contain !important;
    }

    /* Padding unificado para todas las secciones nuevas en tabletas landscape */
    .section-quienes-somos,
    .section-servicios,
    .section-lanzamiento,
    .section-video-hero,
    .section-portafolio,
    .section-calculadora,
    .section-inversion,
    .section-contacto,
    .footer {
        padding-left: 40px !important;
        padding-right: 40px !important;
    }

    /* Alinear logotipo y redes sociales a la derecha en el footer en tabletas */
    .footer-right {
        align-items: flex-end !important;
    }

    .footer-logo-valuarte {
        justify-content: flex-end !important;
    }

    .footer-logo-valuarte .logo-valuarte {
        justify-content: flex-end !important;
        width: auto !important;
        height: auto !important;
        gap: 12px !important;
        align-items: center !important;
    }

    .footer-logo-valuarte .logo-text-stack {
        align-items: flex-start !important;
    }

    .footer-logo-valuarte .logo-constructora,
    .footer-logo-valuarte .logo-main,
    .footer-logo-valuarte .logo-slogan {
        text-align: left !important;
    }
}

@media (max-width: 768px) {

    .section-quienes-somos,
    .section-servicios,
    .section-lanzamiento,
    .section-video-hero,
    .section-portafolio,
    .section-calculadora,
    .section-inversion,
    .section-contacto,
    .footer {
        content-visibility: auto;
        contain-intrinsic-size: 700px;
    }

    .nav-toggle {
        display: inline-flex !important;
        width: 44px;
        height: 44px;
        border: 1px solid rgba(47, 59, 74, 0.2);
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.9);
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }

    .nav-toggle span {
        width: 18px;
        height: 1.5px;
        background: #2F3B4A;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .navbar.menu-open .nav-toggle span:nth-child(1) {
        transform: translateY(6.5px) rotate(45deg);
    }

    .navbar.menu-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    .navbar.menu-open .nav-toggle span:nth-child(3) {
        transform: translateY(-6.5px) rotate(-45deg);
    }

    .navbar {
        padding: 12px 20px !important;
        height: auto !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 12px !important;
        align-items: center !important;
    }

    .nav-links {
        display: none !important;
        width: 100% !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0 !important;
        padding: 8px 0 4px !important;
        margin-top: 2px !important;
        border-top: 1px solid rgba(47, 59, 74, 0.08) !important;
    }

    .navbar.menu-open .nav-links {
        display: flex !important;
    }

    .nav-links li {
        width: 100% !important;
    }

    .nav-links a {
        display: block !important;
        width: 100% !important;
        padding: 12px 0 !important;
        font-size: 12px !important;
    }

    .navbar .logo-valuarte {
        width: auto !important;
        height: auto !important;
        justify-content: flex-start !important;
        gap: 12px !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    .navbar .logo-frame {
        order: 0 !important;
        width: 30px !important;
        height: 40px !important;
        flex: 0 0 30px !important;
        padding: 4px !important;
        min-width: 30px !important;
        max-width: 30px !important;
        min-height: 40px !important;
        max-height: 40px !important;
    }

    .nav-logo-svg {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
    }

    .navbar .logo-text-stack {
        order: 0 !important;
        min-width: 0 !important;
        flex: 1 !important;
        align-items: flex-start !important;
    }

    .navbar .logo-constructora,
    .navbar .logo-main,
    .navbar .logo-slogan {
        text-align: left !important;
        width: auto !important;
    }

    .navbar .logo-constructora {
        font-size: 9px !important;
        letter-spacing: 1.4px !important;
    }

    .navbar .logo-main {
        justify-content: flex-start !important;
        font-size: 17px !important;
    }

    .navbar .logo-slogan {
        font-size: 12px !important;
    }

    .hero-content {
        padding: 40px 20px 32px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 30px !important;
    }

    .hero {
        /* Hero alto en móvil: permite que la casa quede fija (sticky) mientras
           se deconstruye con el scroll del dedo */
        min-height: calc(100vh - 76px) !important;
        height: 260vh !important;
    }

    /* La casa permanece fija también en móvil hasta terminar la deconstrucción */
    .hero-sticky {
        position: sticky !important;
        top: 76px !important;
        height: calc(100vh - 76px) !important;
    }

    /* El lienzo deja pasar el desplazamiento vertical del dedo (scroll = deconstruir);
       el arrastre para rotar se limita por JS a la zona superior */
    #three-canvas {
        touch-action: pan-y !important;
    }

    /* Panel de fases reubicado al pie en pantallas pequeñas */
    .hero-phases {
        right: 16px !important;
        left: 16px !important;
        top: auto !important;
        bottom: 24px !important;
        width: auto !important;
        max-width: none !important;
        padding: 14px 16px !important;
    }

    .hero-text {
        max-width: 100% !important;
    }

    .hero-title {
        gap: 4px !important;
        margin-bottom: 20px !important;
    }

    .hero-title .serif-title {
        font-size: 24px !important;
        gap: 6px !important;
    }

    .hero-title .serif-title .de {
        font-size: 14px !important;
    }

    .hero-title .modern-title {
        font-size: 38px !important;
        letter-spacing: 2px !important;
    }

    .hero-subtitle {
        font-size: 13px !important;
        letter-spacing: 3px !important;
        margin-bottom: 24px !important;
    }

    .hero-btn {
        padding: 11px 28px !important;
        font-size: 13px !important;
    }

    .hero-image-geometric {
        width: 100px !important;
        height: auto !important;
        aspect-ratio: 4 / 3 !important;
        align-self: center !important;
        justify-self: end !important;
        margin-top: 0 !important;
        margin-right: 0 !important;
    }

    .hero-image-geometric.logo-variant {
        width: 100px !important;
        height: 195px !important;
        aspect-ratio: 168 / 328 !important;
        align-self: center !important;
        overflow: visible !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        clip-path: none !important;
    }

    .hero-image-geometric.logo-variant .hero-logo-composite {
        width: 100% !important;
        height: 100% !important;
        max-height: 195px !important;
        object-fit: contain !important;
    }

    .hero-image-frame {
        display: none !important;
    }

    .section-tiempo,
    .section-transformacion,
    .section-filosofia {
        flex-direction: column;
        padding: 60px 30px;
    }

    .combinaciones-grid,
    .ideas-grid {
        grid-template-columns: 1fr;
    }

    .section-combinaciones,
    .section-ideas {
        padding: 60px 30px;
    }

    .footer {
        padding: 40px 30px 20px;
    }

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

    .footer-right {
        align-items: flex-start;
    }

    .footer-logo-valuarte {
        justify-content: flex-start;
    }

    .footer-logo-valuarte .logo-valuarte {
        width: auto !important;
        height: auto !important;
        justify-content: flex-start !important;
        gap: 12px !important;
        align-items: center !important;
    }

    .footer-logo-valuarte .logo-text-stack {
        min-width: 0 !important;
        align-items: flex-start !important;
    }

    .footer-logo-valuarte .logo-constructora,
    .footer-logo-valuarte .logo-main,
    .footer-logo-valuarte .logo-slogan {
        text-align: left !important;
        width: auto !important;
    }

    .footer-logo-valuarte .logo-main {
        justify-content: flex-start !important;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 14px 16px 10px !important;
    }

    .navbar .logo-valuarte {
        gap: 10px !important;
        align-items: center !important;
        margin-top: 4px !important;
    }

    .navbar .logo-frame {
        width: 32px !important;
        height: 44px !important;
        padding: 3px !important;
        border-radius: 5px !important;
        flex: 0 0 32px !important;
        min-width: 32px !important;
        max-width: 32px !important;
        min-height: 44px !important;
        max-height: 44px !important;
        border-width: 1px !important;
    }

    .nav-logo-svg {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
    }

    .navbar .logo-constructora {
        font-size: 8px !important;
        letter-spacing: 1.2px !important;
    }

    .navbar .logo-main {
        font-size: 17px !important;
    }

    .navbar .logo-slogan {
        font-size: 11px !important;
    }

    .hero {
        margin-top: 66px !important;
        min-height: calc(100vh - 66px) !important;
        height: 260vh !important;
    }

    .hero-sticky {
        position: sticky !important;
        top: 66px !important;
        height: calc(100vh - 66px) !important;
    }

    .hero-content {
        padding: 120px 16px 32px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 30px !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }

    .hero-title {
        margin-bottom: 16px !important;
    }

    .hero-text {
        text-align: left !important;
    }

    .hero-title .serif-title {
        font-size: 20px !important;
        gap: 5px !important;
        justify-content: flex-start !important;
    }

    .hero-title .serif-title .de {
        font-size: 12px !important;
    }

    .hero-title .modern-title {
        font-size: 32px !important;
        letter-spacing: 1px !important;
    }

    .hero-subtitle {
        font-size: 11px !important;
        letter-spacing: 2px !important;
        margin-bottom: 18px !important;
    }

    .hero-btn {
        width: auto !important;
        display: inline-block !important;
        padding: 10px 20px !important;
        font-size: 12px !important;
        text-align: center !important;
        letter-spacing: 0.5px !important;
        margin: 0 !important;
    }

    .hero-image-geometric {
        width: 90px !important;
        margin-top: 0 !important;
        margin-right: 0 !important;
        align-self: center !important;
    }

    .hero-image-geometric.logo-variant {
        width: 90px !important;
        height: 176px !important;
        aspect-ratio: 168 / 328 !important;
        align-self: center !important;
        margin-top: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        clip-path: none !important;
    }

    .hero-image-geometric.logo-variant .hero-logo-composite {
        width: 100% !important;
        height: 100% !important;
        max-height: 176px !important;
        object-fit: contain !important;
    }

    .section-combinaciones,
    .section-ideas,
    .section-transformacion,
    .section-filosofia,
    .footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .section-combinaciones h2,
    .section-ideas h2,
    .transformacion-text h2,
    .filosofia-text h2 {
        font-size: 30px;
    }

    .ideas-header,
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .combo-card {
        height: 320px;
    }

    .idea-card img {
        height: 240px;
    }

    .transformacion-image,
    .filosofia-image {
        height: 280px;
    }

    .yellow-shape {
        width: 120px;
        height: 120px;
    }

    .yellow-shape.top {
        top: -20px;
        right: 20px;
    }

    .yellow-shape.bottom {
        bottom: -20px;
        left: 20px;
    }

    .novopan-badge {
        width: 88px;
        height: 88px;
        right: 12px;
        bottom: 12px;
    }

    .filosofia-label {
        left: 16px;
        bottom: 16px;
        padding: 14px 18px;
        font-size: 20px;
    }

    .footer-bottom div:last-child span {
        margin-left: 0 !important;
    }

    .whatsapp-float {
        right: 16px;
        bottom: 20px;
        width: 56px;
        height: 56px;
        font-size: 26px;
    }
}


/* ===== MOBILE MENU HAMBURGER (SOLO MÓVIL) ===== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
    padding: 0;
}

.mobile-nav-links li {
    margin: 24px 0;
}

.mobile-nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-family: 'Good Times', sans-serif;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.mobile-nav-links a:hover {
    color: #CAA874;
}

/* Mostrar hamburguesa SOLO en móvil */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important;
    }
}

@media (max-width: 480px) {
    .mobile-menu-toggle {
        display: flex !important;
        width: 26px;
        height: 20px;
    }

    .mobile-menu-toggle span {
        height: 2.5px;
    }

    .mobile-nav-links a {
        font-size: 16px;
    }
}

/* ===== PREMIUM LOADER SCREEN ===== */
#premium-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #2B3544;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 1s cubic-bezier(0.2, 1, 0.3, 1), visibility 1s;
}

#premium-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

#premium-loader .loader-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(200, 169, 126, 0.15) 0%, rgba(43, 53, 68, 0) 70%);
    z-index: -1;
    border-radius: 50%;
    filter: blur(60px);
}

#premium-loader .loader-wrapper {
    position: relative;
    width: 250px;
    height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#premium-loader .svg-frame-container {
    position: relative;
    width: 200px;
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#premium-loader .frame-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

#premium-loader .frame-rect-bg {
    fill: none;
    stroke: rgba(200, 169, 126, 0.15);
    stroke-width: 4;
    rx: 40;
}

#premium-loader .frame-rect-loading {
    fill: none;
    stroke: #C8A97E;
    stroke-width: 4;
    rx: 40;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    stroke-linecap: round;
    filter: drop-shadow(0 0 10px #C8A97E);
    animation: borderLoad 4s linear infinite;
    -webkit-animation: borderLoad 4s linear infinite;
}

#premium-loader .logo-center-container {
    width: 120px;
    height: auto;
    z-index: 1;
    animation: logoFade 3s ease-in-out infinite alternate;
    -webkit-animation: logoFade 3s ease-in-out infinite alternate;
    display: flex;
    align-items: center;
    justify-content: center;
}

#premium-loader .valuarte-svg {
    width: 100%;
    height: auto;
}

#premium-loader .silver-fill {
    fill: #B5B9BE;
}

#premium-loader .gold-fill {
    fill: #C8A97E;
}

#premium-loader .brand-text-container {
    margin-top: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    animation: textFadeIn 2s ease-in-out forwards;
    -webkit-animation: textFadeIn 2s ease-in-out forwards;
    opacity: 0;
    animation-delay: 0.5s;
}

#premium-loader .brand-constructora {
    font-family: 'Atures', sans-serif;
    font-size: 16px;
    color: #B5B9BE;
    letter-spacing: 4px;
}

#premium-loader .brand-valuarte {
    font-family: 'Good Times', sans-serif;
    font-size: 32px;
    color: #FFFFFF;
    letter-spacing: 2px;
}

#premium-loader .brand-valuarte .arte {
    color: #C8A97E;
}

#premium-loader .info-container {
    margin-top: 20px;
    text-align: center;
}

#premium-loader .counter {
    font-size: 36px;
    color: #C8A97E;
    font-weight: 200;
    font-variant-numeric: tabular-nums;
    margin-bottom: 5px;
}

#premium-loader .loading-text {
    color: #FFFFFF;
    font-size: 9px;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-weight: 300;
    opacity: 0.8;
}

@keyframes borderLoad {
    0% {
        stroke-dashoffset: 1000;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

@-webkit-keyframes borderLoad {
    0% {
        stroke-dashoffset: 1000;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes logoFade {
    0% {
        opacity: 0.6;
        transform: scale(0.95);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@-webkit-keyframes logoFade {
    0% {
        opacity: 0.6;
        -webkit-transform: scale(0.95);
    }

    100% {
        opacity: 1;
        -webkit-transform: scale(1);
    }
}

@keyframes textFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@-webkit-keyframes textFadeIn {
    0% {
        opacity: 0;
        -webkit-transform: translateY(10px);
    }

    100% {
        opacity: 1;
        -webkit-transform: translateY(0);
    }
}

/* Page fade-in logic */
body.loading-active {
    overflow: hidden !important;
}

body.has-loader #main-content-wrapper {
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.2, 1, 0.3, 1);
}

body.has-loader.loaded #main-content-wrapper {
    opacity: 1;
}

/* Safari iOS & Android Mobile SVG transform-origin center support */
#wing-right {
    transform-origin: center !important;
    -webkit-transform-origin: center !important;
    transform-box: fill-box !important;
}

/* ===== 3D HERO CONTAINER AND GLASS FRAME ===== */
.hero-3d-container {
    position: relative;
    z-index: 10;
    pointer-events: auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.canvas-glass-frame {
    width: 320px;
    height: 320px;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    background-color: rgba(10, 10, 12, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

@media (min-width: 480px) {
    .canvas-glass-frame {
        width: 380px;
        height: 380px;
    }
}

@media (min-width: 768px) {
    .canvas-glass-frame {
        width: 460px;
        height: 460px;
    }
}

@media (min-width: 1024px) {
    .canvas-glass-frame {
        width: 540px;
        height: 540px;
    }
}

.frame-corner {
    position: absolute;
    width: 16px;
    height: 16px;
    border-color: rgba(255, 255, 255, 0.4);
    border-style: solid;
    border-width: 0;
    pointer-events: none;
    z-index: 20;
}

.corner-tl {
    top: 16px;
    left: 16px;
    border-top-width: 1.5px;
    border-left-width: 1.5px;
    border-top-left-radius: 8px;
}

.corner-tr {
    top: 16px;
    right: 16px;
    border-top-width: 1.5px;
    border-right-width: 1.5px;
    border-top-right-radius: 8px;
}

.corner-bl {
    bottom: 16px;
    left: 16px;
    border-bottom-width: 1.5px;
    border-left-width: 1.5px;
    border-bottom-left-radius: 8px;
}

.corner-br {
    bottom: 16px;
    right: 16px;
    border-bottom-width: 1.5px;
    border-right-width: 1.5px;
    border-bottom-right-radius: 8px;
}

.arch-grid {
    position: absolute;
    inset: 0;
    background-size: 40px 40px;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    pointer-events: none;
    z-index: 0;
}

.arch-grid-sub {
    position: absolute;
    inset: 0;
    background-size: 8px 8px;
    background-image:
        linear-gradient(to right, rgba(210, 230, 255, 0.012) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(210, 230, 255, 0.012) 1px, transparent 1px);
    pointer-events: none;
    z-index: 0;
}

.overlay-active-pulse {
    display: flex;
    align-items: center;
    gap: 6px;
}

.overlay-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #818cf8;
    animation: activePulse 1.8s infinite;
}

@keyframes activePulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(129, 140, 248, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 5px rgba(129, 140, 248, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(129, 140, 248, 0);
    }
}

.ruler-tick-label {
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    color: rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    left: 8px;
    transform: translateY(-50%);
}

#canvas-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}