:root {
  --background: #ffffff;
  --foreground: #142832;
  --primary-dark: #143a48; 
  --white:#ffffff;
   --primary: #005d63;
  --primary-fg: #f8f5ee;
  --accent: #1c8765;
  --accent-light:#1ce1a2;
  --accent-fg: #ffffff;
  --secondary: #f1f4f6;
  --muted: #eef2f4;
  --muted-fg: #5a6d76;
  --border: #dde4e8;
  --bone: #f8f5ee;
  --emerald-soft: #e3f2ec;
  --gradient-petrol: linear-gradient(135deg, #0f2a36 0%, #1d4a5c 100%);
  --gradient-emerald: linear-gradient(135deg, #1a7458 0%, #2ea07a 100%);
  --overlay-petrol: linear-gradient(180deg, rgba(20, 58, 72, .45) 0%, rgba(15, 42, 54, .78) 100%);
  --shadow-soft: 0 1px 2px rgba(20, 50, 60, .04), 0 8px 24px rgba(20, 50, 60, .06);
  --shadow-elegant: 0 2px 4px rgba(20, 50, 60, .05), 0 24px 48px -12px rgba(20, 58, 72, .18);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --t: .4s var(--ease);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: var(--border)
}

html {
  scroll-behavior: smooth
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5
}

h1,
h2,
h3,
h4,
.font-display {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--t)
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem
}

.italic {
  font-style: italic
}

.accent {
  color: var(--accent)
}

.accent-light {
  color: var(--accent-light)
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  height: 48px;
  padding: 0 1.75rem;
  border-radius: .6rem;
  font-size: .95rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--t);
  white-space: nowrap
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-fg)
}

.btn-primary:hover {
  background: #1d4d5e;
  transform: translateY(-2px);
  box-shadow: var(--shadow-elegant)
}

.btn-accent {
  background: var(--accent);
  color: var(--accent-fg)
}

.btn-accent:hover {
  background: #229873;
  transform: translateY(-2px);
  box-shadow: var(--shadow-elegant)
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--foreground)
}

.btn-outline:hover {
  background: var(--secondary);
  transform: translateY(-2px)
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, .3);
  color: var(--primary-fg)
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, .1);
  transform: translateY(-2px)
}

.btn .icon {
  width: 16px;
  height: 16px
}

.direccion, .whatsapp-contact a {
    color: white !important;
}


.whatsapp-contact a {
  padding-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;

  text-decoration: none;
}

.whatsapp-contact svg {
  flex-shrink: 0;
}

/* Navbar */

header.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, .75);
  border-bottom: 1px solid rgba(221, 228, 232, .6);
  transition: var(--t)
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px
}

.logo {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--primary)
}

.logo-mark {
  width: 28px;
  height: 28px
}

.logo-text {
  font-family: 'Fraunces', serif;
  font-size: 1.35rem;
  letter-spacing: .04em
}

nav.links {
  display: none;
  gap: 2rem
}

nav.links a {
  font-size: .875rem;
  color: var(--muted-fg);
  position: relative
}

nav.links a:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease)
}

nav.links a:hover {
  color: var(--primary)
}

nav.links a:hover:after {
  transform: scaleX(1);
  transform-origin: left
}

@media(min-width:768px) {
  nav.links {
    display: flex
  }
}

/* Hero */

.hero {
  position: relative;
  padding: 8rem 0 5rem;
  overflow: hidden
}

@media(min-width:768px) {
  .hero {
    padding: 10rem 0 7rem
  }
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center
}

@media(min-width:1024px) {
  .hero-grid {
    grid-template-columns: 7fr 5fr
  }
}



.topo {
  position: absolute;
  z-index: -1;
  top: -10rem;
  right: -36rem;
  width: 840px;
  height: 840px;
  color: rgba(28, 135, 101, .2);
  pointer-events: none
}

@media(min-width:768px) {
.topo {
  position: absolute;
  z-index: -1;
  top: -10rem;
  right: -10rem;
  width: 840px;
  height: 840px;
  color: rgba(28, 135, 101, .2);
  pointer-events: none
}
}

.topo img {
  opacity: 0.05;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .3rem .85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(241, 244, 246, .5);
  font-size: .85rem;
  color: var(--muted-fg);
  margin-bottom: 2rem;
  letter-spacing: .02em
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1)
  }
  50% {
    opacity: .5;
    transform: scale(1.3)
  }
}

h1.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--primary)
}

.hero-lead {
  margin-top: 2rem;
  font-size: 1.125rem;
  color: var(--muted-fg);
  max-width: 560px;
  line-height: 1.7
}

.hero-cta {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem
}

.hero-img {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-elegant);
  aspect-ratio: 4/5;
  background: var(--gradient-petrol)
}

.hero-img svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: rgba(28, 135, 101, .25)
}

.hero-img-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay-petrol)
}

.hero-stat {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.5rem;
  color: var(--primary-fg);
  display: flex;
  align-items: baseline;
  gap: .75rem
}

.hero-stat-num {
  font-family: 'Fraunces', serif;
  font-size: 3rem
}

.hero-stat-txt {
  font-size: .875rem;
  opacity: .9;
  line-height: 1.35
}

  /* Trust */
  .trust {
    padding: 80px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(241, 244, 246, .4)
  }

  .trust-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center
  }

  @media(min-width:768px) {
    .trust-grid {
      grid-template-columns: 5fr 7fr
    }
  }

  .trust h2 {
    font-size: clamp(26px, 3vw, 36px);
    color: var(--petrol)
  }

  .stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px
  }

  .stat {
    border-left: 1px solid rgba(30, 138, 102, .4);
    padding-left: 28px
  }

  .stat .v {
    font-family: 'Fraunces', serif;
    font-size: clamp(32px, 4vw, 48px);
    color: var(--petrol)
  }

  .stat .l {
    font-size: 13px;
    color: var(--muted-fg);
    margin-top: 8px;
    line-height: 1.35
  }

/* Sections shared */

section {
  padding: 6rem 0
}

@media(min-width:768px) {
  section {
    padding: 7rem 0
  }
}

.eyebrow {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1rem;
  display: block
}

.eyebrow-light {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--accent-light);
  font-weight: 500;
  margin-bottom: 1rem;
  display: block
}

.section-head {
  max-width: 600px;
  margin-bottom: 4rem
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--primary)
}

.section-head p {
  margin-top: 1.25rem;
  color: var(--muted-fg);
  font-size: 1.05rem;
  line-height: 1.7
}

/* Services */

.services-grid {
  display: grid;
  gap: 1.25rem
}

@media(min-width:640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(min-width:1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr)
  }
}

.service {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  transition: var(--t);
  position: relative;
  overflow: hidden
}

.service:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-elegant);
  border-color: var(--accent)
}

.service .icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: .7rem;
  background: var(--emerald-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: var(--t)
}

.service:hover .icon-wrap {
  background: var(--accent);
  color: #fff;
  transform: rotate(-6deg) scale(1.05)
}

.service h3 {
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: .6rem
}

.service p {
  color: var(--muted-fg);
  font-size: .95rem;
  line-height: 1.65
}

/* Method */

section.method {
  background: var(--primary-dark);
  /* color: var(--primary-fg); */
  color: transparent;
  position: relative;
  overflow: hidden;
  padding: 6rem 0 !important;
}


@media(min-width:768px) {
 section.method  {
    padding: 7rem 0 0rem 0 !important;
  }
}


.method-compass {
  position: absolute;
  right: -10rem;
  top: 50%;
  transform: translateY(-50%);
  width: 700px;
  height: 700px;
  color: rgba(28, 135, 101, .25);
  pointer-events: none;

}


.method-brujula {
  position: absolute;
  right: -10rem;
  top: 50%;
  transform: translateY(-50%);
  width: 700px;
  height: 700px;
  color: rgba(28, 135, 101, .25);
  pointer-events: none;
  background-image: url('assets/brujula_color.png');
/* background-size: 500px; */
background-repeat: no-repeat;
  opacity: 0.08;
}


.method-head h2 {
  color: var(--primary-fg)
}

.method-head p {
  color: rgba(248, 245, 238, .7)
}

.bg-dark {
  background: #143a48;
}

.top-metod {
  margin-top: 0px;
}

.metodo-img {
  width: 100%; 
  margin: auto; 
  /* margin: 0px 0 3rem 0; */
}

.steps {
  display: grid;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(248, 245, 238, .1);
  background: rgba(248, 245, 238, .1);
  gap: 1px
}

@media(min-width:768px) {
  .steps {
    grid-template-columns: repeat(5, 1fr)
  }
}

.step {
  /* background: var(--primary); */
  padding: 2rem 1.75rem;
  transition: var(--t)
}

.step:hover {
  background: #1a4858
}

.step-num {
  font-family: 'Fraunces', serif;
  font-size: 2.85rem;
  color: var(--accent-light);
  margin-bottom: 1.25rem
}

.step h3 {
  font-size: 1.2rem;
  margin-bottom: .65rem;
  color: var(--primary-fg)
}

.step p {
  font-size: .85rem;
  color: rgba(248, 245, 238, .7);
  line-height: 1.6
}

/* Clients */

@media(max-width:768px) {
  .marcas {
    display: none !important;
  }
  .marcas-responsive {
    display: block !important;
  }
}


@media(min-width:768px) {
  .marcas {
    display: block !important;
  }
  .marcas-responsive {
    display: none !important;
  }
}

.marcas {
  padding: 2rem 0 0 0;
}

.marcas-responsive {
  padding: 2rem 0 0 0;
}


.clients-section {
  background: rgba(241, 244, 246, .4);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border)
}

.testimonials {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 4rem
}

@media(min-width:768px) {
  .testimonials {
    grid-template-columns: repeat(3, 1fr)
  }
}

.testimonial {
  position: relative;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  transition: var(--t);
  display: flex;
  flex-direction: column
}

.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elegant)
}

.quote-ic {
  position: absolute;
  top: -14px;
  left: 1.5rem;
  width: 32px;
  height: 32px;
  padding: 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff
}

.stars {
  display: flex;
  gap: .2rem;
  margin: .5rem 0 1.25rem
}

.stars svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  fill: var(--accent)
}

.testimonial p.quote {
  color: rgba(20, 40, 50, .9);
  font-size: .95rem;
  line-height: 1.7;
  flex: 1
}

.testimonial-foot {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: .75rem
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--gradient-emerald);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: .9rem
}

.testimonial-name {
  font-size: .875rem;
  color: var(--primary);
  font-weight: 500
}

.testimonial-role {
  font-size: .75rem;
  color: var(--muted-fg)
}

.logos-label {
  text-align: center;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--muted-fg);
  font-weight: 500;
  margin: 6rem 0 0 0;
}

.logos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: .85rem;
  overflow: hidden
}

@media(min-width:768px) {
  .logos {
    grid-template-columns: repeat(5, 1fr)
  }
}

.logo-cell {
  background: var(--background);
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  text-align: center;
  transition: var(--t);
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  color: rgba(90, 109, 118, .85)
}

.logo-cell:hover {
  background: rgba(241, 244, 246, .6);
  color: var(--primary)
}

/* Audiovisual */

.av {
  background: rgba(241, 244, 246, .4)
}

.iconos-sociales {
  padding-top: 2rem;
  max-width: 260px;
}

.av-grid {
  display: grid;
  gap: 3rem;
  align-items: center
}

@media(min-width:1024px) {
  .av-grid {
    grid-template-columns: 5fr 7fr
  }
}

.av-visual {
  position: relative;
  aspect-ratio: 9/16;
  max-width: none;
  margin: 0 auto;
  width: 100%;
  border-radius: 1.25rem;
  background: var(--gradient-petrol);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-elegant)
}

@media(min-width:768px) {
  .av-visual {
    max-width: 360px;

  }

}

.av-visual .av-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: opacity .6s ease, transform 6s ease
}

.av-visual:hover .av-poster {
  transform: scale(1.04)
}

.av-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 42, 53, .15) 0%, rgba(15, 42, 53, .55) 100%);
  z-index: 1;
  transition: opacity .6s ease;
  pointer-events: none
}

.av-visual svg.lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: rgba(248, 245, 238, .18);
  z-index: 1;
  transition: opacity .6s ease;
  mix-blend-mode: screen;
  pointer-events: none
}

.av-visual video.av-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .6s ease;
  background: #000;
  z-index: 2
}

.av-visual.is-playing video.av-video {
  opacity: 1
}

.av-visual.is-playing svg.lines,
.av-visual.is-playing .av-poster {
  opacity: 0
}

.av-visual.is-playing::after {
  opacity: 0
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 80px;
  height: 80px;
  border-radius: 999px;
  background: rgba(248, 245, 238, .95);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-elegant);
  transition: opacity .4s ease, transform .3s ease, background .3s ease
}

.play-btn:hover {
  transform: translate(-50%, -50%) scale(1.08)
}

.av-visual.is-playing .play-btn {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.85)
}

.play-btn svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
  fill: var(--primary);
  margin-left: 4px
}

.av h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 1.5rem
}

.av p {
  color: var(--muted-fg);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 560px
}

/* Founder */

.founder-card {
  max-width: 840px;
  margin: 0 auto;
  border-left: 2px solid var(--accent);
  padding-left: 2rem
}

@media(min-width:768px) {
  .founder-card {
    padding-left: 3rem
  }
}

blockquote {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--primary);
  line-height: 1.3;
  font-weight: 400
}

.founder-meta {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem
}

.founder-meta .avatar {
  width: 48px;
  height: 48px;
  font-size: 1rem
}

.avatar-founder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-image: url('assets/avatar.webp'); /* cambia la ruta si es necesario */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Final CTA */

.final-cta {
  background: var(--gradient-petrol);
  color: var(--primary-fg);
  position: relative;
  overflow: hidden;
  text-align: center
}

.final-cta svg.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .2;
  pointer-events: none
}

.final-cta .container {
  position: relative;
  max-width: 760px
}

.final-cta h2 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  color: var(--primary-fg);
  line-height: 1.05
}

.final-cta h2 span {
  color: var(--accent);
  font-size: 0.9em;
}

.final-cta p {
  margin-top: 1.5rem;
  color: rgba(248, 245, 238, .75);
  font-size: 1.1rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto
}

.final-cta .ctas {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem
}

/* Footer */

footer {
  background: var(--bone);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem
}

.foot {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
  color: var(--muted-fg);
  font-size: .85rem
}

@media(min-width:768px) {
  .foot {
    flex-direction: row;
    justify-content: space-between;
    text-align: left
  }
}

/* Reveal on scroll */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease)
}

.reveal.in {
  opacity: 1;
  transform: none
}

.reveal.d1 {
  transition-delay: .1s
}

.reveal.d2 {
  transition-delay: .2s
}

.reveal.d3 {
  transition-delay: .3s
}

::selection {
  background: var(--accent);
  color: #fff
}

html {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent
}