/* Panel base */
.panel {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 400px;
  max-width: 90vw;
  background: rgba(26, 10, 60, 0.98);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s ease;
  display: flex;
  flex-direction: column;
  color: #F9FAFB;
  font-family: 'Poppins', sans-serif;
}

.panel-left {
  left: 0;
  transform: translateX(-100%);
}

.panel-left.open {
  transform: translateX(0);
}

.panel-right {
  right: 0;
  transform: translateX(100%);
}

.panel-right.open {
  transform: translateX(0);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(249,115,22,0.3);
}

.panel-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  background: linear-gradient(135deg, #F97316, #fb923c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.panel-close {
  background: none;
  border: none;
  color: #F9FAFB;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
}

.panel-close:hover {
  color: #F97316;
}

.panel-content {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
}

.panel-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #F97316;
}

.panel-content h4 {
  font-size: 1.1rem;
  margin: 1rem 0 0.5rem;
  color: #fb923c;
}

.panel-divider {
  height: 2px;
  background: linear-gradient(90deg, #F97316, #6D28D9);
  margin: 1rem 0;
}

.panel-content ul {
  list-style: none;
  padding-left: 0;
}

.panel-content li {
  margin-bottom: 0.5rem;
  padding-left: 1.2rem;
  position: relative;
}

.panel-content li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: #F97316;
}

/* Formulario */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(249,250,251,0.8);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(249,115,22,0.3);
  background: rgba(109,40,217,0.2);
  color: #F9FAFB;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #F97316;
}

.submit-btn {
  background: #F97316;
  border: none;
  color: white;
  padding: 0.8rem;
  width: 100%;
  border-radius: 40px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.submit-btn:hover {
  background: #fb923c;
}

.submit-btn:active {
  transform: scale(0.98);
}

.form-feedback {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  text-align: center;
}

.form-feedback.success {
  color: #4ade80;
}

.form-feedback.error {
  color: #f87171;
}

/* Modo móvil: los paneles se convierten en modales centrados */
@media (max-width: 768px) {
  .panel {
    width: 90%;
    max-width: 90%;
    height: auto;
    max-height: 90vh;
    top: 50%;
    left: 50%;
    bottom: auto;
    right: auto;
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0s 0.3s, transform 0.3s;
    border-radius: 16px;
  }

  .panel.open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s, transform 0.3s;
  }

  /* Overlay para móviles */
  body.panel-open::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    backdrop-filter: blur(4px);
  }
}

/* Estilos mejorados para el panel Quiénes Somos */
.about-lema {
  margin-bottom: 1.8rem;
  position: relative;
}
.lema-line {
  display: block;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #F97316, #6D28D9);
  margin-bottom: 1rem;
  border-radius: 2px;
}
.about-lema h3 {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
  color: #F9FAFB;
  margin: 0;
}
.about-lema h3 br {
  display: none; /* Para escritorio, mejor que no se rompa */
}
@media (max-width: 480px) {
  .about-lema h3 br {
    display: block; /* En móvil sí rompe */
  }
}

.about-intro {
  font-size: 1rem;
  font-weight: 500;
  color: #F97316;
  border-left: 3px solid #F97316;
  padding-left: 1rem;
  margin: 1.5rem 0;
}

.about-highlight {
  background: rgba(109, 40, 217, 0.2);
  border-radius: 12px;
  padding: 1.2rem;
  margin: 1.5rem 0;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.about-highlight p {
  margin: 0;
  font-style: italic;
  color: rgba(249, 250, 251, 0.9);
}

.about-callout {
  background: rgba(249, 115, 22, 0.1);
  border-left: 4px solid #F97316;
  padding: 1rem 1rem 1rem 1.2rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
}

.about-callout p {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}

.about-callout strong {
  color: #F97316;
  font-weight: 700;
}

.about-footer {
  margin-top: 1.8rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(249, 115, 22, 0.3);
  font-size: 0.9rem;
  color: rgba(249, 250, 251, 0.8);
}