:root {
  --bg: #f8fafc;
  --surface: rgba(255, 255, 255, 0.8);
  --surface-strong: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: rgba(15, 23, 42, 0.08);
  --primary: #14b8a6;
  --primary-strong: #0f766e;
  --accent: #7c3aed;
  --shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 24px 80px rgba(15, 23, 42, 0.10);
  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --container: 1160px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.08), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 46%, #f1f5f9 100%);
}

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

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

.site-shell {
  overflow: clip;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(248, 250, 252, 0.72);
  border-bottom: 1px solid rgba(255,255,255,0.35);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  box-shadow: var(--shadow-sm);
}

.brand-text {
  font-size: 1.05rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.site-nav a {
  color: var(--muted);
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 0.9rem 1.15rem;
  border-radius: 999px;
  color: white !important;
  background: linear-gradient(135deg, var(--primary-strong), var(--primary));
  box-shadow: 0 14px 30px rgba(15, 118, 110, 0.20);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: rgba(255,255,255,0.8);
  box-shadow: var(--shadow-sm);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 999px;
}

.hero {
  padding: 4.5rem 0 2.5rem;

  background-image: url("assets/images/fondo-bloque1.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 3rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-strong);
  background: rgba(20, 184, 166, 0.10);
}

.hero h1,
.section-heading h2,
.about-copy h2,
.contact-copy h2 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(2.6rem, 6vw, 5rem);
}

.hero-text,
.section-heading p,
.service-card p,
.portfolio-body p,
.step-card p,
.about-copy p,
.contact-copy p,
.about-card li,
.footer-inner,
.mockup-content p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-text {
  max-width: 62ch;
  margin: 1.25rem 0 0;
  font-size: 1.08rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-strong), var(--primary));
  box-shadow: 0 18px 35px rgba(15, 118, 110, 0.22);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li,
.trusted-tags span,
.mockup-pills span,
.portfolio-label {
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-sm);
  font-size: 0.95rem;
}

.hero-visual {
  position: relative;
  min-height: 560px;
}

.mockup-card {
  position: relative;
  width: min(100%, 560px);
  margin-left: auto;
  background: rgba(255,255,255,0.68);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 32px;
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.browser-bar {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
}

.browser-bar span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.55);
}

.mockup-content {
  padding: 1.5rem 1.5rem 1.7rem;
}

.mockup-content h2 {
  margin: 0.8rem 0 0.5rem;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  letter-spacing: -0.035em;
}

.mini-badge,
.about-kicker {
  color: var(--primary-strong);
  font-size: 0.9rem;
  font-weight: 700;
}

.mockup-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.mockup-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  margin-top: 1.4rem;
  min-height: 230px;
}

.panel-left,
.panel-right > div,
.portfolio-top{
  height:220px;
  overflow:hidden;
  border-radius:16px;
}

.portfolio-top img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.panel-left {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0)),
    linear-gradient(135deg, rgba(20, 184, 166, 0.95), rgba(124, 58, 237, 0.72));
}

.panel-right {
  display: grid;
  gap: 1rem;
}

.panel-right > div {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.06), rgba(255,255,255,0.9));
  min-height: 68px;
}

.stat-chip {
  position: absolute;
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: 20px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
}

.stat-chip strong {
  font-size: 0.98rem;
}

.stat-chip span {
  color: var(--muted);
  font-size: 0.92rem;
}

.chip-1 {
  left: 0;
  top: 12%;
  transform: translateX(-18%);
}

.chip-2 {
  right: -2%;
  bottom: 9%;
}

.trusted {
  padding: 0.5rem 0 1rem;
}

.trusted-row p {
  margin: 0;
  min-width: fit-content;
  color: var(--muted);
  font-weight: 600;
}

.section {
  padding: 5.5rem 0;
}

.section-soft {
  background: linear-gradient(180deg, rgba(255,255,255,0.34), rgba(255,255,255,0.74));
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.2rem;
}

.section-heading h2,
.about-copy h2,
.contact-copy h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 1rem;
}

.cards-grid,
.portfolio-grid,
.steps-grid,
.about-grid {
  display: grid;
  gap: 1.3rem;
}

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

.service-card,
.portfolio-card,
.step-card,
.about-card,
.contact-box {
  border: 1px solid rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-sm);
}

.service-card,
.step-card,
.about-card {
  padding: 1.5rem;
  border-radius: 28px;
}

.card-icon,
.step-number {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 14px;
  font-weight: 800;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.service-card h3,
.portfolio-body h3,
.step-card h3 {
  margin: 0 0 0.7rem;
  font-size: 1.2rem;
}

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

.portfolio-card {
  overflow: hidden;
  border-radius: 28px;
}

.portfolio-top {
  min-height: 210px;
  margin: 1rem;
}

.portfolio-top-1 {
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.32), transparent 30%),
    linear-gradient(135deg, #f97316, #fb7185);
}

.portfolio-top-2 {
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.32), transparent 30%),
    linear-gradient(135deg, #22c55e, #14b8a6);
}

.portfolio-top-3 {
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.32), transparent 30%),
    linear-gradient(135deg, #6366f1, #8b5cf6);
}

.portfolio-body {
  padding: 0 1.2rem 1.3rem;
}

.steps-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.about-grid {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.about-card-inner {
  padding: 2rem;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(20, 184, 166, 0.08), rgba(124, 58, 237, 0.08));
}

.about-card ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}

.contact-box {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem;
  border-radius: 32px;
}

.site-footer {
  padding: 1rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.floating-card {
  animation: floatCard 6s ease-in-out infinite;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatCard {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 1080px) {
  .hero-grid,
  .about-grid,
  .contact-box {
    grid-template-columns: 1fr;
  }

  .cards-grid,
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-visual {
    min-height: auto;
  }

  .mockup-card {
    margin: 0 auto;
  }

  .chip-1 {
    left: 2%;
    top: 6%;
    transform: none;
  }

  .chip-2 {
    right: 4%;
    bottom: 5%;
  }
}

@media (max-width: 760px) {
  .site-nav {
    position: absolute;
    top: calc(100% + 0.7rem);
    right: 1rem;
    left: 1rem;
    display: grid;
    gap: 0.25rem;
    padding: 0.7rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255,255,255,0.96);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 0.9rem 1rem;
    border-radius: 14px;
  }

  .site-nav a:hover {
    background: rgba(15, 23, 42, 0.04);
  }

  .nav-toggle {
    display: inline-block;
  }

  .hero {
    padding-top: 2.8rem;
  }

  .hero h1 {
    max-width: none;
  }

  .cards-grid,
  .portfolio-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .mockup-panel {
    grid-template-columns: 1fr;
  }

  .chip-1,
  .chip-2 {
    position: static;
    margin-top: 1rem;
  }

  .hero-visual {
    display: grid;
    gap: 0.8rem;
  }

  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .section,
  .section-soft {
    padding: 4rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .floating-card,
  .reveal {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

.back-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--line);
  font-size: 20px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.back-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15,23,42,0.15);
}

.btn-glow {
  position: relative;
  gap: 0.55rem;
  padding-inline: 1.35rem;
  background: linear-gradient(135deg, #0f766e 0%, #14b8a6 55%, #2dd4bf 100%);
  box-shadow:
    0 14px 30px rgba(15, 118, 110, 0.22),
    0 0 0 1px rgba(255,255,255,0.15) inset;
}

.btn-glow:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 22px 45px rgba(15, 118, 110, 0.28),
    0 0 0 1px rgba(255,255,255,0.22) inset;
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.22s ease;
}

.btn-glow:hover .btn-arrow {
  transform: translate(2px, -2px);
}

.btn-soft {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 10px 25px rgba(15, 23, 42, 0.06),
    0 0 0 1px rgba(255,255,255,0.3) inset;
}

.btn-soft:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.9);
}

.hero-points-premium {
  margin-top: 1.1rem;
  gap: 0.9rem;
}

.hero-points-premium li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 10px 24px rgba(15, 23, 42, 0.05),
    0 0 0 1px rgba(255,255,255,0.25) inset;
  font-weight: 500;
}

.hero-points-premium li span {
  color: #14b8a6;
  font-size: 0.9rem;
}

.hero-actions .btn,
.hero-points-premium li {
  animation: heroFloatIn 0.7s ease both;
}

.hero-actions .btn:nth-child(2) {
  animation-delay: 0.08s;
}

.hero-points-premium li:nth-child(1) {
  animation-delay: 0.14s;
}

.hero-points-premium li:nth-child(2) {
  animation-delay: 0.2s;
}

@keyframes heroFloatIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sector-spotlight {
  display: grid;
  gap: 1.2rem;
  max-width: 620px;
  margin-top: 3.5rem;
}

.sector-stage {
  position: relative;
  width: 100%;
  min-height: 118px;
}

.sector-card {
  position: absolute;
  inset: 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  box-shadow:
    0 12px 30px rgba(15, 23, 42, 0.06),
    0 0 0 1px rgba(255,255,255,0.28) inset;
  opacity: 0;
  transform: translateX(40px) rotate(3deg) scale(0.96);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
  text-align: left;
}

.sector-card.is-active {
  opacity: 1;
  transform: translateX(0) rotate(0deg) scale(1);
  pointer-events: auto;
  z-index: 2;
}

.sector-icon {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  display: inline-grid;
  place-items: center;
  border-radius: 18px;
  font-size: 1.6rem;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.16), rgba(124, 58, 237, 0.14));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
}

.sector-content {
  flex: 1;
  min-width: 0;
}

.sector-content h3 {
  margin: 0 0 0.3rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.sector-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  overflow-wrap: break-word;
  word-break: normal;
}

@media (max-width: 760px) {
  .sector-spotlight {
    padding: 1rem;
  }

  .sector-stage {
    min-height: 140px;
  }

  .sector-card {
    align-items: flex-start;
  }
}

.sector-title {
  margin: 0 0 0.8rem;
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.ideal-grid {
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(280px, 420px);
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.ideal-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ideal-image img {
  width: 100%;
  max-width: 360px;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 30px 60px rgba(15, 23, 42, 0.16));
  transform: rotate(-2deg);
  transition: transform 0.35s ease;
}

.ideal-image img:hover {
  transform: rotate(0deg) scale(1.03);
}

@media (max-width: 900px) {
  .ideal-grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .sector-spotlight {
    max-width: 100%;
    margin-top: 2.5rem;
  }

  .sector-stage {
    min-height: 140px;
  }

  .sector-card {
    padding: 1rem;
    gap: 0.85rem;
  }

  .sector-icon {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
  }

  .sector-content h3 {
    font-size: 1.05rem;
  }

  .sector-content p {
    font-size: 0.98rem;
    line-height: 1.5;
  }

  .ideal-image {
    justify-content: flex-start;
  }

  .ideal-image img {
    max-width: 280px;
    transform: rotate(-1.5deg);
  }
}

/* ===== HERO SOBRE IMAGEN: contraste y legibilidad ===== */
.hero {
  color: #ffffff;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.hero h1 {
  color: #ffffff;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.45);
}

.hero-text {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.brand-logo{
  height:72px;
  width:auto;
  display:block;
}

.service-icon{
  width:60px;
  height:60px;
  margin-bottom:1rem;
}

.service-icon img{
  width:100%;
  height:100%;
  object-fit:contain;
}

.about-highlight{
  margin-top:1.6rem;

  font-size:1.2rem;
  line-height:1.6;

  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;

  color:#1f2937;

  max-width:520px;
}

.about-highlight::before{
  content:"";
  display:block;
  width:42px;
  height:3px;
  background:#14b8a6;
  margin-bottom:12px;
  border-radius:2px;
}

.whatsapp-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.whatsapp-icon{
  width:18px;
  height:18px;
  display:block;
}

.floating-whatsapp{
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 999px;
  background: #25D366;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(37, 211, 102, 0.28);
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    opacity .22s ease,
    bottom .22s ease;
}

.floating-whatsapp:hover{
  transform:translateY(-3px);
  box-shadow:0 24px 50px rgba(37, 211, 102, 0.34);
}

.floating-whatsapp-icon{
  width:20px;
  height:20px;
  display:block;
  filter: brightness(0) invert(1);
}

@media (max-width: 760px){
  .floating-whatsapp{
    right:16px;
    bottom:16px;
    width:56px;
    height:56px;
    justify-content:center;
    padding:0;
    border-radius:50%;
  }

  .floating-whatsapp span{
    display:none;
  }

  .floating-whatsapp-icon{
    width:24px;
    height:24px;
    filter: brightness(0) invert(1);
  }
}

.portfolio-top {
  height: 220px;
  overflow: hidden;
  border-radius: 24px;
  margin: 1rem;
  background: #f8fafc;
}

.portfolio-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portfolio-open {
  margin-top: 1rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  font: inherit;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.portfolio-open:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  background: #ffffff;
}

.portfolio-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
}

.portfolio-lightbox.is-open {
  display: block;
}

.portfolio-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(6px);
}

.portfolio-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 1100px);
  margin: 5vh auto;
  min-height: 70vh;
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  gap: 1rem;
}

.portfolio-lightbox-media {
  background: rgba(255,255,255,0.04);
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 70vh;
}

.portfolio-lightbox-media img {
  max-width: 100%;
  max-height: 70vh;
  display: block;
  object-fit: contain;
  border-radius: 18px;
}

.portfolio-lightbox-close,
.portfolio-lightbox-prev,
.portfolio-lightbox-next {
  border: 0;
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: transform 180ms ease, background 180ms ease;
}

.portfolio-lightbox-close:hover,
.portfolio-lightbox-prev:hover,
.portfolio-lightbox-next:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.2);
}

.portfolio-lightbox-close {
  position: absolute;
  top: -0.5rem;
  right: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 2rem;
  line-height: 1;
}

.portfolio-lightbox-prev,
.portfolio-lightbox-next {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  font-size: 2rem;
}

.portfolio-lightbox-counter {
  position: absolute;
  left: 50%;
  bottom: -2.2rem;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.92);
  font-weight: 700;
}

@media (max-width: 760px) {
  .portfolio-lightbox-dialog {
    width: min(94vw, 94vw);
    margin: 8vh auto;
    grid-template-columns: 48px 1fr 48px;
    min-height: auto;
  }

  .portfolio-lightbox-media {
    min-height: 48vh;
  }

  .portfolio-lightbox-media img {
    max-height: 48vh;
  }

  .portfolio-lightbox-prev,
  .portfolio-lightbox-next {
    width: 44px;
    height: 44px;
    font-size: 1.6rem;
  }

  .portfolio-lightbox-counter {
    bottom: -1.8rem;
  }
}

.cookie-banner{
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  display: none;
}

.cookie-content{
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  flex-wrap: wrap;

  border: 1px solid rgba(255,255,255,0.65);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.82);
  color: #ffffff;
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.24);
}

.cookie-copy{
  flex: 1 1 560px;
  min-width: 260px;
}

.cookie-title{
  margin: 0 0 0.25rem;
  font-size: 0.98rem;
  font-weight: 800;
  color: #ffffff;
}

.cookie-text{
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.82);
}

.cookie-buttons{
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cookie-btn{
  border: 0;
  min-height: 46px;
  padding: 0.8rem 1.05rem;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.cookie-btn:hover{
  transform: translateY(-2px);
}

.cookie-accept{
  background: linear-gradient(135deg, var(--primary-strong), var(--primary));
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 118, 110, 0.24);
}

.cookie-reject{
  background: rgba(255,255,255,0.1);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.14);
}

@media (max-width: 760px){
  .cookie-banner{
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .cookie-content{
    padding: 0.95rem;
    border-radius: 18px;
  }

  .cookie-buttons{
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .cookie-btn{
    width: 100%;
  }
}

.floating-whatsapp{
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    opacity .22s ease,
    bottom .22s ease;
}

.floating-whatsapp{
  position: fixed;
  right: 24px;
  bottom: calc(24px + var(--cookie-offset, 0px));
  z-index: 10000;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 999px;
  background: #25D366;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(37, 211, 102, 0.28);
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    opacity .22s ease,
    bottom .22s ease;
}

@media (max-width: 760px){
  .floating-whatsapp{
    right: 16px;
    bottom: calc(16px + var(--cookie-offset, 0px));
    width: 56px;
    height: 56px;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
  }

  .floating-whatsapp span{
    display: none;
  }

  .floating-whatsapp-icon{
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
  }
}

.sector-links-grid {
  align-items: stretch;
}

.sector-link-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sector-link-card h3 {
  margin: 0;
}

.sector-link-card h3 a {
  color: inherit;
}

.sector-link {
  margin-top: auto;
  font-weight: 700;
  color: var(--primary-strong);
}

.sector-link:hover {
  text-decoration: underline;
}
