/* Portada de Dania360 (2026): solo lo propio de la portada. La base común está en site-2026.css. */

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 0;
  isolation: isolate;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: 56px;
}

.hero-copy > * {
  animation: rise 0.9s var(--ease) both;
}

.hero-copy > :nth-child(2) { animation-delay: 0.06s; }
.hero-copy > :nth-child(3) { animation-delay: 0.14s; }
.hero-copy > :nth-child(4) { animation-delay: 0.22s; }
.hero-copy > :nth-child(5) { animation-delay: 0.3s; }

.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.35rem, 1.2rem + 3.9vw, 4.35rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

/* Visual vivo del hero */
.hero-visual {
  position: relative;
  margin: 0;
  animation: rise 1s 0.15s var(--ease) both;
}

.hero-visual__stage {
  position: relative;
  height: 560px;
  display: grid;
  place-items: center;
}

.hero-visual__stage::before {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 113, 57, 0.22), transparent 65%);
}

.hero-visual figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.phone {
  position: relative;
  z-index: 1;
  width: 272px;
  padding: 12px;
  border-radius: 42px;
  background: #15100d;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #2c221d;
  transform: rotate(-2deg);
  animation: phoneFloat 9s ease-in-out infinite;
}

.phone__notch {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 78px;
  height: 20px;
  margin-left: -39px;
  border-radius: 999px;
  background: #000;
  z-index: 3;
}

.phone > *:not(.phone__notch) {
  background: #fff;
}

.phone__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 40px 12px 10px;
  border-radius: 31px 31px 0 0;
}

.phone__avatar {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: conic-gradient(from 200deg, var(--orange), #ffb08f, var(--orange-deep), var(--orange));
  box-shadow: inset 0 0 0 3px #fff;
}

.phone__who {
  display: grid;
  line-height: 1.15;
}

.phone__who b {
  font-size: 13px;
}

.phone__who small {
  color: var(--muted);
  font-size: 11px;
}

.phone__net {
  display: none;
  margin-left: auto;
  color: var(--orange-ink);
  font-size: 9.5px;
  font-weight: 700;
  text-align: right;
  line-height: 1.2;
  max-width: 70px;
}

.phone__posts {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.live-post {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 18px;
  color: #fff;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.9s var(--ease), transform 1.4s var(--ease);
}

.live-post.is-active {
  opacity: 1;
  transform: none;
}

.live-post strong {
  position: relative;
  z-index: 1;
  max-width: 190px;
  font-size: 21px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.live-post__tag {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.live-post__shape {
  position: absolute;
  border-radius: 50%;
}

.live-post--bakery {
  background: radial-gradient(circle at 70% 25%, #ffd3a1 0 18%, transparent 19%), linear-gradient(160deg, #f6a15b, #c4561f 70%, #7c2f10);
}

.live-post--bakery .live-post__shape {
  width: 170px;
  height: 110px;
  right: -20px;
  top: 70px;
  background: radial-gradient(ellipse at 40% 35%, #f3c07e, #b8662b 70%);
  box-shadow: inset 0 -12px 24px rgba(90, 30, 5, 0.35);
  transform: rotate(-12deg);
}

.live-post--garage {
  background: radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.18) 0 12%, transparent 13%), linear-gradient(160deg, #3d4b5e, #1d2532 70%);
}

.live-post--garage .live-post__shape {
  width: 150px;
  height: 150px;
  right: -26px;
  top: 40px;
  border: 22px solid #ff7139;
  background: transparent;
  box-shadow: 0 0 0 10px rgba(255, 113, 57, 0.25);
}

.live-post--dental {
  background: radial-gradient(circle at 75% 25%, rgba(255, 255, 255, 0.5) 0 14%, transparent 15%), linear-gradient(160deg, #8fd3c8, #3e9c95 70%, #1f6461);
}

.live-post--dental .live-post__shape {
  width: 120px;
  height: 120px;
  right: 24px;
  top: 60px;
  border-radius: 40% 40% 48% 48%;
  background: linear-gradient(#fff, #e7f6f3);
  box-shadow: 0 16px 30px -12px rgba(0, 50, 45, 0.6);
}

.live-post__video {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
}

.phone__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 6px;
}

.phone__actions > span:not(.phone__dots) {
  width: 20px;
  height: 18px;
  border: 2px solid var(--ink);
  border-radius: 6px;
}

.phone__actions .heart {
  border-color: var(--orange) !important;
  background: var(--orange);
  border-radius: 50% 50% 4px 50% !important;
  transform: rotate(45deg) scale(0.8);
  animation: heartbeat 2.6s ease-in-out infinite;
}

.phone__actions .bubble {
  border-radius: 50% 50% 50% 4px !important;
}

.phone__dots {
  display: flex;
  gap: 5px;
  margin-left: auto;
}

.phone__dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-2);
  transition: background-color 0.4s, width 0.4s var(--ease);
}

.phone__dots i.is-active {
  width: 16px;
  border-radius: 999px;
  background: var(--orange);
}

.phone__caption {
  display: grid;
  gap: 7px;
  padding: 8px 14px 22px;
  border-radius: 0 0 31px 31px;
}

.phone__caption span {
  height: 7px;
  border-radius: 999px;
  background: #efe7e1;
}

.phone__caption span:last-child {
  width: 62%;
}

.float-card--calendar {
  left: -14px;
  top: 34px;
  width: 172px;
  animation: bob 7s ease-in-out infinite;
}

.float-card--chat {
  right: -22px;
  top: 168px;
  width: 224px;
  animation: bob 8s -2s ease-in-out infinite;
}

.float-card--review {
  left: -8px;
  bottom: 34px;
  width: 182px;
  animation: bob 7.5s -4s ease-in-out infinite;
}

/* Marquesinas */
.channels {
  margin-top: 40px;
  padding: 18px 0;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
}

.channels .marquee__track li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--orange);
  vertical-align: 2px;
}

/* Bento de servicios */

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: #ffd0bb;
  box-shadow: var(--shadow);
}

.bento-card--posts { grid-column: span 7; }
.bento-card--talk { grid-column: span 5; }
.bento-card--web { grid-column: span 5; }
.bento-card--app { grid-column: span 7; }

.bento-card h3 {
  font-size: 24px;
}

.bento-card p {
  color: var(--muted);
}

.bento-card .text-link {
  margin-top: auto;
  align-self: flex-start;
}


.bento-card__art {
  position: relative;
  height: 150px;
  margin: -30px -30px 10px;
  overflow: hidden;
  background: linear-gradient(160deg, #fff4ee, #ffe8dc);
  border-bottom: 1px solid #fbe2d5;
}

.mini-feed {
  position: absolute;
  left: 30px;
  top: 26px;
  display: flex;
  gap: 12px;
}

.mini-post {
  width: 92px;
  height: 112px;
  border-radius: 14px;
  box-shadow: 0 12px 24px -14px rgba(120, 50, 20, 0.7);
  animation: cardFloat 6s ease-in-out infinite;
}

.mini-post--1 { background: linear-gradient(160deg, #f6a15b, #c4561f); }
.mini-post--2 { background: linear-gradient(160deg, #3d4b5e, #1d2532); animation-delay: -2s; }
.mini-post--3 { background: linear-gradient(160deg, #8fd3c8, #3e9c95); animation-delay: -4s; }

.net-chips {
  position: absolute;
  right: 20px;
  top: 22px;
  display: grid;
  gap: 6px;
}

.net-chips span {
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  animation: chipGlow 6s ease-in-out infinite;
}

.net-chips span:nth-child(2) { animation-delay: 1.5s; }
.net-chips span:nth-child(3) { animation-delay: 3s; }
.net-chips span:nth-child(4) { animation-delay: 4.5s; }

.mini-chat {
  position: absolute;
  inset: 24px 30px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.mini-bubble {
  height: 26px;
  border-radius: 13px;
  animation: bubbleIn 5s ease-in-out infinite;
}

.mini-bubble--in {
  width: 62%;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.mini-bubble--out {
  justify-self: end;
  width: 54%;
  background: var(--orange);
  animation-delay: 0.6s;
}

.mini-bubble--short {
  width: 38%;
  animation-delay: 1.2s;
}

.mini-browser {
  position: absolute;
  left: 30px;
  right: 30px;
  top: 24px;
  height: 140px;
  border-radius: 14px 14px 0 0;
  background: #fff;
  box-shadow: var(--shadow);
}

.mini-browser__bar {
  display: flex;
  gap: 5px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.mini-browser__bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-2);
}

.mini-browser__hero {
  display: block;
  height: 46px;
  margin: 12px;
  border-radius: 10px;
  background: linear-gradient(100deg, #ffe0d1, #fff1ea);
}

.mini-browser__bot {
  position: absolute;
  right: 12px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(255, 113, 57, 0.5);
  animation: pulseRing 2.4s ease-out infinite;
}

.mini-browser__bot svg {
  width: 20px;
  height: 20px;
}

.mini-app {
  position: absolute;
  left: 50%;
  top: 22px;
  width: 150px;
  height: 160px;
  margin-left: -75px;
  padding: 16px 14px;
  display: grid;
  gap: 9px;
  align-content: start;
  border-radius: 24px 24px 0 0;
  background: #1d1512;
  box-shadow: var(--shadow);
}

.mini-app__row {
  height: 22px;
  border-radius: 8px;
  background: #3a2e28;
  animation: rowShimmer 4s ease-in-out infinite;
}

.mini-app__row:nth-child(2) { animation-delay: 0.5s; width: 80%; }

.mini-app__row--accent {
  width: 60%;
  background: var(--orange);
  animation-delay: 1s;
}

/* Redes sociales con IA */
.ia-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.ia-copy h2 {
  margin-top: 14px;
  font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem);
}

.ia-copy > p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
}

.ia-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.sample {
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.5s var(--ease);
}

.sample--2,
.sample--4 {
  transform: translateY(32px);
}

.sample img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.sample:hover img {
  transform: scale(1.05);
}

.sample figcaption {
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 700;
}

.sample-note {
  grid-column: 1 / -1;
  margin-top: 40px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.sample-cta {
  grid-column: 1 / -1;
  justify-self: center;
}

/* Sectores */

.sectors {
  overflow: hidden;
}

.sectors .section-head p strong {
  color: var(--ink);
}

.sector-marquee {
  display: grid;
  gap: 12px;
  margin-bottom: 48px;
}

.sector-marquee .marquee__track li {
  font-size: 16px;
  padding: 10px 18px;
}

.sector-marquee .marquee--reverse .marquee__track li {
  background: var(--orange-wash);
  border-color: #fbd9c8;
}

/* Modo calma */

@media (prefers-reduced-motion: reduce) {
  .hero-copy > *,
  .hero-visual {
    animation-name: fadeIn;
    animation-duration: 0.8s;
  }

  .phone {
    animation: none;
  }

  .float-card {
    animation: breathe 6s ease-in-out infinite !important;
  }

  .float-card--chat { animation-delay: -2s !important; }
  .float-card--review { animation-delay: -4s !important; }

  .live-post {
    transform: none;
    transition: opacity 1.2s ease;
  }

  .phone__actions .heart {
    animation-name: blink;
    animation-duration: 3.2s;
  }

  .mini-post {
    animation: rowShimmer 6s ease-in-out infinite;
  }

  .mini-bubble {
    animation-name: fadeIn;
    animation-duration: 1.6s;
    animation-iteration-count: 1;
    animation-fill-mode: both;
  }

  .mini-browser__bot {
    animation: rowShimmer 3s ease-in-out infinite;
  }

  .sector-marquee .marquee__track li:nth-child(n + 11) {
    display: none;
  }

  .bento-card:hover {
    transform: none;
  }

  .sample:hover img {
    transform: none;
  }

  .sample--2,
  .sample--4 {
    transform: translateY(32px);
  }
}

/* Tableta */

@media (max-width: 1060px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-visual__stage {
    max-width: 560px;
    margin-inline: auto;
    width: 100%;
  }

  .bento-card--posts,
  .bento-card--talk,
  .bento-card--web,
  .bento-card--app {
    grid-column: span 6;
  }

  .ia-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Móvil */

@media (max-width: 720px) {
  .hero {
    padding-top: 30px;
  }

  .hero h1 {
    margin-top: 18px;
    font-size: clamp(2.15rem, 1.1rem + 5vw, 2.7rem);
  }

  /* En el móvil, el teléfono a la izquierda y las tarjetas en columna a la derecha. */
  .hero-visual__stage {
    display: block;
    height: 500px;
    margin-top: 8px;
  }

  .hero-visual__stage::before {
    left: 50%;
    top: 40px;
    width: 340px;
    height: 340px;
    margin-left: -170px;
  }

  .phone {
    position: absolute;
    left: 0;
    top: 6px;
    width: 214px;
    padding: 10px;
    border-radius: 36px;
  }

  .phone__bar {
    padding: 34px 10px 8px;
    border-radius: 27px 27px 0 0;
  }

  .phone__notch {
    top: 15px;
    width: 64px;
    height: 17px;
    margin-left: -32px;
  }

  .phone__posts {
    height: 250px;
  }

  .live-post {
    padding: 14px;
  }

  .live-post strong {
    max-width: 150px;
    font-size: 17px;
  }

  .phone__caption {
    padding-bottom: 18px;
    border-radius: 0 0 27px 27px;
  }

  .float-card {
    padding: 11px;
    border-radius: 16px;
    font-size: 12px;
  }

  .float-card__head {
    gap: 6px;
    font-size: 12px;
  }

  .float-icon {
    width: 22px;
    height: 22px;
    border-radius: 7px;
  }

  .float-icon svg {
    width: 14px;
    height: 14px;
  }

  .float-card--calendar {
    left: auto;
    right: 0;
    top: 0;
    width: 152px;
  }

  .cal-grid {
    gap: 4px;
    margin-top: 9px;
  }

  .float-card--chat {
    right: 0;
    top: 158px;
    width: 176px;
  }

  .chat {
    min-height: 104px;
    margin-top: 9px;
  }

  .chat__msg {
    font-size: 11.5px;
    padding: 7px 9px;
  }

  .float-card--review {
    left: auto;
    right: 0;
    bottom: 0;
    width: 152px;
  }

  .stars svg {
    width: 15px;
    height: 15px;
  }

  .review-reply {
    font-size: 11.5px;
  }

  .channels {
    margin-top: 28px;
  }

  .ia-copy > p {
    font-size: 16.5px;
  }

  .bento {
    grid-template-columns: 1fr;
  }

  .bento-card--posts,
  .bento-card--talk,
  .bento-card--web,
  .bento-card--app {
    grid-column: auto;
  }

  .bento-card {
    padding: 24px;
  }

  .bento-card__art {
    margin: -24px -24px 8px;
    height: 136px;
  }

  .mini-feed {
    left: 20px;
  }

  .mini-post {
    width: 70px;
    height: 92px;
  }

  .net-chips {
    right: 14px;
    top: 14px;
    gap: 4px;
  }

  .net-chips span {
    font-size: 11px;
    padding: 3px 9px;
  }

  .bento-card h3 {
    font-size: 21px;
  }

  .ia-gallery {
    gap: 12px;
  }

  .sample--2,
  .sample--4 {
    transform: translateY(20px);
  }

  .sample figcaption {
    font-size: 12.5px;
    padding: 9px 11px;
  }

  .sample-note {
    margin-top: 28px;
  }

  .sector-marquee .marquee__track li {
    font-size: 14.5px;
    padding: 8px 14px;
  }
}

@media (max-width: 720px) and (prefers-reduced-motion: reduce) {
  .sample--2,
  .sample--4 {
    transform: translateY(20px);
  }
}
