@import url('./Styles-general.css');


/*BURBUJA DE BUSQUEDA*/
/* Contenedor de la burbuja y mensaje */
.floating-container {
  position: fixed;
  left: 30px;
  bottom: 35px;
  display: flex;
  align-items: center;
  z-index: 1000;
}
/*TARJETA AMBULANCIA*/
.proceso-ambulancia{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:30px;
padding:60px 20px;
background:#f5f5f5;
}

.paso{
background:white;
padding:30px;
border-radius:15px;
box-shadow:0 10px 25px rgba(0,0,0,0.1);
text-align:center;
transition:0.3s;
position:relative;
}

.paso:hover{
transform:translateY(-8px);
box-shadow:0 15px 35px rgba(0,0,0,0.15);
}

.numero{
width:60px;
height:60px;
background: linear-gradient(135deg, #FF0000, #EA6F2C, #FCC834);
color:#ffffff;
font-weight:bold;
font-size:20px;
display:flex;
align-items:center;
justify-content:center;
border-radius:50%;
margin:auto;
margin-bottom:15px;
}

.paso h3{
color:#EA6F2C;
margin-bottom:10px;
}

.paso p{
font-size:14px;
color:#555;
line-height:1.5;
}


/* Burbuja flotante */
.floating-bubble {
  width: 60px;
  height: 60px;
  background-color: #000;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #0099cf;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  border: none;
}

.floating-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.brands-menu-header {
  position: sticky;
  top: -15px;
  background: white;
  /* Para que no se vea lo que está debajo al hacer scroll */
  padding-bottom: 10px;
  z-index: 1;
  /* Asegura que quede encima de los botones al hacer scroll */
}


.brands-menu {
  position: fixed;
  left: 30px;
  bottom: 105px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 15px;
  width: 260px;
  /* Ancho fijo */
  height: 400px;
  /* Alto fijo */
  overflow-y: auto;
  display: none;
  flex-direction: column;
  z-index: 999;
  resize: both;
  /* Opcional: permite redimensionar manualmente */
  cursor: grab;
  /* Cursor visual para indicar que se puede mover */
}


/* Mostrar el menú */
.brands-menu.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

/* Mensaje de la burbuja */
.bubble-message {
  margin-left: 15px;
  background-color: #333;
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

.brands-menu {
  position: fixed;
  left: 30px;
  bottom: 105px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 15px;
  width: 290px;
  /* Ancho fijo */
  height: 295px;
  /* Alto fijo */
  overflow-y: auto;
  display: none;
  flex-direction: column;
  z-index: 999;
  resize: both;
  /* Opcional: permite redimensionar manualmente */
  cursor: grab;
  /* Cursor visual para indicar que se puede mover */
}


/* Mostrar el menú */
.brands-menu.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

/* Botones de marcas */
.brand-button {
  padding: 10px 15px;
  margin: 5px 0;
  background-color: #f0f0f0;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.2s;
}

.brand-button:hover {
  background-color: #000;
  color: #0099cf;
}

/* Barra de búsqueda */
.search-box {
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  width: 100%;
  box-sizing: border-box;
}

/* Lista de accesorios */
.accessory-list {
  display: none;
  flex-direction: column;
  margin-left: 15px;
  border-left: 2px solid #00618A;
  padding-left: 10px;
}

.accessory-list.show {
  display: flex;
}

/* Botón para cerrar */
.close-button {
  background: transparent;
  border: none;
  font-size: 20px;
  color: #333;
  align-self: flex-end;
  cursor: pointer;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.close-button:hover {
  color: red;
}

/* Título del menú */
.menu-title {
  margin: 5px 0 10px 0;
  font-size: 16px;
  font-weight: bold;
  color: #00618A;
  text-align: center;
}

/* Ocultar mensaje */
.message-hidden {
  opacity: 0;
  pointer-events: none;
}


.accessory-button {
  padding: 6px 10px;
  background-color: #f0f0f0;
  border: none;
  text-align: left;
  cursor: pointer;
  margin-bottom: 4px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.accessory-button:hover {
  background-color: #ddd;
}

.highlighted {
  outline: 4px solid #007bff;
  outline-offset: 4px;
  border-radius: 8px;
  animation: fadeHighlight 2s ease-in-out;
}

@keyframes fadeHighlight {
  0% {
    outline-color: #007bff;
  }

  100% {
    outline-color: transparent;
  }
}






/* Estilo base */
.logo-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  font-family: 'Arial', sans-serif;
}

.logo-container {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.logo-logo img {
  width: 60px;
  height: 60px;
  transition: all 0.3s ease;
}

/* Globo de texto - Visible inicialmente */
.speech-bubble {
  position: absolute;
  right: 70px;
  background: white;
  padding: 10px 15px;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  line-height: 1.4;
  width: max-content;
  max-width: 180px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.speech-bubble:after {
  content: '';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 10px solid white;
}

/* Menú de opciones */
.contact-options {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 180px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.contact-option {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  margin-bottom: 8px;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  transition: all 0.2s ease;
}

.contact-option:hover {
  background: #f5f5f5;
  transform: translateX(-5px);
}

.contact-option img {
  width: 28px;
  height: 28px;
  margin-right: 12px;
  object-fit: contain;
}

.whatsapp-option {
  color: #075E54;
}

.facebook-option {
  color: #1877F2;
}

.instagram-option {
  color: #E4405F;
  /* Color oficial de Instagram */
}

.tiktok-option {
  color: #010101;
  /* TikTok usa un negro casi puro */
}

/* Estados interactivos */
.logo-container:hover .logo-logo img {
  transform: scale(1.1);
}

.logo-container.active .contact-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.logo-container.active .speech-bubble {
  opacity: 0;
  /* Oculta el mensaje al activar */
}

.logo-container.active .logo-logo img {
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  .logo-float {
    bottom: 20px;
    right: 20px;
  }

  .logo-logo img {
    width: 50px;
    height: 50px;
  }

  .speech-bubble {
    font-size: 13px;
    right: 60px;
    max-width: 150px;
    padding: 8px 12px;
  }

  .contact-options {
    width: 160px;
    bottom: 70px;
  }
}


.burbuja-inicio {
  position: fixed;
  bottom: 110px;
  right: 30px;
  background-color: #000;
  color: white;
  padding: 12px 12px;
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  font-weight: bold;
  cursor: pointer;
  z-index: 1000;
  transition: transform 0.3s ease, opacity 0.3s ease, color 0.3s ease;
}

.burbuja-inicio:hover {
  background-color: #000;
  color: #0099cf;
  transform: scale(1.1);
}





















main {
  background-size: cover;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent,
    black 0%,
    black 97%,
    transparent
  );
  mask-image: linear-gradient(
    to bottom,
    transparent,
    black 0%,
    black 97%,
    transparent
  );
  background-repeat: no-repeat;
  padding: 70px 0;
}

.div-transparent:before {
  background-image: linear-gradient(
    to right,
    transparent,
    #aa7a3a,
    transparent
  );
}

.banner {
  position: relative;
  height: 500px;
  padding: 50px 0;
  margin-top: 90px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background-color: #000; /* fallback */
}

.banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;

  z-index: 0;
}

.banner::after {
  background-image: url('../images/LOGO/BANNER/AMBULANCIA/1.png');

  filter: brightness(0.5);
}

.text-content {
  position: relative;
  z-index: 10;
  flex: 1;
}

.text-content h2 {
  font-size: 40px;
  color: #fff;
  text-transform: none;
  text-shadow: 2px 2px 8px #000;
}

.text-content h1 {
  font-size: 60px;
  color: #E60000;
  margin: 20px 0 0;
  text-transform: none;
  text-shadow: 2px 2px 8px #000;
}

.text-content .button {
  margin-top: 15px;
  padding: 10px;
  transition: all 0.5s ease-in-out;
  background-color: #0099cf;
  color: #fff;
  border: none;
  font-size: 18px;
  font-weight: bold;
  display: inline-block;
  border-radius: 14px;
  cursor: pointer;
  border: 2px solid transparent;
}

.text-content .button:hover {
  color: #0099cf;
  transition: all 0.5s ease-in-out;
  border: 2px solid #0099cf;
  background-color: #fff;
}

.icon-whatsap {
  padding-right: 4px;
  width: 40px;
  height: auto;
}

/* === Contenido === */

.ambulancia-box {
  display: flex;

  align-items: center;
}

.ambulancia-box h2 {
  text-align: left;
}

.ambulancia-box[data-interval='2'] {
  margin-top: 90px;
}

.ambulancia-box[data-interval='1'] .image-container {
  padding-top: 48%;
}

.image-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
  max-width: 520px;

  height: auto; /* Altura fija en lugar de padding-top */
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0px 8px 18px 2px rgba(0, 0, 0, 0.5);
}

.image-container img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  width: 100%;

  transition: opacity 0.3s ease-in-out;
  border-radius: 14px;
}

.image-container .img-top {
  object-position: top;
}

.icon-ambulancia {
  background: linear-gradient(135deg, #FF0000, #EA6F2C, #FCC834);
  display: inline-block;
  font-size: 50px;
  line-height: 1;
  border-radius: 50%;
  text-align: center;
  padding: 0.5em;

  transition: all 0.3s;
}

.ambulancia-box[data-interval='1'] .icon-box {
  margin-right: 14px;
}

.icon-ambulancia svg {
  display: block;
  height: 1em;
  position: relative;
  width: 1em;
}

.icon-ambulancia path {
  color: #fff;
  fill: #fff;
}

.img1 {
  animation: fadeImages 8s infinite ease-in-out;
  animation-delay: 0s;
  z-index: 1;
}
.img2 {
  animation: fadeImages 8s infinite ease-in-out;
  animation-delay: 4s;
  z-index: 2;
}

@keyframes fadeImages {
  0% {
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  45% {
    opacity: 1;
  }
  55% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.ambulancia-box[data-interval='1'] .ambulancia-content {
  display: flex;
}

.ambulancia-box[data-interval='1'] .ambulancia-item {
  width: 100%;
  max-width: 560px;
}
.ambulancia-box[data-interval='2'] .ambulancia-item {
  display: flex;

  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.ambulancia-box[data-interval='2'] .ambulancia-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 354px;
  width: 100%;
}

.ambulancia-text p:first-of-type {
  font-size: 32px;
  font-weight: bold;
  color: #fda024;
  line-height: 28px;
}

.ambulancia-text p:last-of-type {
  margin: 10px 0 0;
}

.ambulancia-box[data-interval='2'] .ambulancia-text p:first-of-type {
  text-align: center;
  margin: 8px 0 0;
  min-height: 56px;
}

.indicacion-box {
  margin-top: 30px;
  display: flex;
  align-items: center;
  flex-direction: column-reverse;
}

.indicacion-box .image-container {
  padding-top: 32%;
  max-width: 600px;
}

.indicacion-item {
  display: flex;
  justify-content: space-around;

  flex-wrap: wrap;
}

.indicacion-content {
  max-width: 390px;
  width: 100%;
}

.indicacion-content span {
  color: #fda024;
  font-size: 112px;
  font-weight: bold;
}

.indicacion-content p:first-of-type {
  font-size: 32px;
  font-weight: bold;
  color: #fda024;
  text-align: left;
  line-height: 28px;
}

.indicacion-content p:last-of-type {
  margin: 10px 0 0;
}

/* --- CONTACTO BOX --- */
.contacto-box {
  display: flex;
  margin-top: 28px;
  align-items: center;
  justify-content: space-between;
}


.contacto-item {
  display: flex;
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0px 8px 18px 2px rgba(0, 0, 0, 0.5);
  padding: 36px;
  max-width: 570px;
  width: 100%;
}


.contacto-item .div-icon {
  margin-right: 14px;
}

.contacto-item a {
  background-color: #05942c;
  display: inline-block;
  font-size: 50px;
  line-height: 1;
  border-radius: 50%;
  text-align: center;
  padding: 20px;
  transition: all 0.3s;
}

.contacto-item svg {
  display: block;
  height: 1em;
  position: relative;
  width: 1em;
}

.contacto-item path {
  color: #fff;
  fill: #fff;
}

.contacto-item p:last-of-type {
  min-height: 56px;
}

.contacto-item span {
  font-size: 18px;
  font-weight: bold;
}

.contacto-item p:last-of-type {
  min-height: 56px;
}

@media only screen and (max-width: 960px) {
  .banner {
    height: 300px;
  }

  .ambulancia-box:first-of-type {
    flex-direction: column-reverse;
  }

  .ambulancia-box {
    flex-direction: column;
  }

  .ambulancia-item {
    width: 100%;
  }

  .ambulancia-box[data-interval='1'] .image-container {
    margin-top: 14px;
  }

  .ambulancia-box[data-interval='2'] .ambulancia-item {
    gap: 22px;
  }

  .indicacion-content span {
    font-size: 50px;
  }

  .indicacion-content p:first-of-type,
  .ambulancia-text p:first-of-type {
    font-size: 28px;
    text-align: left;
  }

  .contacto-box {
    flex-direction: column;
  }

  .contacto-item:last-of-type {
    margin-top: 10px;
  }
}

@media only screen and (max-width: 640px) {
  .banner {
    margin-top: 80px;
  }

  .text-content h2 {
    font-size: 30px;
    text-align: left;
  }
  .text-content h1 {
    font-size: 30px;
  }

  .paragraph {
    font-size: 16px;
  }

  .contacto-item {
    padding: 20px;
  }

  .contacto-item p:first-of-type {
    font-size: 20px;
  }

  .ambulancia-box[data-interval='2'] {
    margin-top: 40px;
  }
}

@media only screen and (max-width: 480px) {
  .banner {
    height: 260px;
  }

  .icon-whatsap {
    width: 28px;
  }

  .img {
    width: 100%;
  }

  .icon-ambulancia,
  .contacto-item a {
    font-size: 24px;
    padding: 10px;
  }
  .ambulancia-box[data-interval='2'] .ambulancia-item {
    gap: 12px;
  }

  .ambulancia-box[data-interval='2'] .ambulancia-text p:first-of-type {
    min-height: auto;
  }

  .indicacion-content p:first-of-type,
  .ambulancia-text p:first-of-type {
    font-size: 22px;
  }
}
