/* ========================================
   BEGA Designers – Diseño Industrial (subpage)
   Reutiliza clases dw- de animacion-2d.css
   ======================================== */

/* ===== Hero Industrial ===== */
.ind-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ind-hero-bg {
    position: absolute;
    inset: 0;
    background:
        url('/img/industrial/industrial.png') center / cover no-repeat;
    filter: grayscale(30%) brightness(0.5);
    z-index: 0;
}

.dropdown-menu .active-link {
    color: var(--blanco);
    background: rgba(89, 104, 81, 0.15);
    border-left: 3px solid var(--verde);
}

/* Patrón de cuadrícula técnica sobre el hero */
.ind-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(89,104,81,0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(89,104,81,0.08) 1px, transparent 1px);
    background-size: 48px 48px;
}

.ind-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(39,35,34,0.92) 100%);
}

/* Etiqueta del hero con icono de herramienta */
.dw-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--verde);
    border: 1px solid rgba(89, 104, 81, 0.4);
    padding: 0.4rem 1.25rem;
    border-radius: 9999px;
    margin-bottom: 2rem;
}

.dw-hero{
    text-align: center;
}

.dw-hero-title {
    font-family: var(--font-title);
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.05;
    color: var(--blanco);
    margin-bottom: 1.5rem;
}

.dw-hero-subtitle {
    max-width: 34rem;
    margin: 0 auto;
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
}

.dw-hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

/* ===== Features ===== */
.dw-features {
    background: var(--arena);
    padding: 5rem 0;
}

.dw-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 640px) {
    .dw-features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .dw-features-grid { grid-template-columns: repeat(4, 1fr); }
}

.dw-feature {
    text-align: center;
    padding: 0 1rem;
}

.dw-feature-number {
    font-family: var(--font-title);
    font-size: 3rem;
    color: rgba(89, 104, 81, 0.2);
    line-height: 1;
    margin-bottom: 0.75rem;
    transition: color 0.3s;
}

.dw-feature:hover .dw-feature-number { color: var(--verde); }

.dw-feature h3 {
    font-family: var(--font-title);
    font-size: 1.125rem;
    color: var(--oscuro);
    margin-bottom: 0.5rem;
}

.dw-feature p {
    font-family: var(--font-body);
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.5);
}

/* ===== Info Section ===== */
.dw-info {
    background: var(--negro);
    padding: 6rem 0;
}

.dw-info-header {
    text-align: center;
    margin-bottom: 4rem;
}

.ind-info-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .ind-info-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .ind-info-grid { grid-template-columns: repeat(4, 1fr); }
}

.dw-card {
    background: var(--gradient-card);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.dw-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-elevated);
}

.dw-card-line {
    position: absolute;
    top: 0; left: 0;
    width: 0; height: 2px;
    background: var(--verde);
    transition: width 0.5s ease;
}

.dw-card:hover .dw-card-line { width: 100%; }

.dw-card-title {
    font-family: var(--font-title);
    font-size: 1.2rem;
    color: var(--blanco);
    margin-bottom: 1.25rem;
}

.dw-card-list {
    list-style: none;
    padding: 0; margin: 0;
}

.dw-card-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.65rem;
    font-family: var(--font-body);
    font-size: 0.82rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
}

.dw-card-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 0.6rem;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--verde);
}

/* ===== Process (Actualizado a 2 Columnas) ===== */
.dw-process {
    background: var(--arena);
    padding: 6rem 0;
}

.dw-process-header {
    text-align: center;
    margin-bottom: 4rem;
}

.dw-steps {
    max-width: 60rem; /* Ancho ampliado para 2 columnas */
    margin: 0 auto;
    display: grid;
    gap: 2rem 4rem;
}

/* 2 columnas en pantallas medianas y grandes */
@media (min-width: 768px) {
    .dw-steps {
        grid-template-columns: 1fr 1fr;
    }
}

.dw-step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(89, 104, 81, 0.1); 
}

@media (min-width: 768px) {
    .dw-step {
        border-bottom: none; /* Limpieza en escritorio */
    }
}

.dw-step-icon {
    flex-shrink: 0;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: var(--oscuro);
    color: var(--verde);
    transition: all 0.3s ease;
}

.dw-step:hover .dw-step-icon {
    background: var(--verde);
    color: var(--blanco);
    transform: scale(1.05);
}

.dw-step-content {
    flex: 1;
}

.dw-step-num {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--verde);
    display: block;
    margin-bottom: 0.25rem;
}

.dw-step-content h4 {
    font-family: var(--font-title);
    font-size: 1.25rem;
    color: var(--oscuro);
    margin-bottom: 0.5rem;
}

.dw-step-content p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.6);
}

/* Eliminamos el conector antiguo */
.dw-step-connector {
    display: none;
}

.dw-step-icon {
    flex-shrink: 0;
    width: 3rem; height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: var(--oscuro);
    color: var(--verde);
    transition: background 0.3s, color 0.3s;
}

.dw-step:hover .dw-step-icon {
    background: var(--verde);
    color: var(--blanco);
}

.dw-step-content { flex: 1; }

.dw-step-num {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--verde);
    display: block;
    margin-bottom: 0.25rem;
}

.dw-step-content h4 {
    font-family: var(--font-title);
    font-size: 1.15rem;
    color: var(--oscuro);
    margin-bottom: 0.25rem;
}

.dw-step-content p {
    font-family: var(--font-body);
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.5);
}

.dw-step-connector {
    width: 2px;
    height: 2rem;
    background: rgba(89, 104, 81, 0.2);
    margin-left: 1.4375rem;
}

/* ===== Portfolio Section ===== */
.dw-portfolio {
    background: var(--negro);
    padding: 6rem 0;
}

.dw-portfolio-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

/* ===== Gallery Grid (tarjetas normales) ===== */
.ind-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 4rem;
}

@media (min-width: 640px) {
    .ind-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .ind-gallery { grid-template-columns: repeat(4, 1fr); }
}

.ind-card {
    border-radius: 1rem;
    overflow: hidden;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    transition: border-color 0.3s, transform 0.3s;
}

.ind-card:hover {
    border-color: rgba(89, 104, 81, 0.4);
    transform: translateY(-3px);
}

.ind-card-placeholder {
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, rgba(89,104,81,0.06) 0%, rgba(0,0,0,0.35) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.ind-card-placeholder p {
    font-family: var(--font-body);
    font-size: 0.7rem;
    color: rgba(255,255,255,0.2);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Las imágenes reales reemplazan al placeholder */
.ind-card-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ind-card-info {
    padding: 1.25rem 1.5rem;
}

.ind-card-info h4 {
    font-family: var(--font-title);
    font-size: 1.05rem;
    color: var(--blanco);
    margin: 0.5rem 0 0.25rem;
}

.ind-card-info p {
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
}

.dw-portfolio-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--verde);
    border: 1px solid rgba(89,104,81,0.35);
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
}

/* ===== 3D Showcase ===== */
.ind-3d-showcase {
    background: linear-gradient(135deg, rgba(89,104,81,0.06) 0%, rgba(0,0,0,0.5) 100%);
    border: 1px solid rgba(89,104,81,0.2);
    border-radius: 1.5rem;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

/* Patrón decorativo de fondo */
.ind-3d-showcase::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(89,104,81,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(89,104,81,0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.ind-3d-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--verde);
    background: rgba(89,104,81,0.12);
    border: 1px solid rgba(89,104,81,0.3);
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    margin-bottom: 2rem;
}

.ind-3d-layout {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .ind-3d-layout { grid-template-columns: 1fr 1fr; }
}

/* ===== Model Viewer Wrapper ===== */
.ind-3d-viewer-wrap {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--oscuro);
    border: 1px solid rgba(255,255,255,0.06);
}

model-viewer {
    width: 100%;
    height: 100%;
    background: transparent;
    --poster-color: transparent;
}

/* Cargando */
.ind-mv-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    height: 100%;
    color: rgba(255,255,255,0.4);
}

.ind-mv-spinner {
    width: 36px;
    height: 36px;
    border: 2px solid rgba(89,104,81,0.3);
    border-top-color: var(--verde);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.ind-mv-loading p {
    font-family: var(--font-body);
    font-size: 0.8rem;
}

/* Hint flotante */
.ind-3d-hint {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    color: rgba(255,255,255,0.6);
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-family: var(--font-body);
    font-size: 0.72rem;
    white-space: nowrap;
    pointer-events: none;
    transition: opacity 0.5s;
    z-index: 10;
}

.ind-3d-hint.hidden { opacity: 0; }

/* Hotspot */
.ind-hotspot {
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--verde);
    background: rgba(89,104,81,0.8);
    cursor: pointer;
    position: relative;
}

.ind-hotspot::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid rgba(89,104,81,0.4);
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0%   { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

.ind-hotspot-label {
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--oscuro);
    color: var(--blanco);
    font-family: var(--font-body);
    font-size: 0.72rem;
    padding: 0.3rem 0.75rem;
    border-radius: 0.4rem;
    white-space: nowrap;
    border: 1px solid rgba(89,104,81,0.3);
    pointer-events: none;
}

/* ===== Info 3D ===== */
.ind-3d-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.ind-3d-tag { margin-bottom: 0; }

.ind-3d-title {
    font-family: var(--font-title);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--blanco);
    line-height: 1.2;
}

.ind-3d-desc {
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.55);
}

/* Specs grid */
.ind-3d-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.ind-spec-item {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 0.6rem;
    padding: 0.75rem 1rem;
}

.ind-spec-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--verde);
    margin-bottom: 0.2rem;
}

.ind-spec-value {
    display: block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
}

/* Botones 3D */
.ind-3d-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.ind-btn-rotate {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--blanco);
    background: rgba(89,104,81,0.2);
    border: 1px solid rgba(89,104,81,0.4);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.ind-btn-rotate:hover {
    background: rgba(89,104,81,0.35);
    border-color: var(--verde);
}

.ind-btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--blanco);
    background: var(--verde);
    border-radius: 0.5rem;
    text-decoration: none;
    transition: opacity 0.2s;
}

.ind-btn-contact:hover { opacity: 0.85; }

.ind-3d-note {
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: rgba(255,255,255,0.25);
    line-height: 1.5;
}

.ind-3d-note code {
    font-size: 0.7rem;
    background: rgba(255,255,255,0.07);
    padding: 0.1rem 0.35rem;
    border-radius: 0.2rem;
}

/* ===== CTA ===== */
.dw-cta {
    background: var(--arena);
    padding: 6rem 0;
}

.dw-cta-box {
    max-width: 44rem;
    margin: 0 auto;
    text-align: center;
}

.dw-cta-box h2 {
    font-family: var(--font-title);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    color: var(--oscuro);
    margin-bottom: 0.75rem;
}

.dw-cta-box p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: rgba(0,0,0,0.5);
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .ind-3d-showcase { padding: 1.5rem; }
    .ind-3d-specs { grid-template-columns: 1fr 1fr; }
    .ind-3d-actions { flex-direction: column; }
    .ind-btn-rotate,
    .ind-btn-contact { justify-content: center; }
}

#ar-button {
    background-color: var(--verde);
    border-radius: 8px;
    border: none;
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 12px 20px;
    color: white;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: block;
    z-index: 99;
}

/* El botón solo debe verse en móviles que soporten RA */
#ar-button:not([ar-status="active"]) {
    display: none; 
}
/* Pero Model Viewer lo muestra automáticamente si detecta compatibilidad */