@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ==========================================
   VARIABLES Y SISTEMA DE DISEÑO
   ========================================== */
:root {
  --primary: #0f2042;
  --primary-light: #1b356b;
  --secondary: #028090;
  --accent: #02c39a;
  --accent-light: #e6f9f5;
  --dark: #0a1128;
  --light: #f8fafc;
  --white: #ffffff;
  
  --text-dark: #0f172a;
  --text-main: #334155;
  --text-muted: #64748b;
  --text-white: #ffffff;
  
  --font-title: 'Outfit', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --shadow-sm: 0 2px 4px rgba(15, 32, 66, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(15, 32, 66, 0.08), 0 8px 16px -6px rgba(15, 32, 66, 0.08);
  --shadow-lg: 0 20px 40px -15px rgba(15, 32, 66, 0.12);
  --shadow-accent: 0 10px 20px -5px rgba(2, 195, 154, 0.3);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --border-radius-sm: 6px;
  
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.5);
}

/* ==========================================
   RESETS Y ESTILOS GENERALES
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--light);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.section-bg-dark {
  background-color: var(--dark);
  color: var(--text-white);
}

.section-bg-dark h2,
.section-bg-dark h3,
.section-bg-dark p {
  color: var(--text-white);
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 60px auto;
}

.section-subtitle {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--secondary);
  letter-spacing: 2px;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 36px;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
}

.section-bg-dark .section-desc {
  color: #94a3b8;
}

/* ==========================================
   BOTONES
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--border-radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: var(--white);
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -5px rgba(2, 195, 154, 0.5);
  filter: brightness(1.05);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

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

.btn-outline-white {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
}

.btn-outline-white:hover {
  background-color: var(--white);
  color: var(--primary);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* ==========================================
   BARRA DE ALIADO ESTRATÉGICO (TOP BAR)
   ========================================== */
.alliance-topbar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  text-align: center;
  padding: 10px 24px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.alliance-topbar .topbar-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(2, 195, 154, 0.2);
  padding: 3px 10px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.alliance-topbar .topbar-text {
  color: rgba(255, 255, 255, 0.9);
}

.alliance-topbar .topbar-partner {
  font-weight: 700;
  color: var(--accent);
}

.alliance-topbar .topbar-countries {
  display: inline;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

@media (max-width: 768px) {
  .alliance-topbar {
    flex-wrap: wrap;
    gap: 4px;
    padding: 6px 16px;
    font-size: 11px;
  }
  .alliance-topbar .topbar-countries {
    display: none;
  }
}

/* ==========================================
   HEADER Y NAVEGACIÓN
   ========================================== */
.header {
  position: fixed;
  top: 40px;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(248, 250, 252, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 32, 66, 0.05);
  transition: var(--transition);
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  padding: 8px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  height: 50px;
  width: 240px;
}

.logo-img {
  width: 100%;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  padding: 8px 0;
}

.nav-link:hover {
  color: var(--secondary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  transition: var(--transition);
}

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

.nav-link.active {
  color: var(--secondary);
}

.nav-cta {
  display: flex;
  align-items: center;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary);
  margin: 5px 0;
  transition: var(--transition);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 160px;
  background: radial-gradient(circle at 80% 20%, rgba(2, 195, 154, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 10% 80%, rgba(2, 128, 144, 0.05) 0%, transparent 50%);
  background-color: var(--light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  max-width: 580px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--accent-light);
  color: var(--secondary);
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
  border: 1px solid rgba(2, 195, 154, 0.2);
}

.hero-badge span {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}

.hero-title {
  font-size: 52px;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid rgba(15, 32, 66, 0.08);
  padding-top: 32px;
}

.stat-number {
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  display: block;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-image-container {
  position: relative;
}

.hero-image-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110%;
  height: 110%;
  background: radial-gradient(circle, rgba(2, 195, 154, 0.15) 0%, transparent 60%);
  z-index: 1;
}

.hero-graphics {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 400px;
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.8);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 16px;
}

.dashboard-title {
  font-size: 16px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.dashboard-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--light);
  padding: 12px 18px;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--accent);
  transition: var(--transition);
}

.dashboard-row:hover {
  transform: translateX(5px);
  background-color: var(--white);
  box-shadow: var(--shadow-md);
}

.dashboard-info h4 {
  font-size: 14px;
  color: var(--text-dark);
}

.dashboard-info p {
  font-size: 11px;
  color: var(--text-muted);
}

.dashboard-status {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-check {
  background-color: #d1fae5;
  color: #065f46;
}

.status-pending {
  background-color: #fef3c7;
  color: #92400e;
}

.floating-badge {
  position: absolute;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  padding: 8px 16px; /* Padding más compacto */
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 4s ease-in-out infinite;
}

.badge-1 {
  top: -55px;
  left: -80px; /* Desplazado hacia la izquierda y arriba para no tapar el título */
  animation-delay: 0s;
}

.badge-2 {
  bottom: -55px;
  right: -80px; /* Desplazado hacia la derecha y abajo para no tapar el contenido */
  animation-delay: 2s;
}

@media (max-width: 1024px) {
  .floating-badge {
    display: none; /* Ocultar en tablets y pantallas menores a 1024px para evitar problemas de espacio */
  }
}

.badge-icon {
  width: 36px;
  height: 36px;
  background-color: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-weight: bold;
}

.badge-info h5 {
  font-size: 13px;
  color: var(--primary);
}

.badge-info p {
  font-size: 10px;
  color: var(--text-muted);
}

/* ==========================================
   VENTAJAS / COMPARATIVA
   ========================================== */
.grid-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background-color: var(--white);
  padding: 40px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 32, 66, 0.03);
  transition: var(--transition);
  position: relative;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(2, 195, 154, 0.2);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--border-radius);
  background-color: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  color: var(--secondary);
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: var(--white);
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 16px;
}

.feature-card p {
  font-size: 15px;
  color: var(--text-muted);
}

/* ==========================================
   ALIANZA CHINA-ECUADOR
   ========================================== */
.alliance-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--text-white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  position: relative;
}

.alliance-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
}

.alliance-content {
  padding: 64px;
}

.alliance-badge {
  background-color: rgba(2, 195, 154, 0.2);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
  display: inline-block;
}

.alliance-title {
  color: var(--white);
  font-size: 36px;
  margin-bottom: 20px;
}

.alliance-desc {
  color: #94a3b8;
  font-size: 16px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.alliance-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.alliance-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.alliance-feature-icon {
  color: var(--accent);
  margin-top: 3px;
}

.alliance-feature h4 {
  color: var(--white);
  font-size: 15px;
  margin-bottom: 4px;
}

.alliance-feature p {
  color: #64748b;
  font-size: 12px;
}

.alliance-visual {
  height: 100%;
  min-height: 380px;
  background-color: rgba(15, 32, 66, 0.5);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.alliance-visual-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(2, 195, 154, 0.1) 0%, transparent 85%);
  z-index: 1;
}

.trade-route {
  position: relative;
  z-index: 2;
  width: 80%;
  height: 80%;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  animation: spin 30s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

.route-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  background-color: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
}

.dot-china {
  top: 10%;
  right: 25%;
}

.dot-ecuador {
  bottom: 15%;
  left: 20%;
}

.route-connection {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
  transform: translate(-50%, -50%) rotate(-35deg);
  transform-origin: center;
  animation: pulse 2s infinite;
}

/* ==========================================
   PÁGINA DE SERVICIOS
   ========================================== */
.services-intro {
  margin-top: 120px;
  background: linear-gradient(180deg, rgba(15, 32, 66, 0.03) 0%, transparent 100%);
  padding: 80px 0 40px 0;
}

.services-list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
}

.service-row-card {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 32, 66, 0.04);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  transition: var(--transition-slow);
}

.service-row-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(2, 195, 154, 0.15);
}

.service-row-card.row-reverse {
  grid-template-columns: 1.2fr 1fr;
}

.service-img-wrapper {
  background-color: var(--primary);
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-graphic-placeholder {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(2, 128, 144, 0.25) 0%, rgba(15, 32, 66, 0.9) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.service-info-panel {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-badge {
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  display: block;
}

.service-title {
  font-size: 28px;
  margin-bottom: 18px;
  color: var(--primary);
}

.service-description {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.service-features-check {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin-bottom: 30px;
}

.service-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
}

.service-check-item svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* ==========================================
   PÁGINA DE COBERTURA / MAPA INTERACTIVO
   ========================================== */
.map-layout-container {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 32px;
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(15, 32, 66, 0.03);
}

.map-view-wrapper {
  background-color: #0b132b;
  border-radius: var(--border-radius);
  position: relative;
  overflow: hidden;
  height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.interactive-map-svg {
  width: 100%;
  height: 100%;
}

.map-node {
  cursor: pointer;
  transition: var(--transition);
}

.map-node circle {
  transition: var(--transition);
}

.map-node:hover circle {
  fill: var(--white);
  stroke: var(--accent);
  stroke-width: 6px;
  r: 10;
}

.pulse-ring {
  animation: pulse-ring 1.8s infinite;
  transform-origin: center;
}

.map-connection-line {
  stroke-dasharray: 6;
  animation: dash 20s linear infinite;
}

.map-info-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.location-info-card {
  background-color: var(--light);
  border-radius: var(--border-radius);
  padding: 24px;
  border: 1px solid rgba(15, 32, 66, 0.05);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.location-card-header {
  border-bottom: 1px solid rgba(15, 32, 66, 0.08);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.location-name {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 4px;
}

.location-type {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--secondary);
  letter-spacing: 1px;
}

.location-detail-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1;
}

.location-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.location-detail-item h5 {
  font-size: 13px;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.location-detail-item p {
  font-size: 13px;
  color: var(--text-muted);
}

.location-alliance-badge {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  padding: 12px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.location-alliance-badge h4 {
  color: var(--white);
  font-size: 14px;
}

.location-alliance-badge p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
}

/* ==========================================
   PÁGINA DE PORTAL DE CLIENTES
   ========================================== */
.portal-search-panel {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(15, 32, 66, 0.04);
  max-width: 800px;
  margin: 0 auto;
}

.search-box-container {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.portal-search-input {
  flex-grow: 1;
  padding: 16px 20px;
  border-radius: var(--border-radius);
  border: 2px solid #e2e8f0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--primary);
  transition: var(--transition);
}

.portal-search-input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(2, 128, 144, 0.15);
}

.search-helper-text {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* Certificado Simulado */
.certificate-result-container {
  margin-top: 40px;
  display: none; /* Controlado por JS */
  animation: fadeInUp 0.4s ease;
}

.certificate-card {
  background-color: var(--white);
  border: 2px solid var(--accent);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.certificate-header-stamp {
  background-color: var(--primary);
  padding: 24px;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.certificate-header-stamp h3 {
  color: var(--white);
  font-size: 20px;
}

.certificate-id {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--accent);
}

.certificate-body {
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.certificate-field h5 {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.certificate-field p {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
}

.certificate-stamp {
  grid-column: span 2;
  border-top: 1px solid #f1f5f9;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stamp-status {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #059669;
  font-weight: 700;
  font-size: 16px;
}

.stamp-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #d1fae5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #059669;
}

/* ==========================================
   CONTACTO Y COTIZADOR
   ========================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
}

.contact-info-panel {
  background-color: var(--primary);
  color: var(--text-white);
  padding: 48px;
  border-radius: var(--border-radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-image: radial-gradient(circle at 100% 0%, rgba(2, 195, 154, 0.15) 0%, transparent 60%);
}

.contact-info-panel h2 {
  color: var(--white);
  font-size: 32px;
  margin-bottom: 16px;
}

.contact-info-panel p {
  color: #94a3b8;
  margin-bottom: 40px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-method-card {
  display: flex;
  gap: 16px;
}

.method-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius);
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-method-card h4 {
  color: var(--white);
  font-size: 15px;
  margin-bottom: 2px;
}

.contact-method-card p {
  color: #94a3b8;
  font-size: 14px;
  margin-bottom: 0;
}

.contact-socials {
  display: flex;
  gap: 16px;
  margin-top: 48px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--accent);
  color: var(--primary);
  transform: translateY(-3px);
}

/* Cotizador Wizard Form */
.wizard-form-card {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(15, 32, 66, 0.04);
}

.wizard-steps-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
}

.wizard-steps-indicator::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #e2e8f0;
  z-index: 1;
}

.wizard-progress-bar {
  position: absolute;
  top: 15px;
  left: 0;
  width: 0%; /* Controlado por JS */
  height: 2px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  z-index: 1;
  transition: var(--transition);
}

.wizard-step-node {
  position: relative;
  z-index: 2;
  background-color: var(--white);
  border: 3px solid #e2e8f0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-muted);
  transition: var(--transition);
}

.wizard-step-node.active {
  border-color: var(--secondary);
  color: var(--primary);
  box-shadow: 0 0 0 4px rgba(2, 128, 144, 0.15);
}

.wizard-step-node.completed {
  border-color: var(--accent);
  background-color: var(--accent);
  color: var(--white);
}

.wizard-step-content {
  display: none; /* Controlado por JS */
  animation: fadeIn 0.4s ease;
}

.wizard-step-content.active {
  display: block;
}

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--border-radius);
  border: 1px solid #cbd5e1;
  font-family: var(--font-body);
  font-size: 14px;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(2, 128, 144, 0.15);
}

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

.category-selection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.category-option-card {
  border: 2px solid #e2e8f0;
  border-radius: var(--border-radius);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.category-option-card:hover {
  border-color: var(--secondary);
  background-color: var(--light);
}

.category-option-card.selected {
  border-color: var(--accent);
  background-color: var(--accent-light);
}

.category-option-card svg {
  margin-bottom: 12px;
  color: var(--secondary);
}

.category-option-card h4 {
  font-size: 14px;
  color: var(--primary);
}

.wizard-buttons {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 24px;
  margin-top: 24px;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background-color: var(--dark);
  color: #94a3b8;
  padding: 80px 0 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-logo {
  width: 200px;
  margin-bottom: 24px;
  filter: brightness(0) invert(1); /* Convierte el logo a blanco completo */
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer-title {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--accent);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-links a {
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
}

.footer-contact-item svg {
  color: var(--accent);
  flex-shrink: 0;
}

.footer-newsletter h4 {
  color: var(--white);
  font-size: 14px;
  margin-bottom: 12px;
}

.newsletter-form {
  display: flex;
  margin-bottom: 16px;
}

.newsletter-input {
  flex-grow: 1;
  padding: 12px;
  border-radius: var(--border-radius-sm) 0 0 var(--border-radius-sm);
  border: none;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-size: 14px;
}

.newsletter-input:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.1);
}

.newsletter-btn {
  background-color: var(--accent);
  color: var(--primary);
  border: none;
  padding: 0 16px;
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
  cursor: pointer;
  font-weight: bold;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

/* ==========================================
   ANIMACIONES
   ========================================== */
@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(2, 195, 154, 0.5);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(2, 195, 154, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(2, 195, 154, 0);
  }
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes dash {
  to {
    stroke-dashoffset: -100;
  }
}

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

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

/* ==========================================
   RESPONSIVIDAD (MEDIA QUERIES)
   ========================================== */
@media (max-width: 1024px) {
  .hero-grid,
  .alliance-grid,
  .contact-layout,
  .service-row-card,
  .service-row-card.row-reverse {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .alliance-content {
    padding: 40px;
  }
  
  .map-layout-container {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header {
    top: 76px !important;
  }

  .hero {
    padding-top: 200px;
  }

  .services-intro {
    margin-top: 160px;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 28px;
  }

  .hero-title {
    font-size: 38px;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }
  
  .grid-features {
    grid-template-columns: 1fr;
  }
  
  .alliance-features {
    grid-template-columns: 1fr;
  }
  
  .service-features-check {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .category-selection-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
