/* ===== ESTILOS PARA PÁGINA DE SINIESTROS - CORREDORA DE SEGUROS DEL SUR ===== */

/* ==== VARIABLES GLOBALES ==== */
:root {
  /* Colores principales */
  --primary-color: #00a651; /* Verde corporativo */
  --primary-dark: #008a43;
  --primary-light: #e6f7ed;
  --secondary-color: #0063a6; /* Azul corporativo */
  --secondary-dark: #004d80;
  --secondary-light: #e6f2f9;
  --accent-color: #f39c12; /* Naranja para acentos */
  --accent-dark: #d68910;
  --accent-light: #fdebd0;
  --warning-color: #e74c3c; /* Rojo para alertas */
  
  /* Escala de grises */
  --dark-color: #212529;
  --text-color: #3a3a3a;
  --text-light: #555555;
  --light-color: #ffffff;
  --gray-lightest: #fafafa;
  --gray-light: #f5f5f5;
  --gray-medium: #e9ecef;
  --gray-dark: #6c757d;
  
  /* Fuentes */
  --font-primary: 'Montserrat', sans-serif;
  --font-secondary: 'Poppins', sans-serif;
  
  /* Efectos */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.035);
  --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-focus: 0 0 0 4px rgba(0, 166, 81, 0.15);
  
  /* Bordes */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  
  /* Transiciones */
  --transition-bounce: 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ==== ESTILOS BASE ==== */
body.siniestro-page {
  font-family: var(--font-secondary);
  color: var(--text-color);
  background-color: var(--light-color);
  position: relative;
  overflow-x: hidden;
}

body.siniestro-page::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, var(--light-color) 0%, var(--gray-light) 100%);
}

body.siniestro-page::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 16H9v-2h5V9.87a4 4 0 1 1 2 0V14h5v2h-5v15.95A10 10 0 0 0 23.66 27l-3.46-2 8.2-2.2-2.9 5a12 12 0 0 1-21 0l-2.89-5 8.2 2.2-3.47 2A10 10 0 0 0 14 31.95V16zm40 40h-5v-2h5v-4.13a4 4 0 1 1 2 0V54h5v2h-5v15.95A10 10 0 0 0 63.66 67l-3.47-2 8.2-2.2-2.88 5a12 12 0 0 1-21.02 0l-2.88-5 8.2 2.2-3.47 2A10 10 0 0 0 54 71.95V56zm-39 6a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm40-40a2 2 0 1 1 0-4 2 2 0 0 1 0 4zM15 8a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm40 40a2 2 0 1 0 0-4 2 2 0 0 0 0 4z' fill='%2300a651' fill-opacity='0.04' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* Previene el desplazamiento cuando el modal está abierto */
body.modal-open {
  overflow: hidden;
}

/* Estilos para scrollbar personalizada */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--gray-light);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
  border-radius: 6px;
  border: 3px solid var(--gray-light);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, var(--primary-dark), var(--secondary-dark));
}

/* ==== HEADER DE SINIESTRO ==== */
.siniestro-header {
  position: relative;
  text-align: center;
  padding: 100px 20px 80px;
  background: linear-gradient(135deg, rgba(0, 166, 81, 0.07) 0%, rgba(0, 99, 166, 0.05) 100%);
  overflow: hidden;
}

.siniestro-header::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200px;
  bottom: -100px;
  left: -50%;
  background-color: var(--light-color);
  border-radius: 50% 50% 0 0;
  z-index: 1;
}

.siniestro-header::after {
  content: "";
  position: absolute;
  top: 20%;
  right: 15%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at center, rgba(0, 166, 81, 0.15) 0%, rgba(0, 166, 81, 0) 70%);
  border-radius: 50%;
  animation: float 15s infinite ease-in-out;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-20px, 10px) scale(1.05); }
  50% { transform: translate(10px, -15px) scale(0.95); }
  75% { transform: translate(15px, 5px) scale(1.02); }
}

.siniestro-header .floating-element {
  position: absolute;
  top: 15%;
  left: 12%;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle at center, rgba(0, 99, 166, 0.12) 0%, rgba(0, 99, 166, 0) 70%);
  border-radius: 50%;
  animation: float2 20s infinite ease-in-out;
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, 15px) scale(1.1); }
  66% { transform: translate(-15px, -10px) scale(0.9); }
}

.siniestro-header h1 {
  font-family: var(--font-primary);
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
  color: var(--dark-color);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  z-index: 2;
}

.siniestro-header h1::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 3px;
  transition: width var(--transition-normal);
}

.siniestro-header h1:hover::after {
  width: 150px;
}

.siniestro-header p {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--gray-dark);
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  font-weight: 300;
}

/* ==== CONTENEDOR PRINCIPAL DE SINIESTRO ==== */
.siniestro-container {
  max-width: 1300px;
  margin: 50px auto 100px;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

/* Elemento decorativo */
.siniestro-container::before {
  content: "";
  position: absolute;
  top: -50px;
  left: -100px;
  width: 150px;
  height: 150px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150' viewBox='0 0 150 150'%3E%3Cpath d='M30,75 C30,50 50,30 75,30 C100,30 120,50 120,75 C120,100 100,120 75,120 C50,120 30,100 30,75 Z' fill='none' stroke='%2300a651' stroke-width='1' stroke-dasharray='8,6' opacity='0.15'/%3E%3C/svg%3E");
  z-index: -1;
  animation: rotate 40s linear infinite;
}

.siniestro-container::after {
  content: "";
  position: absolute;
  bottom: -70px;
  right: -80px;
  width: 200px;
  height: 200px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cpath d='M40,100 C40,70 70,40 100,40 C130,40 160,70 160,100 C160,130 130,160 100,160 C70,160 40,130 40,100 Z' fill='none' stroke='%230063a6' stroke-width='1.5' stroke-dasharray='12,8' opacity='0.1'/%3E%3C/svg%3E");
  z-index: -1;
  animation: rotate 60s linear infinite reverse;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==== DISEÑO EN DOS COLUMNAS ==== */
.siniestro-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  position: relative;
}

/* ==== COLUMNA IZQUIERDA: FORMULARIO ==== */
.siniestro-left {
  background: var(--light-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-bounce);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.siniestro-left:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.siniestro-left::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  z-index: 2;
}

.siniestro-left::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle at top right, rgba(0, 99, 166, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: 1;
  pointer-events: none;
}

.siniestro-left h2 {
  font-family: var(--font-primary);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin: 0 0 30px;
  position: relative;
  padding-left: 20px;
  z-index: 2;
  border-bottom: 2px solid var(--gray-light);
  padding-bottom: 15px;
}

.siniestro-left h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 5px;
  background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
  border-radius: 3px;
}

/* Botón de expansión */
#expand-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 45px;
  height: 45px;
  background: var(--light-color);
  border: 2px solid var(--gray-medium);
  border-radius: 50%;
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

#expand-btn:hover {
  border-color: var(--primary-color);
  transform: scale(1.1) rotate(15deg);
  box-shadow: var(--shadow-md);
}

#expand-btn img {
  width: 24px;
  height: 24px;
  transition: transform var(--transition-normal);
}

#expand-btn:hover img {
  transform: scale(1.1);
}

/* Contenedor del iframe */
.iframe-container {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  opacity: 0;
  transition: opacity var(--transition-normal);
  display: none;
}

.iframe-container.loaded {
  opacity: 1;
}

.iframe-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* Loader */
.loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: 60px;
  height: 60px;
}

.loader::before,
.loader::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid transparent;
}

.loader::before {
  border-top-color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  animation: spin1 1.5s infinite ease-in-out;
}

.loader::after {
  width: 48px;
  height: 48px;
  border-left-color: var(--secondary-color);
  border-right-color: var(--secondary-color);
  animation: spin2 1.5s infinite ease-in-out;
}

@keyframes spin1 {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes spin2 {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(-360deg); }
}

/* ==== COLUMNA DERECHA: GUÍA DE PROCESO Y ASISTENCIA ==== */
.siniestro-right {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* ==== TARJETA DE PROCESO ==== */
.process-card {
  background: var(--light-color);
  border-radius: var(--radius-lg);
  padding: 35px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-bounce);
  border: 1px solid rgba(0, 0, 0, 0.05);
  flex: 1;
  margin-bottom: 30px;
}

.process-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.process-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
  z-index: 2;
}

.process-card h3 {
  font-family: var(--font-primary);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 25px;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.process-card h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
  transition: width var(--transition-fast);
}

.process-card:hover h3::after {
  width: 100px;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.step-item {
  display: flex;
  align-items: flex-start;
  padding: 10px;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

.step-item:hover {
  background-color: var(--gray-lightest);
  transform: translateX(5px);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  font-weight: 700;
  margin-right: 15px;
  flex-shrink: 0;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.step-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--dark-color);
}

.step-content p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-light);
  margin: 0;
}

/* ==== TARJETA DE ASISTENCIA DE EMERGENCIA ==== */
.emergency-card {
  background: var(--light-color);
  border-radius: var(--radius-lg);
  padding: 35px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-bounce);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.emergency-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.emergency-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
  z-index: 2;
}

.emergency-card h3 {
  font-family: var(--font-primary);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 25px;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.emergency-card h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--accent-color), var(--primary-color));
  border-radius: 2px;
  transition: width var(--transition-fast);
}

.emergency-card:hover h3::after {
  width: 100px;
}

/* ==== ITEMS DE CONTACTO ==== */
.contact-items {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-item {
  display: flex;
  align-items: center;
  padding: 20px;
  background-color: var(--gray-lightest);
  border-radius: var(--radius-md);
  position: relative;
  transition: all var(--transition-normal);
  border-left: 4px solid transparent;
}

.contact-item:first-child {
  border-left-color: var(--accent-color);
}

.contact-item:last-child {
  border-left-color: var(--secondary-color);
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-sm);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: white;
  margin-right: 20px;
  flex-shrink: 0;
  font-size: 1.3rem;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-bounce);
}

.contact-item:first-child .contact-icon {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
}

.contact-item:last-child .contact-icon {
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
}

.contact-item:hover .contact-icon {
  transform: scale(1.1) rotate(10deg);
}

.contact-content h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 5px;
  color: var(--dark-color);
}

.contact-phone {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-color);
  margin: 5px 0;
}

.contact-description {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 5px 0 0;
}

.chat-button {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 20px;
  background: linear-gradient(to right, var(--secondary-color), var(--secondary-dark));
  color: white;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-normal);
  box-shadow: 0 3px 10px rgba(0, 99, 166, 0.2);
}

.chat-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 99, 166, 0.3);
  background: linear-gradient(to right, var(--secondary-dark), var(--secondary-color));
}

/* ==== MODAL PARA FORMULARIO AMPLIADO ==== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.modal.show {
  opacity: 1;
}

.modal-content {
  background-color: var(--light-color);
  margin: 5vh auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 85%;
  height: 90vh;
  position: relative;
  overflow: hidden;
  transform: translateY(-20px);
  opacity: 0;
  transition: all var(--transition-bounce);
}

.modal.show .modal-content {
  transform: translateY(0);
  opacity: 1;
}

.modal-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
  z-index: 10;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  background-color: var(--light-color);
  border: none;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--gray-dark);
  cursor: pointer;
  transition: all var(--transition-normal);
  z-index: 11;
}

.modal-close:hover {
  background-color: var(--warning-color);
  color: var(--light-color);
  transform: rotate(90deg);
}

.modal-iframe-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.modal-iframe-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.modal-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 12;
}

/* ==== ANIMACIONES ==== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ==== RESPONSIVE ==== */
@media (max-width: 1200px) {
  .siniestro-container {
    max-width: 95%;
  }
  
  .siniestro-header h1 {
    font-size: 3.2rem;
  }
}

@media (max-width: 992px) {
  .siniestro-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .siniestro-header h1 {
    font-size: 2.8rem;
  }
  
  .siniestro-header {
    padding: 80px 20px 60px;
  }
  
  .process-card, .emergency-card {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .siniestro-header h1 {
    font-size: 2.4rem;
  }
  
  .siniestro-header p {
    font-size: 1.1rem;
  }
  
  .siniestro-left h2,
  .process-card h3,
  .emergency-card h3 {
    font-size: 1.4rem;
  }
  
  .