/* =====================================================
   KIOTEM – Stylesheet
   =====================================================
   Table of contents:
   1. Custom properties & reset
   2. Typography & base
   3. Layout utilities
   4. Components: buttons, badges
   5. Navbar
   6. Hero
   7. About / Stats
   8. Solutions / Products
   9. Features
   10. CTA
   11. Footer
   12. Animations
   13. Responsive
   ===================================================== */

/* ----- 1. Custom properties & reset ----- */
:root {
  --blue:        #2da7dc;
  --blue-light:  #e8f6fd;
  --blue-dark:   #1a86b8;
  --green:       #a0cf4a;
  --green-light: #f0f8e4;
  --green-dark:  #7aab2c;

  --text-primary:   #1a1f2e;
  --text-secondary: #4b5566;
  --text-muted:     #8a94a6;

  --bg:           #ffffff;
  --bg-soft:      #f7f9fc;
  --bg-card:      #ffffff;

  --border:       #e5eaf2;
  --radius-sm:    8px;
  --radius-md:    16px;
  --radius-lg:    24px;
  --radius-xl:    32px;

  --shadow-sm:  0 1px 4px rgba(0,0,0,.06);
  --shadow-md:  0 4px 20px rgba(0,0,0,.08);
  --shadow-lg:  0 12px 48px rgba(0,0,0,.10);

  --transition: .3s ease;
  --font: 'Inter', system-ui, sans-serif;

  --container: 1160px;
  --nav-h:     72px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ----- 2. Typography ----- */
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
h4 { font-size: 1rem;    font-weight: 600; }

p  { color: var(--text-secondary); }

.gradient-text {
  background: linear-gradient(135deg, var(--blue), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ----- 3. Layout utilities ----- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.section-header p {
  margin-top: 16px;
  font-size: 1.05rem;
}

/* ----- 4. Components: buttons & badges ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  box-shadow: 0 4px 18px rgba(45,167,220,.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(45,167,220,.45);
}

.btn--outline {
  border-color: var(--blue);
  color: var(--blue);
  background: transparent;
}

.btn--outline:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 16px 40px;
  font-size: 1.05rem;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  background: var(--blue-light);
  color: var(--blue-dark);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ----- 5. Navbar ----- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.navbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}

.navbar__logo img {
  height: 36px;
  width: auto;
}

.navbar__links {
  display: flex;
  gap: 32px;
  margin-left: auto;
}

.navbar__links a {
  font-size: .95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}

.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  border-radius: 2px;
  transition: width var(--transition);
}

.navbar__links a:hover {
  color: var(--text-primary);
}

.navbar__links a:hover::after {
  width: 100%;
}

.navbar__cta {
  margin-left: 16px;
  flex-shrink: 0;
}

.navbar__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
}

.navbar__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ----- 6. Hero ----- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 100px);
  padding-bottom: 120px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 20, 40, 0.72) 0%,
    rgba(15, 40, 70, 0.65) 50%,
    rgba(20, 60, 40, 0.55) 100%
  );
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero__text .badge { margin-bottom: 20px; }

.hero__text h1 {
  margin-bottom: 20px;
  color: #fff;
}

.hero__text p {
  font-size: 1.1rem;
  max-width: 480px;
  margin-bottom: 36px;
  color: rgba(255,255,255,.82);
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn--outline-white {
  border-color: rgba(255,255,255,.6);
  color: #fff;
}
.btn--outline-white:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
}

/* Floating cards column */
.hero__cards {
  position: relative;
  height: 360px;
}

.hero__card {
  position: absolute;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  box-shadow: 0 8px 32px rgba(0,0,0,.22);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .9rem;
  color: var(--text-primary);
  z-index: 1;
  border: 1px solid rgba(255,255,255,.6);
  animation: float 5s ease-in-out infinite;
}

.hero__card p { color: var(--text-primary); }

.hero__card--1 { top: 8%;   left: 5%;  animation-delay: 0s; }
.hero__card--2 { top: 42%;  right: 0%; animation-delay: 1.5s; }
.hero__card--3 { bottom: 6%; left: 12%; animation-delay: .8s; }

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.card-icon--blue  { background: var(--blue-light); }
.card-icon--green { background: var(--green-light); }

.card-icon--blue  .ti { color: var(--blue); }
.card-icon--green .ti { color: var(--green-dark); }

.feature-card__icon--blue  .ti { color: var(--blue); }
.feature-card__icon--green .ti { color: var(--green-dark); }

/* ----- 7. About / Stats ----- */
.about {
  padding: 100px 0;
  background: var(--bg-soft);
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.stat {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat__number {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat__symbol {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat p {
  margin-top: 10px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ----- 8. Solutions / Products ----- */
.solutions {
  padding: 100px 0;
  background: var(--bg);
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.product-card:last-of-type {
  margin-bottom: 0;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
}

/* Two-column layout: text | mockup */
.product-card__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}

/* Reversed: mockup left, text right */
.product-card__content--reverse .product-card__text   { order: 2; }
.product-card__content--reverse .product-card__mockup { order: 1; }

/* Text column */
.product-card__text {
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.product-card__text h3 {
  font-size: 1.5rem;
  line-height: 1.25;
}

.product-card__text > p {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* Product tag / pill */
.product-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .03em;
  width: fit-content;
}

.product-tag--blue  { background: linear-gradient(90deg, var(--blue), #4bbce8); color: #fff; }
.product-tag--green { background: linear-gradient(90deg, var(--green-dark), var(--green)); color: #fff; }

/* Feature chips */
.feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 500;
  line-height: 1;
}

.chip--blue  { background: var(--blue-light);  color: var(--blue-dark); }
.chip--green { background: var(--green-light); color: var(--green-dark); }

/* Mockup column – phones */
.product-card__mockup--phones {
  position: relative;
  background: linear-gradient(135deg, #deeffe 0%, #e8f5d4 100%);
  overflow: hidden;
  min-height: 480px;
}

.product-card__mockup--phones .mockup-phones {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* Mockup column – browser */
.product-card__mockup--browser {
  display: flex;
  align-items: flex-end;
  padding: 36px 0 0 36px;
  background: linear-gradient(135deg, #e8f5d4 0%, #deeffe 100%);
  overflow: hidden;
}

.product-card__mockup--browser .mockup-browser {
  width: 100%;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: 0 -8px 48px rgba(0,0,0,.12), 0 0 0 1px #d1d9e6;
}

/* ----- 9. Features ----- */
.features {
  padding: 100px 0;
  background: var(--bg-soft);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue);
}

.feature-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.feature-card__icon--blue  { background: var(--blue-light); }
.feature-card__icon--green { background: var(--green-light); }

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.feature-card p {
  font-size: .9rem;
  line-height: 1.55;
}

/* ----- 10. CTA ----- */
.cta {
  padding: 100px 0;
  background: linear-gradient(160deg, #f0f8fe 0%, #f5faed 100%);
}

.cta__card {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  border-radius: var(--radius-xl);
  padding: 72px 48px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta__card::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: rgba(160,207,74,.25);
  border-radius: 50%;
}

.cta__card::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 260px;
  height: 260px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
}

.cta__logo {
  height: 44px;
  margin: 0 auto 28px;
  filter: brightness(0) invert(1);
  position: relative;
  z-index: 1;
}

.cta__card h2 {
  color: #fff;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta__card p {
  color: rgba(255,255,255,.85);
  max-width: 480px;
  margin: 0 auto 36px;
  font-size: 1.05rem;
  position: relative;
  z-index: 1;
}

.cta__card .btn--primary {
  background: #fff;
  color: var(--blue-dark);
  box-shadow: 0 8px 28px rgba(0,0,0,.15);
  position: relative;
  z-index: 1;
}

.cta__card .btn--primary:hover {
  background: var(--green-light);
  box-shadow: 0 12px 36px rgba(0,0,0,.2);
}

/* ----- 11. Footer ----- */
.footer {
  background: var(--text-primary);
  color: rgba(255,255,255,.7);
}

.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 56px;
  padding-bottom: 56px;
  gap: 40px;
  flex-wrap: wrap;
}

.footer__brand {
  flex: 0 0 auto;
  max-width: 260px;
}

.footer__brand img {
  height: 32px;
  filter: brightness(0) invert(1);
  margin-bottom: 12px;
}

.footer__brand p {
  color: rgba(255,255,255,.55);
  font-size: .9rem;
  line-height: 1.6;
}

/* Multi-column nav area */
.footer__cols {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 150px;
}

.footer__col h4 {
  color: rgba(255,255,255,.4);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.footer__col a {
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  transition: color var(--transition);
  text-decoration: none;
}

.footer__col a:hover {
  color: #fff;
}

/* Legacy single-row links (kept for backward compat) */
.footer__links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.footer__links a {
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: #fff;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 24px;
  text-align: center;
}

.footer__bottom p {
  color: rgba(255,255,255,.35);
  font-size: .85rem;
}

/* ----- 12. Animations ----- */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

.animate-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .65s ease, transform .65s ease;
}

.animate-fade {
  opacity: 0;
  transition: opacity .8s ease .2s;
}

.animate-up.visible,
.animate-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----- 13. Responsive ----- */
@media (max-width: 1024px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar__links,
  .navbar__cta {
    display: none;
  }

  .navbar__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: #fff;
    padding: 24px;
    gap: 20px;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--border);
    z-index: 99;
  }

  .navbar__links.open + .navbar__cta {
    display: none;
  }

  .navbar__burger {
    display: flex;
  }

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

  .hero__cards {
    height: 260px;
  }

  .hero__card--2 { right: auto; left: 45%; }

  .about__stats {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

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

  .cta__card {
    padding: 48px 28px;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__cols {
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
}

/* =====================================================
   MOCKUPS
   ===================================================== */

/* ----- Shared dot ----- */
.mock-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.mock-dot--red    { background: #fc5753; }
.mock-dot--yellow { background: #fdbc40; }
.mock-dot--green  { background: #33c748; }

/* =====================================================
   PMARKET — Single iPhone mockup
   ===================================================== */
.mockup-iphone {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-iphone__shell {
  position: relative;
  width: 185px;
  background: #1a1f2e;
  border-radius: 40px;
  padding: 14px 9px 18px;
  box-shadow:
    0 0 0 1.5px #374151,
    0 0 0 3px #0f1420,
    0 28px 64px rgba(0,0,0,.45),
    inset 0 0 0 1px rgba(255,255,255,.07);
}

/* Dynamic Island */
.mockup-iphone__island {
  width: 74px;
  height: 22px;
  background: #0f1420;
  border-radius: 18px;
  margin: 0 auto 8px;
}

.mockup-iphone__screen {
  border-radius: 28px;
  overflow: hidden;
  line-height: 0;
}

.mockup-iphone__screen img {
  width: 100%;
  height: auto;
  display: block;
}

/* Side buttons */
.mockup-iphone__btn {
  position: absolute;
  background: #2d3748;
  border-radius: 3px;
}

/* Power button – right side */
.mockup-iphone__btn--side {
  right: -4px;
  top: 120px;
  width: 4px;
  height: 64px;
}

/* Volume buttons – left side */
.mockup-iphone__btn--vol1 {
  left: -4px;
  top: 96px;
  width: 4px;
  height: 40px;
}

.mockup-iphone__btn--vol2 {
  left: -4px;
  top: 148px;
  width: 4px;
  height: 40px;
}

/* =====================================================
   SOFTWARE INMOBILIARIO — Browser frame
   ===================================================== */
.mockup-browser {
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  box-shadow:
    0 0 0 1px #d1d9e6,
    0 -8px 40px rgba(0,0,0,.10);
  width: 100%;
  background: #fff;
}

.mockup-browser__bar {
  background: #e8ecf0;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.mockup-browser__url {
  flex: 1;
  background: #fff;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: .75rem;
  color: #6b7280;
  margin: 0 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

.mockup-browser__screen {
  line-height: 0;
  overflow: hidden;
}

.mockup-browser__screen img {
  width: 100%;
  height: auto;
  display: block;
}

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 960px) {
  .product-card__content,
  .product-card__content--reverse {
    grid-template-columns: 1fr;
  }

  .product-card__content--reverse .product-card__text   { order: 1; }
  .product-card__content--reverse .product-card__mockup { order: 2; }

  .product-card__text { padding: 40px 32px; }

  .product-card__mockup--phones {
    min-height: 380px;
  }

  .product-card__mockup--browser {
    padding: 28px 24px 0;
  }

  .mockup-iphone__shell { width: 160px; border-radius: 36px; }
}

@media (max-width: 600px) {
  .product-card__text { padding: 32px 24px; }

  .product-card__mockup--phones { min-height: 320px; }

  .mockup-iphone__shell { width: 138px; border-radius: 32px; }
  .mockup-iphone__island { width: 62px; height: 18px; }
  .mockup-iphone__screen { border-radius: 24px; }

  .product-card__mockup--browser { padding: 20px 16px 0; }
}

/* ----- Shared macOS-style dot ----- */
.mock-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.mock-dot--red    { background: #fc5753; }
.mock-dot--yellow { background: #fdbc40; }
.mock-dot--green  { background: #33c748; }

/* =====================================================
   PMARKET — Three stacked phones
   ===================================================== */
.mockup-phones {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 420px;
  width: 100%;
  max-width: 640px;
}

/* ----- Phone shell ----- */
.mockup-phone__shell {
  background: #1a1f2e;
  border-radius: 36px;
  padding: 12px 8px 14px;
  box-shadow:
    0 0 0 1px #374151,
    0 24px 64px rgba(0,0,0,.35),
    inset 0 0 0 1px rgba(255,255,255,.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 170px;
}

.mockup-phone__notch {
  width: 52px;
  height: 6px;
  background: #0f1420;
  border-radius: 4px;
  flex-shrink: 0;
}

.mockup-phone__screen {
  border-radius: 24px;
  overflow: hidden;
  width: 100%;
  line-height: 0;
}

.mockup-phone__screen img {
  width: 100%;
  height: auto;
  display: block;
}

/* ----- Front (center, full size, raised) ----- */
.mockup-phone--front {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.mockup-phone--front .mockup-phone__shell {
  width: 200px;
  border-radius: 40px;
  box-shadow:
    0 0 0 1px #374151,
    0 32px 80px rgba(0,0,0,.40),
    inset 0 0 0 1px rgba(255,255,255,.07);
}

.mockup-phone--front .mockup-phone__screen { border-radius: 28px; }

/* ----- Back phones (left & right, smaller, tilted) ----- */
.mockup-phone--back .mockup-phone__shell {
  width: 160px;
  opacity: .88;
}

.mockup-phone--left {
  position: absolute;
  bottom: 20px;
  left: 0;
  z-index: 2;
  transform: rotate(-6deg) translateX(20px);
  transform-origin: bottom center;
}

.mockup-phone--right {
  position: absolute;
  bottom: 20px;
  right: 0;
  z-index: 2;
  transform: rotate(6deg) translateX(-20px);
  transform-origin: bottom center;
}

/* =====================================================
   SOFTWARE INMOBILIARIO — Browser frame
   ===================================================== */
.mockup-browser {
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px #d1d9e6,
    0 24px 72px rgba(0,0,0,.14);
  width: 100%;
  max-width: 860px;
  background: #fff;
}

.mockup-browser__bar {
  background: #e8ecf0;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.mockup-browser__url {
  flex: 1;
  background: #fff;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: .75rem;
  color: #6b7280;
  margin: 0 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

.mockup-browser__screen {
  line-height: 0;
  overflow: hidden;
}

.mockup-browser__screen img {
  width: 100%;
  height: auto;
  display: block;
}

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 900px) {
  .mockup-phones { height: 340px; }

  .mockup-phone--front .mockup-phone__shell { width: 164px; }
  .mockup-phone--back  .mockup-phone__shell { width: 132px; }
}

@media (max-width: 600px) {
  .product-card__mockup { padding: 32px 20px 40px; }

  .mockup-phones { height: 300px; }

  .mockup-phone--front .mockup-phone__shell { width: 148px; border-radius: 32px; }
  .mockup-phone--back  .mockup-phone__shell { width: 116px; }
  .mockup-phone__notch { width: 42px; }

  .mockup-phone--left  { transform: rotate(-5deg) translateX(14px); }
  .mockup-phone--right { transform: rotate(5deg) translateX(-14px); }
}

