/* =========================================================
   🔹 1. RESET GLOBAL
========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #1a1a1a;
  line-height: 1.6;
  overflow-x: hidden;
}

/* =========================================================
   🔹 2. LAYOUT GENERAL
========================================================= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 90px 0;
}

@media (max-width: 768px) {

  section {
    padding: 60px 0;
  }

}

/* =========================================================
   🔹 3. TIPOGRAFÍA
========================================================= */
h1, h2, h3, h4 {
  font-weight: 600;
}

h2 {
  margin-bottom: 25px;
  font-size: 32px;
  line-height: 1.2;
  border-left: 5px solid #1f7a7a;
  padding-left: 15px;
}

@media (max-width: 768px) {

  h2 {
    font-size: 26px;
    margin-bottom: 20px;
  }

}

/* =========================================================
   🔹 4. NAVBAR
========================================================= */
.navbar-custom {
  background: #ffffff;
  height: 70px;

  position: fixed;
  top: 0;
  left: 0;
  width: 100%;

  z-index: 1000;

  display: flex;
  align-items: center;

  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}


/* contenedor */
.navbar-custom .container {
  max-width: 100%;
  padding: 0 30px;
}

/* logo */
.logo img {
  height: 60px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

/* menú */
.menu {
  list-style: none;
  display: flex;
  gap: 30px;
}

/* links */
.menu li a {
  text-decoration: none;
  color: #444; /* 🔥 oscuro siempre */ /* 🔥 blanco arriba del carrusel */
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;

  position: relative;
  transition: color 0.3s ease;
}


/* línea animada */
.menu li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;

  background-color: #4fd1c5; /* 🔥 más moderno que el verde anterior */
  transition: width 0.3s ease;
}

.menu li a:hover::after {
  width: 100%;
}
@media (max-width: 768px) {

  .navbar-custom {
    height: 65px;
    padding: 0;
  }

  .navbar-custom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 12px;
    gap: 10px;
  }

  /* LOGO */
  .logo img {
    height: 42px;
  }

  /* MENU */
  .menu {
    display: flex;
    align-items: center;

    gap: 8px;

    margin: 0;
    padding: 0;

    list-style: none;
  }

  .menu li a {
    font-size: 9px;

    letter-spacing: 0.3px;

    font-weight: 600;

    white-space: nowrap;
  }

}

/* =========================================================
   🔹 5. HERO + CARRUSEL
========================================================= */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  padding: 0 !important;
  margin-top: 70px;
}

.heroSwiper {
  position: absolute;
  width: 100%;
  height: 100%;
}

.heroSwiper .swiper-wrapper,
.heroSwiper .swiper-slide {
  height: 100%;
}

.heroSwiper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* overlay */
.hero-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;

  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.6) 0%,
    rgba(0,0,0,0.4) 40%,
    rgba(0,0,0,0.6) 100%
  );
}

/* texto */
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  color: white;
  text-align: center;
}

.hero-content h1 {
  font-size: 56px;
  margin-bottom: 15px;
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 25px;
}

@media (max-width: 768px) {

  .hero {
    height: 85vh;
    margin-top: auto;
  }

  .hero-content {
    width: 90%;
    padding: 0 10px;
  }

  .hero-content h1 {
    font-size: 34px;
    line-height: 1.2;
    margin-bottom: 15px;
  }

  .hero-content p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .hero-content .btn {
    padding: 10px 22px;
    font-size: 14px;
  }

  .heroSwiper img {
    object-position: center center;
  }

}
/* =========================================================
   🔹 6. BOTONES
========================================================= */
.btn {
  padding: 12px 25px;
  border-radius: 0;
}

.btn-success {
  background-color: #1f7a7a;
  border: none;
}

.btn-success:hover {
  background-color: #155c5c;
}

@media (max-width: 768px) {

  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}

/* =========================================================
   🔹 7. QUIÉNES SOMOS
========================================================= */
.quienes-section {
  background: linear-gradient(to bottom, #ffffff, #f0f6f6);
  text-align: left;
}

.quienes-section h2 {
  border-left: none;
  display: inline-block;
}

.quienes-section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #1f7a7a;
  margin: 10px auto 0 auto;
}

.quienes-section .intro {
  font-size: 20px;
  margin-bottom: 20px;
}

.quienes-section p {
  max-width: 650px;
  margin: 0 0 15px 0;
  color: #555;
}
/*Imagen del Broker*/
.broker-img {
  width: 100%;
  max-width: 700px;

  border-radius: 12px;

  object-fit: cover;

  box-shadow: 0 15px 35px rgba(0,0,0,0.12);

  transition: transform 0.3s ease;
}

.broker-img:hover {
  transform: scale(1.02);
}
.quienes-row {
  gap: 5px;
}

@media (max-width: 768px) {

  .quienes-section {
    text-align: center;
    padding: 70px 0;
  }

  .quienes-section h2 {
    font-size: 28px;
  }

  .quienes-section .intro {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 25px;
  }

  .quienes-section p {
    max-width: 100%;
    margin: 0 auto 15px auto;
    font-size: 15px;
  }

  .broker-img {
    max-width: 100%;
    margin-top: 30px;
  }

  .quienes-row {
    gap: 25px;
  }

}
/* =========================================================
   🔹 8. NUESTRA PROPUESTA DE VALOR
========================================================= */

.value-section {
    background: linear-gradient(
    to bottom,
    #f0f6f6 0%,
    #dceaea 45%,
    #9fb8b8 75%,
    #0f2f2f 100%
  );

  text-align: center;
}

/* HEADER */
.value-header {
  max-width: 850px;
  margin: 0 auto 60px auto;
}

.value-header h2 {
  border-left: none;
  display: inline-block;
  position: relative;
}

.value-header h2::after {
  content: "";
  display: block;

  width: 60px;
  height: 3px;

  background: #1f7a7a;

  margin: 10px auto 0 auto;
}

.value-intro {
  margin-top: 25px;

  font-size: 18px;
  line-height: 1.9;

  color: #555;
}

/* CARDS */
.value-card {
  background: rgba(255,255,255,0.8);

  padding: 35px 30px;

  border-radius: 14px;

  height: 100%;

  box-shadow: 0 10px 30px rgba(0,0,0,0.05);

  backdrop-filter: blur(4px);

  transition: all 0.3s ease;
}

.value-card:hover {
  transform: translateY(-8px);

  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

/* TITULOS */
.value-card h5 {
  color: #1f7a7a;

  font-size: 20px;
  font-weight: 600;

  margin-bottom: 18px;
}

/* TEXTO */
.value-card p {
  color: #555;

  font-size: 15px;
  line-height: 1.8;
}

@media (max-width: 768px) {

  .value-section {
    padding: 70px 0;
  }

  .value-header {
    margin-bottom: 40px;
    padding: 0 10px;
  }

  .value-header h2 {
    font-size: 28px;
  }

  .value-intro {
    font-size: 16px;
    line-height: 1.7;
    margin-top: 20px;
  }

  .value-card {
    padding: 25px 20px;
    margin-bottom: 20px;
    height: auto;
  }

  .value-card h5 {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .value-card p {
    font-size: 14px;
    line-height: 1.7;
  }

}
/* =========================================================
   🔹 10. CLIENTES / PRESENCIA INTERNACIONAL
========================================================= */

#clientes {
  background: linear-gradient(
    to bottom,
    #0f2f2f 0%,
    #aebebe 65%,
    #f7f9f9 80%
  );

  text-align: center;

  overflow: hidden;
}

/* HEADER */
.clients-header {
  margin-bottom: 50px;
}

#clientes h2 {
  color: #ffffff;
  border-left: none;
  display: inline-block;
  text-shadow: 0 4px 18px rgba(0,0,0,0.35);
}

#clientes h2::after {
  content: "";

  width: 60px;
  height: 3px;

  background: #4fd1c5;

  display: block;
  margin: 10px auto 0 auto;
}

.clients-header p {
  color: rgba(255,255,255,0.95);
  margin-top: 20px;
  font-size: 16px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

/* =========================================================
   🔹 SLIDER
========================================================= */

.flags-slider {
  width: 100%;

  overflow: hidden;

  position: relative;
}

/* pista animada */
.flags-track {
  display: flex;
  align-items: center;
  gap: 30px;

  width: max-content;

  animation: scrollFlags 35s linear infinite;
}

/* banderas */
.flags-track img {
  width: 58px;
  height: 40px;

  object-fit: cover;

  border-radius: 6px;

  box-shadow: 0 4px 12px rgba(0,0,0,0.12);

  transition: transform 0.3s ease,
              box-shadow 0.3s ease;
}

/* hover */
.flags-track img:hover {
  transform: scale(1.12);

  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

/* animación infinita */
@keyframes scrollFlags {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* =========================================================
   🔹 CARRUSEL EMPRESAS
========================================================= */
.partners-header {
  text-align: center;
  margin-top: 50px;
  padding: 0 20px;
}

.partners-header h3 {
  font-size: 26px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.partners-header p {
  color: rgba(255,255,255,0.75);
  font-size: 15px;
  max-width: 550px;
  margin: 0 auto 35px auto;
  line-height: 1.7;
}

.carrusel-empresas {
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
}

.empresas {
  display: flex;
  align-items: center;
  gap: 50px;
  width: max-content;
  animation: scrollEmpresas 40s linear infinite;
}

.empresas img {
  height: 55px;
  width: auto;
  object-fit: contain;

  background: rgba(255,255,255,0.92);
  padding: 10px 18px;
  border-radius: 8px;

  filter: grayscale(20%);
  opacity: 0.9;

  box-shadow: 0 4px 15px rgba(0,0,0,0.15);

  transition: all 0.3s ease;
}

.empresas img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.08);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

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

@media (max-width: 768px) {
  .partners-header h3 {
    font-size: 22px;
  }

  .partners-header p {
    font-size: 14px;
    margin-bottom: 25px;
  }

  .empresas {
    gap: 30px;
    animation-duration: 28s;
  }

  .empresas img {
    height: 40px;
    padding: 8px 12px;
  }
}
/* =========================================================
   🔹 RESPONSIVE
========================================================= */

@media (max-width: 768px) {

  .flags-track {
    gap: 20px;
    animation-duration: 22s;
  }

  .flags-track img {
    width: 48px;
    height: 32px;
  }
}

@media (max-width: 768px) {

  #clientes {
    padding: 70px 0;
  }

  .clients-header {
    margin-bottom: 35px;
    padding: 0 10px;
  }

  #clientes h2 {
    font-size: 28px;
    line-height: 1.3;
  }

  .clients-header p {
    font-size: 14px;
    line-height: 1.7;
    margin-top: 15px;
  }

  /* slider */
  .flags-slider {
    margin-top: 10px;
  }

  .flags-track {
    gap: 20px;
    animation-duration: 22s;
  }

  .flags-track img {
    width: 48px;
    height: 32px;
    border-radius: 5px;
  }
}
/* =========================================================
   🔹 11. CONTACTO
========================================================= */
.contact-section {
  background: linear-gradient(
    to bottom,
    #0f2f2f 0%,
    #0b2424 100%
  );

  padding: 60px 0; /* 🔥 reducido */
}

/* HEADER */
.contact-header {
  text-align: center;
  margin-bottom: 35px; /* 🔥 reducido */
}

.contact-header h2 {
  color: white;
  font-size: 28px; /* 🔥 más equilibrado */
  margin-bottom: 8px;
  border-left: none;
  position: relative;
}

.contact-header h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 2px;
  background: #4fd1c5;
  margin: 8px auto 0 auto;
}

.contact-header p {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  max-width: 500px;
  margin: 0 auto;
}

/* GRID */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px; /* 🔥 menos separación */
}

/* CARD */
.contact-card {
  background: rgba(255,255,255,0.05);
  padding: 20px 18px; /* 🔥 más compacta */
  border-radius: 10px;

  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(5px);

  text-align: center;

  transition: all 0.25s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.08);
}

/* TITULO CARD */
.contact-card h5 {
  color: #4fd1c5;
  font-size: 16px;
  margin-bottom: 8px;
}

/* TEXTO */
.contact-card p {
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  margin-bottom: 12px;
}

/* BOTONES */
.contact-card .btn {
  width: 100%;
  padding: 8px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
}

@media (max-width: 768px) {

  .contact-section {
    padding: 50px 0;
  }

  .contact-header {
    margin-bottom: 25px;
    padding: 0 10px;
  }

  .contact-header h2 {
    font-size: 26px;
    line-height: 1.3;
  }

  .contact-header p {
    font-size: 14px;
    line-height: 1.6;
  }

  /* GRID */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  /* CARD */
  .contact-card {
    padding: 18px 16px;
  }

  .contact-card h5 {
    font-size: 15px;
  }

  .contact-card p {
    font-size: 13px;
    line-height: 1.6;
  }

  /* BOTONES */
  .contact-card .btn {
    padding: 10px;
    font-size: 14px;
  }

}
