:root {
  --navy: #071f3d;
  --navy-dark: #041426;
  --navy-soft: #102b4d;
  --gold: #cfa64a;
  --gold-light: #efd58c;
  --white: #ffffff;
  --gray-50: #f6f7f9;
  --gray-100: #edf0f4;
  --gray-300: #c8d0da;
  --gray-600: #4d5b6d;
  --gray-800: #152033;
  --radius: 20px;
  --shadow: 0 18px 45px rgba(4, 20, 38, 0.13);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", Arial, Helvetica, sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.narrow-container {
  width: min(980px, 92%);
}

/* HEADER */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--gray-100);
  backdrop-filter: blur(14px);
}

.navbar {
  min-height: 118px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-full-logo {
  display: flex;
  align-items: center;
  height: 100%;
}

.brand-full-img {
  width: 360px;
  height: auto;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 800;
  color: var(--gray-800);
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-cta {
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
}

.nav-cta:hover {
  color: var(--white) !important;
  background: var(--navy-soft);
}

.menu-toggle {
  display: none;
  border: none;
  background: var(--navy);
  color: var(--white);
  font-size: 22px;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
}


/* HERO */

.hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-dark);
}

.hero-background {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(4, 20, 38, 0.96) 0%,
      rgba(4, 20, 38, 0.88) 26%,
      rgba(4, 20, 38, 0.58) 48%,
      rgba(4, 20, 38, 0.18) 72%,
      rgba(4, 20, 38, 0.08) 100%),
    url("assets/portada-comercio-exterior.jpg");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 48%, rgba(207, 166, 74, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(4, 20, 38, 0.12), rgba(4, 20, 38, 0.38));
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  align-items: center;
  padding: 105px 0;
}

.hero-text {
  max-width: 920px;
}

.eyebrow {
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2.4px;
  font-size: 12px;
  margin-bottom: 20px;
}

.hero h1 {
  color: var(--white);
  max-width: 860px;
  margin-bottom: 34px;
  line-height: 1.08;
}

.hero-gold-line {
  display: block;
  color: var(--gold);
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: clamp(54px, 5.8vw, 96px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 16px;
  white-space: nowrap;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.hero-title-text {
  display: block;
  color: var(--white);
  font-size: clamp(28px, 3vw, 48px);
  font-weight: 800;
  line-height: 1.12;
  max-width: 820px;
}

.no-break {
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* SECTIONS */

.section {
  padding: 92px 0;
}

.section-light {
  background: var(--gray-50);
}

.section-heading {
  max-width: 850px;
  margin-bottom: 42px;
}

.section-heading.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading h2 {
  color: var(--navy);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  margin-bottom: 16px;
  font-weight: 900;
}

.section-heading p {
  color: var(--gray-600);
  font-size: 16px;
}

/* HISTORIA */

.history-text {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  font-size: 18px;
  color: var(--gray-600);
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 26px;
  padding: 42px;
  box-shadow: var(--shadow);
}

.history-text p {
  margin-bottom: 18px;
}

.history-text p:last-child {
  margin-bottom: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 38px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 8px 30px rgba(4, 20, 38, 0.07);
  border-top: 4px solid var(--gold);
}

.stat-card span {
  color: var(--gold);
  font-weight: 900;
  font-size: 13px;
}

.stat-card h3 {
  color: var(--navy);
  margin: 12px 0;
  font-size: 22px;
  line-height: 1.25;
}

.stat-card p {
  color: var(--gray-600);
}

/* EMPRESAS */

.company-logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 70px;
  align-items: center;
  justify-items: center;
}

.company-logo-circle {
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid rgba(207, 166, 74, 0.28);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 36px rgba(4, 20, 38, 0.08);
  overflow: hidden;
}

.company-logo-circle img {
  width: 82%;
  height: 82%;
  object-fit: contain;
}

/* MISION Y VISION */

.mission-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.mission-card {
  border-radius: 24px;
  padding: 42px;
  box-shadow: var(--shadow);
}

.dark-card {
  background:
    radial-gradient(circle at top right, rgba(207, 166, 74, 0.16), transparent 35%),
    var(--navy);
  color: var(--white);
}

.mission-card .eyebrow {
  color: var(--gold-light);
}

.mission-card h2 {
  color: var(--gold-light);
  margin-bottom: 16px;
  font-size: 28px;
}

.mission-card p {
  color: #edf3f9;
}

/* VALUES */

.values-section {
  background:
    linear-gradient(135deg, rgba(4, 20, 38, 0.96), rgba(7, 31, 61, 0.95)),
    radial-gradient(circle at 85% 25%, rgba(207, 166, 74, 0.2), transparent 30%);
}

.values-section .section-heading h2 {
  color: var(--white);
}

.values-title {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.values-title span {
  display: block;
}

.values-section .section-heading p {
  color: #dce5ef;
}

.values-grid-five {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}

.values-grid-five .value-card {
  min-height: 230px;
}

/* Primera fila: 3 cuadros */
.values-grid-five .value-card:nth-child(1) {
  grid-column: 1 / span 2;
}

.values-grid-five .value-card:nth-child(2) {
  grid-column: 3 / span 2;
}

.values-grid-five .value-card:nth-child(3) {
  grid-column: 5 / span 2;
}

/* Segunda fila: 2 cuadros centrados */
.values-grid-five .value-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.values-grid-five .value-card:nth-child(5) {
  grid-column: 4 / span 2;
}

.value-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(239, 213, 140, 0.24);
  border-radius: var(--radius);
  padding: 34px;
  color: var(--white);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16);
}

.value-card h3 {
  color: var(--gold-light);
  font-size: 24px;
  margin-bottom: 14px;
}

.value-card p {
  color: #edf3f9;
}

/* SERVICES */

.services-main-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.service-main-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 26px;
  padding: 36px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 30px rgba(4, 20, 38, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-main-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-number {
  display: inline-block;
  color: var(--gold);
  font-weight: 900;
  margin-bottom: 16px;
}

.service-main-card h3 {
  color: var(--navy);
  font-size: 30px;
  margin-bottom: 14px;
}

.service-main-card p {
  color: var(--gray-600);
}

.btn-service {
  margin-top: 26px;
  background: var(--navy);
  color: var(--white);
  width: fit-content;
}

.btn-service:hover {
  background: var(--gold);
  color: var(--navy-dark);
}

.service-detail-panel {
  display: none;
  margin-top: 28px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 26px;
  padding: 34px;
  box-shadow: var(--shadow);
}

.service-detail-panel.active {
  display: block;
}

.service-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.service-detail-header h3 {
  color: var(--navy);
  font-size: 30px;
}

.service-detail-header button {
  border: none;
  background: var(--navy);
  color: var(--white);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service-detail-item {
  border-left: 4px solid var(--gold);
  background: var(--gray-50);
  border-radius: 16px;
  padding: 22px;
}

.service-detail-item h4 {
  color: var(--navy);
  font-size: 20px;
  margin-bottom: 8px;
}

.service-detail-item p {
  color: var(--gray-600);
}

/* COBERTURA */

.map-wrapper {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  display: flex;
  justify-content: center;
}

.map-wrapper img {
  width: 70%;
  max-width: 760px;
  display: block;
  border-radius: 20px;
}

/* CONTACT */

.contact-section {
  background:
    linear-gradient(135deg, rgba(246, 247, 249, 1), rgba(237, 240, 244, 1));
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 42px;
  align-items: start;
}

.contact-grid h2 {
  color: var(--navy);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  margin-bottom: 16px;
  font-weight: 900;
}

.contact-grid p {
  color: var(--gray-600);
}

.contact-cards {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-left: 5px solid var(--gold);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 30px rgba(4, 20, 38, 0.07);
}

.contact-card h3 {
  color: var(--navy);
  font-size: 24px;
  margin-bottom: 12px;
  font-weight: 900;
}

.contact-card p {
  margin-bottom: 8px;
}

.contact-card a {
  color: var(--navy);
  font-weight: 700;
}

.map-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--gold) !important;
  font-weight: 900 !important;
}

.form-social-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.contact-form {
  background: var(--white);
  border-radius: 26px;
  padding: 34px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  width: 100%;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-weight: 900;
  font-size: 14px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--gray-300);
  border-radius: 12px;
  padding: 13px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--gray-800);
  outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(207, 166, 74, 0.18);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-links-under-form {
  justify-content: center;
  margin-top: 22px;
  margin-bottom: 0;
}

.social-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
  border: 1px solid rgba(207, 166, 74, 0.35);
}

.social-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.social-icon:hover {
  background: var(--gold);
  color: var(--navy-dark);
  transform: translateY(-3px);
}

/* FOOTER */

.footer {
  background: var(--navy-dark);
  color: var(--white);
  padding-top: 58px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer h3,
.footer h4 {
  margin-bottom: 14px;
  color: var(--white);
}

.footer p,
.footer li {
  color: #c8d0da;
  font-size: 14px;
  margin-bottom: 8px;
}

.footer-bottom {
  margin-top: 38px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px;
  text-align: center;
  color: #c8d0da;
  font-size: 14px;
}

/* WHATSAPP */

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1001;
  background: #25d366;
  color: var(--white);
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px);
}

/* RESPONSIVE */

/* VALORES CUSTOM - AJUSTE FINAL */

.valores-custom-section {
  background:
    linear-gradient(135deg, rgba(4, 20, 38, 0.96), rgba(7, 31, 61, 0.95)),
    radial-gradient(circle at 85% 25%, rgba(207, 166, 74, 0.2), transparent 30%) !important;
}

.valores-custom-heading {
  text-align: center;
  max-width: 1180px;
  margin: 0 auto 50px auto;
}

.valores-custom-heading h2 {
  color: #ffffff;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.12;
  font-weight: 900;
  margin: 0;
}

.valores-custom-grid {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 24px !important;
}

.valores-custom-card {
  min-height: 230px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(239, 213, 140, 0.24);
  border-radius: 20px;
  padding: 34px;
  color: #ffffff;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16);
}

.valores-custom-card h3 {
  color: #efd58c;
  font-size: 24px;
  margin-bottom: 14px;
}

.valores-custom-card p {
  color: #edf3f9;
  font-size: 16px;
  line-height: 1.7;
}

.valores-custom-card:nth-child(1) {
  grid-column: 1 / span 2;
}

.valores-custom-card:nth-child(2) {
  grid-column: 3 / span 2;
}

.valores-custom-card:nth-child(3) {
  grid-column: 5 / span 2;
}

.valores-custom-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.valores-custom-card:nth-child(5) {
  grid-column: 4 / span 2;
}

/* TABLET */

@media (max-width: 1080px) {
  .container {
    width: min(94%, 980px);
  }

  .navbar {
    min-height: 92px;
  }

  .brand-full-img {
    width: 300px;
  }

  .nav-links {
    gap: 16px;
    font-size: 13px;
  }

  .hero {
    min-height: 680px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding: 90px 0;
  }

  .hero-text {
    max-width: 720px;
  }

  .hero-background {
    background-position: center right;
  }

  .hero-gold-line {
    font-size: clamp(56px, 9vw, 86px);
  }

  .hero-title-text {
    font-size: clamp(30px, 5vw, 44px);
    max-width: 700px;
  }

  .stats-grid,
  .mission-grid,
  .services-main-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .company-logo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .company-logo-circle {
    width: 320px;
    height: 320px;
  }

  .map-wrapper img {
    width: 85%;
  }

  .valores-custom-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .valores-custom-card:nth-child(1),
  .valores-custom-card:nth-child(2),
  .valores-custom-card:nth-child(3),
  .valores-custom-card:nth-child(4),
  .valores-custom-card:nth-child(5) {
    grid-column: auto;
  }
}

/* CELULAR */

@media (max-width: 780px) {
  .container {
    width: 92%;
  }

  .section {
    padding: 64px 0;
  }

  .navbar {
    min-height: 76px;
  }

  .brand-full-img {
    width: 220px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px 4%;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 13px 0;
  }

  .nav-cta {
    text-align: center;
    margin-top: 8px;
    padding: 12px 18px !important;
  }

  .hero {
    min-height: auto;
  }

  .hero-background {
    background:
      linear-gradient(90deg,
        rgba(4, 20, 38, 0.98) 0%,
        rgba(4, 20, 38, 0.90) 45%,
        rgba(4, 20, 38, 0.45) 100%),
      url("assets/portada-comercio-exterior.jpg");
    background-size: cover;
    background-position: 62% center;
    background-repeat: no-repeat;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding: 78px 0;
  }

  .hero-text {
    max-width: 100%;
  }

  .eyebrow {
    font-size: 11px;
    letter-spacing: 1.8px;
    margin-bottom: 16px;
  }

  .hero-gold-line {
    font-size: clamp(48px, 15vw, 70px);
    line-height: 1;
    letter-spacing: -1px;
    white-space: normal;
  }

  .hero-title-text {
    font-size: clamp(28px, 8vw, 38px);
    line-height: 1.12;
    max-width: 100%;
  }

  .no-break {
    white-space: normal;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .section-heading h2,
  .valores-custom-heading h2,
  .contact-grid h2 {
    font-size: clamp(28px, 8vw, 38px);
    line-height: 1.15;
  }

  .history-text {
    padding: 26px;
    font-size: 15px;
    text-align: left;
  }

  .stats-grid,
  .service-detail-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stat-card,
  .mission-card,
  .service-main-card,
  .contact-card,
  .contact-form,
  .valores-custom-card {
    padding: 24px;
  }

  .company-logo-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .company-logo-circle {
    width: 260px;
    height: 260px;
  }

  .company-logo-circle img {
    width: 78%;
    height: 78%;
  }

  .valores-custom-grid {
    grid-template-columns: 1fr !important;
  }

  .valores-custom-card:nth-child(1),
  .valores-custom-card:nth-child(2),
  .valores-custom-card:nth-child(3),
  .valores-custom-card:nth-child(4),
  .valores-custom-card:nth-child(5) {
    grid-column: auto;
  }

  .map-wrapper img {
    width: 100%;
  }

  .contact-grid {
    gap: 28px;
  }

  .contact-form {
    gap: 16px;
  }

  .social-links-under-form {
    margin-top: 18px;
  }

  .footer {
    padding-top: 44px;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    padding: 12px 16px;
    font-size: 14px;
  }
}

/* CELULAR MUY PEQUEÑO */

@media (max-width: 430px) {
  .brand-full-img {
    width: 185px;
  }

  .menu-toggle {
    font-size: 20px;
    padding: 7px 10px;
  }

  .hero-content {
    padding: 66px 0;
  }

  .hero-gold-line {
    font-size: clamp(42px, 14vw, 58px);
  }

  .hero-title-text {
    font-size: clamp(25px, 7vw, 32px);
  }

  .company-logo-circle {
    width: 220px;
    height: 220px;
  }

  .contact-card p {
    font-size: 14px;
  }

  .social-icon {
    width: 44px;
    height: 44px;
  }
}