/* --- SEGURIDAD EMPRESARIAL --- */
.security-enterprise-section {
  padding: 6rem 0 4rem;
  color: var(--text-primary);
}

.security-enterprise-section .section-header {
  margin-bottom: 3rem;
}

.security-section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: rgba(3, 105, 161, 0.1);
  border: 1px solid rgba(3, 105, 161, 0.18);
  border-radius: 999px;
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.security-column-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.9fr);
  gap: 3rem;
  align-items: start;
  margin-bottom: 4.5rem;
}

@media (max-width: 991px) {
  .security-column-layout {
    grid-template-columns: 1fr;
  }
}

.security-control-features {
  padding: 1rem 0 1rem 1.25rem;
  border-left: 4px solid rgba(3, 105, 161, 0.22);
}

.security-control-features h3 {
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 2.3vw, 2.5rem);
  line-height: 1.02;
}

.security-control-features p {
  max-width: 680px;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.crypt-features-list {
  display: grid;
  gap: 1.3rem;
  padding: 1.5rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(3, 105, 161, 0.1);
  box-shadow: 0 18px 35px rgba(3, 105, 161, 0.05);
}

.crypt-feature-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: flex-start;
}

.crypt-feature-icon {
  font-size: 1.5rem;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(3, 105, 161, 0.16), rgba(23, 162, 184, 0.08));
  color: #03486a;
  border: 1px solid rgba(3, 105, 161, 0.2);
}

.byok-showcase-card {
  position: relative;
  padding: 2.5rem 2rem;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 249, 252, 0.92));
  border: 1px solid rgba(3, 105, 161, 0.15);
  box-shadow: 0 24px 60px rgba(3, 105, 161, 0.08);
}

.byok-showcase-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(3, 105, 161, 0.3), rgba(23, 162, 184, 0.12));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  pointer-events: none;
}

.byok-showcase-card > * {
  position: relative;
}

.byok-header-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 1.5rem;
  border-radius: 18px;
  background: rgba(3, 105, 161, 0.14);
  color: #054b6f;
  font-size: 1.9rem;
}

.byok-providers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 2rem 0;
}

.provider-badge {
  padding: 0.95rem 1rem;
  color: #03314f;
  background: rgba(3, 105, 161, 0.1);
  border: 1px solid rgba(3, 105, 161, 0.18);
  border-radius: 14px;
  font-weight: 600;
  text-align: center;
  transition: transform 0.25s ease, background 0.25s ease;
}

.provider-badge:hover {
  transform: translateY(-2px);
  background: rgba(3, 105, 161, 0.16);
}

.byok-card-footer {
  padding-top: 1.75rem;
  border-top: 1px solid rgba(3, 105, 161, 0.14);
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.performance-cards-grid, .protection-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.8rem;
  margin-top: 3rem;
  margin-bottom: 4.5rem;
}

.perf-card-wrapper, .prot-card-wrapper {
  padding: 2rem;
  min-height: 220px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(3, 105, 161, 0.1);
  box-shadow: 0 18px 28px rgba(3, 105, 161, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.perf-card-wrapper:hover, .prot-card-wrapper:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 40px rgba(3, 105, 161, 0.12);
}

.perf-card-icon, .prot-card-icon {
  font-size: 2.2rem;
  margin-bottom: 1.1rem;
}

.security-sectors-block {
  margin: 5rem 0 4rem;
}

.security-sectors-block.center {
  text-align: center;
}

.security-sectors-block.center .section-header,
.security-sectors-block.center .section-desc {
  margin-left: auto;
  margin-right: auto;
  max-width: 760px;
}

.security-sectors-block.center .section-desc {
  font-size: 1rem;
  line-height: 1.8;
}

.sectors-badge-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.8rem;
}

.sector-badge-item {
  padding: 0.95rem 1.6rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(3, 105, 161, 0.14);
  border-radius: 999px;
  font-weight: 700;
  color: #03314f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 220px;
  text-align: center;
}

.sector-badge-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 1);
}

.migration-steps-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

@media (max-width: 768px) {
  .migration-steps-layout {
    grid-template-columns: 1fr;
  }
}

.migration-step-item {
  text-align: center;
  position: relative;
}

.migration-step-num {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 1.5rem auto;
}

.perf-card-wrapper h4,
.prot-card-wrapper h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
}

.perf-card-wrapper p,
.prot-card-wrapper p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0;
  max-width: 90%;
}

.section-header.center {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.section-header.center .section-desc {
  max-width: 760px;
  margin: 1rem auto 0;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
}
/* Dark mode contrast fixes for seguridad cards */
body.dark-theme .crypt-features-list,
body.dark-theme .byok-showcase-card,
body.dark-theme .perf-card-wrapper,
body.dark-theme .prot-card-wrapper,
body.dark-theme .sector-badge-item,
body.dark-theme .migration-step-item {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  color: var(--text-primary);
}

body.dark-theme .byok-showcase-card {
  background: rgba(255, 255, 255, 0.05);
}

body.dark-theme .crypt-feature-item p,
body.dark-theme .perf-card-wrapper p,
body.dark-theme .prot-card-wrapper p,
body.dark-theme .migration-step-item p,
body.dark-theme .byok-card-footer {
  color: var(--text-secondary);
}

body.dark-theme .sector-badge-item {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

body.dark-theme .provider-badge,
body.dark-theme .byok-header-icon,
body.dark-theme .crypt-feature-icon,
body.dark-theme .perf-card-icon,
body.dark-theme .prot-card-icon {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.12);
}
.performance-cards-grid,
.protection-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
  margin-top: 3rem;
  margin-bottom: 4.5rem;
}

.perf-card-wrapper,
.prot-card-wrapper {
  padding: 2.25rem 2rem;
  min-height: 235px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(3, 105, 161, 0.12);
  box-shadow: 0 20px 36px rgba(3, 105, 161, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
}

.perf-card-wrapper:hover,
.prot-card-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 50px rgba(3, 105, 161, 0.14);
  border-color: rgba(3, 105, 161, 0.18);
}

.perf-card-icon,
.prot-card-icon {
  font-size: 2.4rem;
  margin-bottom: 0;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(3, 105, 161, 0.1);
  color: #03486a;
}

.perf-card-wrapper h4,
.prot-card-wrapper h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
}

.perf-card-wrapper p,
.prot-card-wrapper p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0;
  max-width: 90%;
}

.prot-card-icon.blue {
  color: #1d4ed8;
  background: rgba(59, 130, 246, 0.12);
}

.prot-card-icon.green {
  color: #047857;
  background: rgba(16, 185, 129, 0.12);
}

.prot-card-icon.purple {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.12);
}

.prot-card-icon.orange {
  color: #d97706;
  background: rgba(245, 158, 11, 0.12);
}

.security-sectors-block {
  margin: 5rem 0 4rem;
}

.sectors-badge-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.8rem;
}

.sector-badge-item {
  padding: 0.95rem 1.6rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(3, 105, 161, 0.14);
  border-radius: 999px;
  font-weight: 700;
  color: #03314f;
  box-shadow: 0 8px 24px rgba(3, 105, 161, 0.05);
  transition: transform 0.25s ease, background 0.25s ease;
}

.sector-badge-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 1);
}

.migration-steps-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
  margin-top: 3rem;
}

@media (max-width: 992px) {
  .migration-steps-layout {
    grid-template-columns: 1fr;
  }
}

.migration-step-item {
  text-align: center;
  padding: 2rem 1.8rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(3, 105, 161, 0.12);
  border-radius: 24px;
  box-shadow: 0 18px 36px rgba(3, 105, 161, 0.06);
}

.migration-step-num {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #0f4572, #0b75a1);
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 auto 1.5rem auto;
}

.migration-step-item h4,
.migration-step-item p {
  margin: 0;
}

.migration-step-item h4 {
  margin-bottom: 0.75rem;
  color: #032e4c;
  font-size: 1.1rem;
}

.migration-step-item p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.75;
}

/* Dark theme contrasts for seguridad cards */
body.dark-theme .crypt-features-list,
body.dark-theme .byok-showcase-card,
body.dark-theme .perf-card-wrapper,
body.dark-theme .prot-card-wrapper,
body.dark-theme .sector-badge-item,
body.dark-theme .migration-step-item {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.35);
}

body.dark-theme .byok-showcase-card {
  background: rgba(255, 255, 255, 0.05);
}

body.dark-theme .crypt-features-list,
body.dark-theme .byok-showcase-card,
body.dark-theme .perf-card-wrapper,
body.dark-theme .prot-card-wrapper,
body.dark-theme .sector-badge-item,
body.dark-theme .migration-step-item,
body.dark-theme .crypt-feature-text h4,
body.dark-theme .crypt-feature-text p,
body.dark-theme .byok-showcase-card h3,
body.dark-theme .byok-showcase-card p,
body.dark-theme .perf-card-wrapper h4,
body.dark-theme .perf-card-wrapper p,
body.dark-theme .prot-card-wrapper h4,
body.dark-theme .prot-card-wrapper p,
body.dark-theme .migration-step-item h4,
body.dark-theme .migration-step-item p,
body.dark-theme .byok-card-footer,
body.dark-theme .sector-badge-item,
body.dark-theme .provider-badge {
  color: var(--text-primary);
}

body.dark-theme .crypt-feature-text p,
body.dark-theme .byok-card-footer,
body.dark-theme .migration-step-item p,
body.dark-theme .perf-card-wrapper p,
body.dark-theme .prot-card-wrapper p {
  color: var(--text-secondary);
}

body.dark-theme .provider-badge,
body.dark-theme .byok-header-icon,
body.dark-theme .crypt-feature-icon,
body.dark-theme .perf-card-icon,
body.dark-theme .prot-card-icon {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.12);
}
