/* ==================================================
   SINIESTRO - DISEÑO PREMIUM MODERNO
   Corredora del Sur
================================================== */

/* ==================== HERO PAGE ==================== */
.page-hero {
  position: relative;
  height: 60vh;
  min-height: 450px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 15s ease;
}

.page-hero:hover .page-hero-bg {
  transform: scale(1.05);
}

.page-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
    rgba(30, 58, 95, 0.92) 0%,
    rgba(15, 31, 51, 0.85) 50%,
    rgba(10, 10, 10, 0.8) 100%);
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 800px;
  padding: 0 var(--container-padding);
  animation: heroFadeIn 1s ease forwards;
}

.page-hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--white);
  line-height: 1.1;
}

.page-hero-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

.page-hero-content::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--accent);
  margin: 30px auto 0;
  border-radius: 4px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

.breadcrumb a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb span {
  color: var(--accent);
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== MAIN SECTION ==================== */
.siniestro-section {
  padding: 100px 0;
  background: var(--off-white);
  position: relative;
  overflow: hidden;
}

.siniestro-section::before {
  content: '';
  position: absolute;
  top: -300px;
  right: -300px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,162,39,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.siniestro-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
  position: relative;
  z-index: 2;
}

/* ==================== FORMULARIO ==================== */
.form-wrapper {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--gray-100);
}

.form-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #dc3545 0%, var(--accent) 50%, var(--primary) 100%);
  z-index: 10;
}

.form-header {
  padding: 35px 40px 25px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-header-text h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.form-header-text p {
  font-size: 15px;
  color: var(--gray-500);
  margin: 0;
}

.expand-btn {
  width: 45px;
  height: 45px;
  background: var(--off-white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--gray-600);
  font-size: 18px;
}

.expand-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: scale(1.1);
}

.form-container {
  position: relative;
  height: 600px;
}

.form-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Loader */
.form-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--white);
  z-index: 5;
  transition: opacity 0.3s ease;
}

.form-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-loader p {
  color: var(--gray-500);
  font-size: 14px;
}

/* ==================== INFO PANEL ==================== */
.info-panel {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* Process Card */
.process-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 35px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
  transition: all 0.4s ease;
}

.process-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.process-card-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-100);
}

.process-card-icon {
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 22px;
  flex-shrink: 0;
}

.process-card-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
}

/* Steps */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--off-white);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.step-item:hover {
  background: var(--white);
  border-color: var(--gray-200);
  transform: translateX(8px);
}

.step-number {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 5px;
}

.step-content p {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.5;
  margin: 0;
}

/* Assistance Card */
.assistance-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-xl);
  padding: 35px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.assistance-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}

.assistance-card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.assistance-card-header i {
  font-size: 28px;
  color: var(--accent);
}

.assistance-card-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}

.assistance-card p {
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.9;
  margin-bottom: 25px;
  color: var(--white);
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 30px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-lg);
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
  color: var(--white);
}

.whatsapp-btn i {
  font-size: 22px;
}

/* ==================== MODAL ==================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(5px);
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  opacity: 1;
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 900px;
  height: 85vh;
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.modal.show .modal-content {
  transform: translate(-50%, -50%) scale(1);
}

.modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #dc3545 0%, var(--accent) 50%, var(--primary) 100%);
  z-index: 10;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: var(--gray-100);
  border: none;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  font-size: 18px;
  color: var(--gray-600);
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: #dc3545;
  color: var(--white);
  transform: rotate(90deg);
}

.modal-iframe-container {
  width: 100%;
  height: 100%;
  padding-top: 10px;
}

.modal-iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .siniestro-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .form-container {
    height: 550px;
  }
}

@media (max-width: 768px) {
  .page-hero {
    height: 50vh;
    min-height: 350px;
  }

  .siniestro-section {
    padding: 70px 0;
  }

  .form-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 25px;
  }

  .expand-btn {
    align-self: flex-end;
  }

  .form-container {
    height: 500px;
  }

  .process-card,
  .assistance-card {
    padding: 25px;
  }
}

@media (max-width: 576px) {
  .page-hero {
    height: 45vh;
    min-height: 300px;
  }

  .page-hero-content h1 {
    font-size: 2rem;
  }

  .step-item {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .step-item:hover {
    transform: translateY(-5px);
  }

  .modal-content {
    width: 95%;
    height: 90vh;
  }
}

/* ==================== ANIMATIONS ==================== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Body modal open */
body.modal-open {
  overflow: hidden;
}
