/* ========================================
   BEGA Designers – Diseño Web (subpage)
   Professional & Minimalist
   ======================================== */

.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: transform 0.4s ease-in-out, background 0.3s ease; /* Transición para el movimiento */
}

/* Clase que aplicaremos con JS para esconderla */
.navbar--hidden {
    transform: translateY(-100%);
}

/* ===== Hero ===== */
.dw-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.dw-hero-bg {
    position: absolute;
    inset: 0;
    background: url('/img/web/descarga.jpg') center/cover no-repeat;
}

.dw-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(39,35,34,0.85) 100%);
}

.dw-hero-content {
    position: relative;
    z-index: 10;
    max-width: 52rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.dw-hero-label {
    display: inline-block;
    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-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: 32rem;
    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 Strip ===== */
.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;
}

.dw-info-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .dw-info-grid { grid-template-columns: repeat(2, 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.35rem;
    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.85rem;
    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);
}

.dw-card-list li:last-child {
    margin-bottom: 0;
}

/* ===== Process Steps (Distribución en 2 Columnas) ===== */
.dw-process {
    background: var(--arena);
    padding: 6rem 0;
}

.dw-process-header {
    text-align: center;
    margin-bottom: 4rem;
}

/* Contenedor principal con Grid */
.dw-steps {
    max-width: 60rem; /* Aumentamos el ancho para las 2 columnas */
    margin: 0 auto;
    display: grid;
    gap: 2rem 4rem; /* 2rem de espacio vertical, 4rem horizontal */
}

/* Configuramos 2 columnas en pantallas medianas/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;
    /* Añadimos un borde sutil abajo para separar visualmente en móvil */
    border-bottom: 1px solid rgba(89, 104, 81, 0.1); 
}

@media (min-width: 768px) {
    .dw-step {
        border-bottom: none; /* Quitamos el borde 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 ya que en 2 columnas no encaja visualmente */
.dw-step-connector {
    display: none;
}

/* ===== Portfolio ===== */
.dw-portfolio {
    background: var(--negro);
    padding: 6rem 0;
}

.logosweb img{
    height: 5rem;
}

.dw-portfolio-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.dw-portfolio-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dw-portfolio-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transition: padding-left 0.3s, border-color 0.3s;
}

.dw-portfolio-item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dw-portfolio-item:hover {
    padding-left: 1rem;
    border-color: rgba(89, 104, 81, 0.3);
}

.dw-portfolio-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.dw-portfolio-tag {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--verde);
    background: rgba(89, 104, 81, 0.15);
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    flex-shrink: 0;
}

.dw-portfolio-item h3 {
    font-family: var(--font-title);
    font-size: 1.35rem;
    color: var(--blanco);
    transition: color 0.3s;
}

.dw-portfolio-item:hover h3 {
    color: var(--verde);
}

.dw-portfolio-item p {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    display: none;
}

@media (min-width: 768px) {
    .dw-portfolio-item p { display: block; }
}

.dw-portfolio-arrow {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s;
}

.dw-portfolio-item:hover .dw-portfolio-arrow {
    border-color: var(--verde);
    color: var(--verde);
    transform: rotate(-45deg);
}

/* ===== 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);
    margin-bottom: 2.5rem;
}

.dw-cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 640px) {
    .dw-cta-buttons { flex-direction: row; justify-content: center; }
}

/* ===== Active link in dropdown ===== */
.dropdown-menu .active-link {
    color: var(--blanco);
    background: rgba(89, 104, 81, 0.15);
    border-left: 3px solid var(--verde);
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
    .dw-hero { min-height: 65vh; }

    .dw-hero-label { font-size: 0.65rem; padding: 0.3rem 1rem; }

    .dw-features { padding: 3.5rem 0; }

    .dw-info,
    .dw-portfolio,
    .dw-process,
    .dw-cta { padding: 4rem 0; }

    .dw-card { padding: 1.75rem; }

    .dw-step { gap: 1rem; }

    .dw-portfolio-item h3 { font-size: 1.1rem; }
}
