/* Defensa Page Specific Styles */

/* Stats Section */
.stats {
  background-color: #0b0f19;
  background: radial-gradient(circle at 20% 30%, #1e293b 0%, #0f172a 50%, #020617 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.stats::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.08) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: pulse-glow 8s infinite alternate ease-in-out;
}

@keyframes pulse-glow {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.7; }
  100% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.stat-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-top: 4px solid var(--accent);
  padding: 3rem 2rem;
  border-radius: 20px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.stat-card:hover {
  transform: translateY(-10px);
  border-color: rgba(217, 119, 6, 0.4);
  box-shadow: 0 25px 50px -12px rgba(217, 119, 6, 0.15);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.75rem;
  text-shadow: 0 0 20px rgba(217, 119, 6, 0.35);
  letter-spacing: -0.02em;
  display: inline-block;
  animation: number-pulse 2s infinite alternate ease-in-out;
}

@keyframes number-pulse {
  0% { transform: scale(1); text-shadow: 0 0 20px rgba(217, 119, 6, 0.3); }
  100% { transform: scale(1.03); text-shadow: 0 0 35px rgba(217, 119, 6, 0.5); }
}

.stat-label {
  font-size: 1.2rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Deudas Section with Accordion */
.deudas {
  background-color: var(--background);
}

.deudas-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: flex-start;
}

.deudas-intro h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.deudas-intro p {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.step-item {
  display: flex;
  gap: 1rem;
}

.step-num {
  width: 36px;
  height: 36px;
  background-color: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.step-detail h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.step-detail p {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* Video Section */
.video-section {
  background-color: var(--surface);
}

.video-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.video-header h2 {
  font-size: 2.5rem;
}

.video-header p {
  color: var(--text-light);
  margin-top: 0.5rem;
}

.video-container {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
  background-color: #000;
}

.video-container video {
  width: 100%;
  height: 100%;
  display: block;
}

/* Success Cases Slider (Resoluciones) */
.success-cases {
  background-color: var(--background);
}

.success-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.success-header h2 {
  font-size: 2.5rem;
}

.success-header p {
  color: var(--text-light);
  margin-top: 0.5rem;
}

.resolutions-swiper {
  width: 100%;
  padding: 1rem 0 4rem;
}

.resolution-card-slide {
  width: 320px;
}

.resolution-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.resolution-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.resolution-img-wrapper {
  height: 320px;
  overflow: hidden;
  background-color: var(--surface-alt);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.resolution-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: var(--transition);
}

.resolution-card:hover .resolution-img {
  transform: scale(1.05);
}

.resolution-detail {
  padding: 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.resolution-detail h4 {
  font-size: 1.1rem;
  color: var(--text-dark);
}

/* Contact Form Section */
.form-section {
  background-color: var(--surface);
}

.form-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: center;
}

.form-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.form-header p {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}



.form-image-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.form-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: var(--transition);
}

.form-image-wrapper:hover .form-img {
  transform: scale(1.02);
}

.form-image-badge {
  position: absolute;
  bottom: 30px;
  left: 30px;
  right: 30px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 12px;
  color: #fff;
  text-align: center;
}

.form-image-badge h4 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.form-image-badge p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* Responsive Defensa Styles */
@media (max-width: 1024px) {
  .stats-grid {
    gap: 2rem;
  }
  .deudas-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .form-img {
    height: 350px;
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .stat-number {
    font-size: 2.75rem;
  }
  .contact-form-wrapper {
    padding: 2rem 1.5rem;
  }
}
