:root{
  --bg:#fcfcfc;
  --accent:#0b6d2c;
  --text:#222;
  --card:#fff;
}

/* Reset */
*{box-sizing:border-box}

body {
  /* Cambia 'Merriweather Sans' por Inter */
  font-family: 'Inter', system-ui, Arial, sans-serif; 
  margin: 0; 
  color: var(--text); 
  background: var(--bg); 
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Títulos con tipografía Poppins (estilo geométrico y grueso) */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #000000;
  margin-top: 0;
}

.container{
  width: min(1250px, calc(100% - 2rem)); /* Aumentamos el ancho de 1100px a 1250px */
  margin: 0 auto;
  padding: 0 1rem;
}

.site-header{
  background:var(--card); 
  border-bottom:1px solid #e6e6e6;
}

.brand img {
  max-height: 50px;   
  height: auto;
  width: auto;
}

nav a {
  margin-left: 1.2rem; 
  color: var(--text); 
  text-decoration: none;
  font-weight: 700;       
  font-family: 'Inter', system-ui, Arial, sans-serif; /* <-- Cambio aquí */
  letter-spacing: 0.5px;  
  text-transform: uppercase;
  position: relative;     
  padding-bottom: 4px;    
}

nav a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:0%;
  height:3px;
  background:#0b6d2c; 
  transition:width 0.3s ease;
  box-shadow:0 2px 6px rgba(0,168,89,0.5); 
}

nav a:hover::after{
  width:100%;  
}

.site-header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1rem;
  padding: 0.4rem 1rem;
}

.brand{
  margin-left: 0;           /* ✅ fuera negativos */
  display:flex;
  align-items:center;
}

nav{
  margin: 0;                /* ✅ fuera negativos */
  display:flex;
  align-items:center;
  gap: 1.2rem;
}

nav a{
  margin-left: 0;           /* ✅ ahora el gap maneja el espacio */
}

/* ============================= */
/* 🔹 Hero con imagen expandida  */
/* ============================= */
.hero {
  background: #fcfcfc;
  padding: 6rem 0; 
  overflow: hidden;
}

.hero-container {
  display: flex;
  align-items: center; 
  justify-content: space-between; 
  gap: 4rem; 
}

/* --- LADO IZQUIERDO (TEXTO) --- */
.hero-left {
  flex: 1; 
}

/* Contenedor (Equivalente a la mitad del grid max-w-7xl de Tailwind) */
.hero-text {
  max-width: 580px !important; 
  text-align: left;
  margin-left: 0; 
}

/* Título (Equivalente a: text-5xl font-bold leading-tight mb-4) */
.hero-text h1 {
  font-family: 'Poppins', sans-serif !important; 
  font-size: 3rem !important; /* text-5xl = 48px */
  font-weight: 700 !important; /* font-bold */
  line-height: 1.25 !important; /* leading-tight */
  letter-spacing: normal !important;
  color: #0b6d2c !important;
  margin-bottom: 1rem !important; /* mb-4 = 16px */
  margin-top: 0;
}

/* Párrafos (Equivalente a: text-xl text-muted-foreground mb-6 leading-relaxed) */
.hero-text p {
  font-family: 'Inter', system-ui, Arial, sans-serif !important;
  font-size: 1.25rem !important; /* text-xl = 20px */
  line-height: 1.625 !important; /* leading-relaxed */
  color: #555555 !important; 
  margin-bottom: 1.5rem !important; /* mb-6 = 24px */
}

/* --- LADO DERECHO (FOTO) --- */
.hero-right {
  flex: 1; 
  display: flex;
  justify-content: flex-end;
}

.hero-illustration {
  width: 100%;
  max-width: 600px; 
  height: auto;
  border-radius: 12px; 
  box-shadow: 0 10px 30px rgba(0,0,0,0.08); 
  object-fit: cover;
}

/* Ajuste para celulares */
@media (max-width: 991px) {
  .hero-container {
    flex-direction: column-reverse; 
    text-align: center;
    padding: 3rem 0;
    gap: 2rem;
  }
  .hero-text {
    max-width: 100%;
    text-align: center;
    margin-left: 0;
  }
  .hero-text h1 {
    font-size: 2.8rem; 
  }
  .hero-right {
    justify-content: center;
  }
}

/* ============================= */
/* 🔹 Logos Section              */
/* ============================= */
.logos-section {
  text-align: center;
  padding: 4rem 0;
  background: #fff;  
  width: 100%;        
}

.logos-section h2 {
  font-size: 1.8rem;
  color: #0b6d2c;
  margin-bottom: 2rem;
}

.logos-section .swiper{
  padding: 0; /* ✅ no infla la banda blanca */
}

.logos-section .swiper-slide{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 95px;
}

.logos-section .swiper-slide img{
  width: 185px;
  height: 85px;
  object-fit: contain;
  margin: 0 auto;

  filter: none;              /* ✅ sin gris / sin opacidad */
  opacity: 1;                /* ✅ color original */
  box-shadow: none;          /* ✅ por si algún logo tenía sombra */
  transition: transform 0.25s ease;
}

/* (opcional) hover suave sin cambiar color */
.logos-section .swiper-slide img:hover{
  transform: scale(1.03);
}

.swiper-pagination-bullet {
  background: #ccc; 
  opacity: 0.7;
}

.swiper-pagination-bullet-active {
  background: #0b6d2c; 
  opacity: 1;
}

.logos-section .swiper-button-next,
.logos-section .swiper-button-prev {
  width: 25px;        
  height: 25px;       
  color: #0b6d2c;     
  opacity: 0.6;       
  transition: opacity 0.3s ease, transform 0.2s ease;
  top: 50%;           
  transform: translateY(-50%);
}

.logos-section .swiper-button-next::after,
.logos-section .swiper-button-prev::after {
  font-size: 18px;    
  font-weight: bold;
}

.logos-section .swiper-button-next:hover,
.logos-section .swiper-button-prev:hover {
  opacity: 1;          
  transform: translateY(-50%) scale(1.1); 
}

/* ============================= */
/* 🔹 Sección Riesgos            */
/* ============================= */
.seguros-section {
  padding: 4rem 0;
  background: #f7f7f8;
  text-align: center;
}

.seguros-section h2 {
  font-size: 1.8rem;
  color: #0b6d2c; 
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-align: left; /* 👇 Esta es la línea mágica que los empuja a la izquierda */
}

/* 👇 ESTA ES LA REGLA NUEVA 👇 */
/* Selecciona específicamente el segundo <h2> (Coberturas Personales) para bajarlo */
.seguros-section h2:nth-of-type(2) {
  margin-top: 5rem; /* Ajusta este número si quieres más o menos espacio (ej. 4rem o 6rem) */
}

/* ============================= */
/* ✅ Cards Riesgos (nuevo estilo) */
/* ============================= */

.seguros-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 1.6rem;
  justify-items: stretch;
}

/* La card ahora es un <a> */
.seguro-card{
  --r: 22px;
  --media-w: 44%;
  --card-bg: linear-gradient(135deg, rgba(11,109,44,0.10), rgba(11,109,44,0.02));

  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 130px;

  border-radius: var(--r);
  overflow: hidden;

  background: #fff;
  border: 1px solid #e6e6e6;
  box-shadow: 0 12px 26px rgba(0,0,0,0.08);

  text-decoration: none;
  color: inherit;

  transition: transform .18s ease, box-shadow .18s ease;
}

/* ocultamos el icono pero lo dejamos para el alt (mapeo de fondos) */
.seguro-card > img{
  display: none;
}

/* zona izquierda (texto) */
.seguro-content{
  flex: 1;
  padding: 18px 18px 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}

.seguro-title{
  margin: 0;
  font-size: 1.1rem;
  font-weight: 900;
  color: #0b6d2c;
  letter-spacing: 0.2px;
}

.seguro-subtitle{
  margin: 0;
  font-size: 0.92rem;
  color: #4a4a4a;
  line-height: 1.25;
  max-width: 18ch;
}

/* zona derecha (imagen recortada) */
.seguro-media{
  width: var(--media-w);
  position: relative;
  overflow: hidden;
  border-top-right-radius: var(--r);
  border-bottom-right-radius: var(--r);
  border-top-left-radius: 70px;
  border-bottom-left-radius: 70px;
}

/* imagen de fondo */
.seguro-media::before{
  content:"";
  position:absolute;
  inset:0;
  background: var(--card-bg) center/cover no-repeat;
  transform: scale(1.02);
}

/* micro overlay para que quede más “premium” */
.seguro-media::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    to left,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.06) 35%,
    rgba(0,0,0,0.00) 70%
  );
}

/* Hover / Focus */
.seguro-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.12);
}

.seguro-card:focus-visible{
  outline: 3px solid rgba(11,109,44,0.35);
  outline-offset: 3px;
}

/* Responsive */
@media (max-width: 640px){
  .seguros-grid{
    grid-template-columns: 1fr;
  }
  .seguro-card{
    min-height: 120px;
  }
  .seguro-subtitle{
    max-width: 28ch;
  }
}

/* ============================= */
/* 🔹 Servicios                  */
/* ============================= */
.servicios-section {
  background: #fff;  
  padding: 4rem 0;
}

.servicios-section h2 {
  text-align: center;
  font-size: 1.8rem;
  color: #0b6d2c; 
  margin-bottom: 2.5rem;
  font-weight: 700;
}

.servicio {
  margin-bottom: 2.5rem;
}

.servicio h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0b6d2c;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.servicio p {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
  margin: 0;
}

/* ============================= */
/* 🔹 Contacto                   */
/* ============================= */
.contact-section {
  padding: 4rem 0;
  background: #f7f7f8;
}

.contact-title {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #0b6d2c; 
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 0.7rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 0.95rem;
  width: 100%;
  box-sizing: border-box;
}

.contact-form select[name="motivo"] {
  grid-column: span 3;
}

.contact-form textarea {
  grid-column: span 3;
  min-height: 120px;
  resize: vertical;
}

.contact-form small {
  grid-column: span 3;
  font-size: 0.85rem;
  color: #666;
}

.btn-wrapper {
  grid-column: span 3;
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.btn-submit {
  padding: 0.6rem 1.5rem;
  background: #0b6d2c;   
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.3s ease;
  max-width: 180px;
  text-align: center;
}

.btn-submit:hover {
  background: #0e8542;   
}

/* ============================= */
/* 🔹 Footer fijo abajo          */
/* ============================= */
main {
  flex: 1;
}

.site-footer {
  background: #0b6d2c;
  text-align: center;
  padding: 0.2rem 0;
  font-size: 0.9rem;
  color: #fff;
  border-top: 1px solid #fff;
}

/* ============================= */
/* 🔹 Formulario de Siniestros   */
/* ============================= */
.form-section {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
  padding: 1.5rem 2rem;
  margin: 1.5rem auto;         /* centrado */
  border: 1px solid #e6e6e6;
  max-width: 900px;            /* ancho limitado como NB */
  width: 100%;
}

.form-section h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #0b6d2c;
  text-transform: uppercase;
  border-bottom: 1px solid #e6e6e6;
  padding-bottom: 0.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem 1.5rem;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  padding: 0.7rem;              /* igual que contacto (opcional) */
  border: 1px solid #ccc;
  border-radius: 8px;           /* igual que contacto (opcional) */
  font-size: 0.95rem;
  font-family: 'Merriweather Sans', Inter, system-ui, Arial, sans-serif;
  font-weight: 400;             /* ✅ ESTO ES LO CLAVE */
  width: 100%;
  box-sizing: border-box;
  transition: border 0.2s ease, box-shadow 0.2s ease;
  height: auto;                 /* contacto no fuerza 38px */
  min-height: 43px;             /* igual a contacto aprox */
}

.form-grid textarea {
  min-height: 100px;
  height: auto;
  resize: vertical;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  border: 1px solid #0b6d2c;
  outline: none;
  box-shadow: 0 0 6px rgba(11,109,44,0.2);
}

/* 🔹 Denuncia de Siniestro: 3 columnas */
.form-section:first-of-type .form-grid {
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
}

.form-section:first-of-type .form-grid > * {
  grid-column: auto !important;
}

@media (max-width: 768px) {
  .form-section:first-of-type .form-grid {
    grid-template-columns: 1fr;
  }
}

/* 🔹 TODOS los textareas de Detalles del Siniestro apilados */
.form-section .form-grid textarea {
  grid-column: 1 / -1 !important;
  min-height: 150px;
  resize: vertical;
}

.full-width {
  grid-column: 1 / -1;
}

.form-grid label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0b6d2c;
  margin-bottom: 0.3rem;
}

.siniestros-section {
  padding: 4rem 0;
  background: #f7f7f8;
}

/* ============================= */
/* 🔹 Botones de selección Sexo  */
/* ============================= */
.sexo-group {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.sexo-group input[type="radio"] {
  display: none;
}

.sexo-group label {
  flex: 1; /* 🔹 igual ancho */
  text-align: center;
  padding: 0.5rem 1.2rem;
  border: 2px solid #0b6d2c;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #0b6d2c;
  background: #fff;
  cursor: pointer;
  transition: all 0.25s ease;
}

.sexo-group label:hover {
  background: rgba(11, 109, 44, 0.08);
}

.sexo-group input[type="radio"]:checked + label {
  background: #0b6d2c;
  color: #fff;
  box-shadow: 0 2px 6px rgba(11,109,44,0.3);
}

/* ============================= */
/* 🔹 Mensaje fijo sin desplazar formulario */
/* ============================= */
.mensaje-confirmacion {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 1.5rem;
  height: 40px; 
  max-width: 900px;
  position: relative;
}

.mensaje-box {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
  transition: opacity 0.4s ease;
  width: fit-content;
  min-width: 300px;
}

.mensaje-box.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #b7e4c7;
}

.mensaje-box.danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* 🔹 Mensaje fijo sin desplazar formulario */
.mensaje-flotante {
  display: flex;
  justify-content: center;
  align-items: center;
  position: sticky;
  top: 80px;
  z-index: 10;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  text-align: center;
  width: fit-content;          /* ✅ solo ocupa el ancho del texto */
  margin: 0 auto 1.5rem;       /* centrado horizontal */
  transition: opacity 0.4s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.mensaje-flotante.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #b7e4c7;
}

.mensaje-flotante.danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.whatsapp-float{
  position: fixed;
  right: 22px;
  bottom: 22px;

  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 99999;
  text-decoration: none;

  box-shadow: 0 10px 22px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float svg{
  width: 28px;
  height: 28px;
  display: block;
  fill: #fff;
}

.whatsapp-float:hover{
  transform: scale(1.06);
  box-shadow: 0 14px 28px rgba(0,0,0,0.28);
}

/* ✅ Ajustes para notebook / pantallas intermedias */
@media (max-width: 1366px){
  .hero-inner{
    padding: 3rem 1rem; /* Mantenemos 1rem lateral para conservar la alineación */
  }

  .logos-section,
  .seguros-section,
  .servicios-section,
  .contact-section{
    padding: 2.8rem 0;      /* antes 4rem 0 */
  }

  .servicios-section h2{
    margin-bottom: 1.8rem;  /* antes 2.5rem */
  }

  .servicio{
    margin-bottom: 1.8rem;  /* antes 2.5rem */
  }
}

html{
  scrollbar-gutter: stable;
}

/* ============================= */
/* 🔹 Footer Top (como referencia) */
/* ============================= */
.footer-top{
  width: 100%;
  background: #f4f5f6;
  padding: 26px 0;
  color: #222;
}

/* 4 columnas, como la imagen */
.footer-top-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(200px, 1fr));
  gap: 40px;
  align-items: start;
  justify-content: center;
  text-align: center;
}

.footer-col h4{
  margin: 0 0 6px 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0b6d2c;
}

.footer-col{
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Textos */
.footer-text{
  margin: 10px 0 0 0;
  font-size: 0.9rem;
  color: #444;
  line-height: 1.5;
}

.footer-mail,
.footer-phone{
  color: #0b6d2c;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}

/* Links (lista) */
.footer-links{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.footer-links a{
  color: #0b6d2c;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
  font-size: 0.92rem;
}

/* Botón WhatsApp dentro del footer-top */
.footer-whatsapp{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 2px solid #0b6d2c;
  color: #0b6d2c;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  background: transparent;
  width: fit-content;
  transition: transform .15s ease, background .15s ease, opacity .15s ease;
}

.footer-whatsapp:hover{
  background: rgba(11,109,44,0.06);
  transform: translateY(-1px);
}

/* Botón Autogestión */
.footer-cta{
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 2px solid #0b6d2c;
  color: #0b6d2c;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  background: transparent;
  width: fit-content;
  transition: transform .15s ease, background .15s ease, opacity .15s ease;
}

.footer-cta:hover{
  background: rgba(11,109,44,0.06);
  transform: translateY(-1px);
}

/* Redes */
.footer-col-social{
  text-align: center;
}

.footer-social{
  display: flex;
  justify-content: flex-start;
  margin-top: 0px;
  padding-right: 160px;
}

/* Botón circular */
.social-btn{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #0b6d2c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 10px 18px rgba(0,0,0,0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.social-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 22px rgba(0,0,0,0.16);
  opacity: 0.95;
}

/* SVG Instagram outline (perfecto) */
.social-btn.ig svg{
  width: 20px;
  height: 20px;
  display: block;
}

.social-btn.ig svg rect,
.social-btn.ig svg circle{
  fill: none;
  stroke: #fff;
  stroke-width: 2;
}

/* Responsive */
@media (max-width: 768px){
  .footer-top-grid{
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 640px){
  .footer-top-grid{
    grid-template-columns: 1fr;
  }
}

/* Mostrar footer-top SOLO en Home */
.footer-top { display: none; }
body[data-page="home"] .footer-top { display: block; }

/* ============================= */
/* ✅ Modal Overlay + Card        */
/* ============================= */
.modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  z-index: 100000;
}

.modal-overlay.is-open{
  display: flex;
}

.modal-card{
  width: min(920px, 100%);
  max-height: 85vh;
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  padding: 18px 18px 22px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.25);
  text-align: left;
  position: relative;
}

.modal-title{
  margin: 6px 0 14px;
  color: #0b6d2c;
  font-weight: 800;
  font-size: 1.1rem;
}

.modal-body{
  color: #333;
  font-size: 0.95rem;
  line-height: 1.6;
}

.modal-close{
  position: sticky;
  top: 0;
  margin-left: auto;
  display: block;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: #f2f3f4;
  color: #222;
  font-size: 22px;
  cursor: pointer;
}

/* ============================= */
/* ✅ FAQ Accordion (details)     */
/* ============================= */
.faq-accordion{
  display: grid;
  gap: 10px;
}

.faq-accordion details{
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}

.faq-accordion summary{
  cursor: pointer;
  font-weight: 800;
  color: #0b6d2c;
  list-style: none;
}

.faq-accordion summary::-webkit-details-marker{
  display: none;
}

.faq-content{
  margin-top: 10px;
  color: #333;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================= */
/* ✅ Legales dentro del modal    */
/* ============================= */
.legales-text h4{
  margin: 16px 0 10px;
  color: #0b6d2c;
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.legales-text p{
  margin: 0 0 12px;
}

.legales-sep{
  border: 0;
  border-top: 1px solid #e6e6e6;
  margin: 16px 0;
}

.legales-alert{
  background: #f7f7f8;
  border: 1px solid #e6e6e6;
  border-left: 4px solid #0b6d2c;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.9rem;
  line-height: 1.5;
}

.legales-list{
  margin: 8px 0 12px 18px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.legales-footnote{
  margin-top: 14px;
  font-size: 0.9rem;
  color: #444;
  background: #f7f7f8;
  border: 1px solid #e6e6e6;
  padding: 10px 12px;
  border-radius: 10px;
}

/* ============================= */
/* ✅ Fondo por riesgo (mantiene tu lógica) */
/* En vez de poner background directo, seteamos variable --card-bg */
/* ============================= */

/* CORPORATIVOS */
.seguro-card[data-bg="agro"]          { --card-bg: url("/static/images/ambas_cosechas.jpg"); }
.seguro-card[data-bg="art"]           { --card-bg: url("/static/images/art.jpg"); }
.seguro-card[data-bg="caucion"]       { --card-bg: url("/static/images/caucion1.png"); }
.seguro-card[data-bg="integral"]      { --card-bg: url("/static/images/integral1.png"); }
.seguro-card[data-bg="consorcio"]     { --card-bg: url("/static/images/consorcio2.png"); }
.seguro-card[data-bg="flota"]         { --card-bg: url("/static/images/flota2.png"); }
.seguro-card[data-bg="resp_civil"]    { --card-bg: url("/static/images/responsabilidad_civil.png"); }
.seguro-card[data-bg="transporte"]    { --card-bg: url("/static/images/transporte.png"); }

/* PERSONAS */
.seguro-card[data-bg="automotor"]     { --card-bg: url("/static/images/automotor.png"); }
.seguro-card[data-bg="hogar"]          { --card-bg: url("/static/images/hogar.png"); }
.seguro-card[data-bg="moto"]           { --card-bg: url("/static/images/motocicleta.png"); }
.seguro-card[data-bg="acc_personales"]{ --card-bg: url("/static/images/accidentes.png"); }
.seguro-card[data-bg="alquiler"]       { --card-bg: url("/static/images/garantia_alquiler.png"); }
.seguro-card[data-bg="celulares"]      { --card-bg: url("/static/images/celulares.png"); }
.seguro-card[data-bg="bolso"]          { --card-bg: url("/static/images/bolso_cartera.png"); }
.seguro-card[data-bg="mascotas"]       { --card-bg: url("/static/images/mascotas.png"); }

/* ✅ FIX DEFINITIVO: evita “negrita falsa” en inputs de SINIESTROS */
body[data-page="siniestros"] .form-grid input,
body[data-page="siniestros"] .form-grid select,
body[data-page="siniestros"] .form-grid textarea,
body[data-page="siniestros"] .form-grid option {
  font-family: Inter, system-ui, Arial, sans-serif !important; /* 🔥 clave */
  font-weight: 400 !important;
  font-style: normal !important;

  font-synthesis: none !important;  /* 🔥 evita bold falso */
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

/* ============================= */
/* ✅ FLASH (global, estilo AGRO) */
/* ============================= */
.flash-message {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  padding: 15px 25px;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  z-index: 100000;
  animation: fadeInOut 4s ease forwards;
}

.flash-message.success { background-color: #0b6d2c; }
.flash-message.danger  { background-color: #d9534f; }

@keyframes fadeInOut {
  0%   { opacity: 0; transform: translate(-50%, -10px); }
  10%,
  90%  { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -10px); }
}

/* ============================= */
/* 📎 Uploads SINIESTROS (PROLIJO) */
/* ============================= */

body[data-page="siniestros"] .fotos-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem 1.4rem;
  align-items: stretch;
}

/* Cada bloque es una “card” */
body[data-page="siniestros"] .foto-item{
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);

  display:flex;
  flex-direction:column;      /* ✅ vertical */
  gap: 12px;
  min-width: 0;               /* ✅ importante para cortar textos */
}

/* Caja upload: ancho 100% y centrada */
body[data-page="siniestros"] .upload-box-siniestros{
  width: 100%;
  height: 92px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  border: 2px dashed #0b6d2c;
  border-radius: 10px;
  padding: 0.6rem 1rem;
  background:#fff;
  cursor:pointer;
  transition: all 0.25s ease;
}

body[data-page="siniestros"] .upload-box-siniestros:hover{
  background:#f3faf3;
  border-color:#095c26;
}

body[data-page="siniestros"] .upload-box-siniestros i{
  font-size:1.35rem;
  margin-bottom:0.25rem;
}

body[data-page="siniestros"] .upload-box-siniestros span{
  font-weight:600;
  color:#0b6d2c;
  font-size:0.92rem;
  text-align:center;
}

/* Contenedor de lista: alto máximo + scroll */
body[data-page="siniestros"] .file-list{
  list-style:none;
  margin:0;
  padding:0;

  display:grid;
  gap: 6px;

  max-height: 140px;          /* ✅ evita que “explote” */
  overflow:auto;
  padding-right: 4px;         /* aire para scroll */
}

/* Item como “chip” prolijo y que corte nombres largos */
/* Lista (chips) prolijos */
body[data-page="siniestros"] .file-list li{
  background:#eaf5eb;
  border: 1px solid #b5d8b5;
  border-radius: 10px;
  padding: 6px 10px;

  display:flex;
  align-items:center;
  justify-content: space-between; /* ✅ empuja la X a la derecha */
  gap: 10px;

  color:#0b6d2c;
  font-size: 0.85rem;
  min-width: 0;
}

/* El ícono */
body[data-page="siniestros"] .file-list li::before{
  content:"📎";
  flex: 0 0 auto;
}

/* Texto (nombre) con corte elegante */
body[data-page="siniestros"] .file-list li span{
  display:block;
  min-width: 0;
  overflow:hidden;
  text-overflow: ellipsis;    /* ✅ “...” */
  white-space: nowrap;        /* ✅ una línea */
}

/* Responsive */
@media (max-width: 640px){
  body[data-page="siniestros"] .fotos-grid{
    grid-template-columns: 1fr;
  }
}

/* ============================= */
/* 📎 QUITAR                      */
/* ============================= */

body[data-page="siniestros"] .file-item{
  display:flex;
  align-items:center;
  gap: 10px;
}

body[data-page="siniestros"] .file-name{
  flex: 1;
  min-width: 0;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Botón X más pro */
body[data-page="siniestros"] .file-remove{
  border: none;
  background: transparent;
  color: #0b6d2c;

  font-size: 16px;
  font-weight: 700;
  line-height: 1;

  cursor: pointer;
  padding: 0;
  margin-left: 8px;

  flex: 0 0 auto;
  transition: opacity .15s ease, transform .15s ease;
}

body[data-page="siniestros"] .file-remove:hover{
  opacity: 0.7;
  transform: scale(1.05);
}