/* ==========================================================================
   VARIABLES Y ESTILOS GLOBALES - GRUPO CÓNDOR PERUMEX S.A.C.
   TEMA CLARO - COLORES ASOCIADOS A MINERÍA
   Blancos, beige, dorado mineral, azul cielo, grises piedra
   ========================================================================== */
:root {
  --primary-gold: #c9a227;
  --secondary-gold: #b87333;
  --dark-gold: #996515;
  --accent-gold: #c9a227;
  --accent-gold-light: #e8d48b;
  --accent-copper: #b87333;
  --accent-blue: #2a5a8a;
  --accent-blue-light: #4a7ab0;
  --bg-dark: #1e2a3a;
  --bg-card: #152238;
  --text-main: #1a2332;
  --text-dark: #1a2332;
  --text-medium: #3d4a5c;
  --text-muted: #5a6a7e;
  --bg-light: #f8f6f2;
  --bg-white: #ffffff;
  --bg-beige: #f3efe6;
  --bg-sand: #e8e0d2;
  --border-light: #e0d8c8;
  --white: #FFFFFF;
  --shadow-soft: 0 8px 30px rgba(26, 35, 50, 0.08);
  --shadow-card: 0 12px 40px rgba(26, 35, 50, 0.12);
  --font-heading: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

a, .clickable-card {
  text-decoration: none !important;
}

.clickable-card {
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.clickable-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 45px rgba(26, 35, 50, 0.15);
}

.container {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
}

.section-padding {
  padding: 95px 0;
}

.bg-light {
  background-color: var(--bg-beige) !important;
}

.bg-dark-section {
  background-color: var(--bg-dark);
  background-image: url('../images/fondos/planisferio.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
  animation: fadeInMap 1.4s ease-out forwards;
}

@keyframes fadeInMap {
  from { opacity: 0; }
  to { opacity: 1; }
}

.bg-dark-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(30, 42, 58, 0.55);
  z-index: 0;
  pointer-events: none;
}

.bg-dark-section > .container {
  position: relative;
  z-index: 1;
}

/* Texto claro en secciones con planisferio / fondo oscuro */
.bg-dark-section .section-header.light-text .sub-title,
.bg-dark-section .section-header.light-text .section-title {
  color: #FFFFFF !important;
  text-shadow: 0 2px 10px rgba(0,0,0,0.55);
}
.bg-dark-section .section-desc.light {
  color: #CBD5E1 !important;
}
.bg-dark-section .pipe-step h4,
.bg-dark-section .pipe-step p {
  color: #E2E8F0;
}
.bg-dark-section .countries-grid .country-pill {
  color: #fff;
}


.overflow-hidden {
  overflow: hidden;
}

/* ==========================================================================
   HEADER CLARO + BANDERAS
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 20px rgba(26, 35, 50, 0.06);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  padding: 10px 0;
  box-shadow: 0 4px 25px rgba(26, 35, 50, 0.1);
}

.header-container {
  width: 92%;
  max-width: 1350px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.5px;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
  align-items: center;
}

.main-nav a {
  color: var(--text-medium);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: var(--transition);
  padding: 6px 0;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent-gold);
  transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent-blue);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.main-nav .btn-contact {
  background: var(--accent-gold);
  color: #fff !important;
  border: none;
  padding: 8px 18px;
  border-radius: 4px;
}

.main-nav .btn-contact:hover {
  background: var(--accent-copper);
  color: #fff !important;
}

.main-nav .btn-contact::after {
  display: none;
}

/* Contenedor derecho: banderas + conmutador en UNA sola fila alineada */
.header-right-tools {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 0;
}

.header-flags {
  position: static;
  transform: none;
  pointer-events: auto;
  line-height: 0;
  flex-shrink: 0;
}

.header-flags img {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.18));
  transition: transform 0.25s ease;
  display: block;
}

.header-flags img:hover {
  transform: scale(1.05);
}

.lang-switch {
  position: static;
  transform: none;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: #fff;
  border: 1px solid var(--border-light, #e0d8c8);
  border-radius: 20px;
  padding: 3px 4px;
  box-shadow: 0 2px 10px rgba(26, 35, 50, 0.1);
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

.lang-switch a {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-muted, #5a6a7e);
  padding: 5px 9px;
  border-radius: 14px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  line-height: 1;
}

.lang-switch a:hover { color: var(--accent-blue, #2a5a8a); }

.lang-switch a.active {
  background: var(--accent-gold, #c9a227);
  color: #fff !important;
}

@media (min-width: 993px) {
  .main-nav {
    margin-right: 200px !important; /* espacio para tools */
  }
  .header-right-tools {
    right: 1rem;
  }
  .header-flags img {
    height: 38px;
  }
}

@media (max-width: 992px) {
  .header-right-tools {
    right: 3.5rem; /* espacio para hamburguesa */
    gap: 8px;
  }
  .header-flags img {
    height: 28px;
  }
  .lang-switch a {
    font-size: 0.68rem;
    padding: 4px 7px;
  }
}

@media (max-width: 480px) {
  .header-right-tools {
    right: 3.2rem;
    gap: 6px;
  }
  .header-flags img {
    height: 24px;
  }
  .lang-switch a {
    font-size: 0.64rem;
    padding: 3px 6px;
  }
}

/* Hamburger */
.hamburger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 10;
}

.hamburger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  transition: var(--transition);
}

/* ==========================================================================
   HERO - FOTO ORIGINAL (overlay transparente)
   ========================================================================== */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 650px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-dark);
  padding: 0 20px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent !important;
  opacity: 0 !important;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2.5rem 2.8rem;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--accent-gold) !important;
  color: #fff !important;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 30px;
  margin-bottom: 20px;
  border: none;
}

.hero-content h2 {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-dark) !important;
  text-shadow: none !important;
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--text-medium) !important;
  margin-bottom: 35px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: var(--transition);
  display: inline-block;
}

.btn-primary {
  background: var(--accent-blue) !important;
  color: #fff !important;
  border: none !important;
}

.btn-primary:hover {
  background: var(--accent-blue-light) !important;
  transform: translateY(-3px);
}

.btn-secondary {
  background: transparent !important;
  color: var(--text-dark) !important;
  border: 2px solid var(--text-dark) !important;
}

.btn-secondary:hover {
  background: var(--text-dark) !important;
  color: #fff !important;
  transform: translateY(-3px);
}

.scroll-down-indicator {
  position: absolute;
  bottom: 25px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dark) !important;
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.75);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.scroll-down-indicator .arrow {
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--text-dark);
  border-bottom: 2px solid var(--text-dark);
  transform: rotate(45deg);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: rotate(45deg) translateY(0); }
  40% { transform: rotate(45deg) translateY(-8px); }
  60% { transform: rotate(45deg) translateY(-4px); }
}

/* ==========================================================================
   TÍTULOS DE SECCIÓN
   ========================================================================== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header.light-text .section-title,
.section-header.light-text .sub-title {
  color: var(--text-dark) !important;
  text-shadow: 0 1px 4px rgba(255,255,255,0.9);
}

.section-header.light-text .title-line {
  background: var(--accent-gold) !important;
}

.sub-title {
  color: var(--accent-copper) !important;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  color: var(--text-dark) !important;
  margin-top: 5px;
}

.title-line {
  width: 60px;
  height: 3px;
  background: var(--accent-gold) !important;
  margin: 15px auto 0;
}

.section-desc {
  max-width: 700px;
  margin: 18px auto 0;
  color: var(--text-medium);
  font-size: 1rem;
}

.section-desc.light {
  color: #e8e4dc;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: linear-gradient(180deg, #1e2a3a 0%, #15202e 100%) !important;
  color: #e8e4dc !important;
  padding: 70px 0 30px;
}

.site-footer h3,
.site-footer h4 {
  color: #fff !important;
  font-family: var(--font-heading);
  margin-bottom: 16px;
}

.site-footer p,
.site-footer .ruc {
  color: #c8c2b6 !important;
  font-size: 0.92rem;
  line-height: 1.6;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  height: 48px;
  width: auto;
  margin-bottom: 12px;
}

.webmail-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-gold) !important;
  color: #1a2332 !important;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 6px;
  transition: var(--transition);
  margin-top: 8px;
}

.webmail-btn:hover {
  background: var(--accent-gold-light) !important;
}

.webmail-note {
  font-size: 0.8rem !important;
  margin-top: 10px;
  opacity: 0.85;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  color: #a8a296 !important;
  font-size: 0.85rem;
}

.flags-institutional {
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
}

.flags-institutional img {
  height: 46px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
}

/* ==========================================================================
   CTA BOX
   ========================================================================== */
.cta-box {
  text-align: center;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 50px 40px;
  box-shadow: var(--shadow-soft);
}

.cta-box h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.cta-box p {
  color: var(--text-medium);
  margin-bottom: 28px;
  font-size: 1.05rem;
}

/* ==========================================================================
   RESPONSIVE BASE
   ========================================================================== */
@media (max-width: 992px) {
  .hamburger-btn {
    display: flex;
  }
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-white);
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
    transition: right 0.35s ease;
    padding: 80px 30px 30px;
    z-index: 999;
    margin-right: 0 !important;
  }
  .main-nav.active {
    right: 0;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .brand-title {
    font-size: 0.95rem;
  }
  .brand-subtitle {
    font-size: 0.65rem;
  }
  .hero-content h2 {
    font-size: 1.9rem;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 600px) {
  .hero-content {
    padding: 1.8rem 1.5rem;
  }
  .section-title {
    font-size: 1.7rem;
  }
}

  font-size: 0.72rem;
  color: var(--primary-gold);
  font-weight: 500;
}

/* Menu */
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
  align-items: center;
}

.main-nav a {
  color: #E2E8F0;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: var(--transition);
  padding: 6px 0;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--primary-gold);
  transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary-gold);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.main-nav .btn-contact {
  border: 1px solid var(--primary-gold);
  padding: 8px 18px;
  border-radius: 4px;
  color: var(--primary-gold);
}

.main-nav .btn-contact:hover {
  background-color: var(--primary-gold);
  color: var(--bg-dark);
}

/* ==========================================================================
   HERO BANNER A PANTALLA COMPLETA
   ========================================================================== */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 650px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 0 20px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(11, 19, 32, 0.4) 0%, rgba(11, 19, 32, 0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background-color: rgba(212, 175, 55, 0.2);
  border: 1px solid var(--primary-gold);
  color: var(--primary-gold);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 30px;
  margin-bottom: 20px;
}

.hero-content h2 {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.hero-content p {
  font-size: 1.25rem;
  color: #CBD5E1;
  margin-bottom: 35px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.btn-primary, .btn-secondary {
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary-gold);
  color: var(--bg-dark);
}

.btn-primary:hover {
  background-color: var(--secondary-gold);
  color: var(--white);
  transform: translateY(-3px);
}

.btn-secondary {
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--bg-dark);
  transform: translateY(-3px);
}

.scroll-down-indicator {
  position: absolute;
  bottom: 25px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ==========================================================================
   TÍTULOS DE SECCIÓN
   ========================================================================== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header.light-text .section-title {
  color: var(--white);
}

.sub-title {
  color: var(--primary-gold);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  color: var(--bg-dark);
  margin-top: 5px;
}

.title-line {
  width: 60px;
  height: 3px;
  background-color: var(--primary-gold);
  margin: 15px auto 0;
}

/* ==========================================================================
   DISEÑO 1: EJES OPERATIVOS (PESTAÑAS CON PANEL PREVISUALIZADOR)
   ========================================================================== */
.ejes-tabs-wrapper {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 30px;
  background-color: rgba(18, 30, 49, 0.88);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
  position: relative;
  z-index: 1;
}

.tabs-navigation {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--white);
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}

.tab-btn:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--primary-gold);
}

.tab-btn.active {
  background: var(--primary-gold);
  color: var(--bg-dark);
  border-color: var(--primary-gold);
}

.tab-number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  opacity: 0.6;
}

.tab-btn.active .tab-number {
  opacity: 1;
}

.tab-info h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.tab-info p {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Paneles de Contenido */
.tab-content-panel {
  position: relative;
  min-height: 380px;
}

.tab-pane {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  align-items: center;
  height: 100%;
}

.tab-pane.active {
  display: grid;
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.pane-image-box {
  position: relative;
  height: 100%;
  min-height: 320px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--primary-gold);
}

.pane-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.pane-image-box:hover img {
  transform: scale(1.06);
}

.zoom-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(11, 19, 32, 0.85);
  color: var(--primary-gold);
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--primary-gold);
}

.pane-details {
  color: var(--white);
}

.pane-details h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--primary-gold);
  margin-bottom: 15px;
}

.pane-details p {
  font-size: 0.95rem;
  color: #CBD5E1;
  margin-bottom: 20px;
}

.pane-specs {
  list-style: none;
  margin-bottom: 25px;
}

.pane-specs li {
  font-size: 0.88rem;
  margin-bottom: 8px;
  padding-left: 18px;
  position: relative;
  color: #94A3B8;
}

.pane-specs li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--primary-gold);
}

.btn-tab-action {
  background: transparent;
  border: 1px solid var(--primary-gold);
  color: var(--primary-gold);
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-tab-action:hover {
  background: var(--primary-gold);
  color: var(--bg-dark);
}

/* ==========================================================================
   DISEÑO 2: PROYECTOS (TARJETAS FLOTANTES DESPLAZADAS)
   ========================================================================== */
.floating-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 40px 0;
}

.floating-project-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  position: relative;
  border: 1px solid #E2E8F0;
}

/* Escalonamiento flotante */
.float-offset-1 { transform: translateY(-20px); }
.float-offset-2 { transform: translateY(10px); }
.float-offset-3 { transform: translateY(30px); }

.floating-project-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 45px rgba(212, 175, 55, 0.25);
  border-color: var(--primary-gold);
}

.card-location-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--bg-dark);
  color: var(--primary-gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 5px 12px;
  border-radius: 4px;
  z-index: 5;
  border: 1px solid var(--primary-gold);
}

.card-img-holder {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.card-img-holder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.overlay-glass {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 19, 32, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.overlay-glass span {
  color: var(--primary-gold);
  border: 1px solid var(--primary-gold);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.floating-project-card:hover .overlay-glass {
  opacity: 1;
}

.floating-project-card:hover .card-img-holder img {
  transform: scale(1.1);
}

.card-info-box {
  padding: 25px;
  text-align: left;
}

.card-info-box h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--bg-dark);
  margin-bottom: 10px;
}

.card-info-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   DISEÑO 3: NOTICIAS (BITÁCORA / LÍNEA DE TIEMPO INTERACTIVA)
   ========================================================================== */
.timeline-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--primary-gold);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
  width: 50%;
}

.timeline-item.left {
  left: 0;
  padding-right: 40px;
}

.timeline-item.right {
  left: 50%;
  padding-left: 40px;
}

.timeline-dot {
  position: absolute;
  top: 25px;
  width: 16px;
  height: 16px;
  background: var(--primary-gold);
  border: 4px solid var(--bg-dark);
  border-radius: 50%;
  z-index: 5;
}

.timeline-item.left .timeline-dot { right: -8px; }
.timeline-item.right .timeline-dot { left: -8px; }

.timeline-content {
  background: var(--white);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  transition: var(--transition);
}

.timeline-content:hover {
  transform: translateY(-5px);
  border-color: var(--primary-gold);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.timeline-date {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-gold);
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.timeline-img-box {
  height: 160px;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 15px;
}

.timeline-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.timeline-content:hover .timeline-img-box img {
  transform: scale(1.05);
}

.timeline-content h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--bg-dark);
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ==========================================================================
   BANNER PARALLAX
   ========================================================================== */
.banner-parallax {
  position: relative;
  padding: 130px 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
  color: var(--white);
  filter: contrast(105%) brightness(102%);
}

.parallax-overlay-bright {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(11, 19, 32, 0.45) 0%, rgba(11, 19, 32, 0.25) 100%);
}

.text-glow {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 18px;
  color: #FFFFFF;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.75), 0 1px 3px rgba(0, 0, 0, 0.9);
}

.text-glow-sub {
  font-size: 1.25rem;
  color: #F8FAFC;
  font-weight: 500;
  max-width: 900px;
  margin: 0 auto;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

/* ==========================================================================
   FOOTER CORPORATIVO
   ========================================================================== */
.site-footer {
  background-color: var(--bg-dark);
  color: #94A3B8;
  padding: 70px 0 30px;
  border-top: 3px solid var(--primary-gold);
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-logo {
  height: 50px;
  margin-bottom: 15px;
}

.brand-col h3 {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.brand-col .ruc {
  color: var(--primary-gold);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background-color: var(--primary-gold);
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.webmail-btn {
  display: inline-block;
  color: var(--primary-gold);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
  transition: var(--transition);
}

.webmail-btn:hover {
  color: var(--white);
}

.webmail-note {
  font-size: 0.8rem;
  color: #64748B;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 25px;
  text-align: center;
  font-size: 0.85rem;
}

/* ==========================================================================
   VISTA DE DETALLE PANTALLA COMPLETA (MODAL 100VH)
   ========================================================================== */
.modal-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff;
  z-index: 9999;
  display: flex;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  overflow: hidden;
}

.modal-fullscreen.activo {
  opacity: 1;
  pointer-events: auto;
}

.btn-cerrar {
  position: absolute;
  top: 20px;
  right: 25px;
  background: transparent;
  border: none;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  color: #333333;
  z-index: 10000;
  transition: transform 0.2s;
}

.btn-cerrar:hover {
  transform: scale(1.15);
}

.detalle-layout {
  display: flex;
  width: 100%;
  height: 100%;
}

.detalle-col-imagen {
  flex: 1;
  height: 100%;
  background-color: #0b1320;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.detalle-col-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detalle-col-info {
  flex: 1;
  height: 100%;
  padding: 60px 50px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
  background-color: #fcfcfc;
}

.detalle-col-info h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--bg-dark);
  margin-bottom: 20px;
}

.detalle-descripcion p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: #4a4a4a;
}

/* ==========================================================================
   RESPONSIVIDAD
   ========================================================================== */
@media (max-width: 992px) {
  .ejes-tabs-wrapper {
    grid-template-columns: 1fr;
  }
  .tab-pane {
    grid-template-columns: 1fr;
  }
  .floating-projects-grid {
    grid-template-columns: 1fr;
    padding: 0;
  }
  .float-offset-1, .float-offset-2, .float-offset-3 {
    transform: none;
  }
  .timeline-line {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 50px !important;
    padding-right: 0 !important;
  }
  .timeline-item.right {
    left: 0;
  }
  .timeline-item.left .timeline-dot,
  .timeline-item.right .timeline-dot {
    left: 12px;
  }
}

@media (max-width: 768px) {
  .detalle-layout {
    flex-direction: column;
  }
  .detalle-col-imagen {
    height: 40vh;
  }
  .detalle-col-info {
    height: 60vh;
    padding: 30px 20px;
  }
  .hero-content h2 { font-size: 2.2rem; }
  .main-nav { display: none; }
}
/* ==========================================================================
   PÁGINA NOSOTROS - ESTILOS ESPECÍFICOS
   ========================================================================== */

/* Descripciones de sección */
.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 18px auto 0;
  text-align: center;
}
.section-desc.light {
  color: #94A3B8;
}

/* KPIs */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}
.kpi-card {
  background: var(--white);
  border-radius: 12px;
  padding: 35px 20px;
  text-align: center;
  border: 1px solid #E2E8F0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: var(--transition);
}
.kpi-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-gold);
  box-shadow: 0 18px 40px rgba(212, 175, 55, 0.18);
}
.kpi-icon {
  font-size: 1.8rem;
  color: var(--primary-gold);
  margin-bottom: 15px;
}
.kpi-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--bg-dark);
  line-height: 1.1;
}
.kpi-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ==========================================================================
   TARJETAS FLOTANTES PILARES (MISIÓN / VISIÓN / OBJETIVO)
   ========================================================================== */
.floating-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 50px 0 30px;
  align-items: start;
}

.floating-pillar-card {
  background: var(--white);
  border-radius: 14px;
  padding: 40px 30px 35px;
  position: relative;
  border: 1px solid #E2E8F0;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.07);
  transition: var(--transition);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.floating-pillar-card p {
  flex: 1;
}
.floating-pillars-grid {
  align-items: stretch !important;
}

/* Elevación flotante alternada */
.float-offset-1 { transform: translateY(-12px); }
.float-offset-2 { transform: translateY(0); }
.float-offset-3 { transform: translateY(12px); }

.floating-pillar-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 28px 55px rgba(212, 175, 55, 0.22);
  border-color: var(--primary-gold);
}

/* Cintillo lateral de ubicación / etiqueta */
.pillar-side-ribbon {
  position: absolute;
  top: 28px;
  left: 0;
  background: var(--bg-dark);
  color: var(--primary-gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  padding: 7px 14px 7px 18px;
  border-radius: 0 4px 4px 0;
  border: 1px solid var(--primary-gold);
  border-left: none;
  z-index: 2;
}

.pillar-icon-wrap {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px auto 22px;
  font-size: 1.5rem;
  color: var(--primary-gold);
  transition: var(--transition);
}

.floating-pillar-card:hover .pillar-icon-wrap {
  background: var(--primary-gold);
  color: var(--bg-dark);
  transform: scale(1.08);
}

.floating-pillar-card h3 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  color: var(--bg-dark);
  text-align: center;
  margin-bottom: 14px;
}

.floating-pillar-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.7;
}

/* Destacado Visión */
.highlight-pillar {
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 20px 45px rgba(212, 175, 55, 0.12);
}
.highlight-pillar .pillar-side-ribbon {
  background: var(--primary-gold);
  color: var(--bg-dark);
}

/* ==========================================================================
   TABS NOSOTROS
   ========================================================================== */
.nosotros-tabs-wrapper {
  background: var(--white);
  border-radius: 14px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 15px 40px rgba(0,0,0,0.06);
  overflow: hidden;
}

.tabs-header-nosotros {
  display: flex;
  gap: 0;
  background: var(--bg-dark);
  padding: 6px;
}

.tab-btn-n {
  flex: 1;
  padding: 16px 12px;
  background: transparent;
  border: none;
  color: #94A3B8;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tab-btn-n:hover {
  color: var(--primary-gold);
}

.tab-btn-n.active {
  background: var(--primary-gold);
  color: var(--bg-dark);
}

.tabs-content-nosotros {
  padding: 40px;
}

.tab-pane-n {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-pane-n.active {
  display: block;
}

.tab-grid-n {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.tab-text-n h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--bg-dark);
  margin-bottom: 16px;
}

.tab-text-n p {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.7;
}

.check-list {
  list-style: none;
  margin-top: 18px;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-size: 0.92rem;
  color: var(--text-main);
}

.check-list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--primary-gold);
  font-weight: 700;
}

.tab-image-n {
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--primary-gold);
  height: 280px;
}

.tab-image-n img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.tab-image-n:hover img {
  transform: scale(1.05);
}

/* ==========================================================================
   PRESENCIA INTERNACIONAL
   ========================================================================== */
.countries-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.country-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
}

.country-pill i {
  color: var(--primary-gold);
}

.country-pill:hover {
  background: var(--primary-gold);
  color: var(--bg-dark);
  border-color: var(--primary-gold);
}

.country-pill:hover i {
  color: var(--bg-dark);
}

/* CTA BOX */
.cta-box {
  text-align: center;
  background: var(--white);
  border-radius: 16px;
  padding: 60px 40px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 15px 40px rgba(0,0,0,0.06);
}

.cta-box h2 {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  color: var(--bg-dark);
  margin-bottom: 14px;
}

.cta-box p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 28px;
}

/* Hamburger (si no estaba completo) */
.hamburger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}
.hamburger-btn span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}
.hamburger-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Responsive Nosotros */
@media (max-width: 992px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .floating-pillars-grid {
    grid-template-columns: 1fr;
    padding: 20px 0;
  }
  .float-offset-1,
  .float-offset-2,
  .float-offset-3 {
    transform: none !important;
  }
  .floating-pillar-card:hover {
    transform: translateY(-10px) scale(1.01);
  }
  .tab-grid-n {
    grid-template-columns: 1fr;
  }
  .tab-image-n {
    height: 220px;
  }
}

@media (max-width: 768px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .tabs-header-nosotros {
    flex-direction: column;
  }
  .hamburger-btn {
    display: flex;
  }
  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-dark);
    padding: 90px 30px 40px;
    z-index: 1000;
  }
  .main-nav.active {
    display: block;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}

/* ==========================================================================
   FONDOS VECTORIALES MINEROS (Marco Estratégico y Trayectoria)
   ========================================================================== */
.bg-mining-vector-1 {
  background-color: #F8FAFC;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23D4AF37' stroke-width='0.6' stroke-opacity='0.12'%3E%3C!-- Montañas / yacimiento --%3E%3Cpath d='M10 160 L50 90 L80 130 L110 70 L140 120 L170 85 L190 160 Z'/%3E%3Cpath d='M30 160 L60 110 L90 145 L120 95 L150 140 L180 105'/%3E%3C!-- Pico / pickaxe abstracto --%3E%3Cpath d='M145 40 L165 55 L155 70 L140 58 Z'/%3E%3Cpath d='M155 55 L175 95'/%3E%3C!-- Cristal / mineral --%3E%3Cpath d='M40 40 L50 25 L60 40 L50 55 Z'/%3E%3Cpath d='M45 40 L55 40 M50 30 L50 50'/%3E%3C!-- Líneas de estratificación --%3E%3Cpath d='M20 175 Q100 165 180 175'/%3E%3Cpath d='M25 185 Q100 178 175 185'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 220px 220px;
  background-repeat: repeat;
}

.bg-mining-vector-2 {
  background-color: #F1F5F9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='%230B1320' stroke-width='0.55' stroke-opacity='0.07'%3E%3C!-- Camión / carga --%3E%3Crect x='30' y='100' width='70' height='28' rx='3'/%3E%3Cpath d='M100 110 L125 110 L135 128 L100 128 Z'/%3E%3Ccircle cx='50' cy='132' r='10'/%3E%3Ccircle cx='95' cy='132' r='10'/%3E%3C!-- Grúa / torre --%3E%3Cpath d='M140 40 L140 130 M140 50 L160 70 M140 50 L120 70'/%3E%3C!-- Hexágono mineral --%3E%3Cpath d='M50 30 L65 22 L80 30 L80 46 L65 54 L50 46 Z'/%3E%3C!-- Puntos de muestreo --%3E%3Ccircle cx='25' cy='50' r='3'/%3E%3Ccircle cx='35' cy='65' r='2'/%3E%3Ccircle cx='20' cy='70' r='2.5'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 200px 200px;
  background-repeat: repeat;
}

/* ==========================================================================
   EVOLUCIÓN ESTRATÉGICA - HISTORIA VISUAL (nuevo diseño, distinto al timeline)
   ========================================================================== */
.evolution-story {
  display: flex;
  flex-direction: column;
  gap: 50px;
  max-width: 1100px;
  margin: 0 auto;
}

.evo-row {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #E2E8F0;
  box-shadow: 0 16px 40px rgba(0,0,0,0.06);
  transition: var(--transition);
}

.evo-row:hover {
  box-shadow: 0 24px 50px rgba(212, 175, 55, 0.18);
  border-color: rgba(212, 175, 55, 0.4);
}

.evo-row.evo-reverse {
  direction: rtl;
}
.evo-row.evo-reverse > * {
  direction: ltr;
}

.evo-image {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.evo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.evo-row:hover .evo-image img {
  transform: scale(1.06);
}

.evo-step {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary-gold);
  background: rgba(11, 19, 32, 0.82);
  padding: 4px 16px;
  border-radius: 6px;
  border: 1px solid var(--primary-gold);
  line-height: 1.2;
  letter-spacing: 1px;
}

.evo-body {
  padding: 35px 35px 35px 10px;
}

.evo-row.evo-reverse .evo-body {
  padding: 35px 10px 35px 35px;
}

.evo-phase {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--primary-gold);
  text-transform: uppercase;
  margin-bottom: 10px;
  padding: 4px 12px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 20px;
  background: rgba(212, 175, 55, 0.08);
}

.evo-body h3 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  color: var(--bg-dark);
  margin-bottom: 12px;
}

.evo-body p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .evo-row,
  .evo-row.evo-reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .evo-image {
    height: 220px;
  }
  .evo-body,
  .evo-row.evo-reverse .evo-body {
    padding: 25px;
  }
}

/* ==========================================================================
   PÁGINA SERVICIOS — COMPONENTES INTERACTIVOS
   ========================================================================== */

/* 1. Service panels (imagen + overlay revelado) */
.service-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-panel {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  height: 380px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 14px 35px rgba(0,0,0,0.07);
  transition: var(--transition);
  cursor: pointer;
}

.service-panel:hover {
  transform: translateY(-10px);
  box-shadow: 0 28px 55px rgba(212, 175, 55, 0.22);
  border-color: var(--primary-gold);
}

.sp-image {
  width: 100%;
  height: 100%;
  position: relative;
}

.sp-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.service-panel:hover .sp-image img {
  transform: scale(1.08);
}

.sp-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(11, 19, 32, 0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 24px;
  color: var(--white);
  transition: var(--transition);
}

.sp-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-gold);
  opacity: 0.85;
  margin-bottom: 6px;
}

.sp-overlay h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--white);
}

.sp-overlay p {
  font-size: 0.9rem;
  color: #CBD5E1;
  line-height: 1.55;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.35s ease, margin 0.35s ease;
  margin: 0;
}

.service-panel:hover .sp-overlay p {
  max-height: 120px;
  opacity: 1;
  margin-top: 6px;
}

/* 2. Mineral cards con specs deslizantes */
.mineral-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.mineral-card {
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid #E2E8F0;
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
  transition: var(--transition);
  position: relative;
}

.mineral-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-gold);
  box-shadow: 0 22px 48px rgba(212, 175, 55, 0.2);
}

.mc-visual {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.mc-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.mineral-card:hover .mc-visual img {
  transform: scale(1.07);
}

.mc-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(11, 19, 32, 0.88);
  color: var(--primary-gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-align: center;
  padding: 10px;
  transition: var(--transition);
}

.mineral-card:hover .mc-label {
  background: var(--primary-gold);
  color: var(--bg-dark);
}

.mc-specs {
  padding: 22px 22px 26px;
}

.mc-specs h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--bg-dark);
  margin-bottom: 12px;
}

.mc-specs ul {
  list-style: none;
}

.mc-specs li {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding-left: 16px;
  position: relative;
  line-height: 1.45;
}

.mc-specs li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary-gold);
  font-weight: 700;
}

/* 3. Logistics pipeline */
.logistics-pipeline {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: 45px;
}

.pipe-step {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  width: 200px;
  transition: var(--transition);
  color: var(--white);
}

.pipe-step:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--primary-gold);
  transform: translateY(-8px);
}

.pipe-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--primary-gold);
  transition: var(--transition);
}

.pipe-step:hover .pipe-icon {
  background: var(--primary-gold);
  color: var(--bg-dark);
}

.pipe-step h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--primary-gold);
}

.pipe-step p {
  font-size: 0.82rem;
  color: #94A3B8;
  line-height: 1.5;
}

.pipe-connector {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-gold), rgba(212,175,55,0.3));
  margin-top: 55px;
  flex-shrink: 0;
}

.logistics-visual {
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(212, 175, 55, 0.35);
  height: 300px;
  max-width: 900px;
  margin: 0 auto;
}

.logistics-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 4. Ports interactive network */
.ports-showcase {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: stretch;
}
.ports-right-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
}
.ports-map-visual {
  transition: opacity 0.35s ease;
}
.ports-map-visual img {
  transition: opacity 0.35s ease;
}

.ports-map-visual {
  border-radius: 14px;
  overflow: hidden;
  height: 360px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 14px 35px rgba(0,0,0,0.06);
}

.ports-map-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ports-network {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 22px;
  width: 100%;
}

.port-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  background: var(--white);
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
  min-height: 56px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(26, 35, 50, 0.05);
}

.port-chip i {
  color: var(--primary-gold);
  font-size: 0.85rem;
}

.port-chip:hover {
  border-color: var(--primary-gold);
  color: var(--bg-dark);
}

.port-chip.active {
  background: var(--bg-dark);
  border-color: var(--primary-gold);
  color: var(--primary-gold);
}

.port-chip.active i {
  color: var(--primary-gold);
}

.port-detail {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #E2E8F0;
  border-left: 4px solid var(--primary-gold);
  transition: var(--transition);
}

.port-detail.pulse {
  animation: portPulse 0.45s ease;
}

@keyframes portPulse {
  0% { transform: scale(0.98); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

.port-detail h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--bg-dark);
  margin-bottom: 10px;
}

.port-detail p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Responsive Servicios */
@media (max-width: 992px) {
  .service-panels,
  .mineral-cards {
    grid-template-columns: 1fr;
  }
  .service-panel {
    height: 320px;
  }
  .pipe-connector {
    display: none;
  }
  .logistics-pipeline {
    gap: 16px;
  }
  .ports-showcase {
    grid-template-columns: 1fr;
  }
  .ports-map-visual {
    height: 240px;
  }
}

@media (max-width: 600px) {
  .pipe-step {
    width: 100%;
  }
}

/* ==========================================================================
   PÁGINA PROYECTOS E INVERSIÓN
   ========================================================================== */

/* Proyectos e Inversión — foto de fondo + glass (estilo Frisco) */
.hero-to-content-fade {
  height: 80px;
  margin-top: -80px;
  position: relative;
  z-index: 3;
  background: linear-gradient(180deg, transparent 0%, rgba(11, 19, 32, 0.25) 55%, rgba(11, 19, 32, 0.55) 100%);
  pointer-events: none;
}

.section-photo-invest,
.section-photo-assets {
  position: relative;
  overflow: hidden;
  background: #0B1320;
}

.section-photo-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.section-photo-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.03);
  transition: transform 10s ease;
}

.section-photo-invest:hover .section-photo-bg img,
.section-photo-assets:hover .section-photo-bg img {
  transform: scale(1.08);
}

.section-photo-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 19, 32, 0.75) 0%, rgba(11, 19, 32, 0.55) 40%, rgba(11, 19, 32, 0.8) 100%),
    radial-gradient(ellipse at 25% 15%, rgba(212, 175, 55, 0.14) 0%, transparent 55%);
  z-index: 1;
}

.section-photo-veil.assets-veil {
  background:
    linear-gradient(160deg, rgba(11, 19, 32, 0.72) 0%, rgba(15, 26, 44, 0.55) 42%, rgba(11, 19, 32, 0.84) 100%),
    radial-gradient(ellipse at 80% 20%, rgba(212, 175, 55, 0.15) 0%, transparent 50%);
}

.section-photo-content {
  position: relative;
  z-index: 2;
}

.section-photo-invest .section-title,
.section-photo-assets .section-title {
  color: #FFFFFF !important;
}

.section-photo-invest .section-desc.light,
.section-photo-assets .section-desc.light {
  color: #CBD5E1 !important;
}

/* compat clases antiguas */
.bg-invest-vector,
.bg-assets-vector {
  background-color: #0B1320;
}

/* Dossiers de inversión (expandibles) */
.invest-dossiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.invest-dossier {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #E2E8F0;
  box-shadow: 0 14px 36px rgba(0,0,0,0.06);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.invest-dossier:hover {
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 22px 48px rgba(212, 175, 55, 0.16);
}

.id-media {
  position: relative;
  height: 230px;
  overflow: hidden;
}

.id-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.invest-dossier:hover .id-media img {
  transform: scale(1.05);
}

.id-status {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  padding: 6px 12px;
  border-radius: 4px;
  z-index: 2;
}

.id-status.open {
  background: var(--primary-gold);
  color: var(--bg-dark);
}

.id-status.structured {
  background: var(--bg-dark);
  color: var(--primary-gold);
  border: 1px solid var(--primary-gold);
}

.id-content {
  padding: 26px 26px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.id-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.id-tags span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-light);
  padding: 5px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.id-tags i {
  color: var(--primary-gold);
  font-size: 0.7rem;
}

.id-content h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--bg-dark);
  margin-bottom: 10px;
  line-height: 1.3;
}

.id-summary {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 14px;
}

.id-expandable {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.35s ease, margin 0.35s ease;
  margin: 0;
}

.invest-dossier.expanded .id-expandable {
  max-height: 160px;
  opacity: 1;
  margin-bottom: 14px;
}

.id-expandable p {
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.6;
  background: var(--bg-light);
  padding: 14px 16px;
  border-radius: 8px;
  border-left: 3px solid var(--primary-gold);
}

.id-toggle {
  margin-top: auto;
  align-self: flex-start;
  background: transparent;
  border: 1px solid var(--primary-gold);
  color: var(--primary-gold);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.id-toggle:hover {
  background: var(--primary-gold);
  color: var(--bg-dark);
}

/* Asset tickets (concesiones) */
.asset-tickets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.asset-ticket {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #E2E8F0;
  box-shadow: 0 12px 32px rgba(0,0,0,0.05);
  transition: var(--transition);
  position: relative;
}

.asset-ticket::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-gold);
  opacity: 0;
  transition: var(--transition);
  z-index: 3;
}

.asset-ticket:hover {
  transform: translateY(-10px);
  border-color: var(--primary-gold);
  box-shadow: 0 24px 50px rgba(212, 175, 55, 0.18);
}

.asset-ticket:hover::before {
  opacity: 1;
}

.at-top {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.at-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.asset-ticket:hover .at-top img {
  transform: scale(1.07);
}

.at-location {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--bg-dark);
  color: var(--primary-gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid var(--primary-gold);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}

.at-body {
  padding: 22px 22px 24px;
}

.at-type {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--primary-gold);
  margin-bottom: 8px;
}

.at-body h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--bg-dark);
  margin-bottom: 10px;
  line-height: 1.3;
}

.at-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.at-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.at-meta span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
  background: var(--bg-light);
  padding: 5px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.at-meta i {
  color: var(--primary-gold);
  font-size: 0.72rem;
}

/* Responsive Proyectos */
@media (max-width: 992px) {
  .invest-dossiers {
    grid-template-columns: 1fr;
  }
  .asset-tickets {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   GALERÍA — MOSAICO + FICHAS + VISOR 100VH
   ========================================================================== */
.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}

.gm-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid #E2E8F0;
  box-shadow: 0 10px 28px rgba(0,0,0,0.06);
  transition: var(--transition);
}

.gm-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
  display: block;
}

.gm-item:hover img {
  transform: scale(1.1);
}

.gm-item:hover {
  border-color: var(--primary-gold);
  box-shadow: 0 20px 45px rgba(212, 175, 55, 0.22);
  transform: translateY(-4px);
}

.gm-large {
  grid-column: span 2;
  grid-row: span 2;
}

.gm-wide {
  grid-column: span 2;
}

.gm-tall {
  grid-row: span 2;
}

.gm-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(11, 19, 32, 0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 20px;
  color: var(--white);
  opacity: 0.95;
  transition: var(--transition);
}

.gm-item:hover .gm-overlay {
  background: linear-gradient(180deg, rgba(11,19,32,0.15) 20%, rgba(11, 19, 32, 0.95) 100%);
}

.gm-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--primary-gold);
  margin-bottom: 6px;
}

.gm-overlay h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 8px;
  line-height: 1.25;
}

.gm-hint {
  font-size: 0.78rem;
  color: #CBD5E1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(6px);
  transition: var(--transition);
}

.gm-item:hover .gm-hint {
  opacity: 1;
  transform: translateY(0);
}

/* Fichas de muestras — rail horizontal scrolleable */
.sample-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.sample-chip {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #E2E8F0;
  box-shadow: 0 12px 30px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

.sample-chip:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--primary-gold);
  box-shadow: 0 22px 48px rgba(212, 175, 55, 0.2);
}

.sc-img {
  height: 180px;
  overflow: hidden;
  position: relative;
}

.sc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.sample-chip:hover .sc-img img {
  transform: scale(1.1);
}

.sample-chip h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--bg-dark);
  padding: 16px 18px 4px;
}

.sample-chip p {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0 18px 18px;
}

/* Visor fullscreen exacto 100vh sin scroll de página */
.gallery-viewer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  background: #0B1320;
  z-index: 10000;
  display: flex;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  overflow: hidden;
}

.gallery-viewer.activo {
  opacity: 1;
  pointer-events: auto;
}

.gv-close {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 10001;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.5);
  background: rgba(11, 19, 32, 0.7);
  color: var(--primary-gold);
  font-size: 1.35rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.gv-close:hover {
  background: var(--primary-gold);
  color: var(--bg-dark);
}

.gv-layout {
  display: flex;
  width: 100%;
  height: 100%;
  max-height: 100vh;
  overflow: hidden;
}

.gv-image-col {
  flex: 1.15;
  height: 100%;
  max-height: 100vh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gv-image-col img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.gv-info-col {
  flex: 0.85;
  height: 100%;
  max-height: 100vh;
  padding: 50px 40px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, #0F1A2C 0%, #0B1320 100%);
  color: #E2E8F0;
  overflow: hidden;
}

.gv-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-gold);
  margin-bottom: 14px;
}

.gv-info-col h2 {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  color: #FFFFFF;
  margin-bottom: 18px;
  line-height: 1.25;
}

.gv-info-col p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #94A3B8;
  margin-bottom: 32px;
}

@media (max-width: 992px) {
  .gallery-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 180px;
  }
  .gm-large, .gm-wide, .gm-tall {
    grid-column: span 1;
    grid-row: span 1;
  }
  .gm-large {
    grid-column: span 2;
    grid-row: span 2;
  }
  .sample-rail {
    grid-template-columns: 1fr 1fr;
  }
  .gv-layout {
    flex-direction: column;
  }
  .gv-image-col {
    flex: none;
    height: 48vh;
    max-height: 48vh;
  }
  .gv-info-col {
    flex: none;
    height: 52vh;
    max-height: 52vh;
    padding: 28px 22px;
    overflow-y: auto;
  }
}

@media (max-width: 600px) {
  .gallery-mosaic {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }
  .gm-large {
    grid-column: span 1;
    grid-row: span 1;
  }
  .sample-rail {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   CONTACTO — SPLIT PANEL + FORM
   ========================================================================== */
.contact-split {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  gap: 32px;
  align-items: start;
}

.contact-panel {
  background: var(--bg-dark);
  color: #E2E8F0;
  border-radius: 16px;
  padding: 36px 32px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.contact-panel h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--primary-gold);
  margin-bottom: 26px;
}

.cp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cp-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.cp-ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-gold);
  flex-shrink: 0;
  font-size: 0.9rem;
}

.cp-list strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #94A3B8;
  margin-bottom: 2px;
}

.cp-list p {
  font-size: 0.95rem;
  color: #F1F5F9;
  line-height: 1.45;
}

.cp-list a {
  color: var(--primary-gold);
  font-weight: 600;
}

.cp-list a:hover {
  color: #FFFFFF;
}

.contact-form-card {
  background: var(--white);
  border-radius: 16px;
  padding: 36px 32px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 16px 40px rgba(0,0,0,0.06);
}

.contact-form-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--bg-dark);
  margin-bottom: 8px;
}

.cf-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-main);
  background: #F8FAFC;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-gold);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.interest-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ipill {
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
}

.ipill:hover {
  border-color: var(--primary-gold);
  color: var(--bg-dark);
}

.ipill.active {
  background: var(--bg-dark);
  border-color: var(--primary-gold);
  color: var(--primary-gold);
}

.cf-submit {
  width: 100%;
  border: none;
  cursor: pointer;
  margin-top: 8px;
  text-align: center;
}

.cf-feedback {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--bg-dark);
  font-size: 0.92rem;
  font-weight: 500;
}

@media (max-width: 992px) {
  .contact-split {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Último puerto en fila completa si queda solo */
.ports-network .port-chip:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: 100%;
}
.ports-map-visual img {
  transition: opacity 0.3s ease;
}


/* Forzar planisferio aunque haya overrides del tema claro */
.section-padding.bg-dark-section {
  background-color: #1e2a3a !important;
  background-image: url('../images/fondos/planisferio.jpg') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}
.section-padding:not(.bg-light):not(.bg-dark-section) {
  /* no forzar blanco sobre planisferio */
}

/* Héroes internos: contenido bajo el header, sin desbordar sobre la sección siguiente */
.hero-section[style*="height"] {
  align-items: center !important;
  justify-content: center !important;
  padding-top: 100px !important;
  padding-bottom: 40px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  height: auto !important; /* anula height fijo del inline; respeta min-height */
  min-height: 58vh !important;
}

.hero-section[style*="height"] .hero-content {
  margin-top: 0;
  margin-bottom: 0;
  max-width: min(680px, 92vw);
}

.hero-badge {
  position: relative;
  z-index: 2;
  display: inline-block;
}
