/* Scala landing — estilos propios (fuentes, fondos, animaciones, utilidades) */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@font-face {
  font-family: "MADE Outer Sans";
  src: url("../fonts/MADEOuterSans.woff2") format("woff2"), url("../fonts/MADEOuterSans.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MADE Outer Sans";
  src: url("../fonts/MADEOuterSans-Black.woff2") format("woff2"),
    url("../fonts/MADEOuterSans-Black.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Fondos definidos en CSS (sin style="" en el HTML) */
.hero-bg {
  background-image: url("../heroBg.png");
}

/* Chip hero: mismo asset que el fondo, recortado dentro del pill */
.servicio-perf-badge {
  background-image: linear-gradient(rgba(18, 18, 18, 0.55), rgba(18, 18, 18, 0.55)), url("../heroBg.png");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat;
}

.porque-fondo {
  background-image: url("../porqueFondo.png");
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll reveal (IntersectionObserver añade .is-inview) */
[data-reveal] {
  opacity: 0;
  transform: translateY(1.5rem);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

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

[data-reveal-delay="1"] {
  transition-delay: 0.08s;
}

[data-reveal-delay="2"] {
  transition-delay: 0.16s;
}

[data-reveal-delay="3"] {
  transition-delay: 0.24s;
}

[data-reveal-delay="4"] {
  transition-delay: 0.32s;
}

[data-reveal-delay="5"] {
  transition-delay: 0.4s;
}

[data-reveal-delay="6"] {
  transition-delay: 0.48s;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

[x-cloak] {
  display: none !important;
}

.reveal {
  /* Deprecado: usar data-reveal + script scroll-reveal */
  animation: fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.reveal-delay-1 {
  animation-delay: 0.12s;
}

.reveal-delay-2 {
  animation-delay: 0.24s;
}

.reveal-delay-3 {
  animation-delay: 0.36s;
}

.headline-outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.95);
  paint-order: stroke fill;
}

@media (min-width: 640px) {
  .headline-outline {
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.95);
  }
}

.metodo-outline {
  color: transparent;
  -webkit-text-stroke: 0.65px rgba(255, 255, 255, 0.88);
  font-weight: 500;
  letter-spacing: 0.04em;
}

@media (min-width: 640px) {
  .metodo-outline {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.9);
  }
}

.que-hacemos-outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.92);
  paint-order: stroke fill;
}

@media (min-width: 768px) {
  .que-hacemos-outline {
    -webkit-text-stroke: 1.25px rgba(255, 255, 255, 0.95);
  }
}

/* CTA rosa del bloque Canales (mock) */
.cta-pastel {
  background-color: #f8d7da;
}

/* Tarjetas apiladas al scroll (#por-que): número contorno */
.stack-card-number {
  color: transparent;
  -webkit-text-stroke: 1.25px #0f1419;
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.04em;
  font-size: clamp(3.75rem, 16vw, 6.5rem);
  margin-top: auto;
  padding-top: 1.5rem;
}

@media (min-width: 640px) {
  .stack-card-number {
    -webkit-text-stroke: 1.5px #0f1419;
  }
}

/* Por qué Scala: números grandes y trazo fino (tarjetas en grilla) */
.por-que-card-number {
  font-weight: 200;
  -webkit-text-stroke: 1px #0f1419;
  font-size: clamp(3.25rem, 10vw, 5.5rem);
  padding-top: 0.5rem;
  margin-top: auto;
}

@media (min-width: 1024px) {
  .por-que-card-number {
    font-size: clamp(3.5rem, 4.2vw, 5rem);
  }
}

.stack-card-surface-light {
  background-color: #eaeaea;
}

.stack-card-shadow {
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.4);
}

/* —— Contacto (bloque oscuro + formulario línea inferior) —— */
.contact-section {
  background-color: #141414;
}

.contact-section-inner {
  margin-left: auto;
  margin-right: auto;
  max-width: 72rem;
  padding: 3.5rem 1rem 4.5rem;
}

@media (min-width: 640px) {
  .contact-section-inner {
    padding: 4.5rem 1.5rem 5.5rem;
  }
}

@media (min-width: 1024px) {
  .contact-section-inner {
    padding: 5rem 2rem 6rem;
  }
}

.contact-section-grid {
  display: grid;
  gap: 2.75rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .contact-section-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
}

.contact-section-copy {
  position: relative;
  overflow: visible;
  padding-bottom: 0;
}

.contact-section-copy-text {
  position: relative;
  z-index: 2;
}

.contact-section-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  padding: 0.45rem 1rem;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ffffff;
}

.contact-section-title {
  margin-top: 1.75rem;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #ffffff;
}

.contact-section-lead {
  margin-top: 1.25rem;
  max-width: 28rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}

@media (min-width: 640px) {
  .contact-section-lead {
    font-size: 1rem;
  }
}

/* Gráfico lateral: solo desktop; ancho fijo pedido en mock */
.contact-section-visual {
  display: none;
}

.contact-section-icon {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  opacity: 0.94;
  transform: rotate(-2.5deg);
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55));
}

@media (min-width: 1024px) {
  .contact-section-copy {
    min-height: min(28rem, 52vh);
    padding-bottom: clamp(3rem, 8vh, 5rem);
  }

  .contact-section-visual {
    display: block;
    position: absolute;
    top: -29px;
    left: clamp(-2.5rem, -4vw, -1rem);
    bottom: auto;
    width: 730px;
    max-width: none;
    margin: 0;
    z-index: 0;
    pointer-events: none;
    line-height: 0;
    left: -254px;
  }

  .contact-section-icon {
    transform: rotate(-4deg) translateX(4%);
    opacity: 0.97;
  }

  .contact-section-lead {
    max-width: min(28rem, 95%);
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 0.25rem;
  position: relative;
}

.contact-form-field {
  min-width: 0;
}

.contact-form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}

.contact-modal {
  margin: auto;
  padding: 0;
  max-width: calc(100vw - 2rem);
  width: min(26rem, 100%);
  border: none;
  background: transparent;
  color: inherit;
}

.contact-modal::backdrop {
  background: rgba(15, 20, 25, 0.55);
  backdrop-filter: blur(4px);
}

.contact-modal__panel {
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 1rem;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.contact-modal__panel--ok {
  background: linear-gradient(165deg, #1a2f35 0%, #121820 100%);
  border: 1px solid rgba(52, 168, 83, 0.35);
}

.contact-modal__panel--err {
  background: linear-gradient(165deg, #2a1f22 0%, #161820 100%);
  border: 1px solid rgba(234, 67, 53, 0.35);
}

.contact-modal__title {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.contact-modal__panel--ok .contact-modal__title {
  color: #e8f5e9;
}

.contact-modal__panel--err .contact-modal__title {
  color: #ffcdd2;
}

.contact-modal__message {
  margin: 0 0 1.35rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.contact-modal__button {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  background: #3131ff;
  color: #fff;
  transition: background 0.15s ease, transform 0.1s ease;
}

.contact-modal__button:hover {
  background: #5252ff;
}

.contact-modal__button:focus {
  outline: 2px solid #fde2e4;
  outline-offset: 2px;
}

.contact-modal__button:active {
  transform: scale(0.98);
}

.contact-form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 1.25rem;
  align-items: start;
}

.contact-form-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
}

.contact-form-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.35rem 0 0.75rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 400;
  color: #ffffff;
  background: transparent;
  border: none;
  border-bottom: 1px solid #ffffff;
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.contact-form-input::placeholder {
  color: rgba(255, 255, 255, 0.22);
}

.contact-form-input:focus {
  border-bottom-color: #ffffff;
}

.contact-form-input:focus-visible {
  box-shadow: 0 1px 0 0 #ffffff;
}

.contact-form-submit {
  margin-top: 0.25rem;
  width: 100%;
  cursor: pointer;
  border: none;
  border-radius: 9999px;
  padding: 1.125rem 1.5rem;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #141414;
  background-color: #fde2e2;
  transition: filter 0.2s ease, transform 0.1s ease;
}

@media (min-width: 640px) {
  .contact-form-submit {
    font-size: 0.9375rem;
    padding: 1.25rem 1.75rem;
  }
}

.contact-form-submit:hover {
  filter: brightness(0.97);
}

.contact-form-submit:active {
  transform: scale(0.995);
}

.contact-form-submit:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.contact-form-note {
  margin-top: 0.75rem;
  font-size: 0.7rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.4);
}

/* Footer — bloque azul centrado */
.site-footer {
  background-color: #3131ff;
}

.site-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3.25rem 1.25rem 3.75rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .site-footer-inner {
    padding: 4rem 1.5rem 4.5rem;
  }
}

.site-footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;

}

.site-footer-mark {
  color: #3131ff;
}

.site-footer-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.site-footer-name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #ffffff;
}

@media (min-width: 640px) {
  .site-footer-name {
    font-size: 1.4rem;
  }
}

.site-footer-link {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  transition: opacity 0.2s ease, text-decoration 0.2s ease;
}

.site-footer-link:hover {
  text-decoration: underline;
  opacity: 1;
}

.site-footer-link:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
  border-radius: 2px;
}
