/* ============================================================
   THGRAPHIC — Diseño Gráfico Profesional y Servicios Digitales
   ============================================================ */

:root {
  --purple: #5628c4;
  --purple-dark: #4520a3;
  --purple-light: #6d3fd6;
  --navy: #090e1e;
  --pink: #f2318c;
  --lavender: #f5f2fd;
  --gray-text: #828184;
  --gray-text-dark: #606060;
  --white: #ffffff;
  --border-light: #ececf5;

  --font-main: "Poppins", sans-serif;

  --container-width: 1360px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --shadow-card: 0 10px 30px rgba(86, 40, 196, 0.08);
  --shadow-card-hover: 0 20px 40px rgba(86, 40, 196, 0.16);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: var(--font-main);
  color: var(--navy);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

button {
  font-family: var(--font-main);
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 90px);
}

.text-purple { color: var(--purple); }

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--lavender); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 10px; }

/* ============ PRELOADER ============ */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader img {
  width: 140px;
  animation: pulse 1.1s ease-in-out infinite;
}
.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.92); opacity: 0.6; }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 16px 30px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
 text-transform: uppercase;   /* ← ESTO CONTROLA LA MAYUSCULA DE TODOS LOS BOTONES */
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}
.btn img { width: 20px; height: 20px; }

.btn--primary {
  background: var(--purple);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(86, 40, 196, 0.35);
}
.btn--primary:hover {
  background: var(--purple-dark);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(86, 40, 196, 0.4);
}

.btn--outline {
  background: transparent;
  color: var(--purple);
  border: 2px solid var(--purple);
}
.btn--outline:hover {
  background: var(--purple);
  color: var(--white);
  transform: translateY(-3px);
}
.btn--outline:hover img { filter: brightness(0) invert(1); }
.btn--outline:hover img.icon-behance { filter: none; }

.btn--outline.btn--white {
  color: var(--white);
  border-color: var(--white);
}
.btn--outline.btn--white:hover {
  background: var(--white);
  color: var(--purple);
}
.btn--outline.btn--white:hover img { filter: none; }

.icon-swap {
  position: relative;
  width: 20px;
  height: 20px;
  display: inline-block;
}
.icon-swap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: opacity var(--transition);
}
.icon-swap__hover { opacity: 0; }
.btn--outline.btn--white:hover .icon-swap__default { opacity: 0; }
.btn--outline.btn--white:hover .icon-swap__hover { opacity: 1; }

.btn--sm {
  padding: 11px 20px;
  font-size: 0.82rem;
}
.btn--sm img { width: 16px; height: 16px; }

.btn--desktop-only { /* ESTO CONTROLA EL TAMAÑO DEL BOTON SOLICITAR COTIZACIÓN QUE ESTA EN LA BARRA DE NAVEGACIÓN */
  flex-shrink: 0;
  padding: 11px 22px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
} 

/* ============ HEADER ============ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000; /* ES DONDE ESTA EL LOGO EN EL MENÚ DE HAMBURGUESA */
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition), background var(--transition);
}
.header.is-scrolled {
  box-shadow: 0 4px 24px rgba(9, 14, 30, 0.08);
  border-color: var(--border-light);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* cambia:justify-content: space-between; por: justify-content: flex-start; PARA QUE EL MENÚ ESTE MAS CERCA DE EL BOTON DE SOLICITAR COTIZACIÓN */
  gap: 24px; /* ESTO CONTROLA LA SEPARACIÓN ENTRE EL MENÚ Y EL BOTON SOLICITAR COTIZACIÓN - antes 24px */
  height: 88px;
}

.logo img { height: 42px; width: auto; }
.nav { margin-left: auto; }  /* Esto empuja el logo a la izquierda y agrupa el menú + botón a la derecha. La distancia entre el menú y el botón la controla ahora la línea 187 (gap: 24px; dentro de .header__inner) — bájalo a gap: 16px; si los quieres aún más cerca. */

.nav__list {
  display: flex;
  align-items: center;
  gap: 18px; /* ESTO CONTROLA EL ESPACIADO ENTRE LAS OPCIONES DEL MENÚ EN LA VERSIÓN PC antes: 30px */
}
.nav__link {
  font-weight: 600;  /* antes: 500 — esto lo pone en negrita */
  font-size: 0.85rem; /* ← línea 200: bájalo un poco, ej de 0.92rem a 0.85rem */
  color: var(--navy);
  position: relative;
  padding: 6px 0;
text-transform: uppercase; /* ← agrega esta línea nueva para mayúsculas */
  letter-spacing: 0.3px;     /* ← opcional, se ve más prolijo en mayúsculas */

  transition: color var(--transition);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--purple);
  transition: width var(--transition);
}
.nav__link:hover,
.nav__link.active {
  color: var(--purple);
}
.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  height: 24px;
  z-index: 1200; /* EL BOTON DE LAS 3 RAYITAS (MENÚ DE HAMBURGUESA) */
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition), background var(--transition);
}
.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ MOBILE MENU ============ */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 1100; /* EN PANEL QUE SE HABRE EN EL MENÚ DE HAMBURGUESA */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* ANTES justify-content: center; */
 padding-top: 120px;   /* ← ESTE es el único número que cambias ES PARA REDUCIR EL ESPACIO ENTRE EL ENCABEZADO Y LA LISTA DE OPSIONES */
  gap: 40px;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.is-open { transform: translateX(0); }

.mobile-menu__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px; /* ESTO CONTROLA LA SEPARACIÓN VERTICAL ENTRE OPCIONES DE LA BARRA DE NAVEGACIÓN MOBIL antes: 26px */
}
.mobile-menu__link {
  font-size: 0.95rem; /* ESTO CONTROLA EL TAMAÑO DEL TEXTO DE LA BARRA DE NAVEGACIÓN EN MOBILE antes 1.4rem */
  font-weight: 600;
  text-transform: uppercase;  /* ← agrega esta línea nueva */
  letter-spacing: 0.3px;      /* ← opcional */

}
.mobile-menu__link:hover { color: var(--purple); }

/* ============ REVEAL ANIMATION ============ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }
.reveal--delay-5 { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 132px 0 80px;
  background: linear-gradient(180deg, var(--lavender) 0%, #faf9ff 60%, var(--white) 100%);
  overflow: hidden;
}
.hero__decor {
  position: absolute;
  top: -10%;
  right: -8%;
  width: 55%;
  aspect-ratio: 1/1;
  background: radial-gradient(circle at 30% 30%, #f9d9ec 0%, rgba(187, 171, 255, 0.55) 55%, rgba(187, 171, 255, 0) 75%);
  border-radius: 50%;
  z-index: 0;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: start;
}
.hero__title {
  font-size: clamp(2rem, 3.4vw, 2.85rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 22px;
}
.hero__title .text-purple {
  display: block;
}
.hero__text {
  color: var(--gray-text);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 26px;
}
.hero__checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 34px;
}
.hero__checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gray-text);
  font-size: 0.95rem;
}
.hero__checklist img { width: 22px; height: 22px; flex-shrink: 0; }

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

.hero__image {
  position: relative;
  margin-top: 38px;
}
.hero__image img {
  width: 100%;
  height: auto;
  animation: heroFloat 4.5s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ============ BRANDS CAROUSEL ============ */
.brands {
  padding: 56px 0;
  border-bottom: 1px solid var(--border-light);
}
.brands__inner {
  display: flex;
  align-items: center;
  gap: 20px;
}
.brands__arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid #d8d8de;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.brands__arrow img { width: 14px; }
.brands__arrow:hover {
  background: var(--purple);
  border-color: var(--purple);
  transform: scale(1.08);
}
.brands__arrow:hover img { filter: brightness(0) invert(1); }

.brands__track-wrap {
  flex: 1;
  overflow: hidden;
}
.brands__track {
  display: flex;
  align-items: center;
  gap: 64px;
  transition: transform 0.5s ease;
  will-change: transform;
}
.brands__item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(0);
  opacity: 0.85;
  transition: opacity var(--transition), transform var(--transition);
}
.brands__item:hover { opacity: 1; transform: scale(1.04); }
.brands__item img { height: 40px; width: auto; }

/* ============ SECTION HEADING ============ */
.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 50px;
}
.eyebrow {
  display: inline-block;
  color: var(--purple);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}
.section-heading h2 {
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--gray-text);
}
.section-heading--complementarios { margin-top: 90px; }

/* ============ SERVICIOS ============ */
.servicios { padding: 100px 0 110px; }

.servicios__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.servicios__grid--2col {
  grid-template-columns: repeat(2, 1fr);
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px 22px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
}
.service-card__image {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3/2;
  margin-bottom: 18px;
}
.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card:hover .service-card__image img { transform: scale(1.06); }

.service-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  text-align: center;
 line-height: 1.3;      /* ← ESTO CONTROLA EL ESPACIO VERTICAL, Ese cambio afecta a los títulos de las 6 tarjetas de servicios a la vez (las 4 principales y las 2 complementarias), porque todas usan esa misma clase .service-card h3. - antes: 1.2 */
  margin-bottom: 16px; /* ← este es el espacio ENTRE el título y la lista en las categorias de servicios*/
}
.service-card ul {
  flex: 1;
  margin-bottom: 22px;
}
.service-card li {
  position: relative;
  padding-left: 18px;
  color: var(--gray-text-dark);
  font-size: 0.88rem;
  line-height: 1.65;
}
.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
}
.service-card .btn { align-self: center; }

.service-card--wide {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 26px;
  padding: 28px;
}
.service-card--wide .service-card__image--wide {
  aspect-ratio: 3/4;
  margin-bottom: 0;
}
.service-card--wide__body {
  display: flex;
  flex-direction: column;
  height: 100%;
}


/* ============ NOTE BOX ============ */
.note-box {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  background: var(--lavender);
  border: 1px solid #e5daff;
  border-radius: var(--radius-pill);
  padding: 18px 34px;
  max-width: fit-content;
  margin: 44px auto 0;
  text-align: center;
}
.note-box img { width: 24px; height: 24px; flex-shrink: 0; }
.note-box p { color: var(--purple); font-weight: 500; font-size: 0.95rem; white-space: nowrap; }

@media (max-width: 760px) {
  .note-box { max-width: 100%; border-radius: var(--radius-md); }
  .note-box p { white-space: normal; }
}

/* ============ RELATED BOX ============ */
.related-box {
  display: flex;
  align-items: center;
  gap: 26px;
  background: var(--lavender);
  border-radius: var(--radius-lg);
  padding: 34px 40px;
  margin-top: 50px;
}
.related-box__icon { width: 56px; height: 56px; flex-shrink: 0; }
.related-box__text { flex: 1; }
.related-box__text h3 {
  color: var(--purple);
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.related-box__text p {
  color: var(--gray-text-dark);
  font-size: 0.92rem;
  line-height: 1.6;
}
.related-box .btn { flex-shrink: 0; }

/* ============ PORTAFOLIO ============ */
.portafolio {
  padding: 100px 0;
  background: var(--lavender);
}
.portafolio__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}
.portfolio-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 14px 14px 26px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}
.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
}
.portfolio-card__image {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3/2;
  margin-bottom: 16px;
}
.portfolio-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.portfolio-card:hover .portfolio-card__image img { transform: scale(1.08); }
.portfolio-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 2px; }

.portfolio-card__title--sm {
  font-size: 0.82rem; /* achica un poco la letra, solo para títulos largos que no caben en una línea */
  white-space: nowrap; /* obliga al texto a quedarse en una sola línea, sin saltar a la siguiente */
}

.portfolio-card p { color: var(--gray-text); font-size: 0.85rem; margin-bottom: 16px; }

.portafolio__cta {
  text-align: center;
  margin-top: 48px;
}

/* ============ PROCESO ============ */
.proceso { padding: 100px 0; }
.proceso__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
}
.proceso__step {
  text-align: center;
  padding: 0 10px;
}
.proceso__step img {
  width: 46px;
  height: 46px;
  margin: 0 auto 18px;
  transition: transform var(--transition);
}
.proceso__step:hover img { transform: translateY(-6px) scale(1.08); }
.proceso__step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.proceso__step p {
  color: var(--gray-text);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ============ FAQ ============ */
.faq {
  padding: 100px 0;
  background: var(--lavender);
}
.faq__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item.is-open { box-shadow: var(--shadow-card); }
.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
}
.faq-item__icon {
  flex-shrink: 0;
  position: relative;
  width: 20px;
  height: 20px;
}
.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  background: var(--purple);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.faq-item__icon::before {
  top: 50%; left: 0;
  width: 100%; height: 2.5px;
  transform: translateY(-50%);
}
.faq-item__icon::after {
  left: 50%; top: 0;
  height: 100%; width: 2.5px;
  transform: translateX(-50%);
}
.faq-item.is-open .faq-item__icon::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding var(--transition);
}
.faq-item__answer p {
  padding: 0 24px 22px;
  color: var(--gray-text-dark);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* ============ CTA FINAL ============ */
.cta-final {
  position: relative;
  background: linear-gradient(120deg, var(--purple-light) 0%, var(--purple) 55%, var(--purple-dark) 100%);
  padding: 90px 0;
  text-align: center;
  overflow: hidden;
}
.cta-final__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    radial-gradient(circle at 15% 30%, rgba(255,255,255,0.5) 0, rgba(255,255,255,0.5) 2px, transparent 2px),
    radial-gradient(circle at 85% 70%, rgba(255,255,255,0.5) 0, rgba(255,255,255,0.5) 2px, transparent 2px),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.4) 0, rgba(255,255,255,0.4) 2px, transparent 2px);
  background-size: 140px 140px;
}
.cta-final .container { position: relative; z-index: 1; }
.cta-final h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 12px;
}
.cta-final p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 30px;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--navy);
  color: var(--white);
  padding: 70px 0 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer__brand img { height: 40px; margin-bottom: 18px; }
.footer__brand p {
  color: #a3a6b8;
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 340px;
}
.footer h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
text-transform: uppercase; /* ESTO LE AGREGA LA MAYUSCULA A LOS TITULOS DE EL PIE DE PAGINA SIGUENOS Y CONTACTO */
}
.footer__social {
  text-align: center; /* AGREGO ESTAS DOS LINEAS PARA QUE SIGUENOS QUEDE CENTRADO */
}
.footer__social-icons {
  justify-content: center;
}

.footer__social-icons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
 justify-content: center;
}
.footer__social-icons a {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.footer__social-icons a:hover { transform: translateY(-4px); }
.footer__social-icons img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  display: block;
}

.footer__contact ul { display: flex; flex-direction: column; gap: 16px; }
.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #a3a6b8;
  font-size: 0.9rem;
  line-height: 1.5;
}
.footer__contact img { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0;
  text-align: center;
}
.footer__bottom p {
  color: #7a7d8f;
  font-size: 0.82rem;
}

/* ============ FLOATING WHATSAPP ============ */
.float-whatsapp {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  z-index: 900;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.5);
  animation: floaty 3s ease-in-out infinite;
  transition: transform var(--transition);
}
.float-whatsapp:hover { transform: scale(1.08); }
.float-whatsapp img { width: 100%; height: 100%; }

/* ============ BACK TO TOP ============ */
.back-to-top {
  position: fixed;
  bottom: 26px;
  left: 26px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--border-light);
  box-shadow: 0 8px 20px rgba(9, 14, 30, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top img { width: 16px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1180px) {
  .servicios__grid { grid-template-columns: repeat(2, 1fr); }
  .portafolio__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .nav, .btn--desktop-only { display: none; }
  .hamburger { display: flex; margin-left: auto; } /* ESTO CONTROLA LA POSICION DEL MENÚ DE HAMBURGUESA, MOVIENDOLA LO MAS POSIBLE HACIA LA DERECHA DENTRO DEL HEADER */
.header { z-index: 1150; } /* PARA VISUALIZAR EL LOGO Y LA X DEL MENÚ DE HAMBURGUESA */
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
}

@media (max-width: 860px) {
  .hero { padding: 112px 0 60px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__image { order: -1; max-width: 380px; margin: 0 auto 8px; }
  .hero__text { max-width: none; }
  .servicios__grid--2col,
  .service-card--wide { grid-template-columns: 1fr; }
  .service-card--wide .service-card__image--wide { aspect-ratio: 3/4; /* le dice a la imagen qué forma tener: 3 de ancho por 4 de alto (vertical, como una hoja). Antes decía 3/2 (horizontal) y por eso la imagen se veía recortada/zoomeada en móvil */
grid-row: auto; /* esto ya existía: hace que la imagen ocupe su espacio normal en la fila, sin estirarse de más */ } 
  .service-card--wide h3,
  .service-card--wide ul,
  .service-card--wide .btn { grid-column: 1; }
.service-card--wide h3 { 
  font-size: 0.98rem;   /* achica un poco la letra del título SOLO en las 2 tarjetas de "servicios complementarios" (Soporte Documental y Mapas), únicamente en móvil, para que "MAPAS Y UBICACIONES DIGITALES" quepa en una sola línea y el título completo quede en 2 líneas en vez de 3 */
}

  .related-box { flex-direction: column; text-align: center; }
  .portafolio__grid { grid-template-columns: repeat(2, 1fr); }
  .proceso__grid { grid-template-columns: repeat(2, 1fr); }
  .faq__grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .hero__title { font-size: 1.7rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .servicios__grid { grid-template-columns: 1fr; }
  .portafolio__grid { grid-template-columns: 1fr; }
  .proceso__grid { grid-template-columns: 1fr; }
  .section-heading--complementarios { margin-top: 60px; }
  .eyebrow { font-size: 1.3rem; }
  .float-whatsapp { width: 52px; height: 52px; bottom: 18px; right: 18px; }
  .back-to-top { width: 42px; height: 42px; bottom: 18px; left: 18px; }
  .footer__inner { grid-template-columns: 1fr; /* Ya existía: apila las columnas del footer (Marca, Síguenos, Contacto) en una sola columna vertical, en vez de verse en fila como en PC */ 
padding-bottom: 70px; } /* NUEVO: agrega espacio vacío debajo del bloque de Contacto, antes de la línea divisoria de "derechos reservados", para que no se vea pegado */
  .footer__brand { grid-column: span 1; /* Ya existía: hace que el bloque de la marca (logo + descripción) ocupe solo 1 columna en vez de 2, ya que ahora todo está en una sola columna */
}
.footer__bottom { padding-bottom: 70px; } /* NUEVO: agrega espacio vacío debajo del texto "© 2025-2026 THGRAPHIC..." para que los botones flotantes (WhatsApp y subir arriba) floten sobre ese espacio en blanco y no tapen el texto - antes 90px */
  .portafolio__cta .btn,
  .related-box .btn {
    white-space: normal;
    text-align: center;
    width: 100%;
    max-width: 340px;
  }
}
