/* =========================
  RUS CONTACTO
  ========================= */
.rus-contacto {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  gap: 2.5em;
  margin: 3em 0 2em 0;
}
@media (max-width: 900px) {
  .ruscontacto {
    flex-direction: column;
    align-items: center;
    gap: 2em;
  }

  .formulario, .contacto-mapa {
    max-width: 98vw;
    min-width: unset;
  }

  .contacto-mapa iframe {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}
/* =========================
   FORMULARIO DE CONTACTO
   ========================= */
.contacto {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.5); 
  color: white;
}

.formulario {
  border: 1px solid #000000;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  background-color: #ffffff44; 
  width:650px;
}

.campo {
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.campo label {
  display: block;
  margin-bottom: 5px;
  color: rgb(0, 0, 0); 
  display: flex;
  justify-content: center;
}

.campo input {
  width: 100%;
  padding: 5px;
  border: 1px solid #000000;
  background-color: rgb(255, 255, 255); 
  color: rgb(0, 0, 0); 
  font-family: inherit;
}

.campo textarea {
  width: 100%;
  padding: 5px;
  border: 1px solid #000000;
  background-color: rgba(255, 255, 255, 0.3); 
  color: rgb(0, 0, 0); 
  height: 100px;
  font-family: inherit;
}

.campo textarea:focus {
  background-color: rgba(255, 255, 255, 0.5); 
}
.contacto-mapa {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
  min-width: 380px;
  max-width: 700px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

button {
  font-size: 15px;
  font-weight: bold;
  padding: 10px 20px;
  height: auto;
  position: relative;
  border: none;
  border-radius: 6px;
  background-color: #faa926;
  color: white;

}

button:hover {
  background-color: #e76f57;
  color: white;
  cursor: pointer;
}

@media (max-width: 900px) {
  .rus-contacto {
    flex-direction: column;
    align-items: center;
    gap: 2em;
  }
  .contacto-form, .contacto-mapa {
    max-width: 98vw;
    min-width: unset;
  }
  .contacto-mapa iframe {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}
.seguros-lista {
  list-style: none;
  padding: 0;
  margin: 1.2em 0 1.2em 0;
  width: 100%;
}
.seguros-lista li {
  background: #eaf6ff;
  color: #0077b6;
  margin: 0.4em 0;
  padding: 0.7em 1em;
  border-radius: 7px;
  font-size: 1.08em;
  font-weight: 500;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  gap: 0.7em;
}
.seguros-lista li::before {
  content: "✔";
  color: #1fa8ee;
  font-size: 1em;
  margin-right: 0.5em;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  max-width: 100vw;
}

body {
  background-image: url('/img/imagenes provisorias/fondo2.png');
      background-size: cover;
  background-position: center;
  background-attachment:fixed ;
  color: #222;
  font-family: 'Nunito', Arial, sans-serif;
  overflow-x: hidden; 
}

/* =========================
   HEADER Y MENU
   ========================= */
header {
  background-color: #fff;
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.header-top {
  position: relative;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex-direction: row;
}

.header-top h3, h4 {
  color: #000;
  font-size: 30px;
}

.header-top img {
  height: 150px;
  width: 300px;
}

.header-top h1 {
  margin: 0;
  font-size: 2rem;
  text-align: center;
  text-decoration: none;
}

/* BotÃ³n hamburguesa oculto en PC */
.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #000;
  cursor: pointer;
}

/* =========================
   MENÃš PRINCIPAL Y SUBMENÃšS
   ========================= */
.main-menu {
  display: flex;
  flex-direction: row;
  background-color: #333;
  padding: 20px;
  width: 100%;
  justify-content: space-evenly;
}

.main-menu a {
  color: white;
  padding: 10px;
  margin: 0;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  font-size: 19px;
}

.main-menu a:hover {
  background-color: #555;
  text-decoration: none;
}

.main-menu p:hover {
  background-color: #333;
}

/* SubmenÃº oculto por defecto */
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #000000ef;
  padding: 0;
  border-radius: 5px;
  width: 200px;
  z-index: 1001;
  flex-direction: column;
}

/* Mostrar submenu al hacer hover en dropdown */
.dropdown {
  position: relative;
  display: flex;
  flex-direction: column;
}

.dropdown:hover .submenu {
  display: flex;
}

/* Estilos para subcategorÃ­as */
.submenu a {
  color: white;
  padding: 10px;
  text-decoration: none;
  text-align: left;
}

.submenu a:hover {
  background-color: #555;
}

/* =========================
   TIPOGRAFÍA Y TITULARES
   ========================= */
h1 {
  text-align: center;
  color: #fff;
  font-size: 2.5rem;
  text-shadow: 1px 1px 10px rgb(0, 0, 0); /* para mayor legibilidad */
  text-decoration: none;
  margin-top: 10px;
  font-family: 'Bebas Neue';
  letter-spacing: 1px;
}

h2 {
  text-align: center;
  color: #fff;
  font-size: 2rem;
  text-shadow: 1px 1px 10px rgb(0, 0, 0);
  text-decoration: none;
  font-family: 'nunito', sans-serif;
}

h3, h4 {
  text-align: center;
  margin: 0.2em 0;
}


/* --- HEADER Y MENÃš --- */
@media (max-width: 900px) {
  .header-top {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .menu-toggle {
    display: block;
    order: 0;
  }

  .header-top img {
    max-width: 120px;
    height: auto;
  }

  /* MenÃº lateral */
  #sideMenu {
    position: fixed;
    top: 0;
    left: -260px;
    width: 250px;
    height: 100%;
    background-color: #333;
    padding-top: 80px;
    transition: left 0.3s ease-in-out;
    z-index: 2500;
    overflow-y: auto;
  }

  #sideMenu.abierto {
    left: 0;
  }

  .main-menu {
    flex-direction: column;
    width: 100%;
  }

  .main-menu a {
    display: block;
    width: 100%;
    padding: 15px;
    border-bottom: 1px solid #444;
    text-align: left;
    color: white;
    font-size: 20px;
  }

  .submenu {
    position: relative;
    background-color: #222;
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .dropdown.activo .submenu {
    display: flex;
  }
}

/* --- HEADER TEXTOS RESPONSIVE --- */
@media (max-width: 768px) {
  .header-top h3 {
    font-size: 1.2rem; /* mÃ¡s pequeÃ±o */
  }
  .header-top h4 {
    font-size: 0.9rem;
  }
}
@media (max-width: 480px) {
  .header-top h3 {
    font-size: 1rem;
  }
  .header-top h4 {
    font-size: 0.8rem;
  }
}
@media (max-width: 375px) {
  .header-top img {
    max-width: 100px;
  }
}

/* =========================
   INTRODUCCIÓN Y CARDS DE SEGUROS
   ========================= */
.intro-text {
  width: 100vw;
  min-width: 100vw;
  max-width: 100vw;
  min-height: 340px;
  margin: 0 -50vw 2em -50vw;
  left: 50vw;
  right: 50vw;
  height:500px;
  position: relative;
  border-radius: 0;
  padding: 4em 0;
  box-shadow: 0 2px 18px rgba(0,0,0,0.13);
  font-size: 1.18em;
  color: #fff;
  background: url("../img/rus/rus.jpeg") center center/cover no-repeat;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}
.intro-text p {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.intro-text::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}
.intro-text p {
  position: relative;
  z-index: 2;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
  font-size: 1.18em;
  color: #fff;
}

.rus-seguros {
  padding: 2em 0 2em 0;
  background: rgb(255 255 255 / 2%);
}

.seguros-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  justify-content: center;
  align-items: stretch;
}

.seguro-card {
  background: #fffbe7;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  padding: 2em 2.5em 2.5em 2.5em;
  width: 600px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.seguro-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 6px 24px rgba(0,0,0,0.13);
}
.seguro-card h5 {
  margin: 1em 0 0.5em 0;
  font-size: 1.8em;
  color: #e67e22;
  text-align: center;
  font-family: 'Bebas Neue';
  letter-spacing: 2px;
}
.seguro-card p {
  font-size: 1em;
  color: #444;
  text-align: center;
}
.seguro-card .btn-seguro {
  margin-top: auto;
  background: #e67e22;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.5em 1.2em;
  font-size: 1em;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.seguro-card .btn-seguro:hover {
  background: #ff9900;
}
.img-container {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
}
.img-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

@media (max-width: 900px) {
  .seguros-cards {
    flex-direction: column;
    align-items: center;
    gap: 1.5em;
  }
  .seguro-card {
    width: 95vw;
    max-width: 98vw;
    padding: 1.2em 0.5em 1.5em 0.5em;
  }
}

.disclaimer {
  text-align: center;
  padding: 20px;
  background-color: #f1f1f1;
  color: #333;
  margin-top: 0;
  font-size: 0.9rem;
}

/* === PRELOADER LA JUANITA === */
#preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, #ffa751 0%, #ffe259 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Contenido */
.preloader-content {
  text-align: center;
  animation: fadeIn 1.2s ease forwards;
}

.preloader-logo {
  width: 120px;
  height: auto;
  margin-bottom: 1rem;
  animation: pulse 1.8s infinite ease-in-out;
}

.preloader-text {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  color: white;
  letter-spacing: 1px;
  animation: blink 2s infinite;
}

/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.8; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
