/* Estilos de normativas */

/* Hero principal */
.normativas-hero {
  background: linear-gradient(135deg, #4b0082 0%, #6b21a8 50%, #8b5cf6 100%);
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
  min-height: 400px;
}

.normativas-hero::before,
.normativas-hero::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFE55C"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg>') no-repeat center;
  background-size: contain;
  opacity: 0.15;
  z-index: 0;
}

.normativas-hero::before {
  top: 20%;
  left: 5%;
  animation: float 6s ease-in-out infinite;
}

.normativas-hero::after {
  bottom: 10%;
  right: 8%;
  animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(10deg);
  }
}

.normativas-hero-container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.normativas-hero-content {
  text-align: center;
}

.normativas-hero-content h1 {
  font-family: "Bobby Jones", sans-serif;
  font-size: 4rem;
  font-weight: 800;
  color: #ffe55c;
  margin-bottom: 1.5rem;
  text-shadow: 4px 4px 0px rgba(0, 0, 0, 0.2);
  animation: slideInDown 0.8s ease-out;
}

.normativas-hero-content p {
  font-family: "Bobby Jones", sans-serif;
  font-size: 1.5rem;
  color: white;
  max-width: 800px;
  margin: 0 auto;
  animation: slideInUp 0.8s ease-out 0.2s backwards;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Menu rapido de navegacion */
.quick-nav {
  background: white;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  position: static;
  z-index: 40;
}

.quick-nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.quick-nav-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, #4b0082 0%, #6b21a8 100%);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(75, 0, 130, 0.2);
  font-size: 0.9rem;
}

.quick-nav-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(75, 0, 130, 0.4);
  background: linear-gradient(135deg, #6b21a8 0%, #8b5cf6 100%);
}

.quick-nav-item svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.quick-nav-item span {
  font-family: "Oswald-Bold", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Secciones */
.normativas-section {
  padding: 3rem 2rem;
}

.normativas-section.alt-bg {
  background: #f8f9fa;
}

.normativas-container {
  max-width: 1400px;
  margin: 0 auto;
}

.section-subtitle {
  text-align: center;
  font-family: "Bobby Jones", sans-serif;
  font-size: 2.2rem;
  color: #4b0082;
  margin: 2rem 0 3rem;
  font-weight: 700;
  text-shadow: 2px 2px 0 rgba(255, 229, 92, 0.3);
}

/* Grid de tarjetas */
.normativas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 2.5rem;
  margin: 3rem 0;
}

/* Tarjetas de normativas */
.normativa-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 30px;
  padding: 3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15),
    0 5px 15px rgba(0, 0, 0, 0.1);
  border: 4px solid;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.normativa-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  opacity: 0.5;
}

.normativa-card::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle,
      rgba(255, 255, 255, 0.3) 0%,
      transparent 70%);
  transform: rotate(45deg);
  pointer-events: none;
}

.normativa-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2),
    0 10px 25px rgba(0, 0, 0, 0.15);
}

.normativa-card.card-success {
  font-family: "Oswald-Bold", sans-serif;
  border-color: #10b981;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.normativa-card.card-success::before {
  color: #10b981;
}

.normativa-card.card-danger {
  font-family: "Oswald-Bold", sans-serif;
  border-color: #ef4444;
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.normativa-card.card-danger::before {
  color: #ef4444;
}

.normativa-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 3px dashed rgba(75, 0, 130, 0.2);
  position: relative;
}

.normativa-header svg {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  padding: 10px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.normativa-card:hover .normativa-header svg {
  transform: rotate(10deg) scale(1.1);
}

.card-success .normativa-header svg {
  stroke: #10b981;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
}

.card-danger .normativa-header svg {
  stroke: #ef4444;
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
}

.normativa-header h3 {
  font-family: "Oswald-Bold", sans-serif;
  font-size: 2rem;
  color: #4b0082;
  margin: 0;
  font-weight: 800;
  text-shadow: 2px 2px 0 rgba(255, 229, 92, 0.3);
}

.normativa-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.normativa-list li {
  padding: 1.25rem 1.5rem;
  padding-left: 3rem;
  position: relative;
  color: #333;
  line-height: 1.8;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  font-size: 1.05rem;
}

.normativa-list li:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background: rgba(139, 92, 246, 0.08);
}

.normativa-list li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: #4b0082;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(75, 0, 130, 0.2);
}

.card-success .normativa-list li::before {
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.card-danger .normativa-list li::before {
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2);
}

.normativa-list li strong {
  color: #4b0082;
  font-weight: 800;
}

/* Cajas de info */
.info-box {
  font-family: "Oswald-Bold", sans-serif;
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: 20px;
  margin: 3rem 0;
  border-left: 6px solid;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.info-box.info-warning {
  background: #fff7ed;
  border-color: #f59e0b;
}

.info-box.info-primary {
  background: #eff6ff;
  border-color: #3b82f6;
}

.info-box.info-danger {
  background: #fef2f2;
  border-color: #ef4444;
}

.info-icon {
  flex-shrink: 0;
}

.info-icon svg {
  width: 48px;
  height: 48px;
}

.info-warning .info-icon svg {
  stroke: #f59e0b;
}

.info-primary .info-icon svg {
  stroke: #3b82f6;
}

.info-danger .info-icon svg {
  stroke: #ef4444;
}

.info-content h4 {
  font-family: "Oswald-Bold", sans-serif;
  font-size: 1.5rem;
  color: #4b0082;
  margin: 0 0 1rem 0;
}

.info-content p {
  color: #333;
  line-height: 1.8;
  margin: 0.75rem 0;
}

.info-content ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.info-content ul li {
  margin: 0.5rem 0;
  color: #333;
  line-height: 1.6;
}

/* Grid de reglas */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.rule-item {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  border: 3px solid #4b0082;
  text-align: center;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}


.rule-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(75, 0, 130, 0.2);
  background: white;
  border-color: #8b5cf6;
}

.rule-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
  transition: all 0.3s;
}

.rule-item:hover .rule-icon {
  transform: scale(1.2) rotate(5deg);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
}

.rule-item p {
  color: #333;
  line-height: 1.8;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
}

/* Cronograma de actividades */
.timeline {
  position: relative;
  padding: 2rem 0;
  margin: 2rem 0;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
  margin: 1.5rem 0;
  position: relative;
  animation: fadeInUp 0.5s ease-out backwards;
}

.timeline-item:nth-child(1) {
  animation-delay: 0.1s;
}

.timeline-item:nth-child(2) {
  animation-delay: 0.15s;
}

.timeline-item:nth-child(3) {
  animation-delay: 0.2s;
}

.timeline-item:nth-child(4) {
  animation-delay: 0.25s;
}

.timeline-item:nth-child(5) {
  animation-delay: 0.3s;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timeline-marker {
  flex-shrink: 0;
  width: 140px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.timeline-time {
  font-family: "Bobby Jones", sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: white;
  background: linear-gradient(135deg, #4b0082 0%, #6b21a8 100%);
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  border: 3px solid #ffe55c;
  text-align: center;
  box-shadow: 0 4px 15px rgba(75, 0, 130, 0.3);
  transition: all 0.3s;
}

.timeline-item:hover .timeline-time {
  transform: scale(1.08);
  box-shadow: 0 8px 25px rgba(75, 0, 130, 0.4);
  border-color: #ffe55c;
}

.timeline-subtime {
  font-size: 0.8rem;
  color: #4b0082;
  font-style: italic;
  margin-top: 0.5rem;
  display: block;
  font-weight: 700;
}

.timeline-content {
  flex: 1;
  background: white;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border-left: 4px solid #8b5cf6;
  transition: all 0.3s;
}

.timeline-content:hover {
  transform: translateX(5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  border-left-color: #ffe55c;
}

.timeline-content h4 {
  font-family: "Bobby Jones", sans-serif;
  font-size: 1.3rem;
  color: #4b0082;
  margin: 0 0 1rem 0;
  font-weight: 700;
}

.timeline-content p {
  color: #444;
  margin: 0.5rem 0;
  line-height: 1.6;
  font-size: 0.95rem;
}

.timeline-content ul {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0 0;
  display: grid;
  gap: 0.5rem;
}

.timeline-content ul li {
  padding: 0.5rem 0.75rem;
  padding-left: 2rem;
  position: relative;
  color: #333;
  background: rgba(139, 92, 246, 0.04);
  border-radius: 8px;
  border-left: 3px solid #8b5cf6;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.timeline-content ul li:hover {
  background: rgba(139, 92, 246, 0.08);
  transform: translateX(3px);
}

.timeline-content ul li::before {
  content: "•";
  position: absolute;
  left: 0.75rem;
  font-size: 1rem;
  color: #8b5cf6;
  font-weight: bold;
}

/* Cronograma de servicio */
.service-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 2rem 0;
}

.service-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  background: white;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  border-left: 4px solid #4b0082;
  transition: all 0.3s;
}

.service-item:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.12);
  border-left-color: #ffe55c;
}

.service-time {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.time-label {
  font-family: "Oswald-Bold", sans-serif;
  font-size: 1rem;
  color: #4b0082;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.time-value {
  font-size: 0.95rem;
  color: #666;
  font-weight: 600;
}

.service-description p {
  color: #333;
  line-height: 1.6;
  margin: 0.35rem 0;
  font-size: 0.95rem;
}

/* Tarjetas de decoradores */
.decorator-rules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.decorator-card {
  background: white;
  padding: 1.5rem;
  border-radius: 15px;
  border: 3px solid #4b0082;
  text-align: center;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.decorator-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(75, 0, 130, 0.2);
  border-color: #8b5cf6;
}

.decorator-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.decorator-card h4 {
  font-family: "Oswald-Bold", sans-serif;
  font-size: 1.1rem;
  color: #4b0082;
  margin: 0 0 0.75rem 0;
  font-weight: 800;
}

.decorator-card p {
  color: #444;
  line-height: 1.6;
  margin: 0;
  font-size: 0.9rem;
}

/* Responsabilidades */
.responsibility-box {
  background: linear-gradient(135deg, #4b0082 0%, #6b21a8 100%);
  color: white;
  padding: 2.5rem;
  border-radius: 25px;
  margin: 3rem 0;
  box-shadow: 0 15px 50px rgba(75, 0, 130, 0.3);
}

.responsibility-box h4 {
  font-family: "Fredoka", sans-serif;
  font-size: 2rem;
  color: #ffe55c;
  margin: 0 0 1.5rem 0;
  text-align: center;
}

.responsibility-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.responsibility-box ul li {
  padding: 1rem 0;
  padding-left: 2.5rem;
  position: relative;
  line-height: 1.8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.responsibility-box ul li:last-child {
  border-bottom: none;
}

.responsibility-box ul li::before {
  content: "⚠️";
  position: absolute;
  left: 0;
  font-size: 1.5rem;
}

/* Restriccion de altura */
.height-restriction {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background: #ffe55c;
  padding: 2rem;
  border-radius: 20px;
  margin: 3rem 0;
  border: 4px solid #4b0082;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.height-restriction svg {
  width: 60px;
  height: 60px;
  stroke: #4b0082;
  flex-shrink: 0;
}

.height-restriction p {
  font-family: "Fredoka", sans-serif;
  font-size: 1.5rem;
  color: #4b0082;
  margin: 0;
  text-align: center;
}

/* Boton de accion */
.cta-section {
  background: linear-gradient(135deg, #4b0082 0%, #6b21a8 50%, #8b5cf6 100%);
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle,
      rgba(255, 229, 92, 0.1) 0%,
      transparent 70%);
  animation: pulse-bg 4s infinite;
}

@keyframes pulse-bg {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-container h2 {
  font-family: "Fredoka", sans-serif;
  font-size: 3rem;
  color: #ffe55c;
  margin-bottom: 1rem;
  text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.2);
}

.cta-container p {
  font-size: 1.3rem;
  color: white;
  margin-bottom: 2.5rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: #ffe55c;
  color: #4b0082;
  padding: 1.5rem 3rem;
  border-radius: 50px;
  text-decoration: none;
  font-family: "Fredoka", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  transition: all 0.3s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cta-button:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.cta-button svg {
  width: 28px;
  height: 28px;
}

/* Responsive */
@media (max-width: 1024px) {
  .timeline-item {
    flex-direction: column;
  }

  .timeline-marker {
    width: 100%;
    margin-bottom: 1rem;
  }

  .service-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .normativas-hero-content h1 {
    font-size: 2.5rem;
  }

  .normativas-hero-content p {
    font-size: 1.2rem;
  }

  .quick-nav-container {
    grid-template-columns: 1fr;
  }

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

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

  .decorator-rules {
    grid-template-columns: 1fr;
  }

  .timeline-marker {
    width: 100%;
  }

  .timeline-time {
    font-size: 1.5rem;
    padding: 1rem 1.25rem;
  }

  .timeline-content {
    padding: 2rem;
  }

  .cta-container h2 {
    font-size: 2rem;
  }

  .cta-container p {
    font-size: 1.1rem;
  }

  .cta-button {
    font-size: 1.2rem;
    padding: 1.2rem 2rem;
  }
}

@media (max-width: 480px) {
  .normativas-hero {
    padding: 6rem 1rem 3rem;
  }

  .normativas-hero-content h1 {
    font-size: 2rem;
  }

  .normativas-section {
    padding: 3rem 1rem;
  }

  .info-box {
    flex-direction: column;
  }

  .height-restriction {
    flex-direction: column;
  }

  .timeline-item {
    margin: 1.5rem 0;
  }

  .timeline-marker::before {
    width: 100px;
    height: 100px;
  }

  .decorator-icon {
    font-size: 3.5rem;
  }
}