/* ==================== VARIABLES ==================== */
:root {
  /* Línea gráfica OLAMSA */
  --amarillo: #ffb600;
  --verde: #096d17;
  --azul: #2b3c96;
  --naranja: #f16922;
  --blanco: #fff9ee;
  --negro: #0c0c0f;

  /* Colores derivados */
  --verde-oscuro: #084912;
  --verde-claro: #0c8f1e;
  --naranja-oscuro: #d45a1a;
  --naranja-claro: #ff8a42;
  --gris: #f5f5f7;
  --gris-oscuro: #86868b;

  /* Sombras */
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);

  /* Transiciones */
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== RESET Y BASE ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background-color: var(--blanco);
  color: var(--negro);
  line-height: 1.7;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--negro);
}

p {
  margin-bottom: 1.5rem;
  color: var(--gris-oscuro);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 100px 0;
}

/* ==================== HERO SECTION ==================== */
.hero-etica {
  min-height: 80vh;
  background:
    linear-gradient(135deg, rgb(12 12 15 / 35%), rgba(12, 12, 15, 0.8)),
    url("../images/etica/linea-etica.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  position: relative;
  color: var(--blanco);
}

.hero-etica::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(9, 109, 23, 0.3) 0%,
    rgba(43, 60, 150, 0.2) 50%,
    rgba(241, 105, 34, 0.3) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--naranja), var(--naranja-claro));
  color: var(--blanco);
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 2rem;
  animation: badgePulse 3s infinite;
  box-shadow: 0 10px 30px rgba(241, 105, 34, 0.3);
}

@keyframes badgePulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.hero-content h1 {
  font-size: 4rem;
  color: var(--blanco);
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, var(--blanco), var(--amarillo));
  background-clip: text;
  color: transparent;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 3rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  margin-top: 4rem;
}

.hero-stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--amarillo);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==================== SECTION TITLES ==================== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-subtitle {
  color: var(--naranja);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--negro);
}

.section-title span {
  color: var(--verde);
}

/* ==================== DEFINITION SECTION ==================== */
.definition-section {
  background: linear-gradient(135deg, var(--blanco) 0%, #f8f9fa 100%);
  position: relative;
  overflow: hidden;
}

.definition-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--verde), var(--azul));
}

.definition-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.definition-content {
  position: relative;
}

.definition-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--verde), var(--verde-claro));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
}

.definition-icon i {
  font-size: 2.5rem;
  color: var(--blanco);
}

.definition-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--negro);
}

.definition-content p {
  font-size: 1.1rem;
  line-height: 1.8;
}

.definition-visual {
  position: relative;
  perspective: 1000px;
}

.ethics-card {
  background: linear-gradient(135deg, var(--blanco), #f8f9fa);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transform-style: preserve-3d;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.ethics-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--naranja), var(--amarillo));
}

.ethics-card:hover {
  transform: translateY(-10px) rotateX(5deg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

.ethics-card h3 {
  color: var(--verde);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.ethics-list {
  list-style: none;
}

.ethics-list li {
  margin-bottom: 1rem;
  padding-left: 30px;
  position: relative;
  color: var(--gris-oscuro);
}

.ethics-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--verde);
  font-weight: bold;
  font-size: 1.2rem;
}

/* ==================== PRINCIPLES SECTION ==================== */
.principles-section {
  background: var(--blanco);
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.principle-card {
  background: var(--blanco);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.principle-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--verde), var(--azul));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.principle-card:hover::before {
  opacity: 1;
}

.principle-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--verde);
}

.principle-number {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: rgba(9, 109, 23, 0.1) !important;
  margin-bottom: 1rem;
}

.principle-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--naranja), var(--naranja-claro));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.principle-icon i {
  font-size: 1.8rem;
  color: var(--blanco);
}

.principle-card h3 {
  color: var(--negro);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.principle-card p {
  font-size: 1rem;
  color: var(--gris-oscuro);
}

/* ==================== REPORTING SECTION ==================== */
.reporting-section {
  background: linear-gradient(135deg, #0c0c0f 0%, #1a1a1f 100%);
  color: var(--blanco);
  position: relative;
  overflow: hidden;
}

.reporting-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(
      circle at 20% 50%,
      rgba(241, 105, 34, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(9, 109, 23, 0.1) 0%,
      transparent 50%
    );
}

.reporting-section .section-title,
.reporting-section .section-subtitle,
.reporting-section .section-title span {
  color: var(--blanco);
}

.reporting-section .section-subtitle {
  color: var(--amarillo);
}

.reporting-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.step-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  transition: var(--transition-smooth);
  position: relative;
  text-align: center;
}

.step-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--naranja);
  transform: translateY(-5px);
}

.step-number {
  display: inline-block;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--naranja), var(--naranja-claro));
  border-radius: 50%;
  color: var(--blanco);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 50px;
  margin-bottom: 1.5rem;
}

.step-card h3 {
  color: var(--blanco);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.step-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

/* ==================== CHANNELS SECTION ==================== */
.channels-section {
  background: var(--blanco);
}

.channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.channel-card {
  background: linear-gradient(135deg, var(--blanco), #f8f9fa);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition-smooth);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.channel-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--verde), var(--azul));
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.channel-card:hover::before {
  transform: translateY(0);
}

.channel-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.channel-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--azul), #3a4fb3);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  transition: var(--transition-smooth);
}

.channel-card:hover .channel-icon {
  transform: scale(1.1) rotate(5deg);
}

.channel-icon i {
  font-size: 2.5rem;
  color: var(--blanco);
}

.channel-card h3 {
  color: var(--negro);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.channel-card p {
  color: var(--gris-oscuro);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.channel-contact {
  color: var(--verde);
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 1rem;
}

/* ==================== PROTECTION SECTION ==================== */
.protection-section {
  background: linear-gradient(135deg, #f8f9fa 0%, var(--blanco) 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.protection-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.protection-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--verde), var(--verde-claro));
  color: var(--blanco);
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(9, 109, 23, 0.2);
}

.protection-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--negro);
}

.protection-content p {
  font-size: 1.1rem;
  color: var(--gris-oscuro);
}

/* ==================== CTA SECTION ==================== */
.cta-section {
  background: linear-gradient(135deg, #074610, #019916);
  color: var(--blanco);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--blanco);
}

.cta-content p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--naranja), var(--naranja-claro));
  color: var(--blanco);
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 20px 40px rgba(241, 105, 34, 0.3);
  color: var(--blanco);
}

.btn-secondary {
  background: transparent;
  color: var(--blanco);
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--blanco);
  transform: translateY(-3px);
  color: var(--blanco);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 3rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .definition-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .definition-content h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 80px 0;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-stats {
    gap: 30px;
  }

  .section-title {
    font-size: 2rem;
  }

  .principles-grid,
  .reporting-steps,
  .channels-grid {
    grid-template-columns: 1fr;
  }

  .ethics-card,
  .principle-card,
  .step-card,
  .channel-card {
    padding: 30px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-badge {
    font-size: 0.8rem;
    padding: 10px 20px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .definition-icon,
  .principle-icon,
  .channel-icon {
    width: 60px;
    height: 60px;
  }

  .definition-icon i,
  .principle-icon i,
  .channel-icon i {
    font-size: 1.5rem;
  }
}

/* ==================== NAVIGATION ==================== */
nav {
  padding: 1.5rem 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  width: 100%;
  z-index: 1000;
}

.logo {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--white);
  text-decoration: none;
}

.navbar-logo {
  max-width: 200px;
  height: auto;
}

.back-link {
  position: fixed;
  top: 20px;
  right: 100px;
  z-index: 1000;
  background: #d4660c;
  color: white;
  text-decoration: none;
  font-weight: 700;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  letter-spacing: 1px;
  transition: 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 0.5rem; /* Espacio entre flecha y texto */
  padding: 0.8rem 2rem 0.8rem 1.5rem; /* Ajusta padding izquierdo */
}
.back-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s;
}

.back-link:hover {
  background: #ffb600;
  color: var(--text-main);
}

.back-link:hover svg {
  transform: translateX(-3px); /* Efecto al hover */
}

/* En pantallas pequeñas */
@media (max-width: 768px) {
  .back-link {
    top: auto; /* Quita el top fijo */
    bottom: 20px; /* Lo coloca abajo */
    right: 50%; /* Centra horizontalmente */
    transform: translateX(50%); /* Ajusta para centrar perfectamente */
  }
}

/* Footer estilo Apple */
.footer {
  background: #1d1d1f;
  color: #ffffff;
  padding: 80px 20px 40px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-column h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 25px;
  color: #86868b;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 15px;
}

.footer-column ul li a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-column ul li a:hover {
  opacity: 1;
}

.footer-bottom {
  max-width: 1200px;
  margin: 60px auto 0;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: #86868b;
  font-size: 0.9rem;
}
