/* =========================
COLORES
========================= */
:root {
  --verde: #0099a8;
  --azul: #002856;
}

/* =========================
RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================
TIPOGRAFIA
========================= */
body {
  font-family: 'Myriad Pro', sans-serif;
  overflow: hidden; /* IMPORTANTE para JS scroll */
}

body {
  overflow-x: hidden;
  overflow-y: auto;
}

h1, h2 {
  font-family: 'Helvetica', sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 50px;
}

/* =========================
SECCIONES BASE
========================= */
.section {
  height: 100vh;
  width: 100%;

  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;

  padding: 40px;
  text-align: center;
}

/* =========================
HEADER
========================= */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 70px;
  background: var(--verde);

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 0 20px;
  z-index: 999;
}

.logo {
  color: white;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--azul);
  margin: 5px 0;
}
/* =========================
LOGO
========================= */
.logo img {
  height: 90px;
}

/* =========================
MENU OVERLAY
========================= */
.menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;

  background: var(--azul);

  display: flex;
  justify-content: center;
  align-items: center;

  transform: translateY(-100%);
  transition: transform 0.5s ease;

  z-index: 998;
}

.menu.active {
  transform: translateY(0);
}

/* =========================
MENU ITEMS
========================= */
.menu ul {
  list-style: none;
  text-align: center;
}

.menu li {
  color: white;
  font-size: 28px;
  margin: 20px 0;
  cursor: pointer;
  transition: color 0.3s;
}

.menu li:hover {
  color: var(--verde);
}

/* =========================
HAMBURGER ANIMATION
========================= */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.hamburger span {
  transition: all 0.3s ease;
}

/* =========================
MENU TIPOGRAFIA
========================= */
.menu li {
  font-family: 'Helvetica', sans-serif;
  font-weight: 700;
  letter-spacing: 2px;

  color: white;
  font-size: 28px;
  margin: 20px 0;
  cursor: pointer;
  transition: color 0.3s;
}
/* =========================
HERO
========================= */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;

  display: flex;
  align-items: center;

  color: var(--verde);
}

/* =========================
VIDEO DE FONDO
========================= */
.hero-video {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  z-index: -2;
}

/* Overlay opcional */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;

  background: rgba(255, 255, 255, 0.03);

  z-index: -1;
}

/* =========================
CONTENIDO
========================= */
.content {
  position: relative;
  z-index: 2;

  max-width: 800px;
}

.hero h1 {
  margin: 50px 0;
  font-size: 45px;
  line-height: 1.2;
}

.intro {
  margin-top: 100px;
}

/* =========================
SUBTITLE
========================= */
.subtitle {
  font-family: 'Helvetica', sans-serif;
  font-size: 25px;
  font-weight: 700;
  color: var(--azul);
  margin-top: 10px;
}

/* =========================
ANIMACIONES
========================= */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.2s;
}

.delay-2 {
  transition-delay: 0.4s;
}

.delay-3 {
  transition-delay: 0.6s;
}

/* =========================
TABLET
========================= */
@media (max-width: 992px) {

  .hero {
    min-height: 90vh;
  }

  .hero h1 {
    font-size: 35px;
  }

  .subtitle {
    font-size: 25px;
  }
}

/* =========================
MOBILE
========================= */
@media (max-width: 768px) {

  .hero {
    min-height: 90vh;

    background: url("/images/banner-mobile-46.png")
      center top / cover no-repeat;
  }

  /* ocultar video en mobile */
  .hero-video {
    display: none;
  }

  .content {
    max-width: 100%;
  }

  .hero h1 {
    font-size: 30px;
  }

  .intro {
    margin-top: 100px;
    font-size: 15px;
  }

  .subtitle {
    font-size: 25px;
  }
}

/* =========================
BORDE INFERIOR SUAVE
========================= */
.hero::before {
  content: "";

  position: absolute;
  left: 50%;
  bottom: 25px;

  transform: translateX(-50%);

  width: 140px;
  height: 6px;

  border-radius: 999px;

  background: var(--verde);

  z-index: 10;

  opacity: 0.8;

  box-shadow:
    0 0 20px rgba(0,0,0,0.15),
    0 0 30px rgba(255,255,255,0.15);
}

.hero::before {
  animation: scrollHint 2s ease-in-out infinite;
}

@keyframes scrollHint {
  0% {
    transform: translateX(-50%) scaleX(1);
    opacity: 0.5;
  }

  50% {
    transform: translateX(-50%) scaleX(1.15);
    opacity: 1;
  }

  100% {
    transform: translateX(-50%) scaleX(1);
    opacity: 0.5;
  }
}
/* =========================
SOMOS
========================= */
.somos {
  background: var(--azul);

  color: white;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 90px 20px 90px;

  position: relative;
  overflow: hidden;
}

.somos-container {
  width: 100%;
  max-width: 1100px;

  display: flex;
  flex-direction: column;
  align-items: center;
}

/* =========================
TITULO
========================= */
.somos h2 {
  color: var(--verde);

  margin-bottom: 50px;

  text-align: center;

  font-size: 38px;
}

/* =========================
ITEMS
========================= */
.timeline-item {

  display: flex;
  flex-direction: column;
  align-items: center;

  margin-bottom: 35px;

  width: 100%;
}

/* =========================
LINEA PUNTEADA
========================= */
.timeline-line {

  width: 6px;
  height: 52px;

  border-left: 4px dashed rgba(255,255,255,0.45);

  margin-bottom: 18px;

  transform-origin: top;
  transform: scaleY(0);

  transition: transform 0.8s ease;
}

.fade-up.show .timeline-line {
  transform: scaleY(1);
}

/* =========================
TEXTOS
========================= */
.somos-text {

  font-size: 26px;
  line-height: 1.15;

  font-weight: 700;

  text-transform: uppercase;

  text-align: center;

  letter-spacing: -1px;

  max-width: 850px;
}

.somos-text.white {
  color: white;
}

.somos-text.green {
  color: var(--verde);
}

/* =========================
ANIMACIONES
========================= */
.fade-up {
  opacity: 0;
  transform: translateY(40px);

  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.2s;
}

.delay-2 {
  transition-delay: 0.45s;
}

.delay-3 {
  transition-delay: 0.7s;
}

/* =========================
LINEA INFERIOR
INDICADOR DE CONTINUIDAD
========================= */
.somos::before {
  content: "";

  position: absolute;

  left: 50%;
  bottom: 28px;

  transform: translateX(-50%);

  width: 140px;
  height: 6px;

  border-radius: 999px;

  background: var(--verde);

  opacity: 0.85;

  z-index: 20;

  animation: scrollHint 2s ease-in-out infinite;
}

@keyframes scrollHint {

  0% {
    transform: translateX(-50%) scaleX(1);
    opacity: 0.45;
  }

  50% {
    transform: translateX(-50%) scaleX(1.15);
    opacity: 1;
  }

  100% {
    transform: translateX(-50%) scaleX(1);
    opacity: 0.45;
  }

}

/* =========================
TABLET
========================= */
@media (max-width: 992px) {

  .somos-text {
    font-size: 22px;
    max-width: 90%;
  }

  .somos h2 {
    font-size: 32px;
  }

}

/* =========================
MOBILE
========================= */
@media (max-width: 768px) {

  .somos {
    padding: 80px 25px 85px;
  }

  .somos h2 {
    font-size: 35px;
    margin-bottom: 30px;
  }

  .timeline-item {
    margin-bottom: 30px;
  }

  .timeline-line {
    height: 42px;
    margin-bottom: 16px;
  }

  .somos-text {
    font-size: 18px;
    line-height: 1.2;

    letter-spacing: 0;

    max-width: 100%;
  }

  .somos::before {
    width: 110px;
    bottom: 24px;
  }

}
/* =========================
SERVICIOS
========================= */
.servicios {
  background: #0089A2;

  height: 100vh;

  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;

  justify-content: flex-start;

  padding: 110px 40px 140px;

  position: relative;
}

.servicios h2 {
  color: var(--azul);

  margin-bottom: 45px;

  text-align: center;
}

/* =========================
LINEA INFERIOR
CONTINUIDAD
========================= */
.servicios::before {
  content: "";

  position: absolute;

  left: 50%;
  bottom: 20px;

  transform: translateX(-50%);

  width: 140px;
  height: 6px;

  border-radius: 999px;

  background: white;

  opacity: 0.9;

  z-index: 20;

  animation: scrollHint 2s ease-in-out infinite;
}

@keyframes scrollHint {

  0% {
    transform: translateX(-50%) scaleX(1);
    opacity: 0.45;
  }

  50% {
    transform: translateX(-50%) scaleX(1.15);
    opacity: 1;
  }

  100% {
    transform: translateX(-50%) scaleX(1);
    opacity: 0.45;
  }

}

/* =========================
GRID CARDS
========================= */
.cards {

  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 34px;

  width: 100%;
  max-width: 1180px;

  margin: 0 auto;
}

/* =========================
CARD
========================= */
.card {

  perspective: 1000px;

  cursor: pointer;

  aspect-ratio: 1 / 1;

  max-width: 210px;

  width: 100%;

  margin: 0 auto;
}

.card-inner {

  position: relative;

  width: 100%;
  height: 100%;

  transition: transform 0.6s;

  transform-style: preserve-3d;
}

.card.active .card-inner {
  transform: rotateY(180deg);
}

/* =========================
CARAS
========================= */
.card-front,
.card-back {

  position: absolute;

  width: 100%;
  height: 100%;

  border-radius: 14px;

  backface-visibility: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================
FRENTE
========================= */
.card-front {
  overflow: hidden;
}

.card-front video {

  width: 100%;
  height: 100%;

  object-fit: cover;

  border-radius: 14px;

  transition: transform 0.4s ease;
}

.card:hover .card-front video {
  transform: scale(1.08);
}

/* =========================
DORSO
========================= */
.card-back {

  background: var(--azul);

  color: white;

  transform: rotateY(180deg);

  padding: 18px;

  text-align: left;

  font-family: "Myriad Pro", Arial, sans-serif;
}

.card-back ul {

  list-style: none;

  margin: 0;
  padding: 0;

  width: 100%;
}

.card-back li {

  font-size: 13px;

  line-height: 1.35;

  padding: 7px 0;

  border-bottom: 1px solid rgba(255,255,255,0.12);
}

/* =========================
TABLET
========================= */
@media (max-width: 1024px) {

  .servicios {
    padding: 100px 30px 130px;
  
  }

  @media (max-width: 768px) {

  .servicios h2 {
    font-size: 35px;
    margin-bottom: 25px;
  }

}

  .cards {

    grid-template-columns: repeat(2, 1fr);

    max-width: 760px;

    gap: 24px;
  }

  .card {
    max-width: 220px;
  }

}

/* =========================
MOBILE
========================= */
@media (max-width: 768px) {

  .servicios {

    height: auto;

    min-height: 100vh;

    overflow-y: auto;

    padding: 80px 20px 100px;
  }

  .servicios h2 {

    text-align: center;

    margin-bottom: 25px;
  }

  .cards {

    display: grid !important;

    grid-template-columns: 1fr 1fr !important;

    gap: 18px;

    width: 100%;
  }

  .card {

    width: 100%;

    max-width: 150px;

    aspect-ratio: 1 / 1;
  }

  .card-back {

    padding: 10px;

    display: flex;

    align-items: center;
    justify-content: center;
  }

  .card-back ul {

    margin: 0;
    padding: 0;

    width: 100%;
  }

  .card-back li {

    font-size: 10px;

    line-height: 1.15;

    padding: 2px 0;
  }

  .card-back p {

    font-size: 10px;

    line-height: 1.2;

    margin: 0;

    text-align: center;

    display: flex;

    align-items: center;
    justify-content: center;

    height: 100%;
  }

  .servicios::before {
    width: 110px;
    bottom: 24px;
  }

}
/* =========================
CLIENTES
========================= */
.clientes {

  background: #002856;

  padding: 100px 40px 120px;

  position: relative;
  overflow: hidden;
}

.clientes h2 {

  color: white;

  text-align: center;

  margin-bottom: 60px;
  font-size: 50;
}

/* =========================
GRID
========================= */
.clientes-grid {

  display: grid;

  grid-template-columns: repeat(6, 1fr);

  gap: 45px 55px;

  width: 100%;
  max-width: 1300px;

  margin: 0 auto;

  align-items: center;
}

/* =========================
LOGOS
========================= */
.clientes-grid img {

  width: 100%;
  max-width: 140px;

  height: 70px;

  object-fit: contain;

  margin: 0 auto;

  opacity: 0.82;

  transition:
    transform 0.35s ease,
    opacity 0.35s ease;
}

.clientes-grid img:hover {

  transform: scale(1.08);

  opacity: 1;
}

/* =========================
LINEA INFERIOR
========================= */
.clientes::before {

  content: "";

  position: absolute;

  left: 50%;
  bottom: 24px;

  transform: translateX(-50%);

  width: 140px;
  height: 6px;

  border-radius: 999px;

  background: white;

  opacity: 0.9;

  animation: scrollHint 2s ease-in-out infinite;
}

/* =========================
TABLET
========================= */
@media (max-width: 1024px) {

  .clientes-grid {

    grid-template-columns: repeat(4, 1fr);

    gap: 40px 40px;
  }

}

@media (max-width: 768px) {

  .clientes {

    padding: 95px 25px 100px;

    min-height: 100vh;

    justify-content: flex-start;
  }

  .clientes h2 {

    display: block;

    font-size: 28px;

    line-height: 1;

    margin-bottom: 35px;

    text-align: center;

    position: relative;

    z-index: 5;
  }

  .clientes-grid {

    grid-template-columns: repeat(2, 1fr);

    gap: 18px 20px;
  }

  .clientes-grid img {

    max-width: 100px;

    height: 48px;
  }

  .clientes::before {

    width: 110px;

    bottom: 22px;
  }

}
/* =========================
QUE HACEMOS
========================= */
.que-hacemos {

  background: white;

  padding: 120px 20px 110px;

  text-align: center;

  position: relative;

  overflow: hidden;
}

.que-hacemos h2 {

  color: var(--azul);

  margin-bottom: 50px;

  font-size: 35px;
}

/* =========================
LINEA INFERIOR
========================= */
.que-hacemos::before {

  content: "";

  position: absolute;

  left: 50%;
  bottom: 24px;

  transform: translateX(-50%);

  width: 140px;
  height: 6px;

  border-radius: 999px;

  background: var(--verde);

  opacity: 0.9;

  z-index: 20;

  animation: scrollHint 2s ease-in-out infinite;
}

/* =========================
INSTAGRAM FEED
========================= */
.instagram-feed {

  width: 100%;

  max-width: 1100px;

  margin: 0 auto;
}

/* =========================
OTRAS SECCIONES
========================= */
.contacto {
  background: #ccc;
}

/* =========================
RESPONSIVE
========================= */
@media (max-width: 1024px) {

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

}

/* =========================
MOBILE
========================= */
@media (max-width: 768px) {

  .que-hacemos {

    padding: 90px 20px 95px;
  }

  .que-hacemos h2 {

    font-size: 35px;

    margin-bottom: 35px;
  }

  .que-hacemos::before {

    width: 110px;

    bottom: 22px;
  }

}

/* =========================
SMALL MOBILE
========================= */
@media (max-width: 600px) {

  .cards {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 22px;
  }

}

/* =========================
CONTACTO
========================= */
.contacto {
  background: #002856;
  padding: 100px 0;
}

.container-contacto {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.contacto h2 {
  color: #ffffff;
  text-align: center;
  margin-bottom: 50px;
}


/* =========================
FORM
========================= */
.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-row {
  display: flex;
  gap: 20px;
}

/* inputs estilo más sólido (enterprise) */
.contacto-form input,
.contacto-form textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: #ffffff;
  font-size: 14px;
  outline: none;
  transition: border 0.3s ease;
}

/* placeholder */
.contacto-form input::placeholder,
.contacto-form textarea::placeholder {
  color: rgba(255,255,255,0.6);
}

/* focus */
.contacto-form input:focus,
.contacto-form textarea:focus {
  border-color: #ffffff;
}


/* =========================
BOTÓN
========================= */
.btn-enviar {
  align-self: center;
  margin-top: 10px;
  padding: 14px 40px;
  background: transparent;
  color: #ffffff;
  border: 1px solid #ffffff;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-enviar:hover {
  background: #ffffff;
  color: #002856;
}


/* =========================
RESPONSIVE
========================= */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
  }
}

/* LISTA */
.card-back ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ITEM */
.card-back li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
}

/* FLECHITA */
.card-back li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);

  width: 0;
  height: 0;

  border-left: 6px solid #0099a8; /* verde */
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

/* FOOTER */

.footer{
  background: var(--verde);
  padding: 20px 20px;
  text-align: center;
}

.footer-logo{
  width: 250px; /* ajustá el tamaño */
  margin-bottom: 0px;
}

.footer-links{
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-links a{
  color: #d9d9d9;
  text-decoration: none;
  font-size: 15px;
  transition: 0.3s ease;
}

.footer-links a:hover{
  color: #ffffff;
  opacity: 0.7;
}