/* ===================================================
   checklist.css — Estilos específicos de checklist.html
   Los estilos de nav, footer y animaciones globales
   viven en stylesheet.css
   =================================================== */

* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

:root {
      --primary-color: rgb(255, 153, 0);
      --secondary-color: #111111;
      --accent-color: #ff9900;
    }

body {
      font-family: 'Montserrat Alternates', sans-serif;
      background-color: var(--secondary-color);
      color: #ffffff;
      line-height: 1.6;
      padding: 20px;
      animation: fadeIn 1s ease-out;
    }

.container {
      max-width: 1200px;
      margin: 0 auto;
      background: linear-gradient(145deg, #1a1a1a, #151515);
      border-radius: 15px;
      padding: 40px;
      border: 1px solid #333;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
      animation: slideUp 0.8s ease-out;
    }

.disclaimer {
      background: rgba(255, 153, 0, 0.1);
      border-left: 4px solid var(--primary-color);
      border-radius: 8px;
      padding: 20px;
      margin-bottom: 30px;
      animation: fadeIn 1s ease-out 0.1s both;
    }

.disclaimer h3 {
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      gap: 10px;
      max-width: auto;
    }

.disclaimer p {
      color: #cccccc;
      font-size: 0.95rem;
    }

.header {
      text-align: center;
      margin-bottom: 40px;
      padding-bottom: 30px;
      border-bottom: 2px solid var(--primary-color);
      animation: fadeIn 1s ease-out 0.2s both;
    }

.logo {
      font-size: 4rem;
      margin-bottom: 20px;
      animation: bounceIn 1s ease-out;
    }

h1 {
      color: var(--primary-color);
      font-size: 2.5rem;
      margin-bottom: 15px;
      font-weight: bold;
    }

.subtitle {
      color: #cccccc;
      font-size: 1.2rem;
      margin-bottom: 10px;
    }

.project-info {
      background: rgba(255, 153, 0, 0.1);
      border-radius: 10px;
      padding: 25px;
      margin: 30px 0;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 20px;
      animation: fadeInUp 0.8s ease-out 0.4s both;
    }

.info-group {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

.info-label {
      color: var(--primary-color);
      font-weight: bold;
      font-size: 0.9rem;
    }

.info-input {
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid #444;
      border-radius: 6px;
      padding: 10px 12px;
      color: white;
      font-family: inherit;
      font-size: 1rem;
      width: 100%;
      transition: all 0.3s ease;
    }

.info-input:focus {
      outline: none;
      border-color: var(--primary-color);
      box-shadow: 0 0 0 2px rgba(255, 153, 0, 0.2);
      transform: scale(1.02);
    }

.checklist-container {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 25px;
      margin: 40px 0;
    }

.category-card {
      background: rgba(255, 255, 255, 0.05);
      border: 2px solid #333;
      border-radius: 12px;
      padding: 25px;
      transition: all 0.3s ease;
      animation: fadeInUp 0.8s ease-out;
    }

.category-card:nth-child(1) {
      animation-delay: 0.5s;
    }

.category-card:nth-child(2) {
      animation-delay: 0.6s;
    }

.category-card:nth-child(3) {
      animation-delay: 0.7s;
    }

.category-card:nth-child(4) {
      animation-delay: 0.8s;
    }

.category-card:hover {
      border-color: var(--primary-color);
      transform: translateY(-5px);
      box-shadow: 0 8px 25px rgba(255, 153, 0, 0.2);
    }

.category-header {
      display: flex;
      align-items: center;
      gap: 15px;
      margin-bottom: 20px;
      padding-bottom: 15px;
      border-bottom: 1px solid #333;
    }

.category-icon {
      font-size: 2rem;
      background: var(--primary-color);
      color: black;
      width: 60px;
      height: 60px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: transform 0.3s ease;
    }

.category-card:hover .category-icon {
      transform: scale(1.1) rotate(5deg);
    }

.category-title {
      color: var(--primary-color);
      font-size: 1.4rem;
      font-weight: bold;
    }

.equipment-list {
      list-style: none;
      margin-bottom: 20px;
    }

.equipment-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      transition: all 0.3s ease;
      position: relative;
    }

.equipment-item:hover {
      background: rgba(255, 255, 255, 0.03);
      padding-left: 10px;
      border-radius: 6px;
    }

.equipment-item:last-child {
      border-bottom: none;
    }

.checkbox {
      width: 20px;
      height: 20px;
      border: 2px solid #555;
      border-radius: 4px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;
      flex-shrink: 0;
    }

.checkbox.checked {
      background: var(--primary-color);
      border-color: var(--primary-color);
    }

.checkbox.checked::after {
      content: "✓";
      color: black;
      font-weight: bold;
    }

.equipment-name {
      flex: 1;
      color: #cccccc;
      transition: color 0.3s ease;
      padding-right: 30px;
    }

.equipment-item:hover .equipment-name {
      color: white;
    }

/* Botón eliminar para todos los elementos */
    .delete-btn {
      background: none;
      border: none;
      color: #ff5555;
      cursor: pointer;
      font-size: 1.2rem;
      width: 24px;
      height: 24px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 4px;
      transition: all 0.3s ease;
      opacity: 0;
      position: absolute;
      right: 0;
    }

.equipment-item:hover .delete-btn {
      opacity: 1;
    }

.delete-btn:hover {
      background: rgba(255, 85, 85, 0.2);
      transform: scale(1.1);
    }

.custom-item-input {
      background: rgba(255, 255, 255, 0.05);
      border: 1px dashed #555;
      border-radius: 6px;
      padding: 10px 12px;
      color: white;
      font-family: inherit;
      font-size: 0.9rem;
      width: 100%;
      margin-top: 10px;
      transition: all 0.3s ease;
    }

.custom-item-input:focus {
      outline: none;
      border-color: var(--primary-color);
      box-shadow: 0 0 0 2px rgba(255, 153, 0, 0.2);
    }

.add-custom-btn {
      display: flex;
      align-items: center;
      gap: 8px;
      background: rgba(255, 153, 0, 0.1);
      border: 1px solid rgba(255, 153, 0, 0.3);
      border-radius: 6px;
      padding: 8px 12px;
      color: var(--primary-color);
      font-family: inherit;
      font-size: 0.9rem;
      cursor: pointer;
      transition: all 0.3s ease;
      margin-top: 10px;
      width: 100%;
      justify-content: center;
    }

.add-custom-btn:hover {
      background: rgba(255, 153, 0, 0.2);
      transform: translateY(-2px);
    }

.action-buttons {
      display: flex;
      gap: 15px;
      justify-content: center;
      flex-wrap: wrap;
      margin-top: 20px;
    }

.btn-action {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      background: linear-gradient(135deg, var(--primary-color), rgb(255, 136, 0));
      color: black;
      padding: 12px 25px;
      border-radius: 8px;
      text-decoration: none;
      font-weight: bold;
      transition: all 0.3s ease;
      border: none;
      cursor: pointer;
      font-family: inherit;
      animation: pulse 2s infinite;
    }

.btn-action:hover {
      transform: translateY(-3px);
      box-shadow: 0 5px 15px rgba(255, 153, 0, 0.4);
      color: white;
      animation: none;
    }

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

.btn-secondary:hover {
      background: var(--primary-color);
      color: black;
    }

/* Botón Volver al Inicio Fijo */
    .back-to-top {
      position: fixed;
      bottom: 30px;
      right: 30px;
      background: var(--primary-color);
      color: black;
      width: 60px;
      height: 60px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
      text-decoration: none;
      box-shadow: 0 4px 15px rgba(255, 153, 0, 0.4);
      z-index: 1000;
      transition: all 0.3s ease;
      border: none;
      cursor: pointer;
      opacity: 0;
      transform: translateY(20px);
    }

.back-to-top.show {
      opacity: 1;
      transform: translateY(0);
    }

.back-to-top:hover {
      transform: translateY(-5px);
      box-shadow: 0 6px 20px rgba(255, 153, 0, 0.6);
      background: rgb(255, 170, 0);
    }

/* Indicador de guardado */
    .save-indicator {
      position: fixed;
      bottom: 20px;
      left: 20px;
      background: rgba(255, 153, 0, 0.9);
      color: black;
      padding: 10px 15px;
      border-radius: 8px;
      font-weight: bold;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
      opacity: 0;
      transform: translateY(20px);
      transition: all 0.3s ease;
      z-index: 1000;
    }

.save-indicator.show {
      opacity: 1;
      transform: translateY(0);
    }

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

/* Estilos para impresión */
    @media print {
      .back-to-top,
      .save-indicator,
      .btn-action,
      .delete-btn {
        display: none !important;
      }
      
      .container {
        box-shadow: none !important;
        border: 2px solid #ff9900 !important;
      }
      
      .category-card {
        break-inside: avoid;
      }
    }

/* Estilos para pantalla */
    @media screen and (max-width: 768px) {
      .container {
        padding: 25px 20px;
      }
      
      .logo {
        font-size: 3rem;
      }
      
      h1 {
        font-size: 2rem;
      }
      
      .project-info {
        grid-template-columns: 1fr;
      }
      
      .checklist-container {
        grid-template-columns: 1fr;
      }
      
      .action-buttons {
        flex-direction: column;
        align-items: center;
      }
      
      .btn-action {
        width: 100%;
        max-width: 300px;
        justify-content: center;
      }
      
      .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
      }
      
      .delete-btn {
        opacity: 1;
      }
    }