/* Teléfono y bandeja de la sección del correo, recuperados de la v1 (main). */
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(10,132,255,0.18); }
  50%      { box-shadow: 0 0 0 7px rgba(10,132,255,0.05); }
}
.mails-section { padding: 120px 48px; }
.mails-section > .section-inner > h2 { margin-bottom: 24px; }
.mails-section > .section-inner > .lead { max-width: 640px; margin-bottom: 56px; }
.mails-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
  margin-top: 96px;
}
.phone-stage {
  position: sticky;
  top: 96px;
  align-self: start;
  display: flex; justify-content: center;
  height: calc(100vh - 96px);
  min-height: 480px;
  align-items: center;
}
@media (max-height: 760px) {
  .phone-stage .phone { transform: scale(0.88); transform-origin: center; }
}
@media (max-height: 660px) {
  .phone-stage .phone { transform: scale(0.78); transform-origin: center; }
}
.phone {
  width: 308px;
  height: 632px;
  background: #0a0a0a;
  border-radius: 44px;
  padding: 10px;
  box-shadow:
    0 40px 80px -20px rgba(0,0,0,0.35),
    0 12px 24px -8px rgba(0,0,0,0.18),
    0 0 0 1px rgba(0,0,0,0.08),
    inset 0 0 0 2px #1a1a1a;
  position: relative;
}
.phone::before {
  content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 28px; background: #000; border-radius: 16px; z-index: 5;
  box-shadow: inset 0 0 0 1px #1a1a1a;
}
.phone-bezel-glow {
  position: absolute; inset: 0;
  border-radius: 44px;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), transparent 30%, transparent 70%, rgba(255,255,255,0.04));
}
.phone-screen {
  width: 100%; height: 100%;
  background: #fff;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  display: flex; flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", sans-serif;
}
.phone-statusbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px 28px 6px;
  font-size: 14px;
  font-weight: 600;
  color: #000;
  height: 50px;
  letter-spacing: -0.01em;
}
.phone-statusbar .sb-time { justify-self: start; }
.phone-statusbar .sb-notch { width: 96px; height: 22px; }
.phone-statusbar .icons { justify-self: end; display: flex; gap: 5px; align-items: center; }
.phone-mailheader {
  padding: 6px 16px 10px;
  display: flex; align-items: center; justify-content: space-between;
  background: #fff;
  position: relative;
}
.phone-mailheader::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: #ececec;
}
.phone-mailheader .mh-back {
  color: #0a84ff; font-size: 15px; font-weight: 400;
  display: flex; align-items: center; gap: 2px;
  letter-spacing: -0.01em;
}
.phone-mailheader .mh-badge {
  margin-left: 8px;
  background: #ff3b30; color: #fff;
  font-size: 11px; font-weight: 600;
  padding: 1px 7px; border-radius: 999px;
  line-height: 1.4;
}
.phone-mailheader .mh-actions {
  display: flex; gap: 18px; color: #0a84ff;
}
.mail-body {
  flex: 1;
  overflow: hidden;
  background: #fff;
  position: relative;
}
.mail-inner {
  padding: 14px 18px 24px;
  transition: transform 900ms cubic-bezier(.65,.01,.18,1);
  will-change: transform;
}
.mail-fade-top, .mail-fade-bottom {
  position: absolute; left: 0; right: 0; height: 28px;
  pointer-events: none; z-index: 2;
}
.mail-fade-top { top: 0; background: linear-gradient(to bottom, #fff, rgba(255,255,255,0)); }
.mail-fade-bottom { bottom: 0; background: linear-gradient(to top, #fff, rgba(255,255,255,0)); }
.mail-from {
  display: flex; gap: 10px; align-items: center;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}
.mail-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, #1f1f1f 0%, #0a0a0a 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.mail-meta { flex: 1; min-width: 0; font-size: 13px; line-height: 1.35; }
.mail-meta .mm-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
}
.mail-meta .mm-row-sub { margin-top: 2px; }
.mail-meta .name { font-weight: 600; color: #000; font-size: 14px; letter-spacing: -0.01em; }
.mail-meta .time { color: #8e8e93; font-size: 12px; font-weight: 400; flex-shrink: 0; }
.mail-meta .addr { color: #8e8e93; font-size: 12px; }
.mail-meta .addr .chev { color: #c7c7cc; margin-left: 2px; }
.mail-meta .star { color: #c7c7cc; font-size: 14px; }
.mail-subject {
  font-weight: 700;
  font-size: 18px; line-height: 1.25;
  color: #000;
  margin: 4px 0 14px;
  letter-spacing: -0.015em;
  position: relative;
}
.mail-text {
  font-size: 14.5px; line-height: 1.55;
  color: #1c1c1e;
  letter-spacing: -0.005em;
}
.mail-text p { margin: 0 0 12px; }
.mail-text p.mail-pd {
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid #f0f0f0;
  color: #48484a; font-size: 13.5px;
}
.mail-text strong { font-weight: 600; }
.phone-mailtoolbar {
  display: flex; align-items: center; gap: 24px;
  padding: 12px 24px 22px;
  background: #fff;
  border-top: 1px solid #ececec;
  color: #0a84ff;
  font-size: 14px;
  font-weight: 500;
}
.phone-mailtoolbar .mt-reply { margin-left: auto; }
.mail-hl {
  display: inline;
  position: relative;
  padding: 1px 3px;
  margin: 0 -3px;
  border-radius: 3px;
  background: transparent;
  color: inherit;
  transition:
    background 600ms cubic-bezier(.4,0,.2,1),
    color 600ms cubic-bezier(.4,0,.2,1);
}
.mail-hl.active {
  background: rgba(0,71,255,0.10);
  color: var(--pl-blue-700);
  box-shadow: 0 0 0 0.5px rgba(0,71,255,0.12);
}
.inbox-layer, .mail-layer {
  position: absolute; inset: 50px 0 0 0;
  display: flex; flex-direction: column;
  background: #fff;
  transition: opacity 600ms cubic-bezier(.4,0,.2,1);
}
.inbox-layer.is-hidden, .mail-layer.is-hidden {
  opacity: 0; pointer-events: none;
}
.mail-layer { z-index: 2; }
.inbox-layer { z-index: 1; }
.mail-layer.is-entering {
  animation: mail-push 850ms cubic-bezier(.65,.01,.18,1) both;
}
@keyframes mail-push {
  0%   { transform: translateY(8%) scale(0.96); opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.inbox-layer.is-zooming {
  animation: inbox-zoom 850ms cubic-bezier(.65,.01,.18,1) forwards;
}
@keyframes inbox-zoom {
  0%   { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.06); opacity: 0; }
}
.inbox-header {
  padding: 8px 18px 12px;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
  flex-shrink: 0;
}
.inbox-header .ih-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px;
  color: #0a84ff;
  font-weight: 500;
  margin-bottom: 4px;
}
.inbox-header .ih-filter { color: #0a84ff; font-size: 14px; }
.inbox-header .ih-title {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 28px; font-weight: 700; letter-spacing: -0.02em;
  margin: 4px 0 8px; color: #000;
}
.ih-search {
  background: #efeff0; border-radius: 10px;
  padding: 7px 10px;
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; color: #8e8e93;
}
.ih-search-icon { font-size: 14px; }
.inbox-list {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.inbox-row {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 11px 16px 11px 14px;
  border-bottom: 1px solid #f4f4f5;
  background: #fff;
  position: relative;
  opacity: 0;
  transform: translateY(-12px);
  transition:
    opacity 520ms cubic-bezier(.22,1,.36,1),
    transform 520ms cubic-bezier(.22,1,.36,1),
    filter  420ms cubic-bezier(.4,0,.2,1),
    box-shadow 420ms cubic-bezier(.4,0,.2,1),
    background 420ms cubic-bezier(.4,0,.2,1);
  will-change: opacity, transform;
}
.inbox-row.is-armed { opacity: 1; transform: translateY(0); }
.inbox-row.is-dim {
  opacity: 0.32;
  transform: translateY(0);
  filter: grayscale(1) blur(0.4px);
}
.inbox-row.is-hl {
  opacity: 1;
  z-index: 3;
  box-shadow:
    0 14px 32px -10px rgba(0,71,255,0.42),
    0 0 0 1px rgba(0,71,255,0.22);
  background: linear-gradient(180deg, #fff, #f4f7ff);
  transform: translateY(-2px) scale(1.018);
}
.ir-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; font-weight: 600;
  flex-shrink: 0;
  margin-top: 2px;
}
.ir-body { flex: 1; min-width: 0; }
.ir-top {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px;
}
.ir-from {
  font-weight: 600; color: #000;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 75%;
  letter-spacing: -0.01em;
}
.ir-time { color: #8e8e93; font-size: 12px; flex-shrink: 0; }
.ir-subject {
  font-size: 13px; color: #1c1c1e; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 1px;
  letter-spacing: -0.005em;
}
.ir-preview {
  font-size: 12.5px; color: #8e8e93;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 1px;
}
.ir-dot {
  position: absolute; left: 4px; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: #0a84ff;
  box-shadow: 0 0 0 4px rgba(10,132,255,0.18);
  animation: pulse-dot 1.6s ease-in-out infinite;
}
.steps-list {
  display: flex; flex-direction: column;
  gap: 28px;
  padding: 28vh 0 40vh;
}
.step {
  opacity: 0;
  transform: translateY(24px);
  border: 1px solid var(--border);
  padding: 26px 30px;
  background: #fff;
  cursor: pointer;
  transition:
    opacity 900ms cubic-bezier(.22,1,.36,1),
    transform 1000ms cubic-bezier(.22,1,.36,1),
    border-color 500ms var(--ease-standard),
    box-shadow 500ms var(--ease-standard),
    background 500ms var(--ease-standard);
  will-change: opacity, transform;
  position: relative;
  border-radius: 2px;
  overflow: hidden;
}
.step.is-in {
  opacity: 1;
  transform: translateY(0);
}
.step::after {
  content: ""; position: absolute; right: 24px; top: 28px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); transition: all 300ms var(--ease-standard);
}
.step.active::after { background: var(--pl-blue-500); box-shadow: 0 0 0 4px rgba(0,71,255,0.15); }
.step.active {
  border-color: var(--pl-black);
  box-shadow: -4px 0 0 0 var(--pl-blue-500);
}
.step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--fg-tertiary);
  margin-bottom: 8px;
}
.step.active .step-num { color: var(--pl-blue-500); }
.step h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--fg);
}
.step p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--fg-secondary);
  margin: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all var(--dur-slow) var(--ease-standard);
}
.step.active p { max-height: 200px; opacity: 1; margin-top: 4px; }
@media (max-width: 960px) {
  .hero-grid, .mails-grid, .porque-grid, .sobre-grid, .como-grid {
    grid-template-columns: 1fr; gap: 48px;
  }
  /* Sin relleno lateral: el margen lo pone .wrap, igual que en el menú, la garantía y el cierre.
     Con 24 px aquí, el texto de las secciones claras arrancaba a 40 px y el del resto a 16. */
  .section, .mails-section, .porque-section, .sobre-section, .cta-section { padding: 84px 0; }
  .phone-stage {
    position: static;
    height: auto;
  }
  .steps-list { padding: 0; }
}
[data-density="compact"] .section,
[data-density="compact"] .mails-section,
[data-density="compact"] .porque-section,
[data-density="compact"] .sobre-section { padding-top: 80px; padding-bottom: 80px; }
.steps-list { padding: 12vh 0 22vh; gap: 24px; }
.step {
  transition:
    opacity 720ms cubic-bezier(.22,1,.36,1),
    transform 820ms cubic-bezier(.22,1,.36,1),
    border-color 360ms var(--ease-standard),
    box-shadow 360ms var(--ease-standard),
    background 360ms var(--ease-standard);
}
.step.active p { transition: max-height 360ms var(--ease-standard), opacity 280ms var(--ease-standard) 80ms; }
.mails-section .steps-list {
  padding: 18vh 0 24vh;
  gap: 16px;
  position: relative;
}
.mails-section .steps-list::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 18vh;
  bottom: 24vh;
  width: 1px;
  background: linear-gradient(180deg,
    transparent 0%,
    var(--border) 8%,
    var(--border) 92%,
    transparent 100%);
  pointer-events: none;
}
.mails-section .step {
  position: relative;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 18px 0 18px 56px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 520ms cubic-bezier(.22,1,.36,1),
    transform 620ms cubic-bezier(.22,1,.36,1),
    padding 480ms cubic-bezier(.22,1,.36,1);
  overflow: hidden;
}
.mails-section .step.is-in {
  opacity: 0.42;
  transform: translateY(0);
}
.mails-section .step.is-in:hover { opacity: 0.78; }
.mails-section .step.active {
  opacity: 1;
  padding: 28px 0 28px 64px;
}
.mails-section .step::after { display: none; }
.mails-section .step::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 24px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--border);
  transition:
    background 360ms var(--ease-standard),
    border-color 360ms var(--ease-standard),
    width 360ms var(--ease-standard),
    height 360ms var(--ease-standard),
    box-shadow 360ms var(--ease-standard);
  box-sizing: border-box;
}
.mails-section .step.active::before {
  background: var(--accent);
  border-color: var(--accent);
  width: 16px;
  height: 16px;
  box-shadow: 0 0 0 4px rgba(0,71,255,0.18), 0 0 18px rgba(0,71,255,0.45);
  animation: step-dot-pulse 1.6s ease-in-out infinite;
}
@keyframes step-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(0,71,255,0.18), 0 0 18px rgba(0,71,255,0.45); }
  50%      { box-shadow: 0 0 0 8px rgba(0,71,255,0.06), 0 0 22px rgba(0,71,255,0.6); }
}
.mails-section .step .step-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--fg-tertiary);
  margin-bottom: 6px;
  transition: color 360ms var(--ease-standard), letter-spacing 360ms var(--ease-standard);
}
.mails-section .step.active .step-num {
  color: var(--accent);
  letter-spacing: 0.28em;
}
.mails-section .step h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--fg);
  margin: 0;
  transition:
    font-size 480ms cubic-bezier(.22,1,.36,1),
    color 360ms var(--ease-standard),
    margin 360ms var(--ease-standard);
}
.mails-section .step.active h4 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.018em;
  color: var(--pl-black);
  margin-bottom: 12px;
}
.mails-section .step p {
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--fg-secondary);
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(6px);
  transition:
    max-height 520ms cubic-bezier(.22,1,.36,1),
    opacity 380ms cubic-bezier(.22,1,.36,1) 80ms,
    transform 480ms cubic-bezier(.22,1,.36,1) 80ms;
}
.mails-section .step.active p {
  max-height: 240px;
  opacity: 1;
  transform: translateY(0);
  max-width: 56ch;
}
@media (prefers-reduced-motion: reduce) {
  .mails-section .step,
  .mails-section .step::before,
  .mails-section .step h4,
  .mails-section .step p { transition: none !important; animation: none !important; }
  .mails-section .step.is-in { opacity: 1; }
}
.mail-hl {
  position: relative;
  display: inline;
  padding: 1px 4px;
  margin: 0 -4px;
  border-radius: 3px;
  background: transparent;
  color: inherit;
  transition:
    background 520ms cubic-bezier(.22,1,.36,1),
    color 520ms cubic-bezier(.22,1,.36,1),
    box-shadow 520ms cubic-bezier(.22,1,.36,1);
}
.mail-hl.active {
  background: rgba(0,71,255,0.12);
  color: var(--pl-blue-700);
  box-shadow:
    0 0 0 1px rgba(0,71,255,0.18),
    0 4px 18px -4px rgba(0,71,255,0.32);
  animation: mail-hl-pop 480ms cubic-bezier(.22,1,.36,1);
}
@keyframes mail-hl-pop {
  0%   { background: rgba(0,71,255,0.0); transform: scale(0.98); }
  35%  { background: rgba(0,71,255,0.22); transform: scale(1.015); }
  100% { background: rgba(0,71,255,0.12); transform: scale(1); }
}
.mail-inner {
  transition: transform 720ms cubic-bezier(.4, 0, .15, 1);
}
@media (prefers-reduced-motion: reduce) {
  .mail-hl { transition: background 200ms linear; animation: none !important; }
  .mail-inner { transition: none; }
}