/* ==========================================
   home-builder-link.css
   Estilos específicos para la página home-builder-link.html
   ========================================== */

/* --- ENVOLTORIO GLOBAL --- */
.hbl-wrapper {
    width: 92.5%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Crossfade al cambiar de estilo en el orbital */
#active-orbital {
    transition: opacity 0.3s ease;
}

/* --- ORBITAL CONTENIDO --- */
.hbl-orbital-section {
    padding-bottom: 60px;
    background: #fff;
}

.hbl-orbital-box {
    width: 100%;
    aspect-ratio: 16 / 9; 
    background: #f4f3f0; 
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.orbital-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-display {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: grab;
}

.image-display:active { cursor: grabbing; }

.image-display img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    pointer-events: none;
}

/* Navegación Horizontal Orbital */
.orbital-nav-horizontal {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    width: auto;
    display: flex;
    justify-content: space-between;
    padding: 0 16px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
}

.nav-btn-orb {
    pointer-events: auto;
    background: #fff21a;
    backdrop-filter: blur(5px);
    border: 1px solid #fff21a;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: #192125;
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(255, 242, 26, 0.4);
}

.nav-btn-orb:hover {
    background: #fff;
    border-color: #fff;
    color: #192125;
    box-shadow: 0 6px 20px rgba(255, 242, 26, 0.6);
}

/* Selector de Variaciones Orbital */
.variation-selector-container {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    text-align: center;
}

.selector-toggle {
    background: #fff21a;
    color: #192125;
    border: none;
    padding: 12px 25px;
    font-family: 'ABCWhyteINKTRAP-Bold', sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.variation-grid {
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    background: rgba(25, 33, 37, 0.95);
    padding: 20px;
    border-radius: 15px;
    margin-top: 15px;
    border: 1px solid #444;
    max-height: 300px;
    overflow-y: auto;
}

.variation-grid.active {
    display: grid;
    animation: fadeInUp 0.3s ease;
}

.var-btn {
    background: transparent;
    border: 1px solid #fff21a;
    color: #fff21a;
    padding: 8px;
    font-size: 11px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.2s;
}

.var-btn:hover, .var-btn.active {
    background: #fff21a;
    color: #000;
}

.orbital-info-overlay {
    position: absolute;
    top: 30px;
    left: 30px;
    color: rgba(0,0,0,0.5); 
    font-size: 12px;
    font-family: 'ABCWhyte-Light', sans-serif;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .variation-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-btn-orb { width: 45px; height: 45px; }
}


/* ============================================================
   HOME BUILDER LINK — Page Content Sections
   ============================================================ */

/* ---- SECTION 1: Hero "The Home" ---- */
.hbl-hero {
    background: #fff;
    padding-top: 90px;
}

.hbl-hero-text {
    padding: 100px 0 90px 0;
}

.hbl-hero-text .hbl-p {
    max-width: none;
}

.hbl-overline {
    display: inline-block;
    font-family: 'ABCWhyte-Light', sans-serif;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #1b2429;
    opacity: 0.45;
    margin-bottom: 24px;
}

.hbl-h1 {
    font-family: 'ABCWhyteINKTRAP-Bold', sans-serif;
    font-size: 65px;
    line-height: 0.95;
    color: #1b2429;
    margin: 0 0 40px 0;
}

.hbl-p {
    font-family: 'ABCWhyte-Light', sans-serif;
    font-size: 20px;
    line-height: 34px;
    color: #1b2429;
    opacity: 0.7;
    max-width: 640px;
    margin: 0;
}

.hbl-hero-image {
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 8;
}

.hbl-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---- SECTION 2: Focus & Intention ---- */
.hbl-focus {
    background: #fff;
    padding: 160px 0 80px 0;
}

.hbl-focus-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.hbl-focus-text .hbl-p {
    max-width: none;
}

.hbl-focus-intro-img {
    width: 100%;
    overflow: hidden;
}

.hbl-focus-intro-img img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.hbl-h2 {
    font-family: 'ABCWhyteINKTRAP-Bold', sans-serif;
    font-size: 52px;
    line-height: 1.1;
    color: #1b2429;
    margin: 0 0 24px 0;
}

/* ---- SECTION 3: Content & Budget ---- */
.hbl-content-budget {
    background: #fff;
    padding: 40px 0 160px 0;
}

.hbl-cb-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: stretch;
}

.hbl-h2-large {
    font-family: 'ABCWhyteINKTRAP-Bold', sans-serif;
    font-size: 48px;
    line-height: 1.1;
    color: #1b2429;
    margin: 0 0 24px 0;
}

.hbl-cb-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hbl-cb-text .hbl-p {
    max-width: none;
}

/* Estilo con presencia para What we delivered */
.hbl-deliverables-box {
    background: #f4f3f0;
    padding: 30px;
    margin-top: 40px;
}

.hbl-deliverables-label {
    font-family: 'ABCWhyteINKTRAP-Bold', sans-serif;
    font-size: 14px;
    letter-spacing: 2px;
    color: #1b2429;
    display: block;
    margin-bottom: 20px;
}

.hbl-deliverables-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hbl-deliverables-list li {
    font-family: 'ABCWhyteINKTRAP-Bold', sans-serif;
    font-size: 18px;
    color: #1b2429;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hbl-deliverables-list li i {
    color: #1b2429; 
    font-size: 16px;
}

.hbl-cb-img {
    width: 100%;
    height: 100%; 
    overflow: hidden;
}

.hbl-cb-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}


/* ---- Video loader / spinner ---- */
.hbl-video-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 11;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.hbl-video-loader.active {
    opacity: 1;
}

.hbl-video-spinner {
    width: 64px;
    height: 64px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: hbl-spin 0.75s linear infinite;
}

@keyframes hbl-spin {
    to { transform: rotate(360deg); }
}

/* ---- SECTION 4: anima VIDEO ---- */
.hbl-anima {
    width: 100%;
    display: block;
    background: #fff;
    padding-bottom: 80px;
}

.hbl-anima-title {
    font-family: 'ABCWhyteINKTRAP-Bold', sans-serif;
    font-size: 52px;
    line-height: 1.1;
    color: #1b2429;
    margin: 0 0 40px 0;
    text-align: left; 
}

.hbl-anima-video-box {
    width: 100%;
    background: #000;
    overflow: hidden;
}

.hbl-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: #fff; 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #192125; 
    z-index: 10;
    padding-left: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: pulsePlay 2s infinite ease-in-out;
}

@keyframes pulsePlay {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.08); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.hbl-anima-video-box:hover .hbl-play-btn {
    transform: translate(-50%, -50%) scale(1.15);
    animation: none;
    transition: transform 0.3s ease;
}

.hbl-anima-video-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---- SECTION 5: Orbital Intro ---- */
.hbl-orbital-intro {
    background: #fff;
    padding: 60px 0 80px 0;
    text-align: center;
}

.hbl-orbital-intro .hbl-h2 {
    margin-bottom: 30px;
}

.hbl-orbital-intro .hbl-p {
    margin: 0 auto;
    max-width: 900px;
}

/* ---- SECTION 6: Timeless & Smart Devices ---- */
.hbl-timeless {
    background: transparent;
    padding: 20px 0 120px 0;
    text-align: center;
    overflow: hidden;
}

.hbl-timeless-header {
    max-width: 900px; 
    margin: 0 auto 100px auto;
}

.hbl-timeless-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hbl-timeless-header .hbl-p {
    max-width: 100%;
    margin: 0 auto;
}

.hbl-smart-showcase {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin: 0 auto;
    padding-bottom: 40px; 
}

.hbl-smart-item {
    flex: 1;
    max-width: 320px;
    overflow: hidden;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.12));
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.6s ease;
}

.hbl-smart-item img,
.hbl-smart-item video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.hbl-smart-center {
    transform: translateY(-40px);
    z-index: 2;
    max-width: 480px;
    flex: 1.8;
    border-radius: 60px;
    overflow: hidden;
}

.hbl-smart-item:hover {
    transform: translateY(-15px);
    filter: drop-shadow(0 30px 40px rgba(0,0,0,0.2));
}

.hbl-smart-center:hover {
    transform: translateY(-55px);
}

/* ---- SECTION 6.5: Reference Pricing ---- */
.hbl-pricing {
    background: #fff;
    padding: 160px 0;
}

.hbl-pricing-header {
    max-width: 800px;
    margin: 0 auto 60px auto;
    text-align: center;
}

.hbl-pricing-header .hbl-p {
    margin: 0 auto;
}

.hbl-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.hbl-pricing-card {
    background: #f4f3f0;
    padding: 40px 30px;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.hbl-pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.hbl-pricing-title {
    font-family: 'ABCWhyteINKTRAP-Bold', sans-serif;
    font-size: 22px;
    line-height: 1.25;
    color: #1b2429;
    margin: 0 0 15px 0;
}

.hbl-pricing-title span {
    display: block;
    font-family: 'ABCWhyte-Light', sans-serif;
    font-size: 15px;
    color: rgba(27, 36, 41, 0.6);
    margin-top: 6px;
}

.hbl-pricing-price {
    font-family: 'ABCWhyteINKTRAP-Bold', sans-serif;
    font-size: 32px;
    color: #1b2429;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(27, 36, 41, 0.1);
}

.hbl-pricing-price span {
    font-size: 16px;
    font-family: 'ABCWhyte-Light', sans-serif;
    color: rgba(27, 36, 41, 0.6);
}

.hbl-pricing-desc {
    font-family: 'ABCWhyte-Light', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(27, 36, 41, 0.8);
    margin: 0;
    flex-grow: 1;
}

/* Tarjeta destacada (Architectural Animation) */
.hbl-pricing-featured {
    background: #192125;
    color: #fff;
}

.hbl-pricing-featured .hbl-pricing-title,
.hbl-pricing-featured .hbl-pricing-price {
    color: #fff;
}

.hbl-pricing-featured .hbl-pricing-title span,
.hbl-pricing-featured .hbl-pricing-price span,
.hbl-pricing-featured .hbl-pricing-desc {
    color: rgba(255, 255, 255, 0.75);
}

.hbl-pricing-featured .hbl-pricing-price {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}


/* ---- SECTION 7: Gallery ---- */
.hbl-gallery {
    background: #fff;
    padding: 20px 0;
}

.hbl-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.hbl-gallery-wide {
    grid-column: 1 / 3;
}

.hbl-gallery-item {
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.hbl-gallery-wide {
    aspect-ratio: 16 / 7;
}

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

.hbl-gallery-item:hover img {
    transform: scale(1.03);
}

/* Helene (5) y (6) — imagen completa, sin caja fija ni fondo gris */
.hbl-gallery-grid .hbl-gallery-item:nth-child(5),
.hbl-gallery-grid .hbl-gallery-item:nth-child(6) {
    aspect-ratio: auto;
    overflow: visible;
    background-color: transparent;
    height: auto;
}

.hbl-gallery-grid .hbl-gallery-item:nth-child(5) img,
.hbl-gallery-grid .hbl-gallery-item:nth-child(6) img {
    object-fit: unset;
    height: auto;
}

/* ---- SECTION 8: Final CTA ---- */
.hbl-cta-final {
    background: #192125;
    padding: 100px 0;
    text-align: center;
}

.hbl-cta-inner {
    max-width: 860px;
    margin: 0 auto;
}

.hbl-cta-h2 {
    font-family: 'ABCWhyteINKTRAP-Bold', sans-serif;
    font-size: 52px;
    line-height: 1.15;
    color: #fff;
    margin: 0 0 32px 0;
}

.hbl-cta-p {
    font-family: 'ABCWhyte-Light', sans-serif;
    font-size: 20px;
    line-height: 34px;
    color: rgba(255, 255, 255, 0.60);
    max-width: 620px;
    margin: 0 auto;
}

/* Tarjeta de Contacto Personal (Mariela) */
.hbl-contact-profile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    text-align: left;
}

.hbl-profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.hbl-profile-info {
    display: flex;
    flex-direction: column;
}

.hbl-profile-name {
    font-family: 'ABCWhyteINKTRAP-Bold', sans-serif;
    font-size: 24px;
    color: #fff;
    margin: 0 0 12px 0;
}

.hbl-profile-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hbl-profile-links a {
    font-family: 'ABCWhyte-Light', sans-serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hbl-profile-links a i {
    width: 20px;
    text-align: center;
}

.hbl-profile-links a:hover {
    color: #C8FF00;
}

/* ---- Scroll-reveal animation ---- */
.hbl-reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.85s ease, transform 0.85s ease;
}

.hbl-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hbl-reveal-delay-1 { transition-delay: 0.12s; }
.hbl-reveal-delay-2 { transition-delay: 0.22s; }
.hbl-reveal-delay-3 { transition-delay: 0.32s; }
.hbl-reveal-delay-4 { transition-delay: 0.42s; }

/* ---- Progressive image loading ---- */

.hbl-hero-image,
.hbl-focus-intro-img,
.hbl-cb-img,
.hbl-gallery-item {
    background-color: #e0ddd8;
}

.hbl-smart-item img {
    background-color: transparent;
}

.hbl-img-lazy {
    opacity: 0;
    transition: opacity 0.8s ease;
    will-change: opacity;
}

.hbl-img-lazy.hbl-img-loaded {
    opacity: 1;
}

/* ---- Responsive — Tablet (max 1100px) ---- */
@media (max-width: 1100px) {
    .hbl-wrapper   { width: 95%; }
    .hbl-h1        { font-size: 62px; }
    .hbl-h2        { font-size: 40px; }
    .hbl-anima-title { font-size: 40px; }
    .hbl-h2-large  { font-size: 38px; }
    .hbl-cta-h2    { font-size: 42px; }
    
    .hbl-focus-intro { gap: 40px; }
    .hbl-cb-grid { gap: 40px; }

    .hbl-smart-showcase { gap: 20px; }
    .hbl-smart-center { transform: translateY(-20px); max-width: 340px; }
    .hbl-smart-center:hover { transform: translateY(-35px); }
}

/* ---- Responsive — Mobile (max 768px) ---- */
@media (max-width: 768px) {
    .hbl-wrapper          { width: 96%; }
    .hbl-hero-text        { padding: 60px 0 50px 0; }
    .hbl-hero-text .hbl-p { max-width: none; }
    .hbl-h1               { font-size: 40px; line-height: 1; }
    .hbl-hero-image       { aspect-ratio: 4 / 3; }

    .hbl-focus            { padding: 90px 0 40px 0; }
    .hbl-focus-intro      { grid-template-columns: 1fr; gap: 36px; }
    .hbl-h2               { font-size: 34px; }
    .hbl-anima-title      { font-size: 34px; margin-bottom: 30px; text-align: center; } 
    .hbl-h2-large         { font-size: 34px; }
    
    .hbl-content-budget   { padding: 40px 0 90px 0; }
    .hbl-cb-grid          { grid-template-columns: 1fr; gap: 50px; }
    .hbl-cb-img           { aspect-ratio: 4 / 3; height: auto; }

    .hbl-orbital-intro    { padding: 90px 0 40px 0; }
    .hbl-orbital-section  { padding-bottom: 90px; }
    .hbl-play-btn         { width: 70px; height: 70px; font-size: 24px; }

    .hbl-timeless         { padding: 90px 0; }
    .hbl-timeless-header  { margin-bottom: 60px; }
    .hbl-smart-showcase   { flex-direction: column; gap: 40px; padding-bottom: 0; }
    .hbl-smart-item       { max-width: 280px; transform: none !important; }
    .hbl-smart-item:hover { transform: translateY(-10px) !important; }

    /* Ajustes Mobile Pricing */
    .hbl-pricing          { padding: 90px 0; }
    .hbl-pricing-header   { margin-bottom: 40px; }
    .hbl-pricing-grid     { grid-template-columns: 1fr; gap: 20px; }

    .hbl-gallery          { padding: 90px 0; }
    .hbl-gallery-grid     { grid-template-columns: 1fr; }
    .hbl-gallery-wide     { grid-column: 1; aspect-ratio: 4 / 3; }

    .hbl-cta-final        { padding: 100px 0; }
    .hbl-cta-h2           { font-size: 34px; }
    
    /* Ajustes Mobile Contact Profile */
    .hbl-contact-profile  { flex-direction: column; text-align: center; gap: 20px; }
    .hbl-profile-links    { align-items: center; }
}