:root { 
    --bg: #030508; 
    --accent: #00d2ff; 
    --border: rgba(255,255,255,0.06);
    --code-font: 'Fira Code', monospace;
}

body, html { background: var(--bg); color: #fff; font-family: 'Plus Jakarta Sans', sans-serif; margin: 0; padding: 0; min-height: 100vh; overflow-x: hidden; }

/* NAVEGACIÓN */
.screen-overlay {
    position: fixed; inset: 0; display: none; opacity: 0;
    flex-direction: column; align-items: center; justify-content: center;
    transition: opacity 0.5s ease; z-index: 10; background: var(--bg);
    padding: 20px; box-sizing: border-box;
}
.screen-overlay.active { display: flex; opacity: 1; }
.gallery-layout.active { display: block; opacity: 1; overflow-y: auto; }

.grid-layer {
    position: fixed; inset: 0;
    background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 30px 30px; z-index: -1; opacity: 0.3;
}

/* CARGA */
.terminal-window { background: #000; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; width: 100%; max-width: 320px; }
.terminal-header { background: #111; padding: 10px; display: flex; align-items: center; border-bottom: 1px solid var(--border); }
.dot { width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.terminal-body { padding: 30px; text-align: center; }
.loader-bar-container { width: 100%; height: 2px; background: rgba(255,255,255,0.05); margin: 20px 0; }
.loader-bar { width: 0%; height: 100%; background: var(--accent); transition: 2.8s linear; }

/* HOME */
.hero-title { font-size: clamp(2.5rem, 12vw, 5.5rem); font-weight: 800; text-align: center; line-height: 0.9; }
.hero-subtitle { font-family: var(--code-font); color: #555; margin: 15px 0 30px; font-size: 0.9rem; }
.nav-buttons { display: flex; flex-direction: column; width: 100%; max-width: 300px; }
.btn-opt { padding: 18px; background: transparent; border: 1px solid var(--border); color: #fff; font-family: var(--code-font); cursor: pointer; transition: 0.3s; margin: 8px 0; }
.btn-opt:hover { background: #fff; color: #000; }

/* PRECIOS (DISEÑO CUADROS TÉCNICOS) */
.price-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; width: 100%; max-width: 600px; margin: 30px 0; }
.p-card { background: #000; border: 1px solid var(--border); padding: 30px; text-align: center; position: relative; }
.featured-border { border-color: var(--accent); }
.card-status { position: absolute; top: 10px; right: 10px; font-size: 8px; font-family: var(--code-font); color: var(--accent); border: 1px solid var(--accent); padding: 2px 5px; }
.p-card span { font-family: var(--code-font); font-size: 10px; color: #555; display: block; margin-bottom: 10px; }
.p-card h3 { font-size: 2.5rem; margin: 0; font-weight: 800; }

.price-actions { display: flex; flex-direction: column; width: 100%; max-width: 300px; gap: 15px; }
.btn-cta-ig { background: var(--accent); color: #000; text-decoration: none; padding: 18px; font-weight: 800; font-family: var(--code-font); text-align: center; transition: 0.3s; }
.btn-cta-ig:hover { background: #fff; transform: scale(1.02); }
.btn-back { background: transparent; border: 1px solid var(--border); color: #444; padding: 10px; font-family: var(--code-font); font-size: 10px; cursor: pointer; }

/* GALERÍA */
.gallery-header { padding: 15px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; background: var(--bg); }
.gallery-intro { text-align: center; padding: 40px 20px; }
.gallery-main-title { font-size: 2.5rem; text-transform: uppercase; font-weight: 800; }
.gallery-cta { font-family: var(--code-font); color: #555; font-size: 0.9rem; margin: 10px 0; }
.instagram-link { color: var(--accent); font-family: var(--code-font); text-decoration: none; font-weight: bold; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 15px; padding: 20px; max-width: 1200px; margin: 0 auto; }
.card { height: 300px; border: 1px solid var(--border); position: relative; overflow: hidden; border-radius: 8px; cursor: pointer; }
.card img { width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }
.info { position: absolute; bottom: 20px; left: 20px; border-left: 2px solid var(--accent); padding-left: 15px; text-align: left; }

/* IFRAME MÓVIL */
#external-frame-container { position: fixed; inset: 0; z-index: 1000; background: #000; display: none; }
#external-iframe { width: 100%; height: 100%; border: none; }
.btn-floating-back { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 1100; padding: 15px 30px; background: var(--accent); color: #000; border: none; font-family: var(--code-font); font-weight: bold; border-radius: 50px; cursor: pointer; width: 80%; max-width: 250px; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .p-card h3 { font-size: 2rem; }
    .gallery-main-title { font-size: 1.8rem; }
    .gallery-grid { grid-template-columns: 1fr; }
}

.pulse { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; display: inline-block; margin-right: 8px; animation: p 1.5s infinite; }
@keyframes p { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }