/* ===================================================================
   HIELO CRISTALINO – Tema global
   =================================================================== */

@import "home-hW2P8hR.css";
@import "cart-znQB6za.css";
@import "summary-1GZG1Ov.css";
@import "manager-a887bg0.css";

:root {
    --ice-deep: #060e1c;
    --ice-dark: #0a1628;
    --ice-mid: #0d2040;
    --ice-blue: #1a5fa8;
    --ice-crystal: #4db8ff;
    --ice-glow: #7dd4ff;
    --ice-white: #e8f4ff;
    --accent: #00c8ff;
    --accent-soft: rgba(0, 200, 255, 0.15);
    --gold: #ffb347;
    --success: #00e676;
    --danger: #ff4444;
    --card-bg: rgba(255, 255, 255, 0.04);
    --card-border: rgba(77, 184, 255, 0.18);
    --font-head: 'Exo 2', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-top: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--ice-white);
    background: var(--ice-deep);
    background-image:
        radial-gradient(ellipse at 20% 10%, rgba(26, 95, 168, 0.25) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 90%, rgba(0, 200, 255, 0.12) 0%, transparent 50%);
    background-attachment: fixed;
    min-height: 100dvh;
    line-height: 1.4;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

button { font-family: inherit; }

input, textarea {
    font-family: inherit;
    color: var(--ice-white);
}

/* Layout container */
.hc-app {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding-top: var(--safe-top);
    padding-bottom: var(--safe-bottom);
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
    position: relative;
}

/* Page wrapper used inside main */
.hc-page {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 100dvh;
}

/* ============= HEADER / TOOLBAR ============= */
.hc-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(6, 14, 28, 0.97);
    border-bottom: 1px solid rgba(77, 184, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.hc-header-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    min-height: 56px;
}

.hc-title {
    font-family: var(--font-head);
    font-weight: 900;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #7dd4ff, #00c8ff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-size: 18px;
    margin: 0;
}

.back-btn-custom {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 28px;
    padding: 0 8px;
    cursor: pointer;
    line-height: 1;
}

/* ============= BOTONES ============= */
.hc-btn {
    background: linear-gradient(135deg, #1a5fa8, #00c8ff);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
    padding: 14px 28px;
    width: 100%;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
    box-shadow: 0 4px 20px rgba(0, 200, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.hc-btn:active { transform: scale(0.97); }
.hc-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.hc-btn.secondary {
    background: rgba(0, 200, 255, 0.08);
    border: 1px solid rgba(0, 200, 255, 0.3);
    color: var(--accent);
    box-shadow: none;
}

.hc-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.section-label {
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0.7;
}

/* ============= ANIMACIONES GLOBALES ============= */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

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

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 15px rgba(0, 200, 255, 0.3); }
    50% { box-shadow: 0 0 35px rgba(0, 200, 255, 0.6); }
}

/* ============= FLASH ============= */
.flash {
    position: fixed;
    top: calc(20px + var(--safe-top));
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 230, 118, 0.15);
    border: 1px solid rgba(0, 230, 118, 0.4);
    color: var(--success);
    border-radius: 20px;
    padding: 10px 24px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 14px;
    z-index: 9999;
    animation: fadeInUp 0.3s ease;
}

.flash-error {
    background: rgba(255, 68, 68, 0.15);
    border-color: rgba(255, 68, 68, 0.4);
    color: var(--danger);
}

/* ============= UTILIDADES RESPONSIVE ============= */
@media (max-width: 360px) {
    .hc-header-inner { padding: 10px 12px; }
}
