/* Limpieza y Tipografía Corporativa */
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif; }
html { scroll-behavior: smooth; }
body { background-color: #ffffff; color: #1e293b; }

/* HEADER TRANSPARENTE PREMIUM */
header { position: absolute; top: 0; left: 0; width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 25px 6%; z-index: 10; border-bottom: 1px solid rgba(255,255,255,0.1); }
.logo { font-size: 22px; font-weight: bold; color: #ffffff; }
.logo span { color: #38bdf8; }
nav ul { list-style: none; display: flex; gap: 30px; }
nav ul li a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 15px; font-weight: 500; transition: color 0.3s; }
nav ul li a:hover, nav ul li a.active { color: #ffffff; }
.btn-nav { border: 1px solid #ffffff; color: #ffffff; padding: 8px 18px; text-decoration: none; border-radius: 20px; font-size: 14px; font-weight: 500; transition: background 0.3s; }
.btn-nav:hover { background: #ffffff; color: #0f172a; }

/* SECCIÓN HERO OSCURA (Fondo Corporativo Avanzado) */
.hero-section { position: relative; height: 75vh; background-image: url('https://unsplash.com'); background-size: cover; background-position: center; display: flex; align-items: center; padding: 0 8%; color: #ffffff; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(15,23,42,0.95) 40%, rgba(15,23,42,0.7) 100%); z-index: 1; }
.hero-content { position: relative; max-width: 700px; z-index: 2; margin-top: 60px; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: #38bdf8; margin-bottom: 15px; border-bottom: 2px solid #38bdf8; padding-bottom: 3px; }
.hero-content h1 { font-size: 42px; font-weight: 700; line-height: 1.2; margin-bottom: 20px; letter-spacing: -0.5px; }
.hero-content p { font-size: 17px; color: #94a3b8; line-height: 1.6; margin-bottom: 30px; }
.btn-primary { background-color: #ffffff; color: #0f172a; padding: 12px 24px; text-decoration: none; font-weight: 600; border-radius: 6px; font-size: 15px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); transition: transform 0.2s; display: inline-block; }
.btn-primary:hover { transform: translateY(-2px); }

/* SECCIÓN DE SOLUCIONES */
.solutions-section { padding: 80px 8%; background-color: #ffffff; }
.section-title { text-align: center; max-width: 700px; margin: 0 auto 50px auto; }
.section-title span { font-size: 13px; font-weight: 700; text-transform: uppercase; color: #64748b; letter-spacing: 2px; }
.section-title h2 { font-size: 32px; color: #0f172a; margin: 10px 0 15px 0; font-weight: 700; letter-spacing: -0.5px; }
.section-title p { color: #64748b; font-size: 16px; line-height: 1.5; }

/* REJILLA (GRID) DE TARJETAS PC */
.grid-container { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; max-width: 1000px; margin: 0 auto; }
.card { background: #ffffff; padding: 35px; border-radius: 12px; border: 1px solid #e2e8f0; box-shadow: 0 10px 25px rgba(15,23,42,0.04); }
.card h3 { font-size: 20px; color: #0f172a; margin-bottom: 20px; border-left: 4px solid #0f172a; padding-left: 10px; }

/* INPUTS Y BOTONES */
.input-group { margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.input-group label { font-size: 14px; font-weight: 600; color: #334155; }
input, select { padding: 12px; border-radius: 6px; border: 1px solid #cbd5e1; font-size: 15px; color: #0f172a; outline: none; background-color: #f8fafc; }
input:focus, select:focus { border-color: #0f172a; background-color: #ffffff; }
.btn-submit { background-color: #0f172a; color: white; border: none; padding: 14px; font-size: 15px; font-weight: 600; border-radius: 6px; cursor: pointer; margin-top: 10px; }
.btn-submit:hover { background-color: #1e293b; }

/* COMPONENTE DE RESULTADO */
.card-result { background-color: #f8fafc; display: flex; flex-direction: column; justify-content: center; border: 1px dashed #cbd5e1; }
.precio-display { font-size: 38px; font-weight: 700; color: #0f172a; margin: 15px 0 5px 0; }
.precio-display span { font-size: 16px; color: #64748b; font-weight: 400; }
.detalles-txt, .placeholder-txt { color: #64748b; font-size: 14px; line-height: 1.6; margin-bottom: 20px; }
.btn-apply { background-color: #38bdf8; color: #0f172a; text-decoration: none; text-align: center; padding: 12px; font-weight: 600; border-radius: 6px; font-size: 14px; }
.btn-apply:hover { background-color: #0ea5e9; color: #ffffff; }

/* REGLAS RESPONSIVAS PARA DISPOSITIVOS MÓVILES (CELULARES) */
@media (max-width: 768px) {
    header { padding: 15px 4%; flex-direction: column; gap: 15px; position: relative; background-color: #0f172a; }
    nav ul { gap: 15px; flex-wrap: wrap; justify-content: center; }
    .btn-nav { display: block; width: 100%; text-align: center; }
    .hero-section { height: auto; padding: 60px 5%; text-align: center; }
    .hero-content h1 { font-size: 28px; }
    .hero-content p { font-size: 15px; }
    .solutions-section { padding: 40px 5%; }
    .section-title h2 { font-size: 24px; }
    .grid-container { grid-template-columns: 1fr; gap: 20px; } /* Cambio a una columna */
    .card { padding: 20px; }
    .precio-display { font-size: 30px; }
}

/* FOOTER */
footer { text-align: center; padding: 25px; background-color: #0f172a; color: #94a3b8; font-size: 13px; margin-top: 50px; }

/* ==========================================================================
   ESTILOS PARA LA GALERÍA DE PORTAFOLIO (11 FOTOS)
   ========================================================================== */
.galeria-comercial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Columnas fijas en PC */
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.galeria-item {
    width: 100%;
    height: 280px; /* Altura uniforme para que se vea simétrico */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    border: 1px solid #e2e8f0;
    background-color: #f1f5f9;
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajusta la foto al contenedor sin deformarla */
    display: block;
    transition: transform 0.4s ease; /* Efecto de movimiento suave */
}

.galeria-item:hover img {
    transform: scale(1.05); /* Zoom sutil al pasar el mouse */
}

/* Adaptación responsiva para pantallas medianas (Tabletas) */
@media (max-width: 992px) {
    .galeria-comercial-grid {
        grid-template-columns: repeat(2, 1fr); /* Cambia a 2 columnas */
        gap: 15px;
    }
    .galeria-item {
        height: 240px;
    }
}

/* Adaptación responsiva para pantallas pequeñas (Celulares) */
@media (max-width: 576px) {
    .galeria-comercial-grid {
        grid-template-columns: 1fr; /* 1 sola columna vertical continua */
        gap: 15px;
    }
    .galeria-item {
        height: 220px;
    }
}