/* ===== GreatCloud - Estilos globales ===== */
:root {
  --bg: #0a1020;
  --bg-soft: #10182D;
  --surface: #141d33;
  --surface-2: #1b2645;
  --border: #243250;
  --text: #eef2ff;
  --text-dim: #9fabc9;
  --primary: #2f6bff;
  --primary-2: #38bdf8;
  --accent: #1e90ff;
  --success: #34d399;
  --danger: #f87171;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
  --grad: linear-gradient(120deg, #2f6bff 0%, #1e90ff 50%, #38bdf8 100%);
  --max: 1160px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ===== Fondos decorativos ===== */
.glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 400px at 80% -5%, rgba(47, 107, 255, 0.22), transparent 60%),
    radial-gradient(700px 500px at 0% 10%, rgba(30, 144, 255, 0.16), transparent 55%),
    radial-gradient(500px 400px at 50% 100%, rgba(56, 189, 248, 0.10), transparent 60%);
}

/* ===== Navbar ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11, 16, 32, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand img { height: 34px; width: auto; }
.brand span b { color: var(--primary-2); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-dim); font-weight: 500; font-size: 0.95rem; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 1.6rem; cursor: pointer; }

/* ===== Botones ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 12px; font-weight: 600; font-size: 0.95rem;
  cursor: pointer; border: 1px solid transparent; transition: transform .15s, box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(47, 107, 255, 0.7); }
.btn-primary:hover { box-shadow: 0 14px 40px -10px rgba(56, 189, 248, 0.7); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface); }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; border-radius: 14px; }
.btn-block { width: 100%; }

/* ===== Hero ===== */
.hero { padding: 90px 0 60px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-dim);
  font-size: 0.82rem; font-weight: 600; margin-bottom: 22px;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 12px var(--success); }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: var(--text-dim); font-size: 1.18rem; margin: 22px 0 30px; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; color: var(--text-dim); font-size: 0.9rem; display: flex; gap: 18px; flex-wrap: wrap; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }

/* Mockup de telefono */
.phone {
  position: relative; margin: 0 auto; width: 300px; height: 600px;
  background: linear-gradient(160deg, #1b2545, #0d1428);
  border-radius: 42px; border: 2px solid var(--border);
  box-shadow: var(--shadow); padding: 14px; overflow: hidden;
}
.phone::before { content: ''; position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 120px; height: 24px; background: #0b1020; border-radius: 20px; z-index: 3; }
.phone-screen { width: 100%; height: 100%; border-radius: 30px; background: var(--bg-soft); overflow: hidden; position: relative; }
.phone-header { padding: 46px 18px 14px; }
.phone-header h4 { font-size: 1.1rem; }
.phone-header p { color: var(--text-dim); font-size: 0.78rem; }
.phone-bar { height: 8px; border-radius: 999px; background: var(--surface-2); margin: 12px 18px 4px; overflow: hidden; }
.phone-bar i { display: block; height: 100%; width: 46%; background: var(--grad); }
.phone-bar-label { padding: 0 18px; color: var(--text-dim); font-size: 0.72rem; }
.phone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 16px 18px; }
.phone-grid div { aspect-ratio: 1; border-radius: 10px; background: linear-gradient(135deg, var(--surface-2), var(--surface)); }
.phone-grid div:nth-child(3n) { background: linear-gradient(135deg, #2a3a6a, rgba(34, 211, 238, 0.18)); }
.float-card {
  position: absolute; background: rgba(21, 29, 56, 0.9); backdrop-filter: blur(8px);
  border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 10px; font-size: 0.82rem; font-weight: 600;
}
.float-card .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; color: #fff; }
.float-1 { top: 120px; right: -20px; }
.float-2 { bottom: 90px; left: -26px; }

/* ===== Secciones ===== */
section { padding: 70px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -0.02em; font-weight: 800; }
.section-head p { color: var(--text-dim); font-size: 1.08rem; margin-top: 12px; }
.eyebrow { color: var(--primary-2); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; }

/* Grid de features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--primary); }
.card .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--grad); display: grid; place-items: center; margin-bottom: 18px; }
.card .ic svg { width: 26px; height: 26px; stroke: #fff; }
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { color: var(--text-dim); font-size: 0.96rem; }

/* Como funciona */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; position: relative; }
.step .num { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; font-weight: 800; color: var(--primary-2); margin-bottom: 16px; }
.step h3 { font-size: 1.15rem; margin-bottom: 6px; }
.step p { color: var(--text-dim); font-size: 0.95rem; }

/* CTA final */
.cta-box { background: var(--grad); border-radius: 28px; padding: 60px 40px; text-align: center; position: relative; overflow: hidden; }
.cta-box h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.02em; }
.cta-box p { color: rgba(255,255,255,0.9); font-size: 1.1rem; margin: 14px 0 28px; }
.cta-box .btn-ghost { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.3); color: #fff; }
.cta-box .btn-light { background: #fff; color: #1b2545; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--border); padding: 50px 0 34px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer h5 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); margin-bottom: 14px; }
.footer a { display: block; color: var(--text-dim); padding: 5px 0; font-size: 0.95rem; }
.footer a:hover { color: var(--text); }
.footer .brand { margin-bottom: 14px; }
.footer .muted { color: var(--text-dim); font-size: 0.92rem; max-width: 280px; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 34px; padding-top: 22px; display: flex; justify-content: space-between; color: var(--text-dim); font-size: 0.88rem; flex-wrap: wrap; gap: 10px; }

/* ===== Auth (login/registro) ===== */
.auth-wrap { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 50px 24px; }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.7rem; letter-spacing: -0.02em; }
.auth-card .sub { color: var(--text-dim); margin: 8px 0 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 7px; color: var(--text-dim); }
.field input {
  width: 100%; padding: 13px 15px; border-radius: 12px; background: var(--bg-soft);
  border: 1px solid var(--border); color: var(--text); font-size: 0.98rem; font-family: inherit; transition: border-color .2s;
}
.field input:focus { outline: none; border-color: var(--primary); }
.auth-alt { text-align: center; margin-top: 20px; color: var(--text-dim); font-size: 0.95rem; }
.auth-alt a { color: var(--primary-2); font-weight: 600; }
.alert { padding: 12px 15px; border-radius: 12px; font-size: 0.92rem; margin-bottom: 18px; display: none; }
.alert.error { background: rgba(248, 113, 113, 0.12); border: 1px solid rgba(248, 113, 113, 0.4); color: #fecaca; }
.alert.ok { background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.4); color: #a7f3d0; }
.alert.show { display: block; }

/* ===== Dashboard ===== */
.dash { padding: 40px 0 80px; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 30px; flex-wrap: wrap; gap: 16px; }
.dash-head h1 { font-size: 1.9rem; letter-spacing: -0.02em; }
.dash-head p { color: var(--text-dim); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 26px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.stat .k { color: var(--text-dim); font-size: 0.85rem; font-weight: 600; }
.stat .v { font-size: 1.7rem; font-weight: 800; margin-top: 4px; }
.storage-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; margin-bottom: 26px; }
.storage-card .bar { height: 12px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; margin: 14px 0 8px; }
.storage-card .bar i { display: block; height: 100%; background: var(--grad); border-radius: 999px; transition: width .4s; }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.chip { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-dim); font-weight: 600; font-size: 0.9rem; cursor: pointer; }
.chip.active { background: var(--grad); color: #fff; border-color: transparent; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tile { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile .meta { position: absolute; inset: auto 0 0 0; padding: 8px 10px; font-size: 0.72rem; background: linear-gradient(transparent, rgba(0,0,0,0.75)); }
.tile .del { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 8px; background: rgba(0,0,0,0.55); border: 0; color: #fff; cursor: pointer; display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.tile:hover .del { opacity: 1; }
.file-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px; }
.file-row .fic { width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; flex-shrink: 0; }
.file-row .fname { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row .fsize { color: var(--text-dim); font-size: 0.88rem; }
.empty { text-align: center; padding: 60px 20px; color: var(--text-dim); }
.dropzone { border: 2px dashed var(--border); border-radius: var(--radius); padding: 30px; text-align: center; color: var(--text-dim); margin-bottom: 24px; transition: border-color .2s, background .2s; cursor: pointer; }
.dropzone.drag { border-color: var(--primary); background: var(--surface); }
.tile { cursor: pointer; }

/* ===== Lightbox / visor ===== */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5, 8, 18, 0.95); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox-media { max-width: 92vw; max-height: 86vh; border-radius: 10px; box-shadow: var(--shadow); }
.lightbox-media img, .lightbox-media video { max-width: 92vw; max-height: 86vh; border-radius: 10px; display: block; }
.lb-btn { position: absolute; background: rgba(255,255,255,0.12); border: 1px solid var(--border); color: #fff; width: 52px; height: 52px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.lb-btn:hover { background: rgba(255,255,255,0.25); }
.lb-close { top: 20px; right: 20px; width: 46px; height: 46px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-bar { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; align-items: center; background: rgba(21,29,51,0.85); padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border); }
.lb-bar .name { color: var(--text); font-size: 0.9rem; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-bar a, .lb-bar button { color: var(--text); background: none; border: 0; cursor: pointer; font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px; }
.lb-bar .danger { color: var(--danger); }
@media (max-width: 600px) {
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
  .lb-btn { width: 44px; height: 44px; }
}

/* ===== Utilidades / responsive ===== */
.hide { display: none !important; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-note { justify-content: center; }
  .phone { margin-top: 30px; }
  .features, .steps { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { position: fixed; inset: 72px 0 auto 0; flex-direction: column; background: var(--bg-soft); border-bottom: 1px solid var(--border); padding: 20px 24px; gap: 16px; display: none; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}
@media (max-width: 520px) {
  .stat-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== Mejoras dashboard ===== */
.search-input {
  -webkit-appearance: none; appearance: none;
  padding: 10px 14px 10px 38px; border-radius: 12px; background-color: var(--surface);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%239fabc9' stroke-width='2' stroke-linecap='round'><circle cx='8' cy='8' r='6'/><path d='M17 17l-4-4'/></svg>");
  background-repeat: no-repeat; background-position: 12px center;
  border: 1px solid var(--border); color: var(--text); font-family: inherit; font-size: 0.92rem;
  min-width: 240px; transition: border-color .2s, box-shadow .2s;
}
.search-input::placeholder { color: var(--text-dim); }
.search-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47,107,255,0.18); }
.search-input::-webkit-search-decoration,
.search-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }

.tile-play { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.tile-play svg { background: rgba(0,0,0,0.45); border-radius: 50%; padding: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.tile-actions { position: absolute; top: 6px; right: 6px; display: flex; gap: 6px; opacity: 0; transition: opacity .15s; }
.tile:hover .tile-actions { opacity: 1; }
.tile-actions button { width: 30px; height: 30px; border-radius: 8px; background: rgba(0,0,0,0.6); border: 0; color: #fff; cursor: pointer; font-size: 1.1rem; display: grid; place-items: center; }
.tile-actions button:hover { background: var(--danger); }
@media (hover: none) { .tile-actions { opacity: 1; } }

/* Panel de subida flotante */
.upload-panel {
  position: fixed; bottom: 20px; right: 20px; width: 360px; max-width: calc(100vw - 32px);
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow); z-index: 150; display: none; overflow: hidden;
}
.upload-panel.open { display: block; }
.up-head { display: flex; align-items: center; gap: 8px; padding: 14px 16px; }
.up-head strong { font-size: 0.95rem; }
.up-sub { color: var(--text-dim); font-size: 0.8rem; margin-top: 2px; }
.up-head > div:first-child { flex: 1; }
.up-toggle, .up-close { width: 28px; height: 28px; border-radius: 8px; border: 0; background: var(--surface-2); color: var(--text); cursor: pointer; font-size: 1rem; }
.up-overall { height: 4px; background: var(--bg-soft); }
.up-overall i { display: block; height: 100%; background: var(--grad); width: 0; transition: width .2s; }
.up-list { max-height: 260px; overflow-y: auto; padding: 8px 16px 16px; }
.upload-panel.min .up-list, .upload-panel.min .up-overall { display: none; }
.up-item { padding: 8px 0; }
.up-item-top { display: flex; justify-content: space-between; gap: 10px; font-size: 0.82rem; margin-bottom: 5px; }
.up-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-pct { color: var(--text-dim); flex-shrink: 0; }
.up-pct.done { color: var(--success); }
.up-pct.error { color: var(--danger); }
.up-bar { height: 5px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; }
.up-bar i { display: block; height: 100%; background: var(--grad); border-radius: 999px; transition: width .15s; }

/* Reproductor de video custom */
.vp { position: relative; background: #000; border-radius: 10px; overflow: hidden; max-width: 92vw; max-height: 86vh; }
.vp video { display: block; max-width: 92vw; max-height: 86vh; }
.vp-center { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; transition: opacity .2s; }
.vp-center button { pointer-events: auto; width: 74px; height: 74px; border-radius: 50%; border: 0; background: rgba(47,107,255,0.85); color: #fff; font-size: 1.8rem; cursor: pointer; }
.vp-controls {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px;
  padding: 14px 14px 12px; background: linear-gradient(transparent, rgba(0,0,0,0.75));
  opacity: 0; transition: opacity .2s;
}
.vp:hover .vp-controls, .vp-controls:focus-within { opacity: 1; }
.vp-controls button { background: none; border: 0; color: #fff; cursor: pointer; font-size: 1.05rem; padding: 4px; }
.vp-time { color: #fff; font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.vp-seek { position: relative; flex: 1; height: 6px; background: rgba(255,255,255,0.25); border-radius: 999px; cursor: pointer; }
.vp-seek-buf { position: absolute; height: 100%; border-radius: 999px; background: rgba(255,255,255,0.15); width: 0; }
.vp-seek i { position: absolute; height: 100%; border-radius: 999px; background: var(--primary); width: 0; }
.vp-seek span { position: absolute; top: 50%; width: 13px; height: 13px; border-radius: 50%; background: #fff; transform: translate(-50%,-50%); }
.vp-vol { width: 70px; height: 5px; background: rgba(255,255,255,0.25); border-radius: 999px; cursor: pointer; position: relative; }
.vp-vol i { display: block; height: 100%; background: #fff; border-radius: 999px; width: 100%; }

/* Imagen del lightbox con zoom */
#lbImg { transition: transform .08s linear; transform-origin: center center; user-select: none; }

/* ===== Funciones dashboard: favoritos, seleccion, compartir, papelera ===== */
.tile-fav-badge { position: absolute; top: 6px; left: 6px; color: #FFD54F; font-size: 1.1rem; text-shadow: 0 1px 4px rgba(0,0,0,.6); pointer-events: none; }
.tile-check { position: absolute; top: 6px; left: 6px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.5); border: 2px solid #fff; color: #fff; display: none; place-items: center; cursor: pointer; z-index: 2; }
.tile:hover .tile-check { display: grid; }
.tile.selected .tile-check { display: grid; background: var(--primary); }
.tile.selected { outline: 3px solid var(--primary); outline-offset: -3px; }
.tile.selected .tile-fav-badge { display: none; }
.file-row.selected { background: rgba(47,107,255,.18); }

.selbar { display: none; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 16px; border-radius: 12px; background: var(--primary); color: #fff; }
.selbar.open { display: flex; }
.selbar .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }

.trash-actions { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.trash-actions button { width: 32px; height: 32px; border-radius: 8px; background: rgba(0,0,0,.65); border: 0; color: #fff; cursor: pointer; font-size: 1.1rem; }
.trash-actions button:last-child:hover { background: var(--danger); }

/* Modal generico */
.gc-modal { position: fixed; inset: 0; background: rgba(5,9,20,.75); display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px; }
.gc-modal.open { display: flex; }
.gc-modal-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; width: 100%; max-width: 480px; max-height: 85vh; overflow: auto; }
.gc-modal-card h3 { margin-bottom: 12px; }
.gc-modal-card .field { margin: 12px 0; }
.gc-modal-card .field label { display: block; font-size: .85rem; color: var(--text-dim); margin-bottom: 4px; }
.gc-modal-card .field input[type="text"], .gc-modal-card .field input[type="password"], .gc-modal-card .field select {
  width: 100%; padding: 10px 12px; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--border); color: var(--text);
}
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.link-box input { width: 100%; padding: 10px 12px; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--border); color: var(--accent); }
.share-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }

/* ===== Pagina publica de comparticion ===== */
.share-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-bottom: 1px solid var(--border); }
.share-wrap { padding: 30px 0 60px; }
.share-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.share-state { text-align: center; padding: 60px 0; }
.share-state h1 { margin-bottom: 10px; }

/* ============================================================
   Landing v2: hero mockup mejorado, barra de confianza y CTA
   ============================================================ */

/* Contenedor del mockup con glow detras */
.hero-phone-wrap { position: relative; display: flex; justify-content: center; }
.hero-phone-wrap::before {
  content: ''; position: absolute; top: 50%; left: 50%; width: 380px; height: 380px;
  transform: translate(-50%, -50%); z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(47,107,255,0.35), rgba(56,189,248,0.12) 55%, transparent 72%);
  filter: blur(10px);
}

/* Animacion suave de flotacion del telefono */
.phone--hero { animation: phoneFloat 6s ease-in-out infinite; will-change: transform; }
@keyframes phoneFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* Barra de estado simulada */
.phone-topbar { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 0; font-size: 0.72rem; color: var(--text-dim); font-weight: 600; }
.phone-topbar .phone-dots { display: inline-flex; gap: 4px; }
.phone-topbar .phone-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--text-dim); display: block; }
.phone--hero .phone-header { padding-top: 14px; }
.phone--hero .phone-header h4 { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; }
.phone--hero .phone-bar { height: 9px; }
.phone--hero .phone-bar i { width: 46%; animation: barGrow 5s ease-in-out infinite; }
@keyframes barGrow { 0%,100% { width: 44%; } 50% { width: 52%; } }

/* Tiles que parecen fotos reales (gradientes vivos) */
.mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 14px 18px 18px; }
.mock-photo { position: relative; aspect-ratio: 1; border-radius: 11px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05); }
.mock-photo::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 28% 22%, rgba(255,255,255,0.35), transparent 55%); }
.mock-photo.p1  { background: linear-gradient(135deg, #ff8a5b, #ff5f9e); }
.mock-photo.p2  { background: linear-gradient(135deg, #2f80ed, #56ccf2); }
.mock-photo.p3  { background: linear-gradient(135deg, #11998e, #38ef7d); }
.mock-photo.p4  { background: linear-gradient(135deg, #7b4397, #dc2430); }
.mock-photo.p5  { background: linear-gradient(135deg, #0f2027, #2c5364); }
.mock-photo.p6  { background: linear-gradient(135deg, #f7971e, #ffd200); }
.mock-photo.p7  { background: linear-gradient(135deg, #ec008c, #fc6767); }
.mock-photo.p8  { background: linear-gradient(135deg, #136a8a, #4ca1af); }
.mock-photo.p9  { background: linear-gradient(135deg, #654ea3, #eaafc8); }
.mock-photo.p10 { background: linear-gradient(135deg, #2193b0, #6dd5ed); }
.mock-photo.p11 { background: linear-gradient(135deg, #f12711, #f5af19); }
.mock-photo.p12 { background: linear-gradient(135deg, #1a2980, #26d0ce); }
.mock-photo.has-fav::after { content: '\2605'; position: absolute; top: 4px; right: 6px; color: #FFD54F; font-size: 12px; text-shadow: 0 1px 3px rgba(0,0,0,0.6); }
.mock-photo.has-video::after {
  content: '\25B6'; position: absolute; top: 50%; left: 50%; transform: translate(-42%, -50%);
  width: 30px; height: 30px; line-height: 30px; text-align: center; font-size: 13px; color: #fff;
  background: rgba(0,0,0,0.45); border-radius: 50%;
}

/* Tarjetas flotantes */
.float-card { animation: cardFloat 6s ease-in-out infinite; max-width: 250px; }
.float-2 { animation-delay: -3s; }
@keyframes cardFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(10px); } }
.float-card .ic.ic-ok { background: linear-gradient(135deg, #22c55e, #16a34a); }
.float-progress { width: 130px; height: 5px; border-radius: 999px; background: rgba(255,255,255,0.16); margin-top: 6px; overflow: hidden; }
.float-progress i { display: block; height: 100%; border-radius: 999px; background: var(--grad); width: 40%; animation: upProgress 3.2s ease-in-out infinite; }
@keyframes upProgress { 0% { width: 15%; } 70% { width: 85%; } 100% { width: 92%; } }

/* Barra de confianza */
.trustbar { padding: 0 0 20px; }
.trustbar-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 20px;
}
.trust { text-align: center; }
.trust b { display: block; font-size: 1.7rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.trust span { color: var(--text-dim); font-size: 0.9rem; }

/* Glow interior del CTA */
.cta-box .cta-glow { position: absolute; inset: 0; background: radial-gradient(500px 240px at 80% -10%, rgba(255,255,255,0.28), transparent 60%); pointer-events: none; }
.cta-box > * { position: relative; z-index: 1; }

/* ===== Responsive del landing ===== */
@media (max-width: 900px) {
  .trustbar-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-phone-wrap { margin-top: 24px; }
  .float-1 { top: 80px; right: 0; }
  .float-2 { bottom: 70px; left: 0; }
}
@media (max-width: 560px) {
  .hero { padding: 48px 0 30px; }
  section { padding: 48px 0; }
  .phone--hero { transform: scale(0.92); animation: none; }
  .phone { width: 270px; height: 540px; }
  .float-card { font-size: 0.76rem; padding: 10px 12px; }
  .float-1 { top: 60px; right: -6px; }
  .float-2 { bottom: 64px; left: -6px; }
  .float-progress { width: 100px; }
  .hero-note { gap: 10px 18px; font-size: 0.85rem; }
  .cta-box { padding: 42px 22px; }
}
@media (max-width: 380px) {
  .phone { width: 240px; height: 480px; }
  .trustbar-grid { padding: 18px 12px; }
  .trust b { font-size: 1.4rem; }
}

/* Accesibilidad: respetar reduccion de movimiento */
@media (prefers-reduced-motion: reduce) {
  .phone--hero, .float-card, .phone--hero .phone-bar i, .float-progress i { animation: none; }
}
