@font-face {
    font-family: 'Montserrat-Bold';
    src: url(../fonts/Montserrat/static/Montserrat-Bold.ttf) format('truetype');
}

@font-face {
    font-family: 'Montserrat-SemiBold';
    src: url(../fonts/Montserrat/static/Montserrat-SemiBold.ttf) format('truetype');
}

@font-face {
    font-family: 'Montserrat-Medium';
    src: url(../fonts/Montserrat/static/Montserrat-Medium.ttf) format('truetype');
}

@font-face {
    font-family: 'Montserrat-Regular';
    src: url(../fonts/Montserrat/static/Montserrat-Regular.ttf) format('truetype');
}

@font-face {
    font-family: 'Jakarta-SemiBold';
    src: url(../fonts/Plus_Jakarta_Sans/static/PlusJakartaSans-SemiBold.ttf) format('truetype');
}

@font-face {
    font-family: 'Jakarta-Regular';
    src: url(../fonts/Plus_Jakarta_Sans/static/PlusJakartaSans-Regular.ttf) format('truetype');
}

/* =========================
   VARIABLES / UTILIDADES
============================ */
:root {
  --bg-deep: #062b38;
  --bg-light: #f3f5f6;
  --fg: #0e2431;
  --muted: #6a7a86;
  --brand: #16c47f;
  --brand-2: #1fb3ff;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 24px rgba(0, 0, 0, .08);
  --max: 1180px;

  --history-bg: #072c3a;
  --history-card: #082f40;
  --history-text: #eaf6fb;
  --history-accent: #9dd6ee;
}

body:has(.hero-nos) {
  background-color: #F2F2F2;
}

.wrap {
  width: 100%;
}

/* =========================================================
   HERO (video de portada + orejas + textos)
   * Mantengo tu layout actual (altura fija y transforms)
========================================================= */
.hero-nos {
  background: #062638;
  position: relative;
  margin-top: -100px;
  height: 100dvh;
  max-height: 815px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

/* El <video> actúa como media */
.hero-media {
  display: block;
  width: 700px;
  height: 520px;
  object-fit: cover;
  border-radius: 150px;
  z-index: 1;
  border: 12px solid #082638;
  margin-top: 100px;
}

.phola {
  font-family: "Montserrat-SemiBold", sans-serif;
  font-size: 70px;
  color: white;
  text-wrap: nowrap;
  position: absolute;
  top: 95px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
  line-height: 1.1;
}

/* Orejas (elementos decorativos laterales) */
:root {
  --orejaW: clamp(20px, 3vw, 46px);
  --videoW: min(775px, 94vw);
}

/* OREJAS sin variables, separadas 8px del video */
.orejaDer,
.orejaIzq {
  position: absolute;
  top: 51%;
  transform: translateY(-50%);
  background: #22C55E;
  width: 150px;
  height: 150px;
  clip-path: circle(50.0% at 50% 50%);
}

.orejaIzq {
  left: calc(50% - (var(--videoW) / 2) - 8px - 7px);
}

.orejaDer {
  right: calc(50% - (var(--videoW) / 2) - 8px - 7px);
}

@media (max-width: 900px) {
  .hero-nos {
    height: 75dvh;
  }

  .hero-media {
    width: 500px;
    height: 370px;
    border-radius: 100px;
    position: relative;
    z-index: 1;
  }

  .phola {
    font-size: 46px !important;
    top: 165px;
  }

  .orejaDer,
  .orejaIzq {
    width: 100px;
    height: 100px;
    position: absolute;
    top: 51%;
    transform: translateY(-50%);
  }

  .hero-nos {
    position: relative;
  }

  .hero-nos .hero-media {
    margin-left: auto;
    margin-right: auto;
    display: block;
    position: relative;
  }

  .hero-nos .orejaIzq {
    left: calc(50% - 250px - 40px); /* 500px/2 + 8px gap + 42px offset */
  }

  .hero-nos .orejaDer {
    left: calc(50% + 250px - 60px); /* 500px/2 + 8px gap */
  }
}

@media (max-width: 700px) {
  .hero-nos {
    height: 65dvh !important;
  }

  .hero-media {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: 5px solid #082638;
    border-radius: 70px;
  }

  .phola {
    font-size: 30px !important;
    top: 100px;
  }

  .orejaDer,
  .orejaIzq {
    position: absolute !important;
    top: 55% !important;
    transform: translateY(-50%) !important;
    background: #22C55E;
    width: 80px;
    height: 80px;
    clip-path: circle(50.0% at 50% 50%);
  }

  .orejaIzq {
    left: calc(50% - (var(--videoW) / 2) - 5px) !important;
  }

  .orejaDer {
    left: calc(50% + (var(--videoW) / 2) - 75px) !important;
  }
}

@media (max-width: 550px) {
  .hero-nos {
    height: 50dvh !important;
  }

  .phola {
    font-size: 24px !important;
    top: 90px;
  }

  .hero-media {
    border-radius: 55px;
  }

  .orejaDer,
  .orejaIzq {
    top: 60% !important;
  }

  .badge-years p,
  .stat-card p {
    font-size: 32px !important;
  }

  .stat-card p {
    height: 70px !important;
  }

  .badge-years span,
  .stat-card span {
    font-size: 18px !important;
  }

  .trust-card {
    height: 260px !important;
  }
}

@media (max-width: 400px) {
  .phola {
    font-size: 20px !important;
    top: 120px;
  }

  .hero-media {
    border-radius: 40px;
  }

  .orejaDer,
  .orejaIzq {
    top: 60% !important;
    width: 60px !important;
    height: 60px !important;
  }

  .orejaIzq {
    left: calc(50% - (var(--videoW) / 2)) !important;
  }

  .orejaDer {
    left: calc(50% + (var(--videoW) / 2) - 62px) !important;
  }

  .badge-years p,
  .stat-card p {
    font-size: 24px !important;
  }

  .stat-card p {
    height: 50px !important;
  }

  .badge-years span,
  .stat-card span {
    font-size: 14px !important;
  }

  .trust-card {
    height: 310px !important;
  }

  #nosotros-cta p {
    font-size: 30px !important;
  }

  #nosotros-cta p img {
    width: 25px !important;
    height: 25px !important;
  }
}

/* =========================================================
   CITA (quote principal) — calcado a tu mock y responsivo
========================================================= */
#nosotros-quote {
  background: #fff;
  padding: 120px 30px 40px 30px;
}

#nosotros-quote .quote {
  max-width: 1060px;
  margin: 0 auto;
  text-align: center;
  color: #0b0b0b;
  padding: 0;
  background: transparent;
}

#nosotros-quote .quote p {
  font-family: "Jakarta-SemiBold", sans-serif;
  font-size: 30px;
  max-width: 820px;
  margin: 0 auto;
  margin-bottom: 50px;
}

#nosotros-quote .quote footer {
  margin: 0;
  line-height: 1.35;
}

#nosotros-quote .quote footer strong {
  font-family: "Jakarta-SemiBold", sans-serif;
  font-size: 18px;
  margin-bottom: 6px;
}

#nosotros-quote .quote footer span {
  display: block;
  font-family: "Jakarta-Regular", sans-serif;
  font-size: 16px;
  opacity: 0.7;
}

/* =========================================================
   ICONOS — secuencia derecha → izquierda
========================================================= */
.icon-seq-section {
  background: #fff;
  --icon-duration: 700ms;
  --gap: 16px;
  padding: 32px 24px;
  overflow-x: clip;
}

.icon-row {
  display: flex;
  align-items: center;
  gap: var(--gap);
  flex-wrap: nowrap;
  overflow: visible;
}

.icon-row .icon {
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
  opacity: 0;
  transform: translateX(100vw);
  will-change: transform, opacity;
}

.icon-row .icon.play {
  animation: fly-in-left var(--icon-duration) cubic-bezier(.2, .7, .2, 1) forwards;
}

@keyframes fly-in-left {
  from {
    transform: translateX(100vw);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.icon-row .icon:hover {
  transform: translateX(0) translateY(-3px) scale(1.03);
  transform-origin: center;
}

@media (prefers-reduced-motion:reduce) {
  .icon-row .icon {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* =============================
   SECCIÓN: SERVICIOS + DATOS
   ============================= */
#nosotros-servicios {
  width: 100%;
  background: #F2F2F2;
  padding: 80px 30px;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: minmax(170px, auto) 1fr;
  max-width: 1180px;
  gap: 20px;
  margin: 0 auto;
}

.services-grid > div {
  border-radius: clamp(12px, 2vw, 20px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  padding: clamp(12px, 3vw, 20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 0;
}

.chips {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  background-color: white;
}

.chips h3 {
  font-family: "Montserrat-SemiBold", sans-serif;
  font-size: 32px;
}

.chips img {
  width: 100%;
  height: auto;
}

.badge-years {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  background-color: #E4572E;
}

.badge-years .badge p,
.stat-card p {
  font-family: "Montserrat-SemiBold", sans-serif;
  color: white;
  font-size: 48px;
  margin-bottom: 0px;
  height: 40px;
  display: flex;
  align-items: center;
}

.badge-years .badge span {
  font-family: "Jakarta-Regular", sans-serif;
  color: white;
  font-size: 22px;
}

.stat-card {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  background-color: white;
}

.stat-card p {
  height: 90px;
  color: black;
  line-height: 1;
}

.stat-card span {
  font-family: "Jakarta-Regular", sans-serif;
  font-size: 20px;
}

.trust-card {
  grid-column: 3 / 4;
  grid-row: 1 / 3;
  background-color: #A8E0FF;
}

.trust-card p {
  font-family: "Montserrat-SemiBold", sans-serif;
  color: #062638;
  font-size: 22px;
  margin-bottom: 0px;
  height: 80px;
  display: flex;
  align-items: center;
}

@media (max-width: 1200px) {
  .trust-card p {
    font-size: 18px;
  }
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(4, auto);
    gap: 16px;
    max-width: 500px;
  }

  .chips {
    grid-column: 1 / -1;
    grid-row: 1 / 2;
  }

  .badge-years {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
  }

  .stat-card {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }

  .trust-card {
    grid-column: 1 / -1;
    grid-row: 3 / 4;
    height: 200px;
  }

  .icon-row {
    gap: 10px;
  }

  .icon-row .icon.play {
    height: 30px;
  }
}

/* ==============
   CTA FINAL
================= */
#nosotros-cta {
  background: #F2F2F2;
  text-align: center;
  padding: 10px 30px 100px 30px;
}

#nosotros-cta p {
  margin-bottom: 60px;
}

#nosotros-cta p span {
  font-family: 'Montserrat-SemiBold', sans-serif;
  font-size: 50px;
  color: #062638;
  line-height: 1.1;
}

#nosotros-cta p img {
  width: 48px;
  height: 48px;
  margin-left: 10px;
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 0 auto;
  border: 1px solid transparent;
  font-family: "Montserrat-Regular", sans-serif;
  padding: 15px 60px;
  border-radius: 30px;
  background: #062638;
  color: #fff;
  opacity: 1;
  text-decoration: none;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: background 0.3s;
  cursor: pointer;
}

.btn-primary:hover {
  background: white;
  color: #062638;
  border: 1px solid #062638;
}

.btn-primary:active {
  text-decoration: underline;
}

/* =========================================================
   NUESTRA HISTORIA (título arriba, video izq., texto der., botón centrado)
========================================================= */
.wrap.history {
  background: #062638;
  color: var(--history-text);
  padding: 40px 30px 80px 30px;
  border-radius: 0 0 28px 28px;
}

.history-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

/* Título de la sección (fila completa) */
.history-title {
  grid-column: 1 / 2;
  font-family: "Montserrat-Medium", sans-serif;
  font-size: 50px;
  color: white;
  line-height: 1.1;
  margin: 30px 0 0px 0;
  padding: 0;
}

/* Video + marco */
.history-video {
  display: block;
  width: 580px;
  height: 581px;
  aspect-ratio: 16 / 9;
  border-radius: 58px;
  object-fit: cover;
  margin-right: 5px;
}

/* Texto de la columna derecha */
.history-copy {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  position: relative;
  padding-left: 33px;
}

.history-copy h3 {
  font-family: "MontserratBold", sans-serif;
  font-size: 25px;
  margin-top: 30px;
  margin-bottom: 5px;
}

.history-copy p {
  font-family: "Montserrat-Regular", sans-serif;
  font-size: 18px;
  opacity: 0.8;
}

/* Barra decorativa fija (con “punto” al final) */
.history-copy::before {
  content: "";
  position: absolute;
  left: 0;
  width: 2px;
  height: 600px;
  top: 60%;
  transform: translateY(-50%);
  background: linear-gradient(#8fd0ea, #5fb4cf);
  border-radius: 3px;
}

.history-copy::after {
  content: "";
  position: absolute;
  left: -4px;
  top: calc(28% + 450px - 6px);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #8fd0ea;
  box-shadow: 0 0 0 4px rgba(143, 208, 234, .25);
}

/* Botón */
.btn-secondary {
  text-decoration: none;
  background: #A8E0FF;
  color: #062638;
  font-family: "Jakarta-SemiBold", sans-serif;
  font-size: 22px;
  padding: 12px 24px;
  border-radius: 30px;
  border: 1px solid transparent;
  display: flex;
  margin-top: 60px !important;
  margin-bottom: 30px !important;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s;
}

.btn-secondary:hover {
  color: #90d4ff;
  background: #062638;
  border: 1px solid #90d4ff;
}

.btn-secondary:active {
  text-decoration: underline;
}

.btn-secondary svg,
.btn-secondary img {
  display: block;
}

/* Botón centrado en fila completa */
.history-cta {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 1.5rem;
}

/* --- Nuestra historia: responsive --- */

@media (max-width: 1100px) {
  .hero-nos {
    height: 90dvh;
  }

  .phola {
    font-size: 50px;
  }

  .history-grid {
    grid-template-columns: 350px 1fr !important;
    grid-template-rows: 1fr auto 1fr;
  }

  .history-title {
    font-size: 36px;
  }

  .history-video {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    margin-right: 0;
  }

  .history-copy::before {
    top: 50%;
    height: 400px;
  }

  .history-copy::after {
    top: calc(50% + 215px);
  }
}

@media (max-width: 850px) {
  .history-grid {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto;
    gap: 40px;
  }

  .history-title {
    grid-column: 1 / -1;
    grid-row: 1 / 2;
    text-align: center;
    font-size: 32px;
  }

  .history-copy {
    grid-column: 1 / -1;
    grid-row: 2 / 3;
    padding-left: 0;
  }

  .history-video {
    grid-column: 1 / -1;
    grid-row: 3 / 4;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 32px;
  }

  .history-copy::before,
  .history-copy::after {
    display: none;
  }

  .history-cta {
    grid-column: 1 / -1;
    text-align: center;
  }
}











#nosotros-reels {
  max-width: 1180px;
  margin: 0 auto;
  margin-top: 80px;
  margin-bottom: 80px;
}

.reels-title {
  font-family: "Montserrat-SemiBold", sans-serif;
  font-size: 36px;
  color: #062638;
  text-align: center;
  margin-bottom: 40px;
}

.reels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  max-width: 1240px;
  margin: 0 auto;
}

.reel-card {
  position: relative;
  width: 100%;
  padding-top: 177.78%; /* 16:9 Aspect Ratio */
  background-color: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.reel-card video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1240px) {
  .reels-grid {
    padding: 0 30px;
  }
}