@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Jost:wght@300;400;500&display=swap');

:root {
  --primary-1: #3f4a78; /* azul medio */
  --primary-2: #7a84af; /* azul claro */
  --primary-3: #eceef8; /* blanco */
  --primary-4: #dadef3; /* lila */
  --primary-5: #2d365b; /* azul oscuro*/
  --primary-6: #3c3c3c; /* gris oscuro*/
  --primary-7: #C9B99A; /* champagne*/
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  overflow-x: hidden;
}

body {
  font-family: "Jost", sans-serif;
  background-color: #eceef8;
  margin: 0;
  padding: 0;
}

/* BACKGROUND COLORS */

.bg-primary-1 {
  background-color: var(--primary-1);
  color: var(--primary-6) !important;
}
.bg-primary-2 {
  background-color: var(--primary-2);
  color: var(--primary-6) !important;
}
.bg-primary-4 {
  background-color: var(--primary-4);
  color: var(--primary-6) !important;
}
.bg-primary-5 {
  background-color: var(--primary-5);
  color: var(--primary-6) !important;
}
.bg-gradient {
  background: linear-gradient(to bottom right, #C9B99A, #b8a88a) !important;
  color: var(--primary-6) !important;
}
.bg-gradient-50 {
  background: linear-gradient(
    to bottom right,
    rgba(201,185,154,0.5),
    rgba(184,168,138,0.5)
  ) !important;
  color: var(--primary-6) !important;
}

/* GENERAL LAYOUT + STYLE */

.border-dashed {
  outline: 2px dashed #888fa0;
}
.py-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}
.text-white {
  color: #ffffff !important;
}

.hero-section {
  padding: 4rem 0 5rem 0;
}
.hero-index {
  padding: 4rem 0 0 4rem !important;
}
.hero-section-pages {
  padding: 8rem 0 5rem 0;
}
.width-text-hero {
  width: 80%;
}

.no-p-right {
  padding-right: 0 !important;
}

/* mobile */
@media (max-width: 1200px) {
  .hero-section {
    padding: 8rem 1rem 3rem 1rem;
  }
  .hero-section-pages {
    padding: 8rem 1rem 3rem 1rem;
  }
  .hero-index {
    padding-left: 1rem !important;
    padding-top: 8rem !important;
    padding-bottom: 2rem !important;
  }
}
@media (max-width: 576px) {
  .hero-cta {
    display: block;
  }
  .px-section {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* NAVBAR */

.navbar-nav .nav-link {
  color: #ffffff !important;
  font-family: "Jost", sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  margin: 0 0.75rem;
}

.navbar-nav .nav-link:hover {
  opacity: 0.8;
}

.navbar {
  position: fixed !important;
  width: 100% !important;
  z-index: 10 !important;
}

/* mobile */
@media (max-width: 768px) {
  .navbar-nav .nav-link {
    color: #ffffff !important;
    font-size: 1.4rem;
    line-height: 4rem;
    font-weight: 600;
    margin-top: 1rem;
    padding-left: 1rem;
  }
  .navbar-brand {
    padding-left: 1.1rem;
  }
  .padding-mobile {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .no-p-right {
    padding-left: 0 !important;
  }
}

/* BUTTONS */

.btn-cta {
  font-weight: 600;
  font-size: 0.8rem;
  border-radius: 8px;
  padding: 0.8rem 1.6rem;
}
.btn-main {
  background-color: transparent;
  outline: solid 1px var(--primary-3);
  color: var(--primary-3);
}
.btn-secondary {
  background: linear-gradient(to bottom right, #C9B99A, #b8a88a);
  color: var(--primary-1);
  outline: none;
  border: none;
}

.btn-cta:hover {
  background: white;
  color: var(--primary-1);
  outline: solid 1px var(--primary-3);
}
.btn-bg-white:hover {
  outline: solid 1px var(--primary-6);
}

/* LOGOS */

.logo-grid img {
  max-height: 100px;
}

.logos-wrapper {
  overflow: hidden;
  width: 100%;
}

.logos-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 3rem;
  width: max-content;
  animation: scrollLogos 35s linear infinite;
}

.logo-item {
  flex: 0 0 auto !important;
  width: auto !important;
}

.logo-item img {
  display: block;
  max-height: 150px;
  width: auto;
}

@keyframes scrollLogos {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 991px) {
  .logos-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .logos-track {
    animation: none !important;
    transform: none !important; /* ← this is important */
    scroll-snap-type: x mandatory;
  }

  .logo-duplicate {
    display: none;
  }

  .logo-item {
    scroll-snap-align: center;
  }

  .logos-wrapper::-webkit-scrollbar {
    display: none;
  }
}

.logos-wrapper:hover .logos-track {
  animation-play-state: paused;
}

@media (max-width: 576px) {
  .logo-grid img {
    max-height: 30px !important;
  }
  .logos-track {
    column-gap: 1rem !important;
  }
}

/* FONTS */

footer {
  padding: 2rem 1rem;
}

.h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 3.8rem;
  font-weight: 300;
  line-height: 4.2rem;
  letter-spacing: -0.02em;
}

.p-xs {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.6rem;
}

.p-sm {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6rem;
}

.p-md {
  font-size: 1.1rem;
  line-height: 1.8rem;
}
.p-lg {
  font-size: 1.2rem;
  line-height: 2rem;
}

.h2 {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.6rem;
}

.eyebrow {
  font-family: "Jost", sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* mobile */
@media (max-width: 768px) {
  .h3 {
    font-size: 1.8rem !important;
    font-weight: 300 !important;
    line-height: 2.6rem !important;
  }
  .p-sm {
    font-size: 1.2rem !important;
    font-weight: 500;
    line-height: 2rem !important;
  }
  .p-xs {
    font-size: 1.1rem !important;
    font-weight: 500;
    line-height: 1.6rem !important;
  }
  .p-md {
    font-size: 1.4rem !important;
    line-height: 2.2rem !important;
  }
  .p-lg {
    font-size: 1.4rem;
    line-height: 2rem;
  }
  .eyebrow {
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.18em !important;
  }
  .btn-cta {
    font-size: 0.9rem !important;
  }
  .p-mobile-start {
    text-align: left !important;
  }
}
@media (max-width: 1200px) {
  .width-text-hero {
    width: 100%;
  }
}
@media (min-width: 577px) and (max-width: 779px) {
  .ps-fix {
    padding-left: 1.7rem !important;
  }
}

/* BULLETS — línea delgada premium */

.ul-custom {
  list-style: none;
  padding-left: 0;
}

.ul-custom li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 0.25rem;
}

.ul-custom li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 20px;
  height: 1px;
  background-color: var(--primary-7);
}

/* Bullets numerados para pasos — clase opcional */
.ul-numbered {
  list-style: none;
  padding-left: 0;
  counter-reset: item;
}

.ul-numbered li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 0.5rem;
  counter-increment: item;
}

.ul-numbered li::before {
  content: "0" counter(item);
  position: absolute;
  left: 0;
  top: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--primary-7);
  letter-spacing: 0.05em;
}

/* Bullets rombo para Método SER */
.ul-diamond {
  list-style: none;
  padding-left: 0;
}

.ul-diamond li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 0.5rem;
}

.ul-diamond li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border: 1px solid var(--primary-7);
  transform: rotate(45deg);
}

/* TRAYECTORIA — grid hover reveal premium */

.carousel-wrapper {
  position: relative;
  overflow: hidden;
}

.cards-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
  padding-top: 2rem;
}

.project-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--primary-5);
  border-radius: 0;
  min-width: unset;
  max-width: unset;
  flex-shrink: unset;
  cursor: pointer;
}

.project-card .card-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(20%) brightness(0.75);
  transition: transform 0.55s ease, filter 0.55s ease;
}

.project-card:hover .card-img {
  transform: scale(1.07);
  filter: grayscale(0%) brightness(0.55);
}

.card-body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(45,54,91,0.95) 0%, rgba(45,54,91,0) 55%);
  pointer-events: none;
}

.card-reveal-line {
  width: 0;
  height: 1px;
  background: var(--primary-7);
  margin-bottom: 10px;
  transition: width 0.4s ease;
}

.project-card:hover .card-reveal-line {
  width: 28px;
}

.card-body h4 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: #f0ebe3;
  line-height: 1.3;
  margin-bottom: 4px;
}

.extra {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease;
  opacity: 0;
}

.project-card:hover .extra {
  max-height: 60px;
  opacity: 1;
}

.extra p {
  font-family: "Jost", sans-serif;
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-7);
  margin: 0;
}

.btn-more {
  display: none;
}

.arrow {
  display: none;
}

@media (max-width: 992px) {
  .cards-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 576px) {
  .cards-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
  }
  .project-card {
    aspect-ratio: 1 / 1;
  }
  .card-body h4 {
    font-size: 0.9rem;
  }
}

/* CARDS SERVICIOS — grid uniforme premium */

.overline {
  color: #9aa3c7;
}

/* Forzar todas las cards a la misma altura dentro de cada row */
#servicios .row {
  align-items: stretch;
}

.service-card {
  background: rgba(255, 255, 255, 0.05);
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  border-top: 2px solid transparent;
  padding: 2rem 1.75rem;
  border-radius: 4px;
  height: 100%;
  display: flex;
  flex-direction: column;
  color: white;
  transition: border-top-color 0.3s ease, background 0.3s ease;
}

.service-card:hover {
  border-top-color: var(--primary-7);
  background: rgba(255, 255, 255, 0.08);
}

/* número editorial */
.service-card-number {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(9, 251, 210, 0.3);
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
  display: block;
}

/* título de card */
.service-card h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.4;
  color: #f0ebe3;
  margin-bottom: 0.75rem;
}

/* descripción */
.service-card .p-sm,
.service-card .p-xs {
  color: rgba(255,255,255,0.55);
  flex: 1;
}

/* button */
.btn-service {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent !important;
  color: var(--primary-7);
  border: none;
  border-top: 0.5px solid rgba(201,185,154,0.25);
  padding: 14px 0 0 0;
  font-family: "Jost", sans-serif;
  font-weight: 500;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 1.5rem;
  transition: gap 0.25s ease, opacity 0.25s ease;
  text-decoration: none;
}

.btn-service::after {
  content: "→";
  font-size: 0.9rem;
  transition: transform 0.25s ease;
}

.btn-service:hover {
  opacity: 0.75;
  gap: 16px;
  transform: none;
}

.btn-service:hover::after {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .btn-service {
    text-align: left !important;
  }
  .service-card {
    padding: 1.5rem;
  }
}

/* CONTACTO */

.contacto-sub {
  max-width: 620px;
  margin: 0 auto;
}

.btn-calendly {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Jost", sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #1a1208;
  background: var(--primary-7);
  padding: 16px 32px;
  border-radius: 2px;
  text-decoration: none;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  transition: opacity 0.25s;
}

.btn-calendly:hover {
  opacity: 0.85;
  color: #1a1208;
}

.contacto-info {
  max-width: 450px;
  margin: 0 auto;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: "Jost", sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  opacity: 0.8;
}

.icon-box {
  width: 36px;
  height: 36px;
  border: 0.5px solid rgba(201,185,154,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

/* MÉTODO SER — cards con letra decorativa */
.ser-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  margin-top: 2rem;
}

.ser-card {
  background: rgba(255,255,255,0.04);
  border: 0.5px solid rgba(255,255,255,0.06);
  border-top: 2px solid transparent;
  padding: 2rem 1.5rem;
  transition: border-top-color 0.3s;
}

.ser-card:hover {
  border-top-color: var(--primary-7);
}

.ser-letter {
  font-family: "Cormorant Garamond", serif;
  font-size: 5rem;
  font-weight: 300;
  color: rgba(201,185,154,0.12);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.ser-num {
  font-family: "Jost", sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary-7);
  margin-bottom: 1rem;
}

.ser-word {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: #f0ebe3;
  margin-bottom: 0.6rem;
}

.ser-desc {
  font-family: "Jost", sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
}

/* PASOS — lista editorial */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 1.5rem;
}

.step-item {
  background: rgba(255,255,255,0.03);
  border-left: 2px solid transparent;
  padding: 1.75rem 2rem;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 1.5rem;
  align-items: start;
  transition: border-left-color 0.3s, background 0.3s;
}

.step-item:hover {
  border-left-color: var(--primary-7);
  background: rgba(255,255,255,0.05);
}

.step-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 3rem;
  font-weight: 300;
  color: rgba(201,185,154,0.2);
  line-height: 1;
}

.step-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: #f0ebe3;
  margin-bottom: 0.5rem;
}

.step-desc {
  font-family: "Jost", sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
}

/* TRAYECTORIA — últimas 3 fotos centradas */
.cards-track-last {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin-top: 3px;
}

.cards-track-last .project-card {
  width: calc(25% - 2px);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .ser-grid {
    grid-template-columns: 1fr;
  }
  .step-item {
    grid-template-columns: 50px 1fr;
    padding: 1.25rem 1rem;
  }
  .ser-letter {
    font-size: 3.5rem;
  }
  .cards-track-last {
    flex-wrap: wrap;
  }
  .cards-track-last .project-card {
    width: calc(50% - 2px);
  }
  .h3 {
    font-size: 2.4rem !important;
    line-height: 3rem !important;
  }
}

/* FOTO TEXTO — no cortar descripción */
.extra p {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.project-card:hover .extra {
  max-height: 120px;
}
