* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  scroll-behavior: smooth;
}

body {
  background-color: black;
}

body::-webkit-scrollbar {
  display: none;
}

.serif {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
}

.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;
}

/* Background masks replacement with border-radius */
.bg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  border-radius: 40px;
}

div .label {
  font-size: 48px;
  font-weight: 500;
  line-height: 48px;
  letter-spacing: -0.04em;
  display: block;
}

/* --- Loading --- */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background:
    radial-gradient(circle at 52% 46%, #ffffff 0 28%, #f8f7f4 62%, #f1f0ee 100%);
  color: #111;
  z-index: 999999999;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  animation: loaderSceneTint 4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.loading.hide {
  opacity: 0;
  pointer-events: none;
}

.loading-stage {
  position: relative;
  width: min(74vw, 620px);
  height: min(34vw, 240px);
  display: grid;
  place-items: center;
  perspective: 900px;
}

.loading-mark {
  position: absolute;
  width: min(58vw, 420px);
  height: auto;
  overflow: visible;
  transform-style: preserve-3d;
  animation: loaderRealMarkExit 4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.loader-logo-piece {
  display: block;
  fill: #4d56cb;
  filter: drop-shadow(0 16px 18px rgba(77, 86, 203, 0.22));
  transform-box: fill-box;
  transform-origin: center;
  will-change: transform, opacity;
}

.loader-c-left {
  animation: loaderRealCLeft 4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.loader-dot-left {
  animation: loaderRealDotLeft 4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.loader-l-center {
  animation: loaderRealL 4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.loader-c-right {
  animation: loaderRealCRight 4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.loader-dot-right {
  animation: loaderRealDotRight 4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.loading-logo {
  position: absolute;
  width: min(74vw, 620px);
  height: auto;
  opacity: 0;
  transform: translateY(18px) scale(0.94);
  filter: drop-shadow(0 14px 28px rgba(77, 86, 203, 0.18));
  animation: loaderRealLogoReveal 4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes loaderSceneTint {
  0%, 22% { background-color: transparent; }
  34%, 46% { box-shadow: inset 0 0 0 999px rgba(110, 169, 237, 0.18); }
  58%, 100% { box-shadow: inset 0 0 0 999px rgba(255, 255, 255, 0); }
}

@keyframes loaderRealCLeft {
  0% { opacity: 0; transform: translate(-82px, 34px) rotate(-18deg) scale(0.74); }
  18% { opacity: 1; transform: translate(10px, -6px) rotate(5deg) scale(1.05); }
  36%, 72% { opacity: 1; transform: translate(0, 0) rotate(0) scale(1); }
  86%, 100% { opacity: 0; transform: translate(-16px, -10px) scale(0.92); }
}

@keyframes loaderRealDotLeft {
  0% { opacity: 0; transform: translate(-50px, -92px) scale(0.45); }
  24% { opacity: 1; transform: translate(6px, 5px) scale(1.12); }
  42%, 72% { opacity: 1; transform: translate(0, 0) scale(1); }
  86%, 100% { opacity: 0; transform: translate(-8px, -28px) scale(0.7); }
}

@keyframes loaderRealL {
  0% { opacity: 0; transform: translateY(-120px) rotate(7deg) scaleY(0.76); }
  20% { opacity: 1; transform: translateY(12px) rotate(-2deg) scaleY(1.06); }
  38%, 72% { opacity: 1; transform: translateY(0) rotate(0) scaleY(1); }
  86%, 100% { opacity: 0; transform: translateY(-18px) scale(0.94); }
}

@keyframes loaderRealCRight {
  0% { opacity: 0; transform: translate(88px, 34px) rotate(18deg) scale(0.74); }
  18% { opacity: 1; transform: translate(-10px, -6px) rotate(-5deg) scale(1.05); }
  36%, 72% { opacity: 1; transform: translate(0, 0) rotate(0) scale(1); }
  86%, 100% { opacity: 0; transform: translate(16px, -10px) scale(0.92); }
}

@keyframes loaderRealDotRight {
  0% { opacity: 0; transform: translate(52px, -92px) scale(0.45); }
  26% { opacity: 1; transform: translate(-6px, 5px) scale(1.12); }
  44%, 72% { opacity: 1; transform: translate(0, 0) scale(1); }
  86%, 100% { opacity: 0; transform: translate(8px, -28px) scale(0.7); }
}

@keyframes loaderRealMarkExit {
  0% { opacity: 1; transform: translateY(12px) scale(0.94); }
  18%, 72% { opacity: 1; transform: translateY(0) scale(1); }
  84%, 100% { opacity: 0; transform: translateY(-12px) scale(0.86); }
}

@keyframes loaderRealLogoReveal {
  0%, 72% { opacity: 0; transform: translateY(18px) scale(0.94); }
  84% { opacity: 1; transform: translateY(0) scale(1.04); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 80px;
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

.navbar .bg {
  background: rgba(255,255,255,0.9);
  border-bottom-left-radius: 32px;
  border-bottom-right-radius: 32px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  backdrop-filter: blur(10px);
}

.navbar .logo {
  text-decoration: none;
  color: black;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.flower { color: #d747a7; font-size: 30px; }

.navbar .right {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  z-index: 10;
}

.navbar ul {
  display: flex;
  list-style: none;
  gap: 10px;
}

.navbar ul li {
  position: relative;
}

.navbar ul li a {
  text-decoration: none;
  color: black;
  font-size: 20px;
  padding: 10px 20px;
  border-radius: 200px;
  background-color: rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.3s;
  cursor: pointer;
}

.navbar ul li a:hover {
  background: rgba(0,0,0,0.12);
}

.navbar ul li ul {
  position: absolute;
  top: 100%;
  left: 0;
  flex-direction: column;
  background: rgba(255,255,255,0.9);
  padding: 10px;
  border-radius: 20px;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}

.navbar ul li.dropdown:hover ul {
  opacity: 1;
  pointer-events: auto;
}

.contact-btn {
  display: flex;
  align-items: center;
}

.contact-btn a {
  text-decoration: none;
  color: black;
  background: white;
  padding: 12px 24px;
  border-radius: 200px;
  font-size: 20px;
  margin-right: 4px;
}

.contact-btn .arrow {
  background: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  width: 100%;
  margin-top: 82px;
  border-radius: 40px;
  overflow: hidden;
  background: #f1f0ee;
}

.wrapper {
  position: relative;
  padding: 60px 0;
}

.inner-slider {
  display: flex;
  white-space: nowrap;
}

.slider {
  display: flex;
  animation: slide 40s linear infinite;
}

.slider .card {
  width: 400px;
  height: 300px;
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  position: relative;
  overflow: hidden;
}

.slider .card img {
  width: 80%;
  height: 80%;
  object-fit: cover;
  border-radius: 20px;
  transition: 0.4s;
}

.slider .card:hover img {
  transform: scale(1.1) rotate(5deg);
}

.slider .card a {
  position: absolute;
  opacity: 0;
  background: white;
  color: black;
  padding: 10px 20px;
  border-radius: 100px;
  text-decoration: none;
  transition: 0.3s;
}

.slider .card:hover a {
  opacity: 1;
}

@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.slider-contact-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-10deg);
  display: flex;
  background: black;
  border-radius: 200px;
  padding: 10px;
  align-items: center;
  gap: 10px;
  animation: floatbtn 4s infinite ease-in-out;
  cursor: pointer;
  z-index: 100;
}

@keyframes floatbtn {
  0%, 100% { transform: translate(-50%, -50%) rotate(-10deg); }
  50% { transform: translate(-50%, -60%) rotate(0deg); }
}

.slider-contact-btn a {
  color: white;
  text-decoration: none;
  font-size: 40px;
  padding: 0 30px;
}

.slider-contact-btn .face {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
}

.slider-contact-btn .face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-text-content {
  padding: 0 40px 60px;
}

.right-text {
  width: 50%;
  margin-left: auto;
  font-size: 24px;
  color: rgba(0,0,0,0.6);
  margin-bottom: 120px;
  line-height: 1.3;
}

.hero-text-content h1 {
  font-size: calc(clamp(48px, 10vw, 140px) - 6pt);
  line-height: 1;
  letter-spacing: -6px;
  color: black;
  font-weight: 300;
}

/* Hero title split in three explicit lines */
.hero-line {
  display: block;
  width: 100%;
}

/* Prevent the middle line from wrapping when the rotating word changes */
.hero-line-2 {
  white-space: nowrap;
}

.hero-line-3 {
  /* ensure the third line stays visually separate */
  display: block;
}

/* Espacio entre 'que' y la palabra rotativa */
.hero-line-2 .rotating-word {
  margin-left: 24px;
  display: inline-block;
  font-size: calc(1em + 6pt);
}

@media (max-width: 800px) {
  .hero-line-2 .rotating-word { margin-left: 12px; }
}

/* --- Nosotros Section --- */
.about-team-section {
  position: relative;
  background: #e6e4df;
  border-radius: 40px;
  z-index: 1;
  margin: 10px 0;
  padding: 70px 40px 118px;
  overflow: hidden;
  scroll-margin-top: 96px;
}

.about-team-copy,
.about-team-grid {
  position: relative;
  z-index: 1;
}

.about-team-copy {
  max-width: 1080px;
  margin: 0 0 78px;
}

.about-team-copy p {
  color: #111;
  font-size: calc(42px - 2pt);
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 700;
}

.about-transform-word {
  display: inline-block;
  color: rgba(17, 17, 17, 0.68);
  font-family: 'Instrument Serif', serif;
  font-size: 1.08em;
  font-style: italic;
  font-weight: 400;
  line-height: 0.9;
}

.about-team-grid {
  --middle-offset: 60px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
  padding-bottom: var(--middle-offset);
  align-items: start;
}

.about-team-photo {
  --photo-offset: 0px;
  aspect-ratio: 1200 / 1691;
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(var(--photo-offset));
  transition: transform 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-team-photo--2,
.about-team-photo--5 {
  --photo-offset: var(--middle-offset);
}

.about-team-photo:hover {
  transform: translateY(var(--photo-offset)) scale(1.025);
}

.about-team-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Clients Section --- */
.client-section {
  position: relative;
  background: #f8f8f8;
  border-radius: 40px;
  margin: 10px 0;
  padding: 60px 0;
  overflow: hidden;
}

.client-section .label {
  margin-bottom: 80px;
  padding-left: 40px;
}

.clients {
  display: flex;
  white-space: nowrap;
}

.clients .inner {
  display: flex;
  animation: slide 30s linear infinite;
}

.client-logo {
  width: 280px;
  height: 120px;
  padding: 0 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 200px;
  margin-right: 20px;
  flex: 0 0 auto;
}

.client-logo img {
  display: block;
  width: var(--client-logo-width, 180px);
  height: var(--client-logo-height, 68px);
  object-fit: contain;
  transform: scale(var(--client-logo-scale, 1));
  transform-origin: center;
}

.client-logo--embassy {
  --client-logo-width: 220px;
  --client-logo-height: 78px;
  --client-logo-scale: 1.50;
  background: #4D56CB;
}

.client-logo--carmen {
  --client-logo-width: 190px;
  --client-logo-height: 68px;
  --client-logo-scale: 1.08;
  background: #FF9F24;
}

.client-logo--jaag {
  --client-logo-width: 190px;
  --client-logo-height: 68px;
  --client-logo-scale: 1.08;
  background: #FFD221;
}

.client-logo--surf {
  --client-logo-width: 220px;
  --client-logo-height: 68px;
  --client-logo-scale: 0.90;
  background: #D3D3D3;
}

.client-logo--oceanside {
  --client-logo-width: 190px;
  --client-logo-height: 68px;
  --client-logo-scale: 0.90;
  background: #6EA9ED;
}

.client-logo--grupo {
  --client-logo-width: 225px;
  --client-logo-height: 68px;
  --client-logo-scale: 1;
  background: #46C458;
}

/* --- Thinking Section --- */
.thinking-section {
  position: relative;
  background: #e6e4df;
  border-radius: 40px;
  margin: 10px 0;
  overflow: hidden;
  padding-top: 60px;
}

.thinking-section .wrapper {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  padding: 0 40px 60px;
  position: relative;
}

.thinking-section .wrapper > .label {
  position: absolute;
  top: 0;
  left: 40px;
}

.thinking-left {
  width: 45%;
  margin-top: 0;
}

.thinking-video {
  width: 100%;
  border-radius: 24px;
  display: block;
}

.thinking-section .texts {
  width: 45%;
  font-size: 40px;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
}

.thinking-section .contact-btn {
  margin-top: 40px;
}

.since-2022-text {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  letter-spacing: -3px;
}

.since-2022-text .mega {
  font-size: 100px;
  line-height: 1;
}

.gallery-ribbon-section {
  position: relative;
  background: #e6e4df;
  border-radius: 40px;
  margin: 10px 0;
  overflow: hidden;
}

.images {
  display: flex;
  white-space: nowrap;
}

.images .group {
  display: flex;
  position: relative;
  animation: slide 20s linear infinite;
}

.images .group:nth-child(1) { z-index: 2; }
.images .group:nth-child(2) { z-index: 1; }

.images .img {
  width: 600px;
  height: 600px;
  position: relative;
  margin-right: 20px;
}

.images .img:nth-child(1) { z-index: 3; }
.images .img:nth-child(2) { z-index: 2; }
.images .img:nth-child(3) { z-index: 1; }

.images .img img,
.images .img video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 40px;
}

.sticker {
  position: absolute;
  top: 50%;
  right: -40px;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: black;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  z-index: 10;
}

/* --- Contact Form Section --- */
.contact-form-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: 56px;
  background: #e6e4df;
  border: 2px solid #111;
  border-radius: 40px;
  margin: 10px 0;
  padding: 68px 6vw;
  overflow: hidden;
}

.contact-form-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
  color: #111;
}

.contact-form-copy p {
  width: 100%;
  max-width: 520px;
  color: #111;
  font-size: clamp(24px, 2.4vw, 42px);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.contact-form-copy strong {
  font-weight: 800;
}

.contact-form-tag {
  width: min(230px, 46vw);
  height: auto;
  display: block;
}

.contact-form {
  width: min(100%, 520px);
  justify-self: center;
  background: white;
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 18px 42px rgba(17, 17, 17, 0.08);
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
}

.contact-field label {
  color: #4d5ac4;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 1px solid rgba(77, 77, 77, 0.28);
  border-radius: 4px;
  background: #fff;
  color: #4d4d4d;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 400;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-field textarea {
  min-height: 112px;
  resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: rgba(77, 77, 77, 0.58);
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: #4d5ac4;
  box-shadow: 0 0 0 3px rgba(77, 90, 196, 0.16);
}

.contact-phone-group {
  display: flex;
  gap: 8px;
}

.contact-phone-group select {
  flex: 0 0 auto;
  max-width: 40%;
  border: 1px solid rgba(77, 77, 77, 0.28);
  border-radius: 4px;
  background: #fff;
  color: #4d4d4d;
  font-size: 15px;
  padding: 10px 8px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-phone-group select:focus {
  border-color: #4d5ac4;
  box-shadow: 0 0 0 3px rgba(77, 90, 196, 0.16);
}

.contact-phone-group input {
  flex: 1 1 auto;
  min-width: 0;
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  min-height: 36px;
  border: 0;
  border-radius: 4px;
  background: #4d5ac4;
  color: white;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  padding: 10px 18px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.contact-submit:disabled,
.contact-submit[aria-disabled="true"] {
  background: rgba(77, 90, 196, 0.42);
  color: rgba(255, 255, 255, 0.78);
  transform: none;
  cursor: not-allowed;
}

.contact-submit:not(:disabled):hover {
  background: #3f49a6;
  transform: translateY(-1px);
}

.contact-status {
  margin-top: 12px;
  font-size: 14px;
  color: #4d5ac4;
}

.contact-status--error {
  color: #c0392b;
}

/* --- Service Section --- */
.service-section {
  position: relative;
  background: #f1f0ee;
  border-radius: 40px;
  margin: 10px 0;
  padding: 60px 40px;
}

.service-section .label {
  font-size: 48px;
  line-height: 48px;
  margin-bottom: 80px;
}

.services-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-wrapper {
  background: white;
  border-radius: 40px;
  padding: 40px;
  display: flex;
  align-items: center;
}

.service {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.service h2 {
  font-size: calc(60px - 5pt);
  width: 30%;
}

.service img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 20px;
}

.service p {
  width: 30%;
  font-size: 24px;
}

/* =============================================
   CLC – Animation & Interactivity Extensions
   ============================================= */

/* ─── Fix missing @keyframes spin ─── */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─── Hide native cursor (desktop only) ─── */
@media (pointer: fine) {
  *, *::before, *::after {
    cursor: none !important;
  }
}

/* ─── Custom Cursor ─── */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 999999999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #111;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
  will-change: transform;
}

.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.45);
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease,
              border-color 0.25s ease, background 0.25s ease;
  will-change: transform;
}

.custom-cursor.cursor-hover .cursor-dot {
  width: 14px;
  height: 14px;
  background: #000;
}

.custom-cursor.cursor-hover .cursor-ring {
  width: 52px;
  height: 52px;
  border-color: rgba(0, 0, 0, 0.7);
  background: rgba(0, 0, 0, 0.04);
}

/* ─── Loading Screen – slide-up exit ─── */
.loading {
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.76, 0, 0.24, 1);
}

.loading.hide {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

/* ─── Scroll Reveal ─── */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Hero Entry Animations ─── */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(44px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-reveal {
  opacity: 0;
}

.hero-reveal.hero-animate {
  animation: heroFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ─── Rotating Word ─── */
.rotating-word {
  display: inline-block;
  transition: opacity 0.28s ease, transform 0.28s ease, color 0.28s ease;
}

.rotating-word.word-exit {
  opacity: 0;
  transform: translateY(-14px);
}

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

.rotating-word.word-enter {
  animation: wordEnter 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ─── Sticker Rotation ─── */
@keyframes rotateStar {
  from { transform: translateY(-50%) rotate(0deg); }
  to   { transform: translateY(-50%) rotate(360deg); }
}

@keyframes rotateStarReverse {
  from { transform: translateY(-50%) rotate(0deg); }
  to   { transform: translateY(-50%) rotate(-360deg); }
}

.sticker {
  animation: rotateStar 5s linear infinite;
}

.sticker.two {
  animation: rotateStarReverse 4s linear infinite;
}

/* ─── Navbar Scrolled State ─── */
.navbar .bg {
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled .bg {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 28px rgba(0, 0, 0, 0.09);
}

/* ─── Service Card Hover ─── */
.service-wrapper {
  transition: transform 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.42s ease;
}

.service-wrapper:hover {
  transform: scale(1.015) translateY(-5px);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.1);
}

.service img {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-wrapper:hover .service img {
  transform: scale(1.07) rotate(2deg);
}

/* --- Legal Pages --- */
.legal-page {
  background: #f1f0ee;
  margin-top: 82px;
}

.legal-content {
  background: #f8f7f4;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  min-height: 680px;
  padding: clamp(80px, 8vw, 130px) clamp(32px, 8vw, 110px);
}

.legal-content h1 {
  color: #111;
  font-size: clamp(32px, 3.4vw, 52px);
  line-height: 1;
  font-weight: 700;
  margin-bottom: 44px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 32px;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  color: #111;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  transition: transform 0.25s ease, background 0.25s ease;
}

.legal-back:hover {
  transform: translateX(-4px);
  background: rgba(0, 0, 0, 0.1);
}

.legal-copy {
  max-width: 1180px;
  color: rgba(0, 0, 0, 0.74);
  font-size: clamp(17px, 1.35vw, 22px);
  line-height: 1.18;
}

.legal-copy p + p {
  margin-top: 24px;
}

.legal-copy h2 {
  color: #111;
  font-size: clamp(20px, 1.7vw, 28px);
  line-height: 1.1;
  font-weight: 700;
  margin-top: 34px;
  margin-bottom: 14px;
}

.legal-copy h3 {
  color: #111;
  font-size: clamp(18px, 1.45vw, 24px);
  line-height: 1.1;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 10px;
}

.legal-copy ul {
  margin: 12px 0 0 22px;
}

.legal-copy li + li {
  margin-top: 6px;
}

.legal-copy strong {
  color: #111;
  font-weight: 700;
}

.legal-page + .site-footer {
  margin-top: 0;
}

/* --- Projects Page --- */
.projects-page {
  background: #f1f0ee;
  margin-top: 82px;
}

.projects-catalog {
  background: #f8f7f4;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  min-height: 680px;
  padding: clamp(72px, 7vw, 112px) clamp(22px, 8vw, 110px) clamp(64px, 8vw, 104px);
}

.projects-back {
  margin-bottom: 42px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 34px);
  width: min(100%, 980px);
  margin: 0 auto;
}

.project-card {
  position: relative;
  aspect-ratio: 1 / 1;
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.05);
  box-shadow: 0 18px 44px rgba(17, 17, 17, 0.08);
}

.project-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.48s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  background: rgba(0, 0, 0, 0.68);
  color: white;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease;
}

.project-client {
  font-size: clamp(18px, 2vw, 30px);
  line-height: 1.05;
  font-weight: 500;
}

.project-type {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(26px, 3vw, 46px);
  line-height: 0.95;
  font-style: italic;
  font-weight: 400;
}

.project-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 24px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  color: white;
  text-decoration: none;
  font-size: clamp(16px, 1.5vw, 22px);
  line-height: 1;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.project-more:hover,
.project-more:focus-visible {
  background: white;
  color: #111;
  transform: translateY(-1px);
}

.project-card:hover img,
.project-card:focus-within img {
  transform: scale(1.08);
}

.project-card:hover .project-card-overlay,
.project-card:focus-within .project-card-overlay {
  opacity: 1;
  pointer-events: auto;
}

.projects-page + .site-footer {
  margin-top: 0;
}

/* --- Project Detail Page --- */
.project-detail-page {
  background: #f1f0ee;
  margin-top: 82px;
}

.project-detail-content {
  background: #f8f7f4;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  min-height: 680px;
  padding: clamp(72px, 7vw, 112px) clamp(22px, 8vw, 110px) clamp(64px, 8vw, 104px);
}

.project-detail-heading {
  max-width: 980px;
  margin: 0 auto 34px;
  color: #111;
}

.project-detail-label {
  color: rgba(17, 17, 17, 0.58);
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  margin-bottom: 12px;
}

.project-detail-heading h1 {
  color: #111;
  font-size: clamp(40px, 6vw, 92px);
  line-height: 0.94;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.project-detail-type {
  margin-top: 12px;
  color: #4d56cb;
  font-family: 'Instrument Serif', serif;
  font-size: clamp(32px, 4vw, 64px);
  line-height: 0.95;
  font-style: italic;
  font-weight: 400;
}

.project-detail-gallery {
  width: min(100%, 720px);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 28px;
  background: #111;
  box-shadow: 0 22px 54px rgba(17, 17, 17, 0.12);
}

.project-detail-gallery img {
  display: block;
  width: 100%;
  height: auto;
}

.project-detail-gallery img:first-child {
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
}

.project-detail-gallery img:last-child {
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
}

.project-detail-page.gallery-mode .project-detail-heading {
  display: none;
}

.project-detail-page + .site-footer {
  margin-top: 0;
}

/* --- News Page --- */
.news-page {
  background: #f1f0ee;
  margin-top: 82px;
}

.news-content {
  background: #f8f7f4;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  min-height: 680px;
  padding: clamp(64px, 6vw, 96px) clamp(22px, 5vw, 72px) clamp(72px, 8vw, 112px);
}

.news-back {
  margin-bottom: 28px;
}

.news-content h1 {
  color: #111;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1;
  font-weight: 800;
  margin-bottom: 42px;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.news-card {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  align-items: center;
  gap: 36px;
  background: white;
  border-radius: 24px;
  padding: 34px;
  box-shadow: 0 18px 44px rgba(17, 17, 17, 0.06);
}

.news-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
}

.news-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.news-card h2 {
  max-width: 820px;
  color: #111;
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.06;
  font-weight: 800;
  margin-bottom: 18px;
}

.news-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 18px;
  border-radius: 6px;
  background: #4d56cb;
  color: white;
  text-decoration: none;
  font-size: 16px;
  line-height: 1;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease;
}

.news-more:hover,
.news-more:focus-visible {
  background: #3f49a6;
  transform: translateY(-1px);
}

.news-page + .site-footer {
  margin-top: 0;
}

@media (hover: none) {
  .project-card-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  /* Prevent sticky :hover scaling from overflowing service cards on touch */
  .service-wrapper:hover {
    transform: none;
    box-shadow: none;
  }

  .service-wrapper:hover .service img {
    transform: none;
  }
}

/* --- Footer --- */
.site-footer {
  background: #4d56cb;
  color: white;
  margin-top: 10px;
  padding: 70px 5vw 42px;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(360px, 1.45fr) minmax(140px, 0.35fr) minmax(320px, 0.75fr);
  gap: 64px;
  align-items: start;
}

.footer-logo {
  width: min(360px, 100%);
  height: auto;
  display: block;
  margin-bottom: 34px;
}

.footer-description {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(22px, 2vw, 34px);
  line-height: 1.05;
  font-weight: 400;
}

.footer-description strong {
  color: white;
  font-weight: inherit;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 105px;
}

.footer-nav a,
.footer-write,
.footer-bottom a {
  color: white;
  text-decoration: none;
  font-weight: 400;
}

.footer-nav a {
  font-size: 22px;
}

.footer-nav a:hover,
.footer-bottom a:hover,
.footer-write:hover {
  color: #ffd221;
}

.footer-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 96px;
}

.footer-actions h2 {
  color: white;
  font-size: clamp(26px, 2.1vw, 36px);
  line-height: 1;
  margin-bottom: 20px;
  font-weight: 400;
  transition: color 0.25s ease;
}

.footer-actions h2:hover {
  color: #ffd221;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.footer-socials a {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.footer-socials a:hover {
  transform: translateY(-3px) scale(1.04);
}

.footer-socials img {
  width: 100%;
  height: 100%;
  display: block;
}

.footer-write {
  font-size: clamp(26px, 2.1vw, 36px);
  line-height: 1;
  align-self: flex-start;
  font-weight: 400;
  transition: color 0.25s ease;
}

.footer-bottom {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(170px, 0.55fr) minmax(360px, 1fr) minmax(240px, 0.75fr);
  gap: 28px;
  align-items: end;
  margin-top: 82px;
  color: white;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 400;
}

.footer-bottom p,
.footer-bottom a {
  font-size: inherit;
  font-weight: 400;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
}

/* ─── Contact Button Arrow Hover ─── */
.contact-btn .circle-arr {
  display: inline-block;
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-btn:hover .circle-arr {
  transform: rotate(45deg) scale(1.15);
}

.contact-btn a {
  transition: letter-spacing 0.3s ease;
}

.contact-btn:hover > a {
  letter-spacing: 0.4px;
}

/* ─── Navbar links arrow bounce ─── */
.navbar ul li.dropdown .arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

.navbar ul li.dropdown:hover .arrow {
  transform: rotate(180deg);
}

/* ─── Gallery images hover ─── */
.images .img img,
.images .img video {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* overflow clipped at img level so stickers outside .img siguen visibles */
  clip-path: inset(0 round 40px);
}

.images .img:hover img,
.images .img:hover video {
  transform: scale(1.05);
}

/* ─── Thinking video parallax (smooth) ─── */
.thinking-video {
  will-change: transform;
  transition: transform 0.08s linear;
}

/* ─── Canvas backgrounds ─── */
.canvas-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
}

/* Keep content layers above canvas */
.hero-section .wrapper,
.hero-section .hero-text-content {
  position: relative;
  z-index: 1;
}

.hero-section .slider-contact-btn {
  z-index: 101;
}

.thinking-section .wrapper,
.gallery-ribbon-section .images {
  position: relative;
  z-index: 1;
}

.service-section .label,
.service-section .services-container {
  position: relative;
  z-index: 1;
}

/* ─── Responsive & Accessibility ─── */
@media (pointer: coarse) {
  .custom-cursor { display: none; }
}

/* Responsive adjustment for hero and layout */
@media (max-width: 1024px) {
  .hero-text-content {
    padding: 0 32px 50px;
    max-width: 1100px;
    margin: 0 auto;
  }

  .right-text {
    width: 100%;
    margin-left: 0;
    font-size: 22px;
    margin-bottom: 90px;
    line-height: 1.35;
  }

  .hero-text-content h1 {
    font-size: calc(clamp(40px, 8vw, 110px) - 6pt);
    letter-spacing: -4px;
  }

  .hero-line-2 {
    white-space: normal;
  }

  .hero-line-2 .rotating-word {
    margin-left: 16px;
  }

  .wrapper {
    padding: 40px 0;
  }

  .contact-form-section {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 42px;
    padding: 58px 32px;
  }

  .projects-catalog {
    padding-left: 32px;
    padding-right: 32px;
  }

  .news-card {
    grid-template-columns: minmax(200px, 280px) 1fr;
    gap: 28px;
    padding: 28px;
  }

  .contact-form-copy p {
    max-width: 680px;
    text-align: center;
  }

  .about-team-section {
    padding: 62px 32px 108px;
  }

  .about-team-copy {
    margin-bottom: 62px;
  }

  .about-team-copy p {
    font-size: calc(36px - 2pt);
    line-height: 1.04;
  }

  .about-team-grid {
    --middle-offset: 50px;
    max-width: 840px;
    gap: 22px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .footer-nav,
  .footer-actions {
    padding-top: 0;
  }

  .footer-actions {
    align-items: flex-start;
  }

  .footer-write {
    align-self: flex-start;
  }

  .footer-bottom {
    grid-template-columns: 1fr 1fr;
    margin-top: 58px;
  }

  .footer-legal {
    text-align: left;
  }

  /* Services: stack each card into a single column below tablet */
  .service-section {
    padding: 48px 24px;
  }

  .service-section .label {
    font-size: 38px;
    line-height: 1.06;
    margin-bottom: 48px;
  }

  .service-wrapper {
    padding: 28px;
  }

  .service {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .service h2,
  .service img,
  .service p {
    width: 100%;
  }

  .service h2 {
    font-size: 40px;
  }

  .service img {
    height: 260px;
  }

  .service p {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .hero-text-content {
    padding: 0 24px 40px;
  }

  .right-text {
    font-size: 18px;
    margin-bottom: 70px;
  }

  .hero-text-content h1 {
    font-size: calc(clamp(34px, 12vw, 74px) - 6pt);
    line-height: 1.05;
    letter-spacing: -3px;
  }

  .hero-line-2 .rotating-word {
    margin-left: 12px;
  }

  .wrapper {
    padding: 30px 0;
  }

  .contact-form-section {
    padding: 48px 24px;
  }

  .projects-catalog {
    padding: 56px 24px 72px;
  }

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

  .news-content {
    padding: 50px 24px 72px;
  }

  .news-card {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .news-card img {
    max-width: 420px;
  }

  .contact-form-copy {
    gap: 28px;
  }

  .contact-form-copy p {
    font-size: clamp(22px, 6vw, 36px);
  }

  .about-team-section {
    padding: 56px 22px 92px;
  }

  .about-team-copy {
    margin-bottom: 50px;
  }

  .about-team-copy p {
    font-size: calc(29px - 2pt);
    line-height: 1.06;
  }

  .about-team-grid {
    --middle-offset: 40px;
    gap: 16px;
  }

  .about-team-photo {
    border-radius: 18px;
  }

  .service-section {
    padding: 44px 18px;
  }

  .service-section .label {
    font-size: 32px;
    margin-bottom: 40px;
  }

  .service-wrapper {
    padding: 22px;
  }

  .service h2 {
    font-size: 32px;
  }

  .service img {
    height: 220px;
  }
}

@media (max-width: 540px) {
  .hero-text-content {
    padding: 0 18px 34px;
  }

  .right-text {
    font-size: 16px;
    margin-bottom: 60px;
    line-height: 1.4;
  }

  .hero-text-content h1 {
    font-size: calc(clamp(28px, 14vw, 62px) - 6pt);
    line-height: 1.08;
    letter-spacing: -2px;
  }

  .hero-line-2 .rotating-word {
    margin-left: 10px;
  }

  .wrapper {
    padding: 24px 0;
  }

  .contact-form-section {
    border-radius: 28px;
    padding: 38px 18px;
  }

  .projects-catalog {
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    padding: 44px 18px 56px;
  }

  .projects-grid {
    gap: 14px;
  }

  .news-content {
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    padding: 42px 18px 58px;
  }

  .news-card {
    border-radius: 18px;
    padding: 22px;
  }

  .contact-form {
    padding: 22px;
  }

  .about-team-section {
    padding: 48px 10px 72px;
  }

  .about-team-copy {
    margin-bottom: 38px;
  }

  .about-team-copy p {
    font-size: calc(22px - 2pt);
    line-height: 1.08;
  }

  .about-team-grid {
    --middle-offset: 28px;
    gap: 8px;
  }

  .about-team-photo {
    border-radius: 12px;
  }

  .service-section {
    border-radius: 28px;
    padding: 38px 14px;
  }

  .service-section .label {
    font-size: 27px;
    line-height: 1.1;
    margin-bottom: 32px;
  }

  .service-wrapper {
    border-radius: 28px;
    padding: 20px;
  }

  .service {
    gap: 14px;
  }

  .service h2 {
    font-size: 26px;
  }

  .service img {
    height: 190px;
  }

  .service p {
    font-size: 16px;
    line-height: 1.4;
  }
}

@media (max-width: 480px) {
  .hero-text-content {
    padding: 0 14px 28px;
  }

  .right-text {
    font-size: 15px;
    margin-bottom: 50px;
  }

  .hero-text-content h1 {
    font-size: calc(clamp(24px, 15vw, 52px) - 6pt);
    line-height: 1.1;
    letter-spacing: -1px;
  }

  .hero-line-2 .rotating-word {
    margin-left: 8px;
  }

  .wrapper {
    padding: 20px 0;
  }

  .contact-form-copy p {
    font-size: 24px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    width: min(100%, 330px);
  }

  .news-card h2 {
    font-size: 20px;
  }

  .contact-form-tag {
    width: min(190px, 58vw);
  }

  .about-team-section {
    padding-left: 10px;
    padding-right: 10px;
  }

  .about-team-copy p {
    font-size: calc(20px - 2pt);
  }

  .about-team-grid {
    gap: 7px;
  }
}

@media (max-width: 360px) {
  .hero-text-content {
    padding: 0 12px 24px;
  }

  .right-text {
    font-size: 14px;
    margin-bottom: 40px;
    line-height: 1.45;
  }

  .hero-text-content h1 {
    font-size: calc(clamp(20px, 16vw, 42px) - 6pt);
    line-height: 1.12;
    letter-spacing: 0px;
  }

  .hero-line-2 .rotating-word {
    margin-left: 6px;
  }

  .wrapper {
    padding: 18px 0;
  }

  .contact-form-section {
    padding: 32px 12px;
  }

  .contact-form {
    padding: 18px;
  }

  .about-team-section {
    padding-left: 8px;
    padding-right: 8px;
  }

  .about-team-copy p {
    font-size: calc(18px - 2pt);
  }

  .about-team-grid {
    --middle-offset: 22px;
    gap: 6px;
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding: 48px 24px 34px;
  }

  .footer-description {
    font-size: 22px;
    line-height: 1.12;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-socials a {
    width: 46px;
    height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero-reveal { opacity: 1 !important; }
  .hero-reveal.hero-animate { animation: none !important; }
  .rotating-word { transition: none !important; }
  .rotating-word.word-enter { animation: none !important; }
  .sticker, .sticker.two { animation: none !important; }
  .slider, .clients .inner, .images .group {
    animation-play-state: paused !important;
  }
}

/* =============================================================
   CLC – Responsive fixes para secciones sin tratamiento móvil:
   Thinking (#about), Gallery ribbon y Clientes.
   ============================================================= */
@media (max-width: 1024px) {
  /* Thinking (#about): apilar video sobre el texto */
  .thinking-section {
    padding-top: 48px;
  }

  .thinking-section .wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
    padding: 0 24px 48px;
  }

  .thinking-left,
  .thinking-section .texts {
    width: 100%;
  }

  .thinking-section .texts {
    font-size: 28px;
  }

  .thinking-section .contact-btn {
    margin-top: 28px;
  }

  .since-2022-text {
    margin-top: 28px;
    letter-spacing: -2px;
  }

  .since-2022-text .mega {
    font-size: 72px;
  }

  /* Gallery ribbon: imágenes más chicas en tablet/móvil */
  .images .img {
    width: 420px;
    height: 420px;
  }
}

@media (max-width: 768px) {
  .thinking-section .wrapper {
    padding: 0 18px 40px;
    gap: 26px;
  }

  .thinking-section .texts {
    font-size: 25px;
  }

  .since-2022-text .mega {
    font-size: 60px;
  }

  .images .img {
    width: 320px;
    height: 320px;
    margin-right: 14px;
  }

  .images .img img,
  .images .img video {
    border-radius: 28px;
  }

  /* Clientes: label más compacto en móvil */
  .client-section {
    padding: 48px 0;
  }

  .client-section .label {
    font-size: 32px;
    margin-bottom: 48px;
    padding-left: 18px;
  }
}

@media (max-width: 540px) {
  .thinking-section {
    padding-top: 38px;
  }

  .thinking-section .wrapper {
    padding: 0 14px 34px;
    gap: 22px;
  }

  .thinking-section .texts {
    font-size: 21px;
    line-height: 1.2;
  }

  .since-2022-text {
    margin-top: 20px;
    letter-spacing: -1px;
  }

  .since-2022-text .mega {
    font-size: 46px;
  }

  .images .img {
    width: 250px;
    height: 250px;
  }

  .images .img img,
  .images .img video {
    border-radius: 22px;
  }

  .client-section .label {
    font-size: 27px;
    margin-bottom: 36px;
    padding-left: 14px;
  }

  .client-logo {
    width: 220px;
    height: 100px;
    padding: 0 32px;
    margin-right: 14px;
  }
}

/* =============================================================
   CLC – Navbar responsive (menú hamburguesa).
   El botón .nav-toggle lo inyecta script.js; oculto en desktop.
   ============================================================= */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  cursor: pointer;
  z-index: 20;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: #111;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.navbar.menu-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar.menu-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.navbar.menu-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1024px) {
  .navbar {
    padding: 0 18px;
    height: 68px;
  }

  .navbar .logo img {
    height: 36px !important;
  }

  .nav-toggle {
    display: flex;
  }

  /* La navegación colapsa en un panel desplegable */
  .navbar .right {
    position: fixed;
    top: 68px;
    left: 10px;
    right: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 22px 20px 26px;
    border-radius: 24px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.14);
    transform: translateY(-140%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.3s ease;
  }

  .navbar.menu-open .right {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .navbar .right ul {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .navbar ul li,
  .navbar ul li a {
    width: 100%;
  }

  .navbar ul li a {
    justify-content: center;
    font-size: 18px;
    padding: 14px 20px;
  }

  .navbar .contact-btn {
    justify-content: center;
    margin-top: 4px;
  }

  .navbar .contact-btn a {
    font-size: 18px;
    padding: 14px 24px;
  }
}

@media (max-width: 540px) {
  .navbar {
    padding: 0 14px;
  }

  .navbar .right {
    left: 8px;
    right: 8px;
  }
}

/* =============================================================
   CLC – Formulario de contacto: centrado correcto en móvil.
   Evita el desborde por CSS Grid (1fr = minmax(auto,1fr)) que
   descentraba la sección.
   ============================================================= */
@media (max-width: 1024px) {
  .contact-form-copy,
  .contact-form {
    min-width: 0;
    width: 100%;
    max-width: 520px;
  }

  .contact-form-copy {
    align-items: center;
  }

  .contact-form-copy p {
    text-align: center;
    overflow-wrap: break-word;
  }
}

@media (max-width: 480px) {
  .contact-form-copy p {
    font-size: 22px;
  }
}

@media (max-width: 360px) {
  .contact-form-copy p {
    font-size: 20px;
  }
}
