/* Variables */
:root {
  --primary-color: #0047ab;
  --secondary-color: #001f54;
  --accent-color: #006ddb;
  --text-color: #333333;
  --light-text: #777777;
  --background-color: #ffffff;
  --light-background: #f5f7fa;
  --border-color: #e5e8ec;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero Banner */
.hero-banner {
  margin-top: 176px;
  background-image: url("../../img/contact-us/banner-contact-us.png");
  background-size: cover;
  background-position: bottom;
  color: white;
  padding: 80px 0;
  height: 438px;
  text-align: center;
  position: relative;
}

.hero-banner .container {
  position: relative;
  z-index: 1;
}

.hero-banner h1 {
  font-size: 70px;
  color: #e8effc;
  font-weight: 400;
}

.hero-banner p {
  color: #edf3fd;
  font-size: 17px;
  max-width: 600px;
  font-weight: 100;
  margin: 41px auto;
}

/* Tarjetas de Contacto */
.contact-cards {
}

.contact-cards .container {
  display: flex;
  position: relative;
  justify-content: center;
  bottom: 170px;
  gap: 12px;
}

:root {
  --primary-color: #002266;
  --light-text: #ffffff;
  --border-radius: 20px;
}

.card {
  background-color: var(--primary-color);
  border-radius: var(--border-radius);
  width: 374px;
  height: 335px;
  position: relative;
  color: var(--light-text);
  overflow: hidden;
}

.card-image {
  padding: 43px 0 0 30px;
}

.card-image img {
  width: 195px;
  height: 96px;
  border-radius: 63px;
  object-fit: cover;
}

.card h3 {
  padding: 20px 30px 10px;
  color: var(--light-text);
  margin: 0;
  font-size: 27px;
  letter-spacing: -0.68px;
  font-weight: 400;
}

.card p {
  color: #e8effc;
  font-size: 16px;
  line-height: 1.5;
  margin-top: 0px;
  opacity: 0.9;
  margin-bottom: 16px;
  font-weight: lighter;
}

.card-content {
  display: flex;
  padding: 0px 25px;
  height: 126px;
  flex-direction: column;
}

.card-content p {
  height: 49px;
}

.btn-circle {
  width: 38px;
  height: 38px;
  background-color: #0044a6;
  border-radius: 50%;
  transform: rotate(90deg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  text-decoration: none;
}

/* Card variations */
.card.mexico {
  background-color: #e8effc;
}

.card.mexico p {
  color: #7b88a3;
}

.card.mexico h3 {
  background-color: #e8effc;
  font-weight: 500;
  color: #002266;
}

.card.careers {
  background-color: #ffffff;
}

.card.careers p {
  color: #7b88a3;
}

.card.careers h3 {
  font-weight: 500;

  color: #080a0d;
}

/* Sección Formulario de Contacto */
.contact-form-section {
}

.contact-form-section .container {
  display: flex;
  flex-direction: column;
  gap: 129px;
}

.contact-form-container {
  display: flex;
  justify-content: space-between;
}

.contact-info {
  width: 615px;
  margin-top: 100px;
}

.contact-info h2 {
  font-size: 36px;
  max-width: 495px;
  font-weight: 400;
  color: #002266;
  margin-bottom: 45px;
}

.info-block {
  margin-bottom: 30px;
}

.info-block h4 {
  color: #002266;
  margin-bottom: 10px;
  font-weight: 500;
}

.info-block p {
  color: #7b88a3;
  opacity: 0.9;
  font-size: 16px;
  font-weight: lighter;
  line-height: 22px;
}

.contact-form {
  background: #e8effc 0% 0% no-repeat padding-box;
  padding: 70px 99px;
  width: 615px;
  border-radius: 20px;
  opacity: 1;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-form h4 {
  color: #003366;
  font-size: 24px;
  margin: 0 0 35px 0;
  font-weight: normal;
}

.option-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
}

.option {
  padding: 0 15px;
  border-radius: 43px;
  width: 211px;
  height: 85px;
  background-color: white;
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
}

.option input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.option .radio-custom {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #002266;
  display: inline-block;
  background-color: white;
  margin-right: 12px;
  position: relative;
}

.option input[type="radio"]:checked + .radio-custom::after {
  content: "";
  position: absolute;
  position-area: center;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0044a6;
}

.option-selected {
  width: 192px;
  background-color: #0044a6;
  color: white;
}

.option-selected .radio-custom {
  border-color: white;
}

.option-selected input[type="radio"]:checked + .radio-custom::after {
  background: #0044a6;
}

.option-text {
  font-size: 17px;
  font-weight: 400;
}

.contact-input-container {
  width: 100%;
  max-width: 800px;
  margin: 37px 0px;
}

.contact-input-container label {
  display: block;
  color: #7b88a3;
  font-size: 16px;
  margin-bottom: 8px;
  font-weight: lighter;
}

.contact-input-container input {
  width: 100%;
  padding: 8px 0;
  border: none;
  border-bottom: 1px solid #002266;
  background-color: transparent;
  font-size: 16px;
  outline: none;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.form-group {
  margin-bottom: 25px;
  position: relative;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 30px 0;
  font-size: 12px;
  color: #666;
  line-height: 1.4;
  width: 401px;
  margin: 60px 0 34px;
  height: 49px;
}

.checkbox-container {
  position: relative;
  min-width: 18px;
  height: 18px;
}

.checkbox-container input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #bdd1f9;
  background-color: white;
  display: inline-block;
  position: relative;
}

.checkbox-container input[type="checkbox"]:checked + .checkbox-custom::after {
  content: "";
  position: absolute;
  align-self: anchor-center;
  position-area: center;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-color);
}

.submit-button {
  background: #0044a6 0% 0% no-repeat padding-box;
  color: white;
  border: none;
  width: 257px;
  height: 69px;
  border-radius: 35px;
  opacity: 1;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  display: block;
}

.submit-button:hover {
  background-color: #003795;
}

/* Ajustes para el selector de oficinas */
.select-container {
  position: relative;
}

.select-container select {
  width: 100%;
  padding: 15px 40px 15px 20px; /* Cambiado padding para mejor posicionamiento */
  border-radius: 12px;
  border: 1px solid #002266;
  background-color: transparent;
  font-size: 16px;
  font-weight: lighter;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  color: #002266;
  text-align: center; /* Centrar el texto */
}

.select-container::after {
  content: '';
  position: absolute;
  right: 20px; /* Posición ajustada */
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #002266;
  pointer-events: none;
}

/* Espacio entre el texto y la flecha */
.select-container select option {
  padding: 10px 15px;
  background-color: #e8effc; /* Mismo color de fondo que el formulario */
  color: #002266; /* Mismo color de texto que el select */
  border: 1px solid #002266; /* Mismo borde que el select */
  font-size: 16px;
  font-weight: lighter;
}

/* Mejora para soporte en más navegadores */
.select-container select option:hover,
.select-container select option:focus,
.select-container select option:checked {
  background-color: rgba(232, 239, 252, 0.8);
  color: #002266;
}

/* Asegurar que no haya un fondo default del navegador */
.select-container select option::-moz-selection {
  background-color: #e8effc;
  color: #002266;
}

.select-container select option::selection {
  background-color: #e8effc;
  color: #002266;
}

/* Estilo para cuando el select tiene focus */
.select-container select:focus {
  border-color: #0044a6;
}

/* Asegurar espacio entre texto y flecha */
.select-container select::-ms-expand {
  display: none;
}

/* Ajustar espaciado específico de 23px entre el texto y la flecha */
@supports (-webkit-appearance: none) or (-moz-appearance: none) {
  .select-container select {
    padding-right: calc(23px + 12px + 6px); /* 23px de separación + 12px para la flecha + 6px de margen */
  }
}

/* Sección Oficinas Nacionales */
.national-offices {
  margin-top: 60px;
}

.national-offices h2 {
  text-align: center;
  font-size: 38px;
  font-weight: 400;
  color: #012d74;
  margin-bottom: 30px;
}

.national-offices > .container > p {
  text-align: center;
  max-width: 615px;
  opacity: 0.65;
  margin: 0 auto 50px;
  font-weight: lighter;
  color: #7b88a3
}

.offices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-items: center;
  gap: 20px 0px
}

.office-card {
  background-color: white;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  width: 671px;
  height: 155px;
}

.office-card.expanded {
  height: 806px;
}

.office-header {
  padding: 42px 125px 36px 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.office-header h3 {
  font-size: 28px;
  color: #002266;
  font-weight: 500;
}

.country {
  font-size: 14px;
  color: #002266;
  font-weight: lighter;
  display: block;
  margin-bottom: 10px;
}

.office-header h3 {
  margin-bottom: 0;
}

.btn-expand {
  width: 49px;
  height: 49px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  padding: 0px;
}

.office-details {
  padding: 0px 125px 0px 76px;
  display: none;
  /* Oculto por defecto */
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.office-details .address {
  color: #002266;
  font-size: 16px;
  font-weight: lighter;
  line-height: 1.5;
  margin: 0;
}

.address-info {
  height: 109px;
  align-content: center;
}

.contact-details {
  height: 102px;
  align-content: center;
}

.contact-details p {
  color: #002266;
  font-size: 16px;
  font-weight: lighter;
  line-height: 1.5;
}

.manager-info {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  align-items: flex-start;
}

.manager-icon {
  width: 49px;
  height: 49px;
  background-color: #0044a6;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.manager-icon img {
  width: 16px;
  height: 19px;
}

/* .manager-details p {
    margin: 0;
} */

.manager-name {
  font-size: 20px;
  margin: 0;
  font-weight: 500;
}

.manager-position {
  font-size: 20px;
  margin: 0;
  font-weight: lighter;
}

.manager-email {
  margin-top: 10px;
  margin-bottom: 4px;
  font-size: 20px;
  color: #0044a6;
  font-weight: lighter;
}

/* Mostrar contenido cuando está expandido */
.office-card.expanded .office-details {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Rotar el ícono cuando se expande */
.office-card.expanded .btn-expand {
  transform: rotate(180deg);
}

/* Sección Oficinas Internacionales */
.international-offices {
  padding: 80px 0;
}

.international-offices h2 {
  text-align: center;
  font-size: 38px;
  font-weight: 400;
  color: #012d74;
  margin-bottom: 30px;
}

.international-offices > .container > p {
  text-align: center;
  max-width: 615px;
  opacity: 0.65;
  margin: 0 auto 50px;
  font-weight: lighter;
  color: #7b88a3;
}

.world-map {
  justify-self: center;
  width: 758px;
  height: 332px;
  background-image: url("../../img/contact-us/world-map-contact-us.svg");
  background-size: cover;
  background-position: center;
}

.country-buttons-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-items: center;
  height: 100%;
  align-content: center;
  justify-self: center;
  column-gap: 46px;
  row-gap: 6px;
}

.country-button {
  width: 147px;
  height: 47px;
  background-color: white;
  align-items: center;
  border-radius: 24px;
  display: flex;
  gap: 12px;
  padding: 20px;
}

.country-button :hover{
    cursor: pointer;
}

.country-button p {
  font-size: 17px;
  color: #002266;
  margin: 0;
}

.country-flag {
  width: 21px;
  height: 21px;
}

.divider {
  width: 100%;
  border: 1px solid #96b1e321;
}

/* Estilos responsivos para contact-us manteniendo el diseño original */

/* Pantallas grandes (hasta 1280px) */
@media (max-width: 1610px) {
  .container {
    max-width: 1100px;
  }

  /* Tarjetas de contacto */
  .contact-cards .container {
    gap: 10px;
  }

  .card {
    width: 340px;
    height: 320px;
  }

  /* Formulario de contacto */
  .contact-info {
    width: 520px;
  }

  .contact-form {
    width: 100%;
    max-width: 520px;
    padding: 60px 80px;
  }

  /* Oficinas nacionales */
  .offices-grid {
    gap: 20px;
  }

  .office-card {
    width: 540px;
  }

  .office-header {
    padding: 35px 100px 30px 60px;
  }

  .office-details {
    padding: 0px 100px 0px 60px;
  }

  .map, .map iframe {
    width: 480px;
    height: 210px;
  }

  /* Oficinas internacionales */
  .world-map {
    width: 700px;
    height: 310px;
  }
}

/* Tablets (hasta 992px) */
@media (max-width: 1610px) {
  .container {
    max-width: 900px;
    padding: 0 20px;
  }

  /* Hero Banner */
  .hero-banner {
    margin-top: 150px;
    height: 380px;
    padding: 60px 0;
  }

  .hero-banner h1 {
    font-size: 55px;
  }

  .hero-banner p {
    font-size: 16px;
    max-width: 500px;
    margin: 30px auto;
  }

  /* Tarjetas de contacto */
  .contact-cards .container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    bottom: 140px;
  }

  .card {
    width: 280px;
    height: 300px;
  }

  .card-image {
    padding: 30px 0 0 25px;
  }

  .card-image img {
    width: 160px;
    height: 80px;
  }

  .card h3 {
    font-size: 22px;
    padding: 15px 25px 8px;
  }

  .card-content p{
    height: 68px;
  }


  /* Formulario de contacto */
  .contact-form-section .container {
    gap: 100px;
  }

  .contact-form-container {
    flex-direction: column;
    align-items: center;
  }

  .contact-info {
    width: 90%;
    margin-bottom: 30px;
  }

  .contact-form {
    height: auto;
    padding: 50px 60px;
  }

  .option {
    width: 190px;
    height: 75px;
  }

  .checkbox-group {
    width: 100%;
  }

  /* Oficinas nacionales */
  .offices-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .office-card {
    width: 90%;
    max-width: 600px;
  }

  /* Oficinas internacionales */
  .world-map {
    width: 600px;
    height: 280px;
  }

  .country-buttons-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablets pequeñas y móviles grandes (hasta 768px) */
@media (max-width: 768px) {
  .container {
    max-width: 700px;
  }

  /* Hero Banner */
  .hero-banner {
    margin-top: 130px;
    height: 330px;
    padding: 50px 0;
  }

  .hero-banner h1 {
    font-size: 45px;
  }

  .hero-banner p {
    font-size: 15px;
    max-width: 450px;
  }

  /* Tarjetas de contacto */
  .contact-cards .container {
    bottom: 110px;
  }

  .card {
    width: 220px;
    height: 280px;
  }

  .card-image {
    padding: 25px 0 0 20px;
  }

  .card-image img {
    width: 140px;
    height: 70px;
  }

  .card h3 {
    font-size: 20px;
    padding: 12px 20px 6px;
  }

  .card p {
    font-size: 14px;
  }

  .card-content {
    padding: 0px 20px;
  }

  .card-content p{
    height: 68px;

  }

  /* Formulario de contacto */
  .contact-info h2 {
    font-size: 30px;
    max-width: 400px;
  }

  .contact-form {
    padding: 40px 50px;
  }

  .option-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .option, .option-selected {
    width: 100%;
    height: 60px;
  }

  /* Oficinas nacionales */
  .national-offices h2,
  .international-offices h2 {
    font-size: 32px;
  }

  .national-offices > .container > p,
  .international-offices > .container > p {
    max-width: 500px;
  }

  .office-header {
    padding: 30px 70px 25px 40px;
  }

  .office-header h3 {
    font-size: 24px;
  }

  .office-details {
    padding: 0px 70px 0px 40px;
  }

  .map, .map iframe {
    width: 100%;
    max-width: 450px;
    height: 200px;
    margin: 20px auto !important;
  }

  /* Oficinas internacionales */
  .world-map {
    width: 500px;
    height: 250px;
  }

  .country-buttons-container {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 15px;
  }

  .country-button {
    width: 130px;
    height: 40px;
  }

  .country-button p {
    font-size: 15px;
  }
}

/* Móviles (hasta 576px) */
@media (max-width: 576px) {
  /* Hero Banner */
  .hero-banner {
    margin-top: 110px;
    height: 310px;
    padding: 40px 0;
  }

  .hero-banner h1 {
    font-size: 38px;
  }

  .hero-banner p {
    font-size: 14px;
    max-width: 320px;
    margin: 25px auto;
  }

  /* Tarjetas de contacto */
  .contact-cards .container {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .card {
    width: 320px;
    height: 220px;
  }

  .card-image {
    padding: 20px 0 0 20px;
  }

  .card-image img {
    width: 120px;
    height: 60px;
  }
  
  .card-content p{
    height: 32px;

  }

  .btn-circle{
    width: 30px;
    height: 30px;
  }

  /* Formulario de contacto */
  .contact-info h2 {
    font-size: 26px;
    max-width: 320px;
    margin-bottom: 30px;
  }

  .info-block h4 {
    font-size: 18px;
  }

  .info-block p {
    font-size: 14px;
  }

  .contact-form {
    padding: 40px 30px;
  }

  .contact-form h4 {
    font-size: 20px;
    margin-bottom: 25px;
  }

  .option-text {
    font-size: 15px;
  }

  .contact-input-container {
    margin: 25px 0px;
  }

  .contact-input-container label {
    font-size: 14px;
  }

  .checkbox-group {
    height: auto;
    margin: 40px 0 30px;
  }

  .submit-button {
    width: 200px;
    height: 60px;
  }

  /* Oficinas nacionales */
  .national-offices h2,
  .international-offices h2 {
    font-size: 28px;
  }

  .national-offices > .container > p,
  .international-offices > .container > p {
    font-size: 14px;
    max-width: 320px;
  }

  .office-card {
    width: 100%;
  }

  .office-header {
    padding: 25px 30px 20px 25px;
  }

  .office-header h3 {
    font-size: 22px;
  }

  .country {
    font-size: 12px;
  }

  .btn-expand {
    width: 40px;
    height: 40px;
  }

  .office-details {
    padding: 0px 30px 0px 25px;
  }

  .address-info, .contact-details {
    height: auto;
  }

  .address, .contact-details p {
    font-size: 14px;
  }

  .manager-name, .manager-position, .manager-email {
    font-size: 16px;
  }

  .manager-icon {
    width: 40px;
    height: 40px;
  }

  /* Oficinas internacionales */
  .world-map {
    width: 100%;
    height: 200px;
  }

  .country-buttons-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 15px;
  }

  .country-button {
    width: 120px;
    height: 36px;
    padding: 15px;
  }

  .country-button p {
    font-size: 13px;
  }

  .country-flag {
    width: 18px;
    height: 18px;
  }
}

/* Móviles pequeños (hasta 375px) */
@media (max-width: 375px) {
  /* Hero Banner */
  .hero-banner {
    margin-top: 169px;
    height: 290px;
  }

  .hero-banner h1 {
    font-size: 32px;
  }

  .hero-banner p {
    font-size: 13px;
    max-width: 280px;
  }

  /* Tarjetas de contacto */
  .card {
    width: 280px;
    height: 210px
  }

  .card h3{
    font-size: 16px;
  }

  .card .card-content p{
    font-size: 12px;
    height: auto;
  }

  .btn-circle{
    width: 25px;
    height: 25px;
  }

  /* Formulario de contacto */
  .contact-info {
    padding: 30px 20px;
  }

  .contact-info h2 {
    font-size: 22px;
  }

  .contact-form {
    padding: 30px 20px;
  }

  .option, .option-selected {
    height: 50px;
  }

  /* Oficinas nacionales */
  .national-offices h2,
  .international-offices h2 {
    font-size: 24px;
  }

  .office-card.expanded{
    height: auto;
  }

  .office-header {
    padding: 20px 25px 15px 20px;
  }

  .office-details {
    padding: 0px 25px 0px 20px;
  }

  .map, .map iframe {
    height: 170px;
  }

  /* Oficinas internacionales */
  .world-map {
    height: 180px;
  }

  .country-button {
    width: 110px;
    height: 32px;
    gap: 8px;
  }

  .country-button p {
    font-size: 12px;
  }
}
