/**
 * Estilos para Página PQRS
 * COADO LTDA
 */

/* Variables CSS */
:root {
  --green: #1f7a5a;
  --dark: #0e3f2f;
  --soft: #e8f5f0;
  --gold: #ffd166;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-pqrs {
  background: linear-gradient(135deg, var(--green) 0%, var(--dark) 100%);
  color: white;
  padding: 5rem 0 3rem;
  margin-top: 70px;
  text-align: center;
}

.hero-pqrs .hero-icon {
  font-size: 5rem;
  margin-bottom: 1rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.hero-pqrs h1 {
  font-weight: 800;
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: fadeInDown 0.8s;
}

.hero-pqrs p {
  font-size: 1.3rem;
  opacity: 0.95;
  animation: fadeInUp 0.8s;
}

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

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

/* ========================================
   SECCIÓN PQRS
   ======================================== */
.pqrs-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* ========================================
   TARJETAS DE INFORMACIÓN
   ======================================== */
.info-card {
  background: white;
  border-radius: 1.5rem;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--green), var(--gold));
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.info-card .info-icon {
  font-size: 3.5rem;
  text-align: center;
  margin-bottom: 1rem;
}

.info-card h3 {
  color: var(--green);
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.info-card p {
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: justify;
  margin-bottom: 1rem;
}

.info-card p:last-child {
  margin-bottom: 0;
}

.info-destaque {
  background: var(--soft);
  padding: 1rem;
  border-radius: 0.75rem;
  border-left: 4px solid var(--green);
  margin-top: 1rem;
  font-size: 1rem;
}

.info-destaque strong {
  color: var(--dark);
}

/* ========================================
   TARJETA DEL FORMULARIO
   ======================================== */
.form-card {
  background: white;
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #e2e8f0;
}

.form-header .form-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.form-header h2 {
  color: var(--green);
  font-weight: 800;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.form-header p {
  color: #64748b;
  font-size: 1.1rem;
}

/* ========================================
   CAJA DE AUTORIZACIÓN
   ======================================== */
.autorizacion-box {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border: 2px solid #3b82f6;
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.autorizacion-box i {
  color: #1e40af;
  font-size: 1.5rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.autorizacion-box p {
  margin: 0;
  color: #1e3a8a;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 600;
}

/* ========================================
   FORMULARIO
   ======================================== */
.form-group label {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
  display: block;
  font-size: 1rem;
}

.form-group label i {
  color: var(--green);
  margin-right: 0.5rem;
}

.form-control {
  border: 2px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  font-size: 1.05rem;
  transition: all 0.3s;
  color: #1e293b;
}

.form-control:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 0.2rem rgba(31, 122, 90, 0.1);
  outline: none;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231f7a5a' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* ========================================
   CHECKBOX PERSONALIZADO
   ======================================== */
.checkbox-group {
  margin: 1.5rem 0;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--dark);
  font-size: 1rem;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.checkbox-label span {
  line-height: 1.5;
}

.checkbox-label a {
  color: var(--green);
  text-decoration: underline;
  font-weight: 700;
}

.checkbox-label a:hover {
  color: var(--dark);
}

/* ========================================
   reCAPTCHA
   ======================================== */
.recaptcha-container {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}

/* ========================================
   BOTÓN ENVIAR
   ======================================== */
.btn-enviar {
  background: linear-gradient(135deg, var(--green) 0%, var(--dark) 100%);
  color: white;
  border: none;
  padding: 1.25rem 2rem;
  border-radius: 0.75rem;
  font-weight: 800;
  font-size: 1.2rem;
  width: 100%;
  transition: all 0.3s;
  cursor: pointer;
  margin-top: 1rem;
}

.btn-enviar:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(31, 122, 90, 0.4);
}

.btn-enviar:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  transform: none;
}

.spinner {
  display: inline-block;
}

.form-nota {
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
  margin-top: 1rem;
  margin-bottom: 0;
}

/* ========================================
   ALERTAS
   ======================================== */
.alert {
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  animation: slideIn 0.5s;
}

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

.alert-success {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border: 2px solid #10b981;
  color: #065f46;
}

.alert-danger {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border: 2px solid #ef4444;
  color: #7f1d1d;
}

/* ========================================
   RESPONSIVE DESIGN - TABLET
   ======================================== */
@media (max-width: 991px) {
  .hero-pqrs {
    padding: 4rem 0 2.5rem;
  }
  
  .hero-pqrs h1 {
    font-size: 2.5rem;
  }
  
  .pqrs-section {
    padding: 3rem 0;
  }
  
  .form-card {
    margin-top: 0;
  }
}

/* ========================================
   RESPONSIVE DESIGN - MÓVIL
   ======================================== */
@media (max-width: 768px) {
  .hero-pqrs {
    padding: 3rem 0 2rem;
  }
  
  .hero-pqrs .hero-icon {
    font-size: 4rem;
  }
  
  .hero-pqrs h1 {
    font-size: 2rem;
  }
  
  .hero-pqrs p {
    font-size: 1.1rem;
  }
  
  .info-card,
  .form-card {
    padding: 1.5rem;
  }
  
  .info-card h3 {
    font-size: 1.3rem;
  }
  
  .form-header .form-icon {
    font-size: 3rem;
  }
  
  .form-header h2 {
    font-size: 1.75rem;
  }
  
  .autorizacion-box {
    flex-direction: column;
    text-align: center;
  }
  
  .autorizacion-box i {
    margin: 0 auto 0.75rem;
  }
  
  .btn-enviar {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
  }
  
  .recaptcha-container {
    transform: scale(0.9);
    transform-origin: center;
  }
}

/* ========================================
   RESPONSIVE DESIGN - MÓVIL PEQUEÑO
   ======================================== */
@media (max-width: 480px) {
  .hero-pqrs h1 {
    font-size: 1.75rem;
  }
  
  .info-card,
  .form-card {
    padding: 1.25rem;
  }
  
  .form-header h2 {
    font-size: 1.5rem;
  }
  
  .checkbox-label {
    font-size: 0.9rem;
  }
  
  .recaptcha-container {
    transform: scale(0.85);
  }
}
