/* ===================================================
   VARIABLES GLOBALES
=================================================== */
:root {
  --Colors-Blue-400: #102851;
  --Colors-Whites-00: #ffffff;
}

/* ===================================================
   ESTILO GENERAL DEL SITIO
=================================================== */
body {
  color: var(--Colors-Blue-400);
}

/* Excepción: texto blanco sobre imagen oscura */
.image-left {
  color: var(--Colors-Whites-00);
  width: 40%;
  min-height: 700px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("multimedia/BancodeImagenesWeb/medium-shot-woman-working-laptop.jpg");
  background-size: cover;
  background-position: center;

  display: flex;
  align-items: flex-end;
  padding: 40px;
}

/* Texto sobre imagen izquierda */
.overlay-text h2 {
  font-size: 50px;
  margin-bottom: 8px;
  line-height: 1.1;
}

.overlay-text p {
  font-size: 20px;
  line-height: 1.4;
}

/* ===================================================
   SECCIÓN PRINCIPAL CON IMAGEN DE FONDO
=================================================== */
.form-section {
  background:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    url("multimedia/FigurasPAS/B.1.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  justify-content: center;
  padding: 130px 46px 60px; /* margen superior bajo el nav */
}

/* ===================================================
   PANEL BLANCO GENERAL
=================================================== */
.container-general {
  max-width: 1170px;
  width: 100%;
  border-radius: 20px;
  background-color: var(--Colors-Whites-00);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

  display: flex;
  overflow: hidden; /* recorta bordes de hijos */
}

/* ===================================================
   BLOQUE DERECHO: FORMULARIO
=================================================== */

.form-container {
  flex: 1;
  padding: 32px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.form-content-wrapper {
  position: relative;
  flex-grow: 1; /* ocupa el espacio restante */
  max-height: 100%;
  width: 80%;
  margin: auto;
}


.form-step {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

/* ===================================================
   TEXTOS DE ENCABEZADO
=================================================== */
.title {
  color: var(--Colors-Blue-400);
  font-size: 30px;
  font-weight: 600;
  margin: 32px 0 12px;
}

.subtitle {
  color: var(--Colors-Blue-400);
  font-size: 15px;
  font-weight: 600;
  margin: 4px 0 12px;
}

/* ===================================================
   BOTONES PRINCIPALES GRANDES (Paso 1)
=================================================== */
.buttons-container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  width: 263px;
  height: 63px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;

  color: var(--Colors-Blue-400);
  background-color: var(--Colors-Whites-00);
  border: none;
  border-radius: 20px;
  font-size: 18px;
  font-weight: 600;

  box-shadow: 0 2px 6px rgba(16, 40, 81, 0.15);
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #e1e8ff;
}

.icon-container {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background-color: var(--Colors-Blue-400);
  color: var(--Colors-Whites-00);

  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* ===================================================
   BOTONES DE NAVEGACIÓN PEQUEÑOS
=================================================== */


.btn-nav {
  width: 150px;
  padding: 8px 0;
  background-color: var(--Colors-Blue-400);
  color: var(--Colors-Whites-00);
  font-size: 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.3s;
}

.btn-nav:hover {
  opacity: 0.85;
}

/* ===================================================
   CAMPOS DE TEXTO
=================================================== */
textarea,
input[type="text"],
input[type="email"],
input[type="date"],
input[type="time"] {
  width: 100%;
  padding: 10px;
  margin: 5px 0 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
}


/* ===================================================
   OPCIONES DEL PRIMER PASO (Automóvil / Hogar)
=================================================== */
.grupo-siniestros {
  margin-bottom: 30px;
}

.grupo-siniestros h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

.options-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Radio button personalizado */
.custom-radio {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.custom-radio input {
  display: none; /* oculta el input real */
}

.custom-radio span {
  display: flex;
  align-items: center;
  gap: 10px;

  width: 200px;
  height: 63px;

  padding: 12px 16px;
  background-color: #ffffff;
  border: 1.5px solid #ccc;
  border-radius: 20px;

  font-size: 16px;
  color: #102851;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
  justify-content: flex-start;
}

.custom-radio span img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.custom-radio input:checked + span {
  border-color: #2f54eb;
  color: #2f54eb;
  font-weight: 600;
}

.custom-radio i {
  font-size: 18px;
}

/* ===================================================
   OPCIONES RECTANGULARES CON ÍCONO (Estilo botón)
=================================================== */
.opcion {
  display: flex;
  align-items: center;
  gap: 12px;

  width: 263px;
  height: 63px;

  padding: 16px 24px;
  border-radius: 20px;
  border: 1.5px solid transparent;
  background-color: white;

  cursor: pointer;
  transition: border-color 0.3s ease;

  box-sizing: border-box;
}

.opcion:hover {
  border-color: #102851;
}

.opcion span {
  color: #102851;
  font-weight: 600;
  font-size: 18px;
}

.icono-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

/* ===================================================
   CONTENEDOR DE BOTONES FINAL (Submit/Back)
=================================================== */
.form-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
}

/* ===================================================
   PANEL AZUL DE CONTACTO (opcional)
=================================================== */
.container-contacto {
  background-color: #007BFF;
  padding: 80px;
}

/* ===================================================
   FORMULARIO ADICIONAL (contacto, paso extra, etc)
=================================================== */
.formulario {
  background-color: #F6F7FF;
  padding: 20px;
  border-radius: 16px;
  max-width: 600px;
  margin: auto;
}

.titulo-formulario {
  color: #24336F;
  font-size: 24px;
  margin-bottom: 24px;
}

/* Contenedor con distribución en columnas */
.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columnas de igual ancho */
  gap: 16px; /* Espaciado entre los botones */
  margin-top: 16px;
  margin-bottom: 32px;
}

/* Botones de siniestro (grid 2 columnas) */
.botones-siniestro {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  justify-content: center;
}


@media (max-width: 1024px) {
  .container-general {
    flex-direction: column;
  }

  .image-left {
    width: 100%;
    min-height: 400px;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
  }

  .overlay-text{
    margin: 20px;
  }

  .form-container {
    padding: 40px;
    min-height: 750px;
  }

  .buttons-container,
  .options-group,
  .botones-siniestro {
    justify-content: center;
  }

  .btn,
  .opcion {
    width: 100%;
  }
  .options-grid{
    grid-template-columns: 1fr 1fr;
    
  }
  .botones-siniestro {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .form-section {
    padding: 80px 20px 40px;
  }

  .form-container {
    padding: 24px;
    min-height: 1000px;
  }

  .overlay-text h2 {
    font-size: 28px;
  }

  .overlay-text p {
    font-size: 16px;
  }

  .title {
    font-size: 22px;
    text-align: center;
  }

  .subtitle {
    font-size: 14px;
    text-align: center;
  }

  .btn {
    height: 56px;
    font-size: 16px;
    justify-content: center;
  }

  .btn-nav {
    width: 100%;
    font-size: 18px;
  }

  .form-buttons {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .container-contacto {
    padding: 40px 20px;
  }

  .formulario {
    padding: 16px;
    max-width: 100%;
  }

  .titulo-formulario {
    font-size: 20px;
    text-align: center;
  }
  .options-grid{
    grid-template-columns: 1fr;
  }
 
  .botones-siniestro {
    grid-template-columns: 1fr;
  }

  .opcion span {
    font-size: 16px;
  }

  .icono-img {
    width: 24px;
    height: 24px;
  }
}
