/* ============================================================
   LiveCare ID — Hoja de estilos principal
   Paleta: #0a2540 (deep blue), #00e5ff (cyan), blanco, negro
   ============================================================ */

:root {
    --deep: #0a2540;
    --deep-2: #0d2f52;
    --deep-3: #112d4e;
    --cyan: #00e5ff;
    --cyan-soft: rgba(0, 229, 255, 0.15);
    --white: #ffffff;
    --black: #000000;
    --gray: #8899aa;
    --gray-2: #b0c4d8;
    --danger: #ff4757;
    --success: #2ed573;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
    --font-body: 'Inter', system-ui, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--deep);
    color: var(--white);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan); text-decoration: none; transition: opacity 0.2s ease; }
a:hover { opacity: 0.8; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; }

.gradient-text {
    background: linear-gradient(90deg, var(--cyan), #7af4ff 60%, var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% auto;
    animation: gradientShift 8s linear infinite;
}

@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* ----- NAVBAR ----- */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 16px 0;
    background: rgba(10, 37, 64, 0.75);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid rgba(0, 229, 255, 0.08);
    transition: padding 0.3s ease, background 0.3s ease;
}
.navbar.scrolled { padding: 10px 0; background: rgba(10, 37, 64, 0.95); }

.nav-container {
    max-width: 1200px; margin: 0 auto;
    padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-display); font-weight: 700;
    color: var(--white); font-size: 1.2rem;
}
.logo-mark { color: var(--cyan); font-size: 1.4rem; }
.logo-text em { color: var(--cyan); font-style: normal; }

.nav-links {
    list-style: none;
    display: flex; gap: 28px; align-items: center;
}
.nav-links a { color: var(--white); font-size: 0.95rem; }
.nav-cta {
    padding: 10px 18px;
    background: var(--cyan);
    color: var(--deep) !important;
    border-radius: 999px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px var(--cyan-soft); opacity: 1; }

.nav-cart {
    position: relative; font-size: 1.2rem;
    padding: 8px 12px; border-radius: 999px;
    background: rgba(255,255,255,0.06);
}
.cart-count {
    position: absolute; top: -4px; right: -4px;
    background: var(--cyan); color: var(--deep);
    font-size: 0.7rem; font-weight: 700;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: grid; place-items: center;
}

.nav-toggle {
    display: none;
    background: none; border: none; cursor: pointer;
    flex-direction: column; gap: 5px; padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--white); border-radius: 2px; }

@media (max-width: 860px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed; top: 64px; right: 16px;
        background: rgba(10, 37, 64, 0.98);
        border: 1px solid rgba(0,229,255,0.15);
        border-radius: var(--radius);
        padding: 16px 20px;
        flex-direction: column; gap: 12px;
        transform: translateY(-10px); opacity: 0; pointer-events: none;
        transition: all 0.25s ease;
    }
    .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
}

/* ----- MENSAJES ----- */
.messages {
    position: fixed; top: 84px; right: 24px; z-index: 90;
    display: flex; flex-direction: column; gap: 8px;
}
.msg {
    padding: 12px 18px; border-radius: 10px;
    background: rgba(0, 229, 255, 0.12);
    border-left: 3px solid var(--cyan);
    color: var(--white); font-size: 0.9rem;
}
.msg-error { background: rgba(255, 71, 87, 0.15); border-left-color: var(--danger); }
.msg-success { background: rgba(46, 213, 115, 0.15); border-left-color: var(--success); }

/* ----- HERO ----- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 140px 24px 80px;
    overflow: hidden;
    text-align: center;
}
.hero-canvas {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    z-index: 0;
}
.hero-glow {
    position: absolute;
    width: 800px; height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--cyan-soft) 0%, transparent 60%);
    filter: blur(60px);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    animation: pulse 8s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 0.7; transform: translate(-50%,-50%) scale(1); }
    50%      { opacity: 1;   transform: translate(-50%,-50%) scale(1.15); }
}
.hero-content {
    position: relative; z-index: 2;
    max-width: 900px;
}
.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid rgba(0,229,255,0.35);
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--cyan);
    margin-bottom: 24px;
    background: rgba(0,229,255,0.06);
}
.hero-title {
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}
.hero-sub {
    font-size: 1.15rem;
    color: var(--gray-2);
    max-width: 640px;
    margin: 0 auto 40px;
}
.hero-cta {
    display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
    margin-bottom: 64px;
}
.hero-stats {
    display: flex; gap: 48px; justify-content: center; flex-wrap: wrap;
}
.hero-stats div {
    display: flex; flex-direction: column; align-items: center;
}
.hero-stats strong { font-size: 2rem; color: var(--cyan); font-family: var(--font-display); }
.hero-stats span { font-size: 0.85rem; color: var(--gray); }

/* ----- BOTONES ----- */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    border: none;
    font-family: var(--font-body);
    text-align: center;
}
.btn-primary {
    background: var(--cyan);
    color: var(--deep);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 229, 255, 0.35);
    opacity: 1;
}
.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); opacity: 1; }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }
.btn-block { display: block; width: 100%; }

/* ----- SECCIONES ----- */
.section { padding: 100px 24px; max-width: 1200px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 64px; }
.eyebrow {
    display: block;
    color: var(--cyan);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

/* ----- STEPS ----- */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.step {
    padding: 40px 28px;
    background: var(--deep-2);
    border: 1px solid rgba(0,229,255,0.1);
    border-radius: var(--radius-lg);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.step:hover { transform: translateY(-4px); border-color: rgba(0,229,255,0.35); }
.step-num {
    font-size: 2.5rem; font-family: var(--font-display);
    color: var(--cyan); opacity: 0.6;
    margin-bottom: 16px;
}
.step h3 { margin-bottom: 12px; }
.step p { color: var(--gray-2); font-size: 0.95rem; }

/* ----- BENEFITS ----- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.benefit-card {
    padding: 32px 24px;
    background: linear-gradient(180deg, rgba(0,229,255,0.04), rgba(0,229,255,0));
    border: 1px solid rgba(0,229,255,0.1);
    border-radius: var(--radius);
    transition: transform 0.3s ease;
}
.benefit-card:hover { transform: translateY(-3px); border-color: rgba(0,229,255,0.3); }
.benefit-icon { font-size: 1.8rem; margin-bottom: 16px; }
.benefit-card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.benefit-card p { color: var(--gray-2); font-size: 0.92rem; }

/* ----- FAQ ----- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
}
.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    list-style: none;
    display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::after {
    content: '+'; color: var(--cyan);
    font-size: 1.5rem; transition: transform 0.3s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 16px; color: var(--gray-2); }

/* ----- CTA FINAL ----- */
.section-cta {
    text-align: center;
    background: linear-gradient(180deg, var(--deep-2), var(--deep));
    max-width: none;
    border-radius: 0;
}

/* ----- PAGE HEAD ----- */
.page-head {
    padding: 140px 24px 60px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}
.page-head p { color: var(--gray-2); margin-top: 12px; }

/* ----- SHOP ----- */
.shop {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 100px;
}
.shop-filters {
    display: flex; gap: 12px; margin-bottom: 40px;
    justify-content: center; flex-wrap: wrap;
}
.chip {
    padding: 10px 20px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    color: var(--white);
    font-size: 0.9rem;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}
.chip:hover { background: rgba(0,229,255,0.1); opacity: 1; }
.chip-active {
    background: var(--cyan);
    color: var(--deep) !important;
    border-color: var(--cyan);
    font-weight: 600;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
.product-card {
    background: var(--deep-2);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(0,229,255,0.08);
    display: flex; flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.product-card:hover { transform: translateY(-4px); border-color: rgba(0,229,255,0.3); }
.product-img {
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, var(--deep-3), #0b1e35);
    display: grid; place-items: center;
    overflow: hidden;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-ph { font-size: 4rem; color: var(--cyan); opacity: 0.5; }
.product-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-tag {
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em;
    color: var(--cyan); margin-bottom: 8px;
}
.product-body h3 { margin-bottom: 10px; }
.product-body p { color: var(--gray-2); font-size: 0.9rem; flex: 1; }
.product-foot {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 16px;
}
.price { font-size: 1.3rem; font-weight: 700; color: var(--cyan); font-family: var(--font-display); }

/* ----- ACTIVATE ----- */
.activate-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px 100px;
}
.stepper {
    display: flex; justify-content: space-between;
    margin-bottom: 40px;
    gap: 8px;
}
.step-item {
    flex: 1;
    display: flex; align-items: center; gap: 8px;
    font-size: 0.85rem; color: var(--gray);
}
.step-item span {
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: grid; place-items: center;
    font-weight: 700; font-size: 0.85rem;
    flex-shrink: 0;
}
.step-item.active { color: var(--cyan); }
.step-item.active span { background: var(--cyan); color: var(--deep); }

.activate-form {
    background: var(--deep-2);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid rgba(0,229,255,0.1);
}
.step-pane { display: none; }
.step-pane.active { display: block; animation: fadeIn 0.35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.step-pane h2 { margin-bottom: 24px; font-size: 1.4rem; }
.step-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 32px; flex-wrap: wrap; }

.field { margin-bottom: 18px; }
.field label {
    display: block; font-size: 0.85rem; color: var(--gray-2);
    margin-bottom: 6px; font-weight: 500;
}
.lc-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--white);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.lc-input:focus {
    outline: none;
    border-color: var(--cyan);
    background: rgba(0,229,255,0.05);
}
textarea.lc-input { resize: vertical; min-height: 80px; }
.err { color: var(--danger); font-size: 0.8rem; margin-top: 4px; display: block; }
.hint { color: var(--gray); font-size: 0.85rem; margin-bottom: 16px; }

/* ----- PROFILE PÚBLICA ----- */
.profile-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 140px 24px 80px;
}
.profile-card {
    background: linear-gradient(180deg, var(--deep-2), #0a1f38);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    border: 1px solid rgba(0,229,255,0.15);
    box-shadow: var(--shadow);
}
.profile-top { margin-bottom: 32px; }
.profile-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(0,229,255,0.1);
    color: var(--cyan);
    font-size: 0.8rem;
    margin-bottom: 16px;
}
.profile-top h1 { font-size: 2rem; margin-bottom: 12px; }
.pet-photo {
    width: 100%; max-width: 320px; border-radius: var(--radius);
    margin-top: 16px;
}

.critical {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 32px;
}
.critical-item {
    background: rgba(0,0,0,0.25);
    border-radius: var(--radius);
    padding: 16px;
    border-left: 3px solid var(--cyan);
}
.critical-blood { border-left-color: var(--danger); }
.critical-blood .value { color: var(--danger); }
.critical-alert { border-left-color: #ff9f1c; }
.critical-alert .value { color: #ff9f1c; }
.critical-item .label {
    display: block; font-size: 0.75rem;
    text-transform: uppercase; letter-spacing: 0.15em;
    color: var(--gray); margin-bottom: 6px;
}
.critical-item .value { font-size: 1.1rem; font-weight: 600; }

.profile-block {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.profile-block h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray); margin-bottom: 8px; }
.profile-block p { color: var(--white); }
.profile-block.emergency { border-bottom: none; background: rgba(255, 71, 87, 0.08); padding: 16px; border-radius: var(--radius); }

.call-btn {
    display: flex; flex-direction: column; align-items: center;
    gap: 6px;
    margin: 28px 0;
    padding: 20px;
    background: linear-gradient(135deg, var(--cyan), #00b8cc);
    color: var(--deep);
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.call-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 229, 255, 0.3);
    opacity: 1;
}
.call-btn span { font-size: 0.95rem; font-weight: 500; }

.profile-meta {
    display: flex; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
    margin-top: 24px; padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.8rem; color: var(--gray);
}
.profile-foot { text-align: center; margin-top: 32px; }

/* ----- CHECKOUT ----- */
.checkout-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px 100px;
}
.checkout-form {
    background: var(--deep-2);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid rgba(0,229,255,0.1);
}
.checkout-summary {
    margin: 24px 0;
    padding: 20px;
    background: rgba(0,0,0,0.25);
    border-radius: var(--radius);
}
.checkout-summary h3 { margin-bottom: 12px; }
.checkout-total {
    margin-top: 12px; padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex; justify-content: space-between;
    font-size: 1.1rem;
}

/* ----- DASHBOARD ----- */
.dashboard {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px 100px;
}
.dashboard h2 { margin: 32px 0 20px; font-size: 1.3rem; }
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.dash-card {
    display: block;
    padding: 20px;
    background: var(--deep-2);
    border: 1px solid rgba(0,229,255,0.1);
    border-radius: var(--radius);
    color: var(--white);
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.dash-card:hover { transform: translateY(-3px); border-color: var(--cyan); opacity: 1; }
.dash-tag { font-size: 0.75rem; color: var(--cyan); text-transform: uppercase; letter-spacing: 0.15em; }
.dash-card h3 { margin: 8px 0; }
.dash-card p { font-size: 0.85rem; color: var(--gray-2); }
.dash-card small { display: block; margin-top: 8px; color: var(--gray); font-size: 0.75rem; }

.dash-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.dash-table th, .dash-table td { padding: 12px; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 0.9rem; }
.dash-table th { color: var(--gray); font-weight: 500; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; }

/* ----- CARRITO DRAWER ----- */
.cart-drawer {
    position: fixed; top: 0; right: 0;
    width: 400px; max-width: 100vw;
    height: 100vh;
    background: var(--deep-2);
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column;
    box-shadow: -10px 0 40px rgba(0,0,0,0.5);
}
.cart-drawer.open { transform: translateX(0); }
.cart-header {
    padding: 20px 24px;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.cart-header h3 { font-size: 1.1rem; }
.cart-header button {
    background: none; border: none; color: var(--white);
    font-size: 1.8rem; cursor: pointer; line-height: 1;
}
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-item {
    display: flex; justify-content: space-between; gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cart-item h4 { font-size: 0.95rem; margin-bottom: 4px; }
.cart-item small { color: var(--gray); font-size: 0.8rem; }
.cart-item button {
    background: none; border: none; color: var(--danger);
    cursor: pointer; font-size: 1.2rem;
}
.cart-footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.cart-total { margin-bottom: 12px; font-size: 1.05rem; display: flex; justify-content: space-between; }
.cart-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 150;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

/* ----- FOOTER ----- */
.footer {
    background: var(--deep-2);
    border-top: 1px solid rgba(0,229,255,0.08);
    padding: 60px 24px 20px;
}
.footer-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; gap: 40px;
    flex-wrap: wrap;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-tag { color: var(--gray); margin-top: 8px; font-size: 0.9rem; }
.footer-cols { display: flex; gap: 60px; }
.footer-cols h4 { font-size: 0.8rem; color: var(--gray); text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 12px; }
.footer-cols a { display: block; color: var(--white); font-size: 0.9rem; margin-bottom: 8px; }
.footer-bottom { text-align: center; padding-top: 20px; color: var(--gray); font-size: 0.85rem; }

/* ----- RESPONSIVE ----- */
@media (max-width: 640px) {
    .hero-stats { gap: 24px; }
    .hero-stats strong { font-size: 1.5rem; }
    .step-actions { flex-direction: column-reverse; }
    .step-actions .btn { width: 100%; }
    .activate-form, .checkout-form { padding: 24px 20px; }
    .profile-card { padding: 28px 20px; }
    .critical-item .value { font-size: 1rem; }
}
