:root {
  --azul-oscuro: #199BD7;
  --azul-hielo: #00bfff;
  --gris-metalico: #e5e5e5;
  --blanco: #ffffff;
}

/* BODY CON IMAGEN DE FONDO */
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, sans-serif;
  background-color: var(--gris-metalico);
  background-image: url('../img/friolagunero3.jpg'); /* 🔹 Ruta de tu imagen */
  background-size: cover;           /* La imagen cubre toda la pantalla */
  background-repeat: no-repeat;     /* Evita que se repita */
  background-attachment: fixed;     /* Efecto parallax suave */
  background-position: center;      /* Centrada */
  color: #222;
}



/* NAVBAR */
nav {
  background: var(--azul-oscuro);
  color: var(--blanco);
  padding: 0.6rem 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 3px 6px rgba(0,0,0,0.25);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* MENU */
ul.menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
  transition: max-height 0.3s ease-in-out;
}

ul.menu li {
  position: relative;
}

ul.menu a {
  color: var(--blanco);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

ul.menu a:hover {
  color: var(--azul-hielo);
}

/* SUBMENÚ */
ul.menu li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--blanco);
  border-radius: 6px;
  list-style: none;
  padding: 0.5rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  min-width: 180px;
}

ul.menu li ul li a {
  display: block;
  padding: 8px 15px;
  color: var(--azul-oscuro);
  transition: background 0.2s;
}

ul.menu li ul li a:hover {
  background: var(--gris-metalico);
  color: var(--azul-oscuro);
}

ul.menu li:hover ul {
  display: block;
}

/* BUSCADOR */
.search-box {
  display: flex;
  align-items: center;
  background: var(--blanco);
  border-radius: 20px;
  overflow: hidden;
}

.search-box input {
  border: none;
  padding: 6px 10px;
  outline: none;
  font-size: 0.9rem;
  color: #333;
}

.search-box button {
  background: var(--azul-hielo);
  border: none;
  padding: 6px 10px;
  color: var(--blanco);
  cursor: pointer;
  transition: background 0.3s;
}

.search-box button:hover {
  background: #009acd;
}

/* HAMBURGUESA */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--blanco);
  font-size: 1.6rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.menu-toggle.active {
  transform: rotate(90deg);
}

@media (max-width: 768px) {
  ul.menu {
    flex-direction: column;
    background: var(--azul-oscuro);
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
  }

  ul.menu.active {
    max-height: 500px;
    padding-bottom: 1rem;
  }

  ul.menu li ul {
    position: static;
    box-shadow: none;
  }

  .menu-toggle {
    display: block;
  }
}

/* LOGO */
.logo img {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}

/* FOOTER */
footer {
  background: var(--azul-oscuro);
  color: var(--blanco);
  text-align: center;
  padding: 1rem 0;
  margin-top: 2rem;
}

footer .social-icons {
  margin-top: 0.5rem;
}

footer .social-icons a {
  color: var(--azul-hielo);
  margin: 0 10px;
  font-size: 1.4rem;
  transition: color 0.3s;
}

footer .social-icons a:hover {
  color: var(--blanco);
}

/* BOTÓN WHATSAPP */
.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: white;
  font-size: 1.8rem;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, background 0.3s ease;
  z-index: 1001;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  background: #1ebc5b;
}

/* HERO / CARRUSEL */
.hero {
  position: relative;
  width: 100%;
  height: 90vh;
  overflow: hidden;
  background: #000;
}

.slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 100%;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: left 1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  left: 0;
}

.slide.prev {
  left: -100%;
}

.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(10, 38, 71, 0.55);
}

.content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 80%;
  animation: fadeInUp 1.2s ease;
}

.content h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.content p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  color: white;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 50%;
  transition: background 0.3s;
  z-index: 3;
}

.nav-btn:hover {
  background: rgba(255,255,255,0.5);
}

.prev { left: 20px; }
.next { right: 20px; }

.dots {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  z-index: 3;
}

.dots span {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.3s;
}

.dots span.active {
  background: var(--azul-hielo);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .content h1 { font-size: 1.8rem; }
  .content p { font-size: 1rem; }
}

/* CLIENTES SLIDER */
.clientes {
  overflow: hidden;
  white-space: nowrap;
  background: #199BD7;
  border-top: 2px solid #199BD7;
  border-bottom: 2px solid #199BD7;
  padding: 20px 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  position: relative;
}

.clientes .slide-track {
  display: inline-block;
  animation: scroll 30s linear infinite;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.clientes:hover .slide-track {
  animation-play-state: paused;
}

.clientes img {
  height: 60px;
  margin: 0 50px;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.clientes img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

@media (max-width: 600px) {
  .clientes img {
    height: 40px;
    margin: 0 30px;
  }
}

.nosotros {
  color: #fff !important;
}

#rescates {
  color: #fff !important;
}

/* CONTENEDOR PRINCIPAL */
.blog-container {
  max-width: 900px;
  margin: 4rem auto;
  padding: 0 1rem;
  text-align: center;
}

.blog-container h1 {
  font-size: 2rem;
  color: var(--azul-oscuro);
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== CONTENEDOR PRINCIPAL ===== */
#main-content {
  max-width: 900px;
  margin: 60px auto;
  background-color: rgba(25, 155, 215, 0.75); /* Azul corporativo */
    backdrop-filter: blur(14px) saturate(20%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  color: #fff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease, transform 1s ease;
}

#main-content.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SECCIONES CON IMAGEN ===== */
.info-section {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.info-img {
  width: 15%;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
  transition: transform 0.6s ease;
}

.info-img:hover {
  transform: scale(1.07);
}

.info-text {
  flex: 1;
}

/* ===== TITULOS ===== */
#main-content h2 {
  color: #fff;
  border-left: 5px solid #f2c14e;
  padding-left: 12px;
  margin-top: 0;
  font-size: 1.8rem;
}

/* ===== VALORES ===== */
.valores-grid {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-top: 30px;
}

.valor {
  display: flex;
  align-items: center;          /* Centra verticalmente texto con imagen */
  justify-content: flex-start;  /* Imagen a la izquierda, texto a la derecha */
  gap: 20px;
  background: rgba(255, 255, 255, 0.15);
  padding: 20px;
  border-radius: 14px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease, background 0.3s ease;
  text-align: center;           /* Centra texto dentro del bloque */
}

.valor.visible {
  opacity: 1;
  transform: translateY(0);
}

.valor:hover {
  background: rgba(255, 255, 255, 0.25);
}

.valor img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.6s ease;
  flex-shrink: 0; /* Evita que se reduzca el tamaño en pantallas pequeñas */
}

.valor img:hover {
  transform: scale(1.07);
}

.valor div {
  flex: 1;
}

.valor h3 {
  color: #fff;
  margin-bottom: 8px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .valor {
    flex-direction: column;     /* Imagen arriba, texto abajo */
    text-align: center;
    justify-content: center;
  }

  .valor img {
    width: 120px;               /* Mantiene su tamaño en móvil */
    height: 120px;
  }
}

 /* ===== TARJETAS PRINCIPALES ===== */
.main-home {
  padding: 60px 20px;
  display: flex;
  justify-content: center;
}

.tarjetas-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  max-width: 1200px;
  width: 100%;
}

.tarjeta {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  text-align: center;
  animation: fadeInUp 1s ease forwards;
}

.tarjeta:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.image-container img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.text-container {
  padding: 20px 25px;
}

.text-container h2 {
  color: var(--azul-oscuro);
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.text-container p {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.5;
  margin-bottom: 15px;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  border-radius: 30px;
  padding: 10px 20px;
  transition: background 0.3s ease, transform 0.2s;
}

.btn-azul {
  background: var(--azul-oscuro);
  color: var(--blanco);
}

.btn-azul:hover {
  background: var(--azul-hielo);
  transform: scale(1.05);
}

/* Animación aparición */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .main-home {
    padding: 40px 15px;
  }

  .image-container img {
    height: 180px;
  }
}

/* GRID DE TARJETAS - máximo 2 por sección */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* solo dos columnas */
  gap: 2rem;
  justify-content: center; /* centra las tarjetas si hay una sola */
  align-items: start;
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr; /* una por fila en móviles */
  }
}

/* TARJETA */
.blog-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(50px);
  min-height: 480px;
}

.blog-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* CONTENEDOR DE IMAGEN */
.image-container {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

/* EFECTO ZOOM EN IMAGEN */
.blog-card:hover .image-container img {
  transform: scale(1.1);
}

/* CONTENIDO */
.blog-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.blog-content h2 {
  font-size: 1.25rem;
  color: #0A2647;
  margin-bottom: 0.8rem;
}

.blog-content p {
  flex-grow: 1;
  color: #444;
  line-height: 1.5;
  margin-bottom: 1.2rem;
}

  /* --- SECCIÓN CLIENTES --- */
  .clientes-section {
    max-width: 1200px;
    margin: auto;
    text-align: center;
    background: transparent;
    border-radius: 20px;
    box-shadow: var(--sombra);
    padding: 10px 5px;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease;
  }

  .clientes-section h2 {
    color: var(--blanco);
    margin-bottom: 50px;
    position: relative;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: fadeInDown 1s ease;
  }

  .clientes-section h2::after {
    content: "";
    display: block;
    width: 100px;
    height: 4px;
    background: var(--azul-claro);
    margin: 14px auto;
    border-radius: 2px;
  }

/* --- GRID DE CLIENTES --- */
.clientes-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 🧊 5 columnas en pantallas grandes */
  gap: 40px;
  justify-items: center;
  align-items: stretch; /* 🔹 Hace que todas las celdas tengan la misma altura */
  padding: 20px;
}

/* 🔸 Tablets medianas */
@media (max-width: 992px) {
  .clientes-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
}

/* 🔸 Celulares */
@media (max-width: 600px) {
  .clientes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

/* --- TARJETA DE CLIENTE --- */
.cliente {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: all 0.4s ease;
  height: 140px; /* 🔹 Todas las tarjetas igual de altas */
  opacity: 0;
  transform: translateY(30px);
}

/* Efecto al aparecer */
.cliente.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Efecto hover */
.cliente:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px);
}

/* --- IMAGEN DEL CLIENTE --- */
.cliente img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  filter: grayscale(80%);
  opacity: 0.9;
  transition: all 0.4s ease;
}

.cliente {
  overflow: hidden; /* 🔹 Evita que las imágenes grandes se recorten mal */
}

.cliente img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* 🔹 Ajusta sin deformar */
  display: block;
}

.cliente:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.07);
}

  .cliente.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Glow elegante */
  .cliente::before {
    content: "";
    position: absolute;
    top: -75%;
    left: -75%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,153,255,0.25) 0%, transparent 70%);
    transform: rotate(25deg);
    opacity: 0;
    transition: var(--transicion);
  }

  .cliente:hover::before {
    opacity: 1;
    animation: glow 3s linear infinite;
  }

  @keyframes glow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }

  /* --- RESPONSIVE --- */
  @media (max-width: 768px) {
    main {
      padding: 50px 0;
    }
    .clientes-section {
      padding: 50px 25px;
    }
    .clientes-section h2 {
      font-size: 1.6rem;
    }
  }

/* === SECCIÓN SERVICIOS === */
.servicios-section {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  background: transparent;
  border-radius: 20px;
  padding: 40px 20px;
  position: relative;
  animation: fadeInUp 1s ease;
}

/* Título con línea decorativa */
.titulo-section {
  color: #fff;
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.titulo-section::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: #f2c14e;
  margin: 10px auto 0;
  border-radius: 3px;
}

/* === GRID DE TARJETAS === */
.grid-valores {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 por fila en pantallas grandes */
  gap: 30px;
  justify-items: stretch;
  align-items: stretch; /* 🔹 Hace que todas las tarjetas tengan la misma altura */
  padding: 20px;
}

/* Cada tarjeta ocupa toda la altura disponible */
.valor-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-sizing: border-box;
}

/* 🔸 Tablets: 2 tarjetas por fila */
@media (max-width: 992px) {
  .grid-valores {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 🔸 Celulares: 1 tarjeta por fila */
@media (max-width: 600px) {
  .grid-valores {
    grid-template-columns: 1fr;
  }
}

/* Tarjetas con efecto flip */
.valor2 {
  perspective: 1000px;
}

.valor-inner {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
  height: 220px;
}

.valor2:hover .valor-inner {
  transform: rotateY(180deg);
}

.valor-front,
.valor-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 15px;
  color: #fff;
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
  transition: all 0.6s ease;
}

/* Frente */
.valor-front {
  background-size: cover;
  background-position: center;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 5px rgba(0,0,0,0.7);
}

/* Reverso */
.valor-back {
  background: rgba(25, 155, 215, 0.95);
  transform: rotateY(180deg);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Animación al hacer scroll */
.valor2 {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.valor2.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 600px) {
  #main-content {
    padding: 20px;
  }

  .valor-inner {
    height: 180px;
  }

  .valor-front h4, 
  .valor-back p {
    font-size: 0.9rem;
  }

  .titulo-section {
    font-size: 1.5rem;
  }
}

.valor-front2 {
  background: transparent !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
  overflow: hidden;
}

.valor-front2 img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent !important;
  mix-blend-mode: normal;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}


/* Tarjetas con efecto flip */
.valor3 {
  perspective: 1000px;
}

.valor3:hover .valor-inner {
  transform: rotateY(180deg);
}

/* Animación al hacer scroll */
.valor3 {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.valor3.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === GRID DE TARJETAS === */
.grid-valores2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 por fila en pantallas grandes */
  gap: 30px;
  justify-items: stretch;
  align-items: stretch; /* 🔹 Hace que todas las tarjetas tengan la misma altura */
  padding: 20px;
}

/* 🔸 Tablets: 2 tarjetas por fila */
@media (max-width: 992px) {
  .grid-valores2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 🔸 Celulares: 1 tarjeta por fila */
@media (max-width: 600px) {
  .grid-valores2 {
    grid-template-columns: 1fr;
  }
}

.grid-valores2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  padding: 20px 50px;
  justify-items: center;
}

.valor3 {
  width: 180px;
  height: 180px;
  perspective: 1000px;
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.valor3.visible {
  opacity: 1;
  transform: translateY(0);
}

.valor-front2 {
  position: relative;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
  filter: brightness(0.95) contrast(1.1);
}

/* Simula fondo transparente para logos con fondo blanco */
.valor-front2::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 70%);
  opacity: 0.3;
  mix-blend-mode: lighten;
}

.valor-front2:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

.grid-valores2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  padding: 40px;
  justify-items: center;
}

.valor3 {
  width: 180px;
  height: 180px;
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.valor3.visible {
  opacity: 1;
  transform: translateY(0);
}

.valor-front2 {
  background: transparent;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.valor-front2:hover {
  transform: scale(1.07);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.valor-front2 img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.25));
  transition: transform 0.3s ease;
}

.valor-front2:hover img {
  transform: scale(1.05);
}

.imagen-rescates {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px; /* opcional, para que se vea más elegante */
}

/* BUSCADOR */
.search-box {
  display: flex;
  align-items: center;
  background: var(--blanco);
  border-radius: 20px;
  overflow: hidden;
}

.search-box input {
  border: none;
  padding: 6px 10px;
  outline: none;
  font-size: 0.9rem;
  color: #333;
}

.search-box button {
  background: var(--azul-hielo);
  border: none;
  padding: 6px 10px;
  color: var(--blanco);
  cursor: pointer;
  transition: background 0.3s;
}

.search-box button:hover {
  background: #009acd;
}

/* BUSCADOR */
.search-box {
  display: flex;
  align-items: center;
  background: var(--blanco);
  border-radius: 20px;
  overflow: hidden;
}

.search-box input {
  border: none;
  padding: 6px 10px;
  outline: none;
  font-size: 0.9rem;
  color: #333;
}

.search-box button {
  background: var(--azul-hielo);
  border: none;
  padding: 6px 10px;
  color: var(--blanco);
  cursor: pointer;
  transition: background 0.3s;
}

.search-box button:hover {
  background: #009acd;
}

/* HAMBURGUESA */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--blanco);
  font-size: 1.6rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.menu-toggle.active {
  transform: rotate(90deg);
}

@media (max-width: 768px) {
  ul.menu {
    flex-direction: column;
    background: var(--azul-oscuro);
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
  }

  ul.menu.active {
    max-height: 500px;
    padding-bottom: 1rem;
  }

  ul.menu li ul {
    position: static;
    box-shadow: none;
  }

  .menu-toggle {
    display: block;
  }
}

:root {
  --azul-oscuro: #199BD7;
  --azul-hielo: #00bfff;
  --gris-metalico: #e5e5e5;
  --blanco: #ffffff;
}

/* BODY CON IMAGEN DE FONDO */
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, sans-serif;
  background-color: var(--gris-metalico);
  background-image: url('../img/friolagunero3.jpg'); /* 🔹 Ruta de tu imagen */
  background-size: cover;           /* La imagen cubre toda la pantalla */
  background-repeat: no-repeat;     /* Evita que se repita */
  background-attachment: fixed;     /* Efecto parallax suave */
  background-position: center;      /* Centrada */
  color: #222;
}



/* NAVBAR */
nav {
  background: var(--azul-oscuro);
  color: var(--blanco);
  padding: 0.6rem 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 3px 6px rgba(0,0,0,0.25);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* MENU */
ul.menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
  transition: max-height 0.3s ease-in-out;
}

ul.menu li {
  position: relative;
}

ul.menu a {
  color: var(--blanco);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

ul.menu a:hover {
  color: var(--azul-hielo);
}

/* SUBMENÚ */
ul.menu li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--blanco);
  border-radius: 6px;
  list-style: none;
  padding: 0.5rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  min-width: 180px;
}

ul.menu li ul li a {
  display: block;
  padding: 8px 15px;
  color: var(--azul-oscuro);
  transition: background 0.2s;
}

ul.menu li ul li a:hover {
  background: var(--gris-metalico);
  color: var(--azul-oscuro);
}

ul.menu li:hover ul {
  display: block;
}

/* BUSCADOR */
.search-box {
  display: flex;
  align-items: center;
  background: var(--blanco);
  border-radius: 20px;
  overflow: hidden;
}

.search-box input {
  border: none;
  padding: 6px 10px;
  outline: none;
  font-size: 0.9rem;
  color: #333;
}

.search-box button {
  background: var(--azul-hielo);
  border: none;
  padding: 6px 10px;
  color: var(--blanco);
  cursor: pointer;
  transition: background 0.3s;
}

.search-box button:hover {
  background: #009acd;
}

/* HAMBURGUESA */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--blanco);
  font-size: 1.6rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.menu-toggle.active {
  transform: rotate(90deg);
}

@media (max-width: 768px) {
  ul.menu {
    flex-direction: column;
    background: var(--azul-oscuro);
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
  }

  ul.menu.active {
    max-height: 500px;
    padding-bottom: 1rem;
  }

  ul.menu li ul {
    position: static;
    box-shadow: none;
  }

  .menu-toggle {
    display: block;
  }
}

/* LOGO */
.logo img {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}

/* FOOTER */
footer {
  background: var(--azul-oscuro);
  color: var(--blanco);
  text-align: center;
  padding: 1rem 0;
  margin-top: 2rem;
}

footer .social-icons {
  margin-top: 0.5rem;
}

footer .social-icons a {
  color: var(--azul-hielo);
  margin: 0 10px;
  font-size: 1.4rem;
  transition: color 0.3s;
}

footer .social-icons a:hover {
  color: var(--blanco);
}

/* BOTÓN WHATSAPP */
.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: white;
  font-size: 1.8rem;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, background 0.3s ease;
  z-index: 1001;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  background: #1ebc5b;
}

/* HERO / CARRUSEL */
.hero {
  position: relative;
  width: 100%;
  height: 90vh;
  overflow: hidden;
  background: #000;
}

.slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 100%;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: left 1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  left: 0;
}

.slide.prev {
  left: -100%;
}

.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(10, 38, 71, 0.55);
}

.content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 80%;
  animation: fadeInUp 1.2s ease;
}

.content h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.content p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  color: white;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 50%;
  transition: background 0.3s;
  z-index: 3;
}

.nav-btn:hover {
  background: rgba(255,255,255,0.5);
}

.prev { left: 20px; }
.next { right: 20px; }

.dots {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  z-index: 3;
}

.dots span {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.3s;
}

.dots span.active {
  background: var(--azul-hielo);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .content h1 { font-size: 1.8rem; }
  .content p { font-size: 1rem; }
}

/* CLIENTES SLIDER */
.clientes {
  overflow: hidden;
  white-space: nowrap;
  background: #199BD7;
  border-top: 2px solid #199BD7;
  border-bottom: 2px solid #199BD7;
  padding: 20px 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  position: relative;
}

.clientes .slide-track {
  display: inline-block;
  animation: scroll 30s linear infinite;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.clientes:hover .slide-track {
  animation-play-state: paused;
}

.clientes img {
  height: 60px;
  margin: 0 50px;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.clientes img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

@media (max-width: 600px) {
  .clientes img {
    height: 40px;
    margin: 0 30px;
  }
}

.nosotros {
  color: #fff !important;
}

#rescates {
  color: #fff !important;
}

/* CONTENEDOR PRINCIPAL */
.blog-container {
  max-width: 900px;
  margin: 4rem auto;
  padding: 0 1rem;
  text-align: center;
}

.blog-container h1 {
  font-size: 2rem;
  color: var(--azul-oscuro);
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== CONTENEDOR PRINCIPAL ===== */
#main-content {
  max-width: 900px;
  margin: 60px auto;
  background-color: rgba(25, 155, 215, 0.75); /* Azul corporativo */
    backdrop-filter: blur(14px) saturate(20%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  color: #fff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease, transform 1s ease;
}

#main-content.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SECCIONES CON IMAGEN ===== */
.info-section {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.info-img {
  width: 15%;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
  transition: transform 0.6s ease;
}

.info-img:hover {
  transform: scale(1.07);
}

.info-text {
  flex: 1;
}

/* ===== TITULOS ===== */
#main-content h2 {
  color: #fff;
  border-left: 5px solid #f2c14e;
  padding-left: 12px;
  margin-top: 0;
  font-size: 1.8rem;
}

/* ===== VALORES ===== */
.valores-grid {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-top: 30px;
}

.valor {
  display: flex;
  align-items: center;          /* Centra verticalmente texto con imagen */
  justify-content: flex-start;  /* Imagen a la izquierda, texto a la derecha */
  gap: 20px;
  background: rgba(255, 255, 255, 0.15);
  padding: 20px;
  border-radius: 14px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease, background 0.3s ease;
  text-align: center;           /* Centra texto dentro del bloque */
}

.valor.visible {
  opacity: 1;
  transform: translateY(0);
}

.valor:hover {
  background: rgba(255, 255, 255, 0.25);
}

.valor img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.6s ease;
  flex-shrink: 0; /* Evita que se reduzca el tamaño en pantallas pequeñas */
}

.valor img:hover {
  transform: scale(1.07);
}

.valor div {
  flex: 1;
}

.valor h3 {
  color: #fff;
  margin-bottom: 8px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .valor {
    flex-direction: column;     /* Imagen arriba, texto abajo */
    text-align: center;
    justify-content: center;
  }

  .valor img {
    width: 120px;               /* Mantiene su tamaño en móvil */
    height: 120px;
  }
}

 /* ===== TARJETAS PRINCIPALES ===== */
.main-home {
  padding: 60px 20px;
  display: flex;
  justify-content: center;
}

.tarjetas-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  max-width: 1200px;
  width: 100%;
}

.tarjeta {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  text-align: center;
  animation: fadeInUp 1s ease forwards;
}

.tarjeta:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.image-container img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.text-container {
  padding: 20px 25px;
}

.text-container h2 {
  color: var(--azul-oscuro);
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.text-container p {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.5;
  margin-bottom: 15px;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  border-radius: 30px;
  padding: 10px 20px;
  transition: background 0.3s ease, transform 0.2s;
}

.btn-azul {
  background: var(--azul-oscuro);
  color: var(--blanco);
}

.btn-azul:hover {
  background: var(--azul-hielo);
  transform: scale(1.05);
}

/* Animación aparición */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .main-home {
    padding: 40px 15px;
  }

  .image-container img {
    height: 180px;
  }
}

/* GRID DE TARJETAS - máximo 2 por sección */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* solo dos columnas */
  gap: 2rem;
  justify-content: center; /* centra las tarjetas si hay una sola */
  align-items: start;
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr; /* una por fila en móviles */
  }
}

/* TARJETA */
.blog-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(50px);
  min-height: 480px;
}

.blog-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* CONTENEDOR DE IMAGEN */
.image-container {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

/* EFECTO ZOOM EN IMAGEN */
.blog-card:hover .image-container img {
  transform: scale(1.1);
}

/* CONTENIDO */
.blog-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.blog-content h2 {
  font-size: 1.25rem;
  color: #0A2647;
  margin-bottom: 0.8rem;
}

.blog-content p {
  flex-grow: 1;
  color: #444;
  line-height: 1.5;
  margin-bottom: 1.2rem;
}

  /* --- SECCIÓN CLIENTES --- */
  .clientes-section {
    max-width: 1200px;
    margin: auto;
    text-align: center;
    background: transparent;
    border-radius: 20px;
    box-shadow: var(--sombra);
    padding: 10px 5px;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease;
  }

  .clientes-section h2 {
    color: var(--blanco);
    margin-bottom: 50px;
    position: relative;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: fadeInDown 1s ease;
  }

  .clientes-section h2::after {
    content: "";
    display: block;
    width: 100px;
    height: 4px;
    background: var(--azul-claro);
    margin: 14px auto;
    border-radius: 2px;
  }

/* --- GRID DE CLIENTES --- */
.clientes-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 🧊 5 columnas en pantallas grandes */
  gap: 40px;
  justify-items: center;
  align-items: stretch; /* 🔹 Hace que todas las celdas tengan la misma altura */
  padding: 20px;
}

/* 🔸 Tablets medianas */
@media (max-width: 992px) {
  .clientes-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
}

/* 🔸 Celulares */
@media (max-width: 600px) {
  .clientes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

/* --- TARJETA DE CLIENTE --- */
.cliente {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: all 0.4s ease;
  height: 140px; /* 🔹 Todas las tarjetas igual de altas */
  opacity: 0;
  transform: translateY(30px);
}

/* Efecto al aparecer */
.cliente.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Efecto hover */
.cliente:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px);
}

/* --- IMAGEN DEL CLIENTE --- */
.cliente img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  filter: grayscale(80%);
  opacity: 0.9;
  transition: all 0.4s ease;
}

.cliente {
  overflow: hidden; /* 🔹 Evita que las imágenes grandes se recorten mal */
}

.cliente img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* 🔹 Ajusta sin deformar */
  display: block;
}

.cliente:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.07);
}

  .cliente.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Glow elegante */
  .cliente::before {
    content: "";
    position: absolute;
    top: -75%;
    left: -75%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,153,255,0.25) 0%, transparent 70%);
    transform: rotate(25deg);
    opacity: 0;
    transition: var(--transicion);
  }

  .cliente:hover::before {
    opacity: 1;
    animation: glow 3s linear infinite;
  }

  @keyframes glow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }

  /* --- RESPONSIVE --- */
  @media (max-width: 768px) {
    main {
      padding: 50px 0;
    }
    .clientes-section {
      padding: 50px 25px;
    }
    .clientes-section h2 {
      font-size: 1.6rem;
    }
  }

/* === SECCIÓN SERVICIOS === */
.servicios-section {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  background: transparent;
  border-radius: 20px;
  padding: 40px 20px;
  position: relative;
  animation: fadeInUp 1s ease;
}

/* Título con línea decorativa */
.titulo-section {
  color: #fff;
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.titulo-section::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: #f2c14e;
  margin: 10px auto 0;
  border-radius: 3px;
}

/* === GRID DE TARJETAS === */
.grid-valores {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 por fila en pantallas grandes */
  gap: 30px;
  justify-items: stretch;
  align-items: stretch; /* 🔹 Hace que todas las tarjetas tengan la misma altura */
  padding: 20px;
}

/* Cada tarjeta ocupa toda la altura disponible */
.valor-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-sizing: border-box;
}

/* 🔸 Tablets: 2 tarjetas por fila */
@media (max-width: 992px) {
  .grid-valores {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 🔸 Celulares: 1 tarjeta por fila */
@media (max-width: 600px) {
  .grid-valores {
    grid-template-columns: 1fr;
  }
}

/* Tarjetas con efecto flip */
.valor2 {
  perspective: 1000px;
}

.valor-inner {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
  height: 220px;
}

.valor2:hover .valor-inner {
  transform: rotateY(180deg);
}

.valor-front,
.valor-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 15px;
  color: #fff;
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
  transition: all 0.6s ease;
}

/* Frente */
.valor-front {
  background-size: cover;
  background-position: center;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 5px rgba(0,0,0,0.7);
}

/* Reverso */
.valor-back {
  background: rgba(25, 155, 215, 0.95);
  transform: rotateY(180deg);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Animación al hacer scroll */
.valor2 {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.valor2.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 600px) {
  #main-content {
    padding: 20px;
  }

  .valor-inner {
    height: 180px;
  }

  .valor-front h4, 
  .valor-back p {
    font-size: 0.9rem;
  }

  .titulo-section {
    font-size: 1.5rem;
  }
}

.valor-front2 {
  background: transparent !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
  overflow: hidden;
}

.valor-front2 img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent !important;
  mix-blend-mode: normal;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}


/* Tarjetas con efecto flip */
.valor3 {
  perspective: 1000px;
}

.valor3:hover .valor-inner {
  transform: rotateY(180deg);
}

/* Animación al hacer scroll */
.valor3 {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.valor3.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === GRID DE TARJETAS === */
.grid-valores2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 por fila en pantallas grandes */
  gap: 30px;
  justify-items: stretch;
  align-items: stretch; /* 🔹 Hace que todas las tarjetas tengan la misma altura */
  padding: 20px;
}

/* 🔸 Tablets: 2 tarjetas por fila */
@media (max-width: 992px) {
  .grid-valores2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 🔸 Celulares: 1 tarjeta por fila */
@media (max-width: 600px) {
  .grid-valores2 {
    grid-template-columns: 1fr;
  }
}

.grid-valores2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  padding: 20px 50px;
  justify-items: center;
}

.valor3 {
  width: 180px;
  height: 180px;
  perspective: 1000px;
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.valor3.visible {
  opacity: 1;
  transform: translateY(0);
}

.valor-front2 {
  position: relative;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
  filter: brightness(0.95) contrast(1.1);
}

/* Simula fondo transparente para logos con fondo blanco */
.valor-front2::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 70%);
  opacity: 0.3;
  mix-blend-mode: lighten;
}

.valor-front2:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

.grid-valores2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  padding: 40px;
  justify-items: center;
}

.valor3 {
  width: 180px;
  height: 180px;
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.valor3.visible {
  opacity: 1;
  transform: translateY(0);
}

.valor-front2 {
  background: transparent;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.valor-front2:hover {
  transform: scale(1.07);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.valor-front2 img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.25));
  transition: transform 0.3s ease;
}

.valor-front2:hover img {
  transform: scale(1.05);
}

.imagen-rescates {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px; /* opcional, para que se vea más elegante */
}

 /* BUSCADOR */
    .search-box {
      display: flex;
      align-items: center;
      background: var(--blanco);
      border-radius: 20px;
      overflow: hidden;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .search-box input {
      border: none;
      padding: 6px 10px;
      outline: none;
      font-size: 0.9rem;
      color: #333;
    }

    .search-box button {
      background: var(--azul-hielo);
      border: none;
      padding: 6px 10px;
      color: var(--blanco);
      cursor: pointer;
      transition: background 0.3s;
    }

    .search-box button:hover {
      background: #009acd;
    }

    /* BOTÓN HAMBURGUESA */
    .menu-toggle {
      display: none;
      background: none;
      border: none;
      color: var(--blanco);
      font-size: 1.6rem;
      cursor: pointer;
      transition: transform 0.3s ease;
    }

    .menu-toggle.active {
      transform: rotate(90deg);
    }

    /* RESPONSIVE */
    @media (max-width: 768px) {
      .nav-container {
        flex-direction: column;
        align-items: flex-start;
      }

      .menu-toggle {
        display: block;
        align-self: flex-end;
      }

      ul.menu {
        flex-direction: column;
        background: var(--azul-oscuro);
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
      }

      ul.menu.active {
        max-height: 500px;
        padding-bottom: 1rem;
      }

      ul.menu li {
        width: 100%;
      }

      ul.menu li a {
        padding: 10px;
      }

      ul.menu li ul {
        position: static;
        box-shadow: none;
      }

      .search-box {
        width: 100%;
        margin-top: 10px;
      }
    }
	
a
{
	text-decoration:none;
}	