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

/* SCROLLBAR CON EFECTOS DE LUZ */
::-webkit-scrollbar {
  width: 14px;
}

::-webkit-scrollbar-track {
  background: linear-gradient(180deg, #0a0a0a, #1a1a1a);
  border-radius: 10px;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgb(255, 153, 0), rgb(255, 136, 0));
  border-radius: 10px;
  border: 2px solid #0a0a0a;
  position: relative;
}

::-webkit-scrollbar-thumb::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent);
  border-radius: 10px 10px 0 0;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgb(255, 170, 51), rgb(255, 153, 0));
  box-shadow: 
    0 0 10px rgba(255, 153, 0, 0.8),
    inset 0 0 5px rgba(255, 255, 255, 0.2);
}

::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, rgb(255, 136, 0), rgb(255, 153, 0));
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgb(255, 153, 0) #1a1a1a;
}

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

body {
      font-family: 'Montserrat Alternates', sans-serif;
      background-color: #111111;
      color: #ffffff;
      line-height: 1.6;
      padding: 20px;
      min-height: 100vh;
    }

.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: fadeIn 0.8s ease-out;
    }

.header {
      text-align: center;
      margin-bottom: 40px;
      padding-bottom: 30px;
      border-bottom: 2px solid rgb(255, 153, 0);
      animation: slideDown 0.6s ease-out;
    }

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

h1 {
      color: rgb(255, 153, 0);
      font-size: 2.5rem;
      margin-bottom: 15px;
      font-weight: bold;
    }

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

.intro-section {
      background: rgba(255, 153, 0, 0.05);
      border-radius: 10px;
      padding: 25px;
      margin: 20px 0;
      animation: fadeInUp 0.8s ease-out 0.2s both;
    }

.intro-title {
      justify-content: center;
      color: rgb(255, 153, 0);
      font-size: 1.3rem;
      margin-bottom: 15px;
      display: flex;
      align-items: center;
      gap: 10px;
    }

.intro-content {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 25px;
      margin-top: 20px;
    }

.intro-card {
      background: rgba(255, 255, 255, 0.03);
      border-radius: 8px;
      padding: 20px;
      border: 1px solid rgba(255, 153, 0, 0.2);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

.intro-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 20px rgba(255, 153, 0, 0.1);
    }

.intro-card h3 {
      color: rgb(255, 153, 0);
      margin-bottom: 12px;
      font-size: 1.1rem;
      display: flex;
      align-items: center;
      gap: 8px;
    }

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

.intro-card li {
      padding: 6px 0;
      color: #cccccc;
      font-size: 0.9rem;
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
      display: flex;
      align-items: flex-start;
      gap: 8px;
      transition: color 0.3s ease;
    }

.intro-card li:hover {
      color: rgb(255, 153, 0);
    }

.intro-card li:last-child {
      border-bottom: none;
    }

.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: rgb(255, 153, 0);
      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;
      
      transition: all 0.3s ease;
    }

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

.storyboard-grid {
      display: grid;
      grid-template-columns: repeat(2, 2fr);
      gap: 25px;
      margin: 40px 0;
    }

.shot-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.6s ease-out;
    }

.shot-card:hover {
      border-color: rgb(255, 153, 0);
      transform: translateY(-3px);
      box-shadow: 0 8px 25px rgba(255, 153, 0, 0.2);
    }

.shot-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
      padding-bottom: 15px;
      border-bottom: 1px solid #333;
    }

.shot-number {
      background: rgb(255, 153, 0);
      color: black;
      padding: 8px 16px;
      border-radius: 20px;
      font-weight: bold;
      font-size: 1.1rem;
      transition: transform 0.3s ease;
    }

.shot-card:hover .shot-number {
      transform: scale(1.05);
    }

.shot-duration {
      display: flex;
      align-items: center;
      gap: 8px;
      color: #cccccc;
      font-size: 0.9rem;
    }

.duration-input {
      background: rgba(255, 255, 255, 0.1);
      border: 1px solid #444;
      border-radius: 4px;
      padding: 4px 8px;
      color: white;
      width: 50px;
      text-align: center;
      transition: all 0.3s ease;
    }

.duration-input:focus {
      border-color: rgb(255, 153, 0);
      transform: scale(1.05);
    }

.drawing-area {
      height: 200px;
      border: 2px dashed #444;
      background: rgba(255, 255, 255, 0.02);
      border-radius: 8px;
      margin-bottom: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #666;
      font-style: italic;
      transition: all 0.3s ease;
      padding: 15px;
      text-align: center;
      cursor: pointer;
    }

.shot-card:hover .drawing-area {
      border-color: rgb(255, 153, 0);
      background: rgba(255, 153, 0, 0.05);
      transform: scale(1.01);
    }

.shot-details {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 15px;
      margin-bottom: 15px;
    }

.detail-group {
      display: flex;
      flex-direction: column;
      gap: 5px;
    }

.detail-label {
      color: rgb(255, 153, 0);
      font-weight: bold;
      font-size: 0.8rem;
    }

/* ===== ESTILOS MEJORADOS PARA SELECTS ===== */
.detail-input {
  border: 1px solid #444;
  border-radius: 4px;
  padding: 8px 10px;
  color: white;
  font-family: inherit;
  font-size: 0.9rem;
  width: 100%;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff9900' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 35px;
}

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

/* Estilos específicos para selects */
.detail-input option {
  background: #1a1a1a;
  color: white;
  padding: 10px;
}

.detail-input::-ms-expand {
  display: none;
}

/* Para navegadores Webkit (Chrome, Safari) */
.detail-input::-webkit-select-placeholder {
  color: #888;
}

.detail-input::-webkit-select-option {
  background: #1a1a1a;
  color: white;
}

/* Para Firefox */
.detail-input option {
  background: #1a1a1a;
  color: white;
}

/* Para Internet Explorer */
.detail-input::-ms-value {
  background: transparent;
  color: white;
}

.detail-input::-ms-expand {
  display: none;
}

/* Estilos para los otros inputs también */
.info-input, .duration-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;
 
  transition: all 0.3s ease;
}

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

.description-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #444;
  border-radius: 6px;
  padding: 12px;
  color: white;
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
  min-height: 80px;
  transition: all 0.3s ease;
}

.description-textarea:focus {
  outline: none;
  border-color: rgb(255, 153, 0);
  box-shadow: 0 0 0 2px rgba(255, 153, 0, 0.2);
  transform: scale(1.01);
}

/* Estilos para los placeholders */
.info-input::placeholder,
.duration-input::placeholder,
.description-textarea::placeholder {
  color: #888;
  opacity: 1;
}

/* Para navegadores Webkit */
.info-input::-webkit-input-placeholder,
.duration-input::-webkit-input-placeholder,
.description-textarea::-webkit-input-placeholder {
  color: #888;
}

/* Para Firefox */
.info-input::-moz-placeholder,
.duration-input::-moz-placeholder,
.description-textarea::-moz-placeholder {
  color: #888;
  opacity: 1;
}

/* Para Internet Explorer */
.info-input:-ms-input-placeholder,
.duration-input:-ms-input-placeholder,
.description-textarea:-ms-input-placeholder {
  color: #888;
}

/* Responsive para selects */
@media screen and (max-width: 768px) {
  .detail-input {
    font-size: 0.85rem;
    padding: 10px 12px;
    padding-right: 35px;
    background-position: right 12px center;
  }
  
  .info-input, .duration-input {
    font-size: 0.9rem;
    padding: 12px 14px;
  }
  
  .description-textarea {
    font-size: 0.85rem;
    padding: 10px 12px;
  }
}

.shot-description {
      margin-top: 15px;
    }

.description-label {
      color: rgb(255, 153, 0);
      font-weight: bold;
      font-size: 0.9rem;
      margin-bottom: 8px;
      display: block;
    }

.description-textarea {
      width: 100%;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid #444;
      border-radius: 6px;
      padding: 12px;
      color: white;
      font-family: inherit;
      font-size: 0.9rem;
      resize: vertical;
      min-height: 80px;
      transition: all 0.3s ease;
    }

.description-textarea:focus {
      outline: none;
      border-color: rgb(255, 153, 0);
      box-shadow: 0 0 0 2px rgba(255, 153, 0, 0.2);
      transform: scale(1.01);
    }

.legend-section {
      background: rgba(255, 153, 0, 0.1);
      border-radius: 12px;
      padding: 30px;
      margin: 40px 0;
      animation: fadeInUp 0.8s ease-out 0.6s both;
    }

.legend-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 25px;
      margin-top: 20px;
    }

.legend-category {
      background: rgba(255, 255, 255, 0.05);
      border-radius: 8px;
      padding: 20px;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

.legend-category:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 20px rgba(255, 153, 0, 0.1);
    }

.legend-title {
      color: rgb(255, 153, 0);
      font-weight: bold;
      margin-bottom: 15px;
      font-size: 1.1rem;
      display: flex;
      align-items: center;
      gap: 10px;
    }

.legend-list {
      list-style: none;
    }

.legend-list li {
      padding: 6px 0;
      color: #cccccc;
      font-size: 0.9rem;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      transition: color 0.3s ease;
    }

.legend-list li:hover {
      color: rgb(255, 153, 0);
    }

.legend-list li:last-child {
      border-bottom: none;
    }

/* ===== NUEVA SECCIÓN DE COMPARTIR ENLACE ===== */
    .share-section {
      background: rgba(255, 153, 0, 0.1);
      border-radius: 12px;
      padding: 30px;
      margin: 40px 0;
      animation: fadeInUp 0.8s ease-out 0.7s both;
    }

.share-container {
      display: flex;
      flex-direction: column;
      gap: 20px;
      margin-top: 20px;
    }

.share-input-group {
      display: flex;
      gap: 10px;
    }

.share-input {
      flex: 1;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid #444;
      border-radius: 8px;
      padding: 12px 15px;
      color: white;
      font-family: inherit;
      font-size: 1rem;
      transition: all 0.3s ease;
    }

.share-input:focus {
      outline: none;
      border-color: rgb(255, 153, 0);
      box-shadow: 0 0 0 2px rgba(255, 153, 0, 0.2);
      background: rgba(255, 255, 255, 0.08);
    }

.btn-share {
      background: linear-gradient(135deg, rgb(255, 153, 0), rgb(255, 136, 0));
      color: black;
      border: none;
      border-radius: 8px;
      padding: 12px 20px;
      cursor: pointer;
      font-weight: bold;
      transition: all 0.3s ease;
      font-family: 'Montserrat Alternates', sans-serif;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }

.btn-share:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 15px rgba(255, 153, 0, 0.3);
    }

.share-info {
      background: rgba(255, 153, 0, 0.1);
      border-radius: 8px;
      padding: 15px;
      font-size: 0.9rem;
      border-left: 4px solid rgb(255, 153, 0);
    }

/* ===== NUEVA SECCIÓN DE IMAGEN VISUAL ===== */
    .camera-visual-section {
      background: rgba(255, 153, 0, 0.1);
      border-radius: 12px;
      padding: 30px;
      margin: 40px 0;
      animation: fadeInUp 0.8s ease-out 0.8s both;
    }

.camera-image-container {
      text-align: center;
      margin-top: 20px;
    }

.camera-reference {
      max-width: 100%;
      height: auto;
      border-radius: 8px;
      border: 2px solid rgba(255, 153, 0, 0.3);
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

.camera-caption {
      color: #cccccc;
      font-size: 0.9rem;
      margin-top: 15px;
      font-style: italic;
    }

/* Indicador de guardado - ARRIBA AL CENTRO */
    .save-indicator {
      position: fixed;
      top: 20px;
      left: 50%;
      transform: translateX(-50%) translateY(-20px);
      background: rgba(255, 153, 0, 0.95);
      color: black;
      padding: 12px 25px;
      border-radius: 25px;
      font-weight: bold;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
      opacity: 0;
      transition: all 0.4s ease;
      z-index: 1000;
      text-align: center;
      min-width: 200px;
      font-size: 0.95rem;
    }

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

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

.btn-download {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      background: linear-gradient(135deg, rgb(255, 153, 0), 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-download:hover {
      transform: translateY(-2px);
      box-shadow: 0 5px 15px rgba(255, 153, 0, 0.4);
      animation: none;
    }

.btn-download-secondary {
      background: transparent;
      border: 2px solid rgb(255, 153, 0);
      color: rgb(255, 153, 0);
    }

.btn-download-secondary:hover {
      background: rgb(255, 153, 0);
      color: black;
    }

.btn-reset {
      background: linear-gradient(135deg, #ff6b6b, #ff5252);
      color: white;
    }

.btn-reset:hover {
      box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4) !important;
    }

/* ===== BOTONES FIJOS CON SCROLL - MODIFICADO ===== */
.fixed-buttons-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: row; /* Cambiado de column a row */
  gap: 10px;
  z-index: 999;
}

.custom-btn-fixed-scroll {
  position: static; /* Anula el position: fixed del stylesheet.css */
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgb(255, 153, 0), rgb(255, 136, 0));
  color: black;
  text-decoration: none;
  border: none;
  border-radius: 25px;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 153, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.custom-btn-fixed-scroll.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-btn-fixed-scroll:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 153, 0, 0.4);
  color: white;
}

.custom-btn-fixed-scroll:active {
  transform: translateY(-1px);
}

@keyframes slideDown {
      from {
        opacity: 0;
        transform: translateY(-20px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

/* ===== MEDIA QUERIES MEJORADAS PARA PANTALLAS PEQUEÑAS ===== */
@media screen and (max-width: 768px) {
  .container {
    padding: 20px 15px;
  }
  
  .header {
    margin-bottom: 30px;
    padding-bottom: 20px;
  }
  
  .logo {
    font-size: 3rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .subtitle {
    font-size: 1rem;
  }
  
  .intro-section {
    padding: 20px;
  }
  
  .intro-content {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .project-info {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 20px;
  }
  
  .storyboard-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* CORRECCIÓN ESPECÍFICA PARA EL HEADER DE LOS PLANOS */
  .shot-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding-bottom: 15px;
  }
  
  .shot-number {
    position: static;
    align-self: flex-start;
    font-size: 1rem;
    padding: 6px 12px;
  }
  
  .shot-duration {
    position: static;
    align-self: flex-start;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  
  .duration-input {
    width: 50px;
  }
  
  .shot-details {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .drawing-area {
    height: 150px;
    font-size: 0.9rem;
  }
  
  .legend-section,
  .share-section,
  .camera-visual-section {
    padding: 20px;
  }
  
  .legend-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .share-input-group {
    flex-direction: column;
  }
  
  .download-buttons {
    
    align-items: center;
    gap: 10px;
  }
  
  .btn-download {
    width: 100%;
    max-width: 300px;
    justify-content: center;
    padding: 10px 20px;
  }
  
  .fixed-buttons-container {
    bottom: 15px;
    right: 15px;
  }
  
  .custom-btn-fixed-scroll {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
  
  .save-indicator {
    width: 90%;
    max-width: 300px;
    font-size: 0.9rem;
    padding: 10px 20px;
  }
  
  .camera-reference {
    max-width: 100%;
    height: auto;
  }
}

/* Para pantallas muy pequeñas (móviles pequeños) */
@media screen and (max-width: 480px) {
  .container {
    padding: 15px 10px;
  }
  
  .logo {
    font-size: 2.5rem;
  }
  
  h1 {
    font-size: 1.7rem;
  }
  
  .intro-section,
  .project-info,
  .legend-section,
  .share-section,
  .camera-visual-section {
    padding: 15px;
  }
  
  .shot-card {
    padding: 20px;
  }
  
  .drawing-area {
    height: 120px;
    font-size: 0.85rem;
  }
  
  .description-textarea {
    min-height: 70px;
  }
  
  .fixed-buttons-container {
    bottom: 10px;
    right: 10px;
  }
  
  .custom-btn-fixed-scroll {
    padding: 8px 14px;
    font-size: 0.85rem;
  }
}

/* Para tablets en orientación vertical */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .storyboard-grid {
    grid-template-columns: 1fr;
  }
  
  .shot-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .shot-number {
    position: static;
  }
  
  .shot-duration {
    position: static;
  }
}

/* Estilos para el Disclaimer */
.disclaimer-section {
    background: linear-gradient(135deg, rgba(255, 153, 0, 0.15), rgba(255, 136, 0, 0.1));
    border: 1px solid rgba(255, 153, 0, 0.4);
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
    animation: fadeInUp 0.8s ease-out;
}

.disclaimer-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.disclaimer-icon {
    font-size: 2rem;
    flex-shrink: 0;
    margin-top: 5px;
}

.disclaimer-text h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.disclaimer-text p {
    color: #e0e0e0;
    line-height: 1.5;
    margin: 0;
    font-size: 0.95rem;
}

.disclaimer-text strong {
    color: #ffffff;
}

/* Responsive para el disclaimer */
@media (max-width: 768px) {
    .disclaimer-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .disclaimer-icon {
        margin-top: 0;
    }
    
    .disclaimer-text h4 {
        font-size: 1rem;
    }
    
    .disclaimer-text p {
        font-size: 0.9rem;
    }
}