/* Ideas Web y Publicidad · Péndulo 1.1. Colores del SVG original y del sitio ideaswebypublicidad.com.mx. */
:root {
  --paper:#f5f8fa;
  --ink:#141617;
  --muted:#7d8992;
  --accent:#0061c5;
  --brand-deep:#1557a3;
  --blue:#0061c5;
  --border:#e0e7ed;
  --stage:#edf2f6;
  font-family:"Avenir Next","Segoe UI",Arial,sans-serif;
  color:var(--ink);
  background:var(--paper);
  font-synthesis:none
}
* {
  box-sizing:border-box
}
html {
  scroll-behavior:smooth
}
body {
  margin:0
}
button,a {
  -webkit-tap-highlight-color:transparent
}
button {
  font:inherit
}
button:focus-visible,a:focus-visible {
  outline:3px solid #0061c5;
  outline-offset:6px
}
.page {
  max-width:1296px;
  padding:0 48px;
  margin:0 auto
}
.masthead {
  height:112px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-bottom:1px solid var(--border)
}
.brand {
  display:flex;
  gap:12px;
  align-items:center;
  text-decoration:none;
  color:var(--ink)
}
.brand img {
  width:36px;
  height:45px
}
.brand>span {
  font-size:23px;
  font-weight:650;
  letter-spacing:-1px;
  line-height:1
}
.brand small {
  display:block;
  font-size:14px;
  font-weight:450;
  letter-spacing:-.3px;
  margin-top:5px
}
.edition {
  display:flex;
  align-items:center;
  gap:10px;
  font-size:9px;
  letter-spacing:1.7px;
  font-weight:600;
  color:#73818a
}
.status-dot {
  width:5px;
  height:5px;
  background:#1557a3;
  border-radius:50%
}
.version {
  margin-left:14px;
  letter-spacing:.5px;
  border:1px solid #dbe5ed;
  padding:5px 8px;
  border-radius:4px;
  color:#1557a3
}
.experience {
  padding-top:33px
}
.section-meta {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:17px
}
.section-meta h1 {
  font-size:12px;
  margin:0;
  font-weight:550;
  letter-spacing:.1px
}
.section-meta>span {
  font-size:8px;
  letter-spacing:2px;
  color:#87949e
}
.stage {
  height:clamp(440px,calc(100svh - 310px),680px);
  min-height:440px;
  position:relative;
  isolation:isolate;
  border:1px solid #dee7ee;
  border-radius:9px;
  overflow:hidden;
  background:radial-gradient(ellipse at 51% 39%,#fbfdff 0%,#edf3f8 44%,#e4edf4 100%);
  user-select:none
}
.paper {
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.32;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%236b6078' opacity='.14' filter='url(%23n)' d='M0 0h160v160H0z'/%3E%3C/svg%3E")
}
.halo {
  position:absolute;
  width:60%;
  height:70%;
  left:20%;
  top:4%;
  border-radius:50%;
  background:radial-gradient(ellipse,#fff9,transparent 69%);
  pointer-events:none
}
.stage-corner {
  position:absolute;
  top:28px;
  color:#91a1ac;
  font-size:8px;
  letter-spacing:1.8px
}
.corner-left {
  left:30px
}
.corner-right {
  right:30px;
  font-size:7px;
  letter-spacing:1.4px
}
.copy {
  position:absolute;
  left:50%;
  top:38%;
  transform:translate(-50%,-50%);
  width:66%;
  max-width:680px;
  height:230px;
  text-align:center
}
.copy-layer {
  position:absolute;
  inset:0;
  display:flex;
  justify-content:center;
  align-items:center;
  flex-direction:column;
  will-change:clip-path
}
.copy-layer .headline {
  font-size:clamp(32px,5.8vw,76px);
  line-height:1.015;
  font-weight:800;
  letter-spacing:-3.5px;
  white-space:nowrap;
  margin:0;
  text-transform:uppercase
}
.copy-layer .subline {
  margin:21px 0 0;
  font-size:12px;
  line-height:1.5;
  color:#788b98;
  max-width:90%;
  letter-spacing:.1px
}
.copy-layer .headline {
  color:var(--ink)
}
.copy-layer .headline.answer {
  color:var(--accent)
}
.pendulum {
  position:absolute;
  width:2px;
  left:50%;
  top:-900px;
  height:1250px;
  transform-origin:50% 0;
  will-change:transform;
  z-index:3;
  pointer-events:none
}
.cord {
  position:absolute;
  left:0;
  top:0;
  height:100%;
  width:2px;
  background:linear-gradient(90deg,#b7c7d3,#657f91 65%,#9bb2c3);
  box-shadow:2px 2px 3px #29476115;
  pointer-events:none
}
.bob {
  position:absolute;
  bottom:0;
  left:50%;
  width:88px;
  height:88px;
  transform:translate(-50%,50%);
  border:1px solid #cfdae5;
  border-radius:23px;
  background:linear-gradient(142deg,#ffffff 0%,#f4f8fb 70%,#eaf1f7 100%);
  box-shadow:inset 0 2px 2px #fff2,inset -2px -3px 5px #0002,8px 12px 17px #1e446012,2px 4px 5px #1e44600a;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:4px;
  cursor:grab;
  pointer-events:auto;
  touch-action:none;
  user-select:none
}
.bob:active,.bob.dragging {
  cursor:grabbing
}
.bob img {
  width:36px;
  height:45px;
  pointer-events:none;
  filter:drop-shadow(0 1px 3px #0061c51a)
}
.bob-caption {
  font-size:5px;
  color:#5c7c95;
  letter-spacing:1.6px;
  pointer-events:none
}
.bob-edge {
  position:absolute;
  inset:4px;
  border-radius:19px;
  border:1px solid #ffffff55;
  pointer-events:none
}
.ground-shadow {
  position:absolute;
  left:50%;
  top:76%;
  height:9px;
  width:100px;
  background:#1c456417;
  filter:blur(8px);
  border-radius:50%;
  pointer-events:none;
  will-change:transform,opacity
}
.stage-signature {
  position:absolute;
  bottom:65px;
  width:100%;
  text-align:center;
  font-size:17px;
  font-weight:650;
  letter-spacing:-.7px;
  color:#315d7e
}
.stage-signature span {
  font-weight:400;
  font-size:13px;
  margin-left:2px;
  color:#7996aa
}
.stage-baseline {
  position:absolute;
  left:30px;
  right:30px;
  bottom:25px;
  display:flex;
  justify-content:space-between;
  color:#97a8b5;
  font-size:7px;
  letter-spacing:1.65px
}
.stage-baseline #counter {
  font-variant-numeric:tabular-nums;
  letter-spacing:2px;
  color:#62849c
}
.toolbar {
  padding:22px 0 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px
}
.gesture {
  display:flex;
  align-items:center;
  gap:12px;
  margin:0;
  color:#5e7b90;
  font-size:11px
}
.gesture>svg {
  width:24px;
  height:24px;
  fill:none;
  stroke:#7b9db6;
  stroke-width:1.25;
  stroke-linecap:round;
  stroke-linejoin:round
}
.gesture small {
  display:block;
  color:#99aab6;
  font-size:10px;
  margin-top:5px
}
.controls {
  display:flex;
  gap:8px
}
.control {
  height:38px;
  padding:0 15px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:1px solid #dce6ee;
  border-radius:6px;
  background:transparent;
  color:#63839b;
  font-size:10px;
  cursor:pointer;
  transition:background .2s,border-color .2s,transform .2s
}
.control svg {
  width:14px;
  height:14px;
  stroke:currentColor;
  stroke-width:1.5;
  fill:none;
  stroke-linecap:round;
  stroke-linejoin:round
}
.control:hover {
  background:#e8f0f6;
  border-color:#bed0df
}
.control:active {
  transform:translateY(1px)
}
.control.primary {
  background:#1557a3;
  color:#fff;
  border-color:#1557a3;
  min-width:96px;
  box-shadow:0 3px 8px #154f8310
}
.control.primary:hover {
  background:#0061c5
}
.page-footer {
  border-top:1px solid var(--border);
  padding:20px 0 26px;
  display:flex;
  justify-content:space-between;
  font-size:9px;
  color:#99a9b5;
  letter-spacing:.1px
}
.footer-divider {
  padding:0 10px;
  color:#bdcbd6
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}
@media(min-width:1500px) {
  .page {
    padding-top:16px
  }
  .masthead {
    height:118px
  }
  .experience {
    padding-top:40px
  }
}
@media(max-width:760px) {
  .page {
    padding:0 24px
  }
  .masthead {
    height:94px
  }
  .edition {
    letter-spacing:1px;
    font-size:7px;
    gap:6px
  }
  .version {
    margin-left:3px
  }
  .brand>span {
    font-size:20px
  }
  .brand small {
    font-size:12px
  }
  .brand img {
    width:31px;
    height:39px
  }
  .brand {
    gap:8px
  }
  .experience {
    padding-top:26px
  }
  .section-meta>span {
    font-size:6px;
    letter-spacing:1.2px
  }
  .section-meta h1 {
    font-size:11px
  }
  .stage {
    height:clamp(450px,calc(100svh - 285px),640px);
    min-height:450px
  }
  .copy {
    height:150px
  }
  .copy-layer .headline {
    font-size:clamp(30px,6.1vw,46px);
    letter-spacing:-1.8px
  }
  .copy-layer .subline {
    font-size:10px;
    max-width:92%;
    margin-top:18px
  }
  .corner-left {
    left:20px
  }
  .corner-right {
    right:20px;
    font-size:6px;
    letter-spacing:1px
  }
  .stage-corner {
    top:24px
  }
  .bob {
    width:74px;
    height:74px;
    border-radius:20px
  }
  .bob-edge {
    border-radius:16px
  }
  .bob img {
    height:39px;
    width:31px
  }
  .bob-caption {
    font-size:4px;
    letter-spacing:1.2px
  }
  .stage-baseline {
    left:20px;
    right:20px;
    font-size:6px;
    letter-spacing:1.1px
  }
  .stage-signature {
    font-size:16px
  }
  .toolbar {
    padding-top:19px
  }
  .gesture {
    font-size:10px;
    gap:9px
  }
  .gesture small {
    max-width:170px;
    font-size:9px;
    line-height:1.5
  }
  .gesture svg {
    width:20px;
    height:20px;
    flex-shrink:0
  }
  .control {
    padding:0 11px
  }
  .control.primary {
    min-width:86px
  }
  .page-footer {
    font-size:8px;
    gap:15px;
    line-height:1.6
  }
  .page-footer>span:last-child {
    text-align:right
  }
}
@media(max-width:480px) {
  .page {
    padding:0 18px
  }
  .masthead {
    height:84px
  }
  .edition {
    font-size:0;
    gap:0
  }
  .edition .status-dot {
    display:none
  }
  .version {
    font-size:9px;
    margin:0;
    letter-spacing:.3px
  }
  .experience {
    padding-top:21px
  }
  .section-meta {
    margin-bottom:13px
  }
  .section-meta>span {
    font-size:5.5px;
    letter-spacing:.9px
  }
  .stage {
    height:clamp(455px,calc(100svh - 270px),600px);
    border-radius:7px
  }
  .corner-right {
    max-width:116px;
    text-align:right;
    line-height:1.6;
    top:23px
  }
  .copy {
    width:71%;
    height:150px;
    top:37%
  }
  .copy-layer .headline {
    font-size:clamp(25px,7.35vw,35px);
    letter-spacing:-1.2px
  }
  .copy-layer .subline {
    font-size:9px;
    margin-top:16px;
    line-height:1.6;
    max-width:95%
  }
  .bob {
    width:66px;
    height:66px;
    border-radius:17px
  }
  .bob-edge {
    border-radius:13px
  }
  .bob img {
    width:28px;
    height:35px
  }
  .stage-signature {
    bottom:64px;
    font-size:15px
  }
  .stage-signature span {
    font-size:11px
  }
  .stage-baseline {
    font-size:5px;
    bottom:23px;
    letter-spacing:1px
  }
  .toolbar {
    align-items:center;
    padding:18px 0 22px
  }
  .gesture {
    font-size:9px;
    gap:7px;
    line-height:1.5
  }
  .gesture small {
    display:none
  }
  .gesture svg {
    width:18px;
    height:18px
  }
  .controls {
    gap:6px
  }
  .control {
    width:34px;
    height:34px;
    padding:0
  }
  .control:not(.primary) span {
    display:none
  }
  .control.primary {
    width:auto;
    min-width:77px;
    padding:0 10px;
    font-size:9px;
    gap:6px
  }
  .page-footer {
    font-size:7px;
    padding-top:16px
  }
  .page-footer>span:first-child {
    max-width:90px
  }
  .footer-divider {
    padding:0 3px
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto
  }
  * {
    transition:none!important
  }
}
/* El subtítulo queda fuera de la máscara para conservar su legibilidad. */
.subtitle {
  position:absolute;
  left:50%;
  top:calc(38% + 100px);
  transform:translateX(-50%);
  width:80%;
  max-width:460px;
  margin:0;
  text-align:center;
  font-size:12px;
  line-height:1.6;
  color:#788b98;
  letter-spacing:.1px;
  pointer-events:none
}
@media(max-width:760px) {
  .subtitle {
    top:calc(38% + 67px);
    font-size:10px;
    width:70%
  }
}
@media(max-width:480px) {
  .subtitle {
    top:calc(37% + 52px);
    font-size:9px;
    width:70%;
    max-width:245px
  }
}

/* Logotipo original: trazados y colores conservados; se ajusta solo el encuadre. */
.brand .brand-logo { width: 142px; height: auto; display: block; }
.bob img { width: 48px; height: 48px; filter: none; }
.stage-signature { bottom: 48px; }
.stage-signature img { width: 90px; height: auto; display: block; margin: 0 auto; }
@media (max-width: 760px) {
  .brand .brand-logo { width: 126px; height: auto; }
  .bob img { width: 42px; height: 42px; }
}
@media (max-width: 480px) {
  .brand .brand-logo { width: 109px; height: auto; }
  .bob img { width: 37px; height: 37px; }
  .stage-signature { bottom: 44px; }
  .stage-signature img { width: 81px; height: auto; }
}

/* v1.1 · Hero a pantalla completa. Los controles forman parte del escenario. */
html, body { width: 100%; min-height: 100%; }
body { overflow-x: hidden; }
.hero {
  --hero-inset: clamp(24px, 4vw, 64px);
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  border: 0;
  border-radius: 0;
}
.hero-header {
  position: absolute;
  z-index: 4;
  top: max(24px, env(safe-area-inset-top));
  left: max(var(--hero-inset), env(safe-area-inset-left));
  right: max(var(--hero-inset), env(safe-area-inset-right));
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  pointer-events: none;
}
.hero-header .brand { pointer-events: auto; }
.hero-pagination { display: grid; justify-items: end; gap: 12px; padding-top: 8px; }
.hero-caption { color: #879ba9; font-size: 8px; letter-spacing: 1.8px; }
.hero-pagination #counter { color: #537893; font-size: 12px; letter-spacing: 2.5px; font-variant-numeric: tabular-nums; }
.hero-toolbar {
  position: absolute;
  z-index: 5;
  left: max(var(--hero-inset), env(safe-area-inset-left));
  right: max(var(--hero-inset), env(safe-area-inset-right));
  bottom: max(28px, env(safe-area-inset-bottom));
  padding: 0;
  gap: 24px;
  min-height: 44px;
}
.hero-toolbar .gesture { min-width: 0; font-size: 12px; line-height: 1.5; }
.hero-toolbar .gesture > svg { flex: 0 0 24px; }
.hero-toolbar .controls { flex-shrink: 0; }
.hero-toolbar .control { min-width: 44px; height: 44px; font-size: 11px; padding: 0 16px; }
.hero-toolbar .control.primary { min-width: 118px; }
.hero .stage-signature { bottom: 28px; pointer-events: none; }
@media (max-width: 760px) {
  .hero { --hero-inset: 24px; }
  .hero-header { top: max(22px, env(safe-area-inset-top)); }
  .hero-caption { font-size: 6px; letter-spacing: 1.2px; }
  .hero-pagination { gap: 10px; }
  .hero .stage-signature { bottom: max(106px, calc(env(safe-area-inset-bottom) + 78px)); }
  .hero-toolbar { gap: 16px; bottom: max(24px, env(safe-area-inset-bottom)); }
  .hero-toolbar .gesture { font-size: 11px; gap: 10px; }
  .hero-toolbar .gesture small { display: none; }
}
@media (max-width: 480px) {
  .hero { --hero-inset: 18px; }
  .hero-header { top: max(18px, env(safe-area-inset-top)); }
  .hero-pagination { padding-top: 8px; gap: 10px; }
  .hero-pagination #counter { font-size: 11px; letter-spacing: 2px; }
  .hero-caption { max-width: 122px; text-align: right; line-height: 1.6; }
  .hero-toolbar { gap: 12px; bottom: max(20px, env(safe-area-inset-bottom)); }
  .hero-toolbar .gesture { flex: 1 1 0; gap: 8px; font-size: 10px; }
  .hero-toolbar .gesture > svg { flex-basis: 20px; width: 20px; height: 20px; }
  .hero-toolbar .controls { gap: 8px; }
  .hero-toolbar .control { width: 44px; padding: 0; }
  .hero-toolbar .control.primary { width: 110px; min-width: 110px; font-size: 10px; padding: 0 12px; gap: 8px; }
  .hero-toolbar .control svg { width: 16px; height: 16px; }
}
@media (max-height: 560px) and (orientation: landscape) {
  .hero { --hero-inset: 24px; }
  .hero-header { top: max(14px, env(safe-area-inset-top)); }
  .hero .brand .brand-logo { width: 90px; }
  .hero .stage-signature { display: none; }
  .hero-toolbar { bottom: max(16px, env(safe-area-inset-bottom)); }
}

/* v1.2 · Logotipo discreto centrado sobre los textos, sin cambiar su posición. */
.hero-header { justify-content: flex-end; }
.hero .copy { --headline-size: clamp(32px, 5.8vw, 76px); --logo-gap: 24px; }
.hero-brand {
  position: absolute;
  left: 50%;
  bottom: calc(50% + var(--headline-size) + var(--logo-gap));
  transform: translateX(-50%);
  z-index: 2;
}
.hero .hero-brand .brand-logo {
  width: 116px;
  height: auto;
  filter: grayscale(1) brightness(1.25);
  opacity: .3;
}
@media (max-width: 760px) {
  .hero .copy { --headline-size: clamp(30px, 6.1vw, 46px); }
  .hero .hero-brand .brand-logo { width: 106px; }
}
@media (max-width: 480px) {
  .hero .copy { --headline-size: clamp(25px, 7.35vw, 35px); }
  .hero .hero-brand .brand-logo { width: 96px; }
}
@media (max-height: 560px) and (orientation: landscape) {
  .hero .copy { --logo-gap: 12px; }
  .hero .hero-brand .brand-logo { width: 76px; }
}

/* v1.6 · Precargador: marca original, línea tenue y salida suave. */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: radial-gradient(ellipse at 50% 42%, #fbfdff 0%, #edf3f8 65%, #e4edf4 100%);
  opacity: 1;
  transition: opacity 240ms ease;
}
.preloader.is-ready { opacity: 0; pointer-events: none; }
.preloader-mark { display: block; width: 56px; height: 56px; opacity: .78; }
.preloader-track { position: relative; overflow: hidden; width: 104px; height: 2px; border-radius: 2px; background: #1557a318; }
.preloader-track::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 -48%;
  width: 48%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, #1557a3aa, transparent);
  animation: preloader-line 1.05s ease-in-out infinite;
}
.preloader-label { color: #7b92a3; font-size: 9px; letter-spacing: 2px; text-transform: uppercase; }
@keyframes preloader-line { to { transform: translateX(310%); } }
@media (prefers-reduced-motion: reduce) {
  .preloader-track::after { animation: none; transform: translateX(150%); }
}
/* Integración en el cuerpo de la portada; conserva la animación original. */
html,body,#inicio{width:100%;height:100%;min-height:0;margin:0;overflow:hidden}
.hero{width:100%;height:100%;min-height:0;border:0;border-radius:0}
.hero-toolbar{display:none!important}
.hero .copy{top:40%;height:190px}
.subtitle{top:calc(40% + 90px)}
.hero .copy-layer .headline{font-size:clamp(28px,5.6vw,59px)}
@media(max-width:680px){.hero .copy{top:43%;width:82%;height:150px}.subtitle{top:calc(43% + 77px)}.hero .copy-layer .headline{font-size:clamp(24px,6vw,43px);letter-spacing:-1.6px}}
@media(max-width:680px){.subtitle{top:78%;max-width:72%;font-size:11px}}
/* Ajustes de escala solicitados para la portada. */
.hero .copy-layer .headline{font-size:clamp(34px,6.7vw,71px)}
.hero .copy{--headline-size:clamp(34px,6.7vw,71px)}
.hero .bob{width:62px;height:62px;border-radius:17px}
.hero .bob-edge{border-radius:13px}
.hero .bob img{width:34px;height:34px}
@media(max-width:680px){.hero .copy{width:90%;--headline-size:clamp(28px,7.2vw,50px)}.hero .copy-layer .headline{font-size:clamp(28px,7.2vw,50px)}.hero .bob{width:50px;height:50px;border-radius:14px}.hero .bob-edge{border-radius:10px}.hero .bob img{width:27px;height:27px}}

/* Titulares alternados y conjunto centrado dentro del encuadre. */
.hero .copy{top:49%;width:84%;max-width:800px;--headline-size:clamp(40px,8vw,85px)}
.hero .copy-layer .headline{font-size:clamp(40px,8vw,85px)}
.hero .subtitle{top:calc(49% + 95px);font-size:18px;max-width:560px;color:var(--ink)}
.hero .subtitle.is-blue{color:var(--accent)}
@media(max-width:680px){
  .hero .copy{top:49%;width:90%;height:150px;--headline-size:clamp(34px,8.65vw,60px)}
  .hero .copy-layer .headline{font-size:clamp(34px,8.65vw,60px)}
  .hero .subtitle{top:calc(49% + 83px);width:86%;max-width:340px;font-size:17px}
}

/* Una huella ligera del recorrido ocupa el aire sobre el titular. */
.pendulum-trace{position:absolute;top:18px;left:50%;width:min(76%,700px);height:140px;transform:translateX(-50%);pointer-events:none}
@media(max-width:680px){.pendulum-trace{top:30px;width:86%;height:105px}}
