.normas-header {
  background: white;
  padding: 6rem 0 3rem;
  position: relative;
  margin-bottom: 3rem;
}

.wave-separator {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-separator svg {
  display: block;
  width: 100%;
  height: 100px;
  position: relative;
  filter: drop-shadow(0 -2px 10px rgba(74, 158, 232, 0.2));
}

.normas-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 0;
  background: linear-gradient(90deg, 
    #2d7ac4 0%, 
    #4a9ee8 30%, 
    #7ec0f2 50%, 
    #4a9ee8 70%, 
    #2d7ac4 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: wave 5s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(74, 158, 232, 0.4));
  letter-spacing: 0.05em;
}

@keyframes wave {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.normas-intro {
  padding: 3rem 0;
  background: white;
}

.intro-text {
  font-size: clamp(1.1rem, 2vw, 1.2rem);
  line-height: 1.8;
  color: var(--text-dark);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 3rem;
}

.info-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.info-box {
  background: rgba(74, 158, 232, 0.05);
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
  transition: all 0.3s ease;
}

.info-box:hover {
  background: rgba(74, 158, 232, 0.1);
  transform: translateX(5px);
}

.info-box i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: block;
}

.info-box p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
  margin: 0;
}

.important-notice {
  background: linear-gradient(135deg, rgba(74, 158, 232, 0.1), rgba(95, 195, 228, 0.1));
  padding: 2.5rem;
  border-radius: 15px;
  border: 2px solid rgba(74, 158, 232, 0.3);
  box-shadow: 0 5px 20px rgba(74, 158, 232, 0.15);
}

.important-notice h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.important-notice ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.important-notice ul li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.8rem;
  color: var(--text-dark);
  line-height: 1.6;
}

.important-notice ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.notice-footer {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-blue);
  margin: 0;
  text-align: center;
}

.normas-content {
  padding: 4rem 0;
  background: white;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  background: linear-gradient(90deg, 
    #2d7ac4 0%, 
    #4a9ee8 30%, 
    #7ec0f2 50%, 
    #4a9ee8 70%, 
    #2d7ac4 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: wave 5s ease-in-out infinite;
  margin-bottom: 1rem;
}

.regla-categoria {
  background: white;
  padding: 2.5rem;
  border-radius: 15px;
  margin-bottom: 2.5rem;
  box-shadow: 0 5px 25px rgba(74, 158, 232, 0.15);
  border: 2px solid rgba(95, 195, 228, 0.2);
  transition: all 0.3s ease;
}

.regla-categoria:hover {
  box-shadow: 0 8px 35px rgba(74, 158, 232, 0.25);
  transform: translateY(-3px);
}

.categoria-titulo {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid rgba(74, 158, 232, 0.2);
}

.categoria-titulo .numero {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(74, 158, 232, 0.3);
}

.subseccion {
  margin-bottom: 2rem;
}

.subseccion:last-child {
  margin-bottom: 0;
}

.subseccion h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-blue);
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 4px solid var(--accent-color);
}

.subseccion-intro {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.reglas-list {
  list-style: none;
  padding-left: 0;
}

.reglas-list li {
  padding-left: 2rem;
  position: relative;
  margin-bottom: 1rem;
  color: var(--text-dark);
  line-height: 1.8;
  font-size: 1rem;
}

.reglas-list li::before {
  content: "▪";
  position: absolute;
  left: 0.5rem;
  color: var(--primary-color);
  font-size: 1.2rem;
}

.reglas-list ul {
  list-style: none;
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

.reglas-list ul li::before {
  content: "◦";
  color: var(--accent-color);
}

.destacado-box {
  background: rgba(74, 158, 232, 0.08);
  padding: 2rem;
  border-radius: 12px;
  border-left: 5px solid var(--primary-color);
  margin-top: 1.5rem;
}

.destacado-box h5 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.destacado-box p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.destacado-box ul {
  list-style: none;
  padding-left: 0;
}

.destacado-box ul li {
  padding-left: 2rem;
  position: relative;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.destacado-box ul li::before {
  content: "✦";
  position: absolute;
  left: 0.5rem;
  color: var(--primary-color);
}

.nota-importante {
  background: rgba(255, 193, 7, 0.15);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #ffc107;
  margin-top: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.nota-importante i {
  color: #ffc107;
  font-size: 1.3rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.nota-importante p,
.nota-importante strong {
  flex: 1 1 0;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

.warning-box {
  background: rgba(255, 87, 34, 0.1);
  padding: 1.2rem 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #ff5722;
  margin-top: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.warning-box i {
  color: #ff5722;
  font-size: 1.3rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.warning-box p,
.warning-box strong {
  flex: 1 1 0;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

.recommendation-box {
  background: rgba(255, 193, 7, 0.15);
  padding: 1.2rem 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #ffc107;
  margin-top: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.recommendation-box i {
  color: #ffc107;
  font-size: 1.3rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.recommendation-box p,
.recommendation-box strong {
  flex: 1 1 0;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

.procedimiento-ss {
  padding: 4rem 0;
  background: linear-gradient(180deg, white 0%, rgba(74, 158, 232, 0.03) 100%);
}

.plataformas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.plataforma-card {
  background: white;
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(74, 158, 232, 0.15);
  border: 2px solid rgba(95, 195, 228, 0.2);
  transition: all 0.3s ease;
}

.plataforma-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 35px rgba(74, 158, 232, 0.25);
}

.plataforma-card.java {
  border-top: 4px solid #4a9ee8;
}

.plataforma-card.bedrock {
  border-top: 4px solid #5fc3e4;
}

.plataforma-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-align: center;
}

.plataforma-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-blue);
  margin-bottom: 1.5rem;
  text-align: center;
}

.plataforma-card ul {
  list-style: none;
  padding-left: 0;
}

.plataforma-card ul li {
  padding-left: 2rem;
  position: relative;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.plataforma-card ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.plataforma-card p {
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: center;
  margin: 0;
}

.aspectos-ss {
  background: white;
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(74, 158, 232, 0.15);
  border: 2px solid rgba(95, 195, 228, 0.2);
  margin: 3rem 0;
}

.aspectos-ss > h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.aspecto-item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(74, 158, 232, 0.15);
}

.aspecto-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.aspecto-item h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-blue);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.aspecto-item h4 i {
  color: #4caf50;
}

.aspecto-item p {
  line-height: 1.7;
  margin-bottom: 0.8rem;
}

.aspecto-item ul {
  list-style: none;
  padding-left: 0;
}

.aspecto-item ul li {
  padding-left: 2rem;
  position: relative;
  margin-bottom: 0.8rem;
  line-height: 1.7;
}

.aspecto-item ul li::before {
  content: "▸";
  position: absolute;
  left: 0.5rem;
  color: var(--primary-color);
}

.aspecto-item.normas ul li i {
  margin-right: 0.5rem;
  color: #f44336;
}

.aspecto-item.normas ul li::before {
  content: "";
}

.agradecimiento {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-blue);
  margin: 3rem 0;
}

.download-section {
  text-align: center;
  margin-top: 3rem;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 3rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(74, 158, 232, 0.4);
}

.download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(74, 158, 232, 0.6);
}

.download-btn i {
  font-size: 1.3rem;
}

@media (max-width: 768px) {
  .normas-header {
    padding: 4rem 0 2rem;
    margin-bottom: 2rem;
  }

  .wave-separator svg {
    height: 50px;
  }

  .regla-categoria {
    padding: 1.5rem;
  }

  .categoria-titulo {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .info-boxes {
    grid-template-columns: 1fr;
  }

  .plataformas-grid {
    grid-template-columns: 1fr;
  }

  .aspectos-ss {
    padding: 1.5rem;
  }
  
  .warning-box,
  .warning-box p,
  .warning-box strong,
  .nota-importante,
  .nota-importante strong,
  .subseccion h4 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .normas-header {
    padding: 3rem 0 1.5rem;
    margin-bottom: 1.5rem;
  }

  .wave-separator svg {
    height: 35px;
  }

  .intro-text,
  .regla-item,
  .info-box,
  .warning-box,
  .warning-box p,
  .warning-box strong,
  .nota-importante,
  .nota-importante strong,
  .plataforma-info p,
  .subseccion h4,
  .categoria-titulo {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }

  .container {
    padding: 0 0.75rem;
  }

  .regla-item {
    padding: 0.75rem;
  }
}
