@font-face {
  font-family: "Neue Montreal";
  src: url("./assets/fonts/NeueMontreal-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Neue Montreal";
  src: url("./assets/fonts/NeueMontreal-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Neue Montreal";
  src: url("./assets/fonts/NeueMontreal-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Neue Montreal";
  src: url("./assets/fonts/NeueMontreal-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
}

/* Global Polish */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Brand Cursor: Un puntero minimalista en Rojo Mastromarino */
  cursor: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 3L10.07 19.97L12.58 12.58L19.97 10.07L3 3Z' fill='%23B12826' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E"), auto;
}

a,
button,
input,
select,
textarea,
.service-pill,
.icon-badge {
  cursor: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 3L10.07 19.97L12.58 12.58L19.97 10.07L3 3Z' fill='%23B12826' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E"), pointer;
}

:root {
  --page-bg: #f7f4ef;
  --surface: #ffffff;
  --text: #242424;
  --muted: #676767;
  --red: #b32823;
  --red-dark: #971f1b;
  --charcoal: #3d3d3d;
  --line: rgba(0, 0, 0, 0.08);
  --shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
  --container: min(920px, calc(100vw - 20px));

  /* Motion Tokens */
  --expo-out: cubic-bezier(0.19, 1, 0.22, 1);
  --motion-duration: 0.8s;
  --transition-standard: all var(--motion-duration) var(--expo-out);

  /* User-Defined Metallic Token (Restored from your edits) */
  --steel-gradient: linear-gradient(to right, #5f5f5f, #151515);

  /* Design Mode Tokens (Original by Default) */
  --card-bg: linear-gradient(180deg, #be3029 0%, #8d211d 100%);
  --card-text: #ffffff;
  --card-blur: blur(0px);
  --card-border: 1px solid rgba(255, 255, 255, 0.1);
  --icon-bg: #ffffff;
  --section-bg: #ffffff;
  --section-title: #c62c25;
  --section-gap: 14px 18px;
  --kicker-spacing: 0.32em;
  --title-weight: 500;
  --svg-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240'%3E%3Cpath fill='%23B12826' fill-opacity='.02' d='M20 91.43L79.29 91.52L22.43 35.09L37.7 20L117.37 99.2L20 99.02V91.43z'/%3E%3Cpath fill='%23B12826' fill-opacity='.02' d='M130 20.09h9.51L190.52 70.96V20h17.6v78.13L130 20.09z'/%3E%3Cpath fill='%23B12826' fill-opacity='.02' d='M20 140.089h9.51L80.52 190.96V140h17.59v78.13L20 140.09z'/%3E%3Cpath fill='%23B12826' fill-opacity='.02' d='M130 211.44l59.29.09L132.43 155.09L147.7 140L227.37 219.2L130 219.03V211.44z'/%3E%3C/svg%3E");
}

/* PREMIUM MODE OVERRIDES (Luxury Pearl Glass - Sophisticated Light Mode) */
body.theme-premium {
  --card-bg: rgba(255, 255, 255, 0.85);
  --card-text: #444444;
  --card-blur: blur(16px);
  --card-border: 1px solid rgba(255, 255, 255, 0.6);
  --icon-bg: rgba(177, 40, 38, 0.06);
  --section-bg: #f7f7f9;
  --section-title: #c62c25;
  --section-gap: 28px 24px;
  --kicker-spacing: 0.1em;
  --title-weight: 700;
  --svg-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240'%3E%3Cpath fill='%23B12826' fill-opacity='.015' d='M20 91.43L79.29 91.52L22.43 35.09L37.7 20L117.37 99.2L20 99.02V91.43z'/%3E%3Cpath fill='%23B12826' fill-opacity='.015' d='M130 20.09h9.51L190.52 70.96V20h17.6v78.13L130 20.09z'/%3E%3Cpath fill='%23B12826' fill-opacity='.015' d='M20 140.089h9.51L80.52 190.96V140h17.59v78.13L20 140.09z'/%3E%3Cpath fill='%23B12826' fill-opacity='.015' d='M130 211.44l59.29.09L132.43 155.09L147.7 140L227.37 219.2L130 219.03V211.44z'/%3E%3C/svg%3E");
}

body.theme-premium .service-pill {
  text-align: center;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
  /* Sombra persistente de alta calidad */
  border-radius: 32px;
  border: 1px solid #ffffff;
  /* Borde de luz para definición extra */
}

body.theme-premium .icon-badge {
  position: absolute;
  top: -24px;
  left: 50%;
  border: 1px solid rgba(177, 40, 38, 0.2);
  backdrop-filter: blur(8px);
  background: white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.4s var(--expo-out);
}

body.theme-premium .icon-badge:hover {
  transform: scale(1.1) translateY(-5px);
}

/* Base Reveal States */
.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  filter: blur(4px);
  transition: opacity 0.8s var(--expo-out), transform 1s var(--expo-out), filter 1s var(--expo-out);
  will-change: transform, opacity, filter;
}

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

/* Snap instantáneo al estado oculto (usado por el Demo Switcher) */
.reveal.snap-reset {
  transition: none !important;
}

/* Layered Sections Shadow */
.topbar,
.hero,
.split-card,
.services-section,
.leadership-section,
.bands-section,
.contact-composite {
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

/* Preloader & Progress (Institutional) */
.preloader {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.8s var(--expo-out), visibility 0.8s;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.preloader-logo {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInDown 0.8s var(--expo-out) forwards;
}

@keyframes fadeInDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.preloader-progress {
  width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.progress-bar-container {
  width: 100%;
  height: 2px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  overflow: hidden;
}

.loading-bar {
  width: 0%;
  height: 100%;
  background: #B12826;
  transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.progress-percentage {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: #444;
  letter-spacing: 0.1em;
}

/* Fin de Estilos de Navegación Premium */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--steel-gradient);
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

/* Parallax Container */
.parallax-container {
  overflow: hidden;
}

.parallax-img {
  will-change: transform;
  transition: transform 0.2s linear;
  /* Smooth smoothing for parallax */
}

/* Stagger Helpers (Optional utility if needed) */
.reveal-stagger>* {
  --stagger-delay: 0s;
  transition-delay: var(--stagger-delay);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Neue Montreal", sans-serif;
  color: var(--text);
  background: #F5F5F5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/*.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(135deg, rgba(179, 40, 35, 0.025) 25%, transparent 25%) -16px 0/32px 32px,
    linear-gradient(225deg, rgba(179, 40, 35, 0.02) 25%, transparent 25%) -16px 0/32px 32px,
    linear-gradient(315deg, rgba(179, 40, 35, 0.02) 25%, transparent 25%) 0 0/32px 32px,
    linear-gradient(45deg, rgba(179, 40, 35, 0.025) 25%, transparent 25%) 0 0/32px 32px,
    #f6f3ee;
}*/

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

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

.site-shell {
  width: var(--container);
  margin: 0 auto;
  padding: 0 0 22px;
}

.topbar,
.hero,
.split-card,
.services-section,
.leadership-section,
.bands-section,
.contact-composite {
  background: var(--surface);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 30px 45px;
  border-bottom: 10px solid;
  border-image-source: linear-gradient(to right, #5f5f5f, #151515);
  border-image-slice: 1;
  background: var(--surface);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.main-logo-svg {
  display: block;
  height: 28px;
  width: auto;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.menu-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--charcoal);
  transition: all 0.3s ease;
}

.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.nav a {
  position: relative;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text);
  padding: 6px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--red);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.page>* {
  margin-top: 0;
}

.hero {
  position: relative;
  border-bottom: 10px solid;
  border-image-source: linear-gradient(to right, #5f5f5f, #151515);
  border-image-slice: 1;
}

.hero.is-transitioning .hero-media img,
.hero.is-transitioning .hero-copy {
  opacity: 0;
}

.hero-media {
  position: relative;
  perspective: 1200px;
  min-height: 460px;
  overflow: hidden;
  background: #242424;
}

.hero-media img {
  height: 460px;
  width: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(var(--hero-scale, 1));
  transform-origin: center center;
  filter: blur(0);
  transition: opacity 520ms ease, transform 520ms ease, filter 520ms ease;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
}

.hero-copy {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 45px;
  color: #fff;
  opacity: 1;
  transform: translate3d(0, 0, 0) rotateX(0) rotateY(0);
  transform-origin: left center;
  filter: blur(0);
  transition: opacity 520ms ease, transform 520ms ease, filter 520ms ease;
}
body.anim-mode-1 .hero.is-transitioning .hero-media img {
  transform: translate3d(0, 28px, 0) scale(calc(var(--hero-scale, 1) * 1.03));
}

body.anim-mode-1 .hero.is-transitioning .hero-copy {
  transform: translate3d(0, 24px, 0);
}

body.anim-mode-2 .hero-media img,
body.anim-mode-2 .hero-copy {
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}
body.anim-mode-2 .hero.is-transitioning .hero-media img {
  transform: translate3d(0, 0, 0) scale(calc(var(--hero-scale, 1) * 1.14));
  filter: blur(10px);
}

body.anim-mode-2 .hero.is-transitioning .hero-copy {
  transform: translate3d(0, 0, 0) scale(1.035);
  filter: blur(12px);
}

body.anim-mode-3 .hero-media img,
body.anim-mode-3 .hero-copy {
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
body.anim-mode-3 .hero.is-transitioning .hero-media img {
  transform: translate3d(72px, 0, 0) scale(calc(var(--hero-scale, 1) * 0.97)) rotateY(-9deg);
}

body.anim-mode-3 .hero.is-transitioning .hero-copy {
  transform: translate3d(-52px, 0, 0) rotateY(14deg);
}

.hero-copy .hero-title {
  max-width: 800px;
  margin: 0;
  font-size: clamp(2.3rem, 4.4vw, 3.4rem);
  line-height: 0.95;
  font-weight: 400;
  letter-spacing: 0.015em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.22);
}

.hero-copy .hero-title strong {
  font-weight: 700;
}

.split-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.split-card-reversed {
  margin-top: 8px;
}

.split-card-desarrolladoras {
  border-top: 10px solid;
  border-image-source: linear-gradient(to right, #5f5f5f, #151515);

  /* Importante: esto le dice al navegador que use todo el gradiente en el borde */
  border-image-slice: 1;
  margin-bottom: 0px;
  margin-top: 0px;
}

.red-panel,
.band {
  background: linear-gradient(180deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
}

.intro-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 246px;
  padding: 34px 90px;
}

.section-kicker {
  font-family: inherit;
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: var(--kicker-spacing);
  margin-bottom: 2px;
}

.intro-panel h2,
.intro-panel h3 {
  margin: 0;
}

.intro-panel h2 {
  max-width: 360px;
  font-size: 1.25rem;
  line-height: 1.15;
  font-weight: 600;
}

.intro-panel h3 {
  margin-top: 6px;
  font-size: 1.15rem;
  font-weight: 400;
}

.panel-rule {
  width: 100%;
  max-width: 250px;
  height: 1px;
  margin: 18px 0;
  background: rgba(255, 255, 255, 0.78);
}

.intro-panel p:last-child {
  max-width: 310px;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.45;
}

.intro-panel-text {
  font-size: 1.05rem;
}

.rounded-image {
  overflow: hidden;
}

.rounded-image img {
  height: 100%;
  object-fit: cover;
}

.rounded-image-xl {
  border-bottom-right-radius: 72px;
  border-bottom-left-radius: 0;
}

.split-card-reversed .rounded-image-xl {
  border-bottom-left-radius: 72px;
  border-bottom-right-radius: 0;
}

.intro-panel-dev {
  min-height: 226px;
  padding: 22px 28px;
}

.intro-panel-dev h2 {
  max-width: 250px;
  font-size: 0.98rem;
  line-height: 1.1;
}

.intro-panel-dev h3 {
  max-width: 310px;
  margin-top: 10px;
  font-size: 0.84rem;
  line-height: 1.18;
}

.intro-panel-dev .panel-rule {
  max-width: 220px;
  margin: 16px 0 14px;
}

.intro-panel-dev p:last-child {
  max-width: 315px;
  font-size: 0.78rem;
  line-height: 1.45;
}

.services-section {
  padding: 0;
  padding-bottom: 20px;
  background-color: var(--section-bg);
  background-image: var(--svg-pattern);
  overflow: hidden;
  /* Evita que el margen del título cree un hueco (Margin Collapse) */
  background-size: 120px 120px;
  background-repeat: repeat;
  background-position: center;
  transition: all 0.6s var(--expo-out);
}

.compact-top {
  padding-top: 6px;
}

.section-title {
  margin: 10px 0 40px;
  text-align: center;
  color: #c62c25;
  font-size: 1.75rem;
  font-weight: 500;
}

.card-cloud {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 46px;
  align-items: stretch;
  max-width: 830px;
  margin-top: 30px;
  margin-bottom: 10px;
  margin-left: auto;
  margin-right: auto;

}

.service-pill {
  position: relative;
  min-height: 200px;
  padding: 34px 24px 28px;
  border-radius: 28px;
  background: var(--card-bg);
  backdrop-filter: var(--card-blur);
  border: var(--card-border);
  color: var(--card-text);
  text-align: center;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.25);
  transition: var(--transition-standard);
}

body.theme-premium .service-pill {
  min-height: auto;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
  border: 1px solid #ffffff;
}

.service-pill:nth-child(1) {
  grid-column: 1 / span 2;
}

.service-pill:nth-child(2) {
  grid-column: 3 / span 2;
}

.service-pill:nth-child(3) {
  grid-column: 5 / span 2;
}

.service-pill:nth-child(4) {
  grid-column: 2 / span 2;
  margin-top: 6px;
}

.service-pill:nth-child(5) {
  grid-column: 4 / span 2;
  margin-top: 6px;
}

.icon-badge {
  position: absolute;
  top: -24px;
  left: 50%;
  width: 48px;
  height: 48px;
  margin-left: -24px;
  border-radius: 50%;
  background: var(--icon-bg);
  display: grid;
  place-items: center;
  border: 1px solid #b32823;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.3s ease;
  /* Magnetic smooth return */
  z-index: 2;
}

body.theme-premium .icon-badge {
  position: absolute;
  top: -24px;
  left: 50%;
  width: 48px;
  height: 48px;
  margin-left: -24px;
  border: 1px solid rgba(177, 40, 38, 0.2);
  backdrop-filter: blur(8px);
  background: white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.icon-badge svg {
  width: 26px;
  height: 26px;
  stroke: #b32823;
  stroke-width: 1.5;
}

.service-pill h3 {
  margin: 12px 0 10px;
  font-size: 1.15rem;
  line-height: 1.2;
  font-weight: 800;
  color: var(--card-text);
}

.service-pill p {
  margin: 10px 0 10px;
  font-size: 0.85rem;
  line-height: 1.26;
  color: var(--card-text);
}

.leadership-section {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 0;
  margin-top: 0px;
}

.dark-panel {
  padding: 25px 0px 30px 50px;
  background: linear-gradient(180deg, #404040 0%, #2f2f2f 100%);
  color: #fff;
}

.dark-panel h2 {
  margin: 0;
  font-size: 1.82rem;
  line-height: 1;
  font-weight: 500;
}

.dark-panel h3 {
  margin: 0px 0 20px;
  font-size: 1.06rem;
  font-weight: 400;
}

.dark-panel p {
  max-width: 330px;
  margin: 0px 0px 15px 0px;
  font-size: 0.76rem;
  line-height: 1.56;
  color: rgba(255, 255, 255, 0.9);
  text-align: justify;
}

.dark-panel-content {
  margin: 30px 30px 10px 30px;
}

.leadership-gallery {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  grid-template-rows: auto auto;
  gap: 8px;
  padding: 0px 0px 0px 8px;
  margin-top: 0px;
  margin-bottom: 0px;
}

.leadership-gallery img {
  width: 100%;
  object-fit: cover;
  display: block;
}

.gallery-top-left {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  aspect-ratio: 3 / 5.25;
}

.gallery-top-right {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  aspect-ratio: 3 / 4.38;
  border-top-right-radius: 120px;
}

.gallery-bottom {
  grid-column: 1 / 3;
  grid-row: 2 / 3;
  aspect-ratio: 18 / 12;
  border-bottom-right-radius: 120px;
}

.gallery-top-left {
  grid-column: 1;
  grid-row: 1;
}

.gallery-top-right {
  grid-column: 2;
  grid-row: 1;
}

.gallery-bottom {
  grid-column: 1 / span 2;
  grid-row: 2;
}

.bands-section {
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
}


.band {
  margin-top: 16px;
  padding-top: 8px;
  padding-left: 24px;
  padding-right: 54px;
  padding-bottom: 20px;
  ;
  border-top-left-radius: 74px;
  border-bottom-right-radius: 74px;
  /*box-shadow: var(--shadow);*/
  width: 80%;
  align-self: center;

  background: linear-gradient(to right, #b32823, #8d211d);
  border-radius: 100px 5px 100px 5px;
  color: #ffffff;
  max-width: 800px;
  text-align: center;
  font-family: sans-serif;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);

}

.band:first-child {
  margin-top: 0;
}

.band h2 {
  /*margin: 0 0 12px;*/
  text-align: center;
  font-size: 1.56rem;
  font-weight: 600;
}

.band p,
.band strong {
  font-size: 0.84rem;
  line-height: 1.42;
}

.band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  margin-top: 5px;
  margin-bottom: 10px;
  margin-left: 20px;
  text-align: center;
  font-weight: 200;
}

.band strong {
  /*display: block;*/
  margin-top: 6px;
  font-weight: 800;

  text-align: center;
}

.band-columns {
  display: grid;
  gap: 0px;
}

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

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

.two-columns p+p,
.three-columns p+p {
  border-left: 2px solid rgba(255, 255, 255, 0.8);
  padding-left: 20px;
}

.contact-composite {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  grid-template-areas:
    "feedback visuals"
    "panel panel";
  align-items: stretch;
  gap: var(--section-gap);
  padding: 18px 18px 0;
}

.feedback-copy h2 {
  max-width: 370px;
  margin: 0 0 14px;
  color: #c32d27;
  font-size: 1.25rem;
  line-height: 1.05;
  font-weight: 600;
}

.feedback-copy p {
  max-width: 470px;
  margin: 0 0 12px;
  font-size: 0.8rem;
  line-height: 1.52;
  color: #5f5f5f;
}

.feedback-copy {
  grid-area: feedback;
  padding: 6px 10px 0 0;
}

.feedback-form {
  max-width: 456px;
  margin-top: 0px;
  /*min-height: 430px;*/
  padding: 22px 18px 20px;
  background: #eeeeee;
  border-top-left-radius: 34px;
  border-bottom-right-radius: 34px;
}

.feedback-form label {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  margin-bottom: 18px;
  font-size: 0.74rem;
  color: #5c5c5c;
}

.required-mark {
  color: var(--red);
  font-weight: 700;
  margin-left: 2px;
}

.feedback-form label:last-child {
  align-items: start;
  margin-bottom: 24px;
  padding-top: 12px;
}

.feedback-form input,
.feedback-form textarea {
  width: 100%;
  border: none;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  background: transparent;
  font: inherit;
  padding: 8px 0;
  resize: none;
  outline: none;
  transition: border-color 0.3s ease;
}

.feedback-form input:focus,
.feedback-form textarea:focus {
  border-bottom-color: var(--red);
}

.submit-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.submit-btn {
  background: linear-gradient(180deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  border: none;
  padding: 14px 40px;
  border-radius: 99px;
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(179, 40, 35, 0.3);
  text-transform: uppercase;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(173, 31, 26, 0.45);
}

.submit-btn:active {
  transform: translateY(0) scale(0.96);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

.form-success-msg {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(36, 36, 36, 0.95);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 16px 32px;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  z-index: 10005;
  opacity: 0;
  visibility: hidden;
  transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  max-width: min(90vw, 400px);
}

.form-success-msg.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.form-success-msg::before {
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #22c55e;
  border-radius: 50%;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.contact-visuals {
  grid-area: visuals;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  margin-left: 0;
  height: 100%;
}

.contact-visuals img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-visual-top {
  border-top-left-radius: 70px;
}

.contact-visual-bottom {
  border-bottom-left-radius: 70px;
}

.contact-panel {
  grid-area: panel;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  margin-top: 2px;
  padding: 22px 38px 18px;
  background: linear-gradient(180deg, #494949 0%, #363636 100%);
  color: #fff;
}

.contact-panel-left {
  padding-left: 20px;
}

.contact-panel-left h2 {
  margin: 0 0 0px;
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 600;
}

.contact-panel-left h3 {
  margin: 0 0 14px;
  font-size: 1.15rem;
  line-height: 1.25;
  font-weight: 400;
}

.contact-panel-left p {
  max-width: 360px;
  margin: 0 0 18px;
  font-size: 0.72rem;
  line-height: 1.5;
}

.contact-panel-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.contact-panel-brand svg {
  width: 60%;
  /* Ocupará el 50% del ancho del div padre */
  height: auto;
  max-width: 290px;
  /* Un tope para que no crezca de más en pantallas grandes */
}

.contact-panel-right {
  display: grid;
  justify-items: end;
  gap: 18px;
  text-align: right;
  padding-right: 20px;
}

.contact-panel-right p {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
}

.contact-panel-right svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.brand-text-light small,
.brand-text-light strong {
  color: #fff;
}

.brand-logo-invert {
  filter: brightness(0) invert(1);
}

/*.floating-top {
  position: fixed;
  right: 120px;
  bottom: 18px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: #4d4d4d;
  color: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
}*/

.floating-top {
  position: fixed;
  bottom: 18px;

  /* --- POSICIONAMIENTO RELATIVO AL CENTRO --- */
  left: 50%;
  /* Movemos el botón a la mitad del contenedor + 10px de margen */
  margin-left: calc(var(--container) / 2 + 10px);

  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #4d4d4d;
  color: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;

  /* Efectos de visibilidad (manteniendo lo anterior) */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.floating-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.reveal.snap-reset {
  transition: none !important;
}

/* --- RESPONSIVE: Evitar que se salga de la pantalla en móviles --- */
@media (max-width: 1000px) {
  .floating-top {
    /* En pantallas chicas, volvemos a pegarlo al borde derecho del navegador */
    left: auto;
    right: 15px;
    margin-left: 0;
  }
}

@media (max-width: 940px) {

  .topbar,
  .contact-composite,
  .leadership-section,
  .split-card {
    grid-template-columns: 1fr;
  }

  .topbar {
    position: relative;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    z-index: 10002;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
    gap: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-bottom: 3px solid #b32823;
    z-index: 10001;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
    padding: 10px 0;
    color: var(--charcoal);
  }

  .hero-copy {
    padding: 0 24px;
  }

  .hero-media,
  .hero-media img {
    min-height: 400px;
    height: 400px;
  }

  .card-cloud {
    grid-template-columns: 1fr 1fr;
    max-width: none;
  }

  .service-pill,
  .service-pill:nth-child(1),
  .service-pill:nth-child(2),
  .service-pill:nth-child(3),
  .service-pill:nth-child(4),
  .service-pill:nth-child(5) {
    grid-column: auto;
    margin-top: 0;
  }

  .two-columns,
  .three-columns {
    grid-template-columns: 1fr;
  }

  .two-columns p+p,
  .three-columns p+p {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    padding-left: 0;
    padding-top: 16px;
  }

  .leadership-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 0 0 0;
  }

  .dark-panel p {
    max-width: none !important;
    text-align: left;
  }

  .dark-panel-content {
    margin: 20px 0;
  }

  .band {
    padding-top: 35px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 45px;
    width: 95%;
  }

  .band h2 {
    margin-top: 10px;
  }

  .gallery-top-left,
  .gallery-top-right,
  .gallery-bottom {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: auto;
    border-radius: 20px;
  }

  .contact-composite {
    grid-template-areas:
      "feedback"
      "visuals"
      "panel";
    padding-bottom: 16px;
  }

  .feedback-copy {
    padding-right: 0;
  }

  .contact-visuals {
    margin: 12px 0 0;
    grid-template-rows: 220px 220px;
  }

  .contact-panel {
    margin-top: 16px;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .submit-container {
    justify-content: center;
  }

  .submit-btn {
    width: 100%;
    padding: 14px 0;
  }

  .contact-panel-right {
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 620px) {
  .site-shell {
    width: min(100vw - 12px, 1080px);
    padding-top: 6px;
  }

  .topbar,
  .services-section,
  .contact-composite,
  .bands-section,
  .contact-panel {
    padding-left: 14px;
    padding-right: 14px;
  }

  .nav {
    gap: 10px;
  }

  .hero-copy .hero-title {
    font-size: 2.15rem;
  }

  .intro-panel,
  .dark-panel,
  .band {
    padding-left: 22px;
    padding-right: 22px;
  }

  .feedback-form label {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .feedback-form {
    max-width: none;
  }

  .card-cloud {
    grid-template-columns: 1fr;
  }

  .leadership-gallery {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .leadership-gallery img {
    height: 200px;
    border-radius: 16px;
  }

  .gallery-tall,
  .gallery-portrait,
  .gallery-wide {
    grid-column: auto;
    grid-row: auto;
  }

  .contact-visuals {
    grid-template-rows: 180px 180px;
  }
}
