* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #fff;
  color: #222;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 3rem;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.6rem;
  font-weight: bold;
}

.logo img {
  height: 45px;
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  transition: background 0.3s, color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  background-color: #f0c040;
  color: #fff;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
}

/* ===== HERO ===== */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 3rem;
  background: #fafafa;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1;
  max-width: 50%;
}

.subtitulo {
  color: #e63946;
  font-weight: 600;
  margin-bottom: .5rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero h1 span {
  color: #0a3d62;
}

.descripcion {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: #555;
}

.botones {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  all: unset;
  display: inline-block;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  text-align: center;
  border-radius: 25px;
  padding: 0.8rem 1.4rem;
  background: linear-gradient(to right, #f7b733, #fc4a1a);
  color: white;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.btn-play {
  background: none;
  border: 2px solid #fc4a1a;
  font-size: 1rem;
  cursor: pointer;
  color: #fc4a1a;
  padding: 0.8rem 1.4rem;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-play:hover {
  background: #fc4a1a;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.hero-img {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-img img {
  width: 100%;
  max-height: 500px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  object-fit: cover;
  transition: transform 0.3s, box-shadow 0.3s;
}

.hero-img img:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

/* ===== CATEGORÍAS ===== */
.categorias {
  text-align: center;
  padding: 4rem 2rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

.card {
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  min-height: 450px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.card img {
  width: 100px;
  margin-bottom: 1rem;
  filter: invert(20%) sepia(90%) saturate(2000%) hue-rotate(350deg) brightness(95%) contrast(90%);
}

/* ===== ALIANZAS ===== */
.alianzas {
  text-align: center;
  padding: 4rem 2rem;
  background: #fafafa;
}

.logos {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: center;
  margin-top: 2.5rem;
}

.logos img {
  width: 170px;
  height: 170px;
  object-fit: cover;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logos img:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* ===== FOOTER ===== */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 50px;
  background: #fff;
  border-top: 1px solid #eee;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-left img {
  height: 40px;
}

.footer-center {
  text-align: center;
  flex: 1;
}

.footer-right {
  text-align: right;
}

.footer-right p {
  margin-bottom: 10px;
  font-weight: 600;
}

.footer-right .redes {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}

.footer-right .redes img {
  height: 30px;
  transition: transform 0.3s ease;
}

.footer-right .redes img:hover {
  transform: scale(1.1);
}

/* ===== ANIMACIÓN BOTONES FLOTANTES ===== */
@keyframes flotar {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* ===== BOTONES FLOTANTES ===== */
.btn-voluntario,
.btn-donaciones {
  position: fixed;
  right: 20px;
  z-index: 2000;
  padding: 0.9rem 1.6rem;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  animation: flotar 3s ease-in-out infinite;
}

.btn-voluntario {
  bottom: 140px;
  background: #0a3d62;
}

.btn-donaciones {
  bottom: 80px;
  background: #e63946;
}

.btn-voluntario:hover {
  background: #062a45;
  transform: scale(1.05);
}

.btn-donaciones:hover {
  background: #b12230;
  transform: scale(1.05);
}

/* ===== MODALES ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  position: relative;
  background: #fff;
  color: #333;
  border-radius: 1rem;
  padding: 2rem;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.2);
  animation: aparecer 0.3s ease;
}

.modal-content.video {
  padding: 1rem;
  overflow: hidden;
}

.modal-content video {
  width: 100%;
  border-radius: 1rem;
}

.close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 2rem;
  color: #666;
  cursor: pointer;
  transition: color 0.2s;
}

.close:hover {
  color: #000;
}

@keyframes aparecer {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-content {
  max-height: 85vh; /* altura máxima del modal */
  overflow-y: auto; /* permite scroll vertical */
}

/* ===== RESPONSIVE ===== */

/* Tablets */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 3rem 2rem;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-img img {
    max-height: 400px;
  }
}

/* Celulares */
@media (max-width: 768px) {
  /* Navbar */
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    gap: 1rem;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    z-index: 10;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #fff;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    z-index: 9;
    align-items: flex-start;
    text-align: left;
    padding-left: 1rem;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid #eee;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  /* Hero */
  .hero {
    flex-direction: column;
    padding: 2.5rem 1.5rem;
  }

  .hero-text {
    order: 1;
    max-width: 100%;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text .descripcion {
    font-size: 1rem;
  }

  .botones {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 1rem;
    justify-content: center;
  }

  .btn, 
  .btn-play {
    width: 100%;
    max-width: 250px;
    text-align: center;
    font-size: 1rem;
    padding: 0.9rem 1.2rem;
  }

  .hero-img {
    order: 2;
    width: 100%;
    display: none;
  }

  .hero-img img {
    max-height: 320px;
    width: 100%;
    border-radius: 15px;
  }

  .banner {
    display: none;
  }

  /* Productos */
  .productos {
    padding: 3rem 1rem;
  }

  .productos-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .producto-card img {
    height: 160px;
  }

  /* Footer */
  .footer {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    width: 100%;
  }

  .redes {
    justify-content: center;
  }

  .footer-logo {
    width: 35px;
    height: 35px;
  }

  .footer-center {
    font-size: 0.9rem;
  }

  /* Botones flotantes */
  .btn-voluntario,
  .btn-donaciones {
    right: 10px;
    padding: 0;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0; /* oculta el texto original */
  }

  .btn-voluntario::after {
    content: "🤝";
    font-size: 1.8rem; /* tamaño del emoji */
  }

  .btn-donaciones::after {
    content: "💖";
    font-size: 1.8rem; /* tamaño del emoji */
  }

  .btn-voluntario {
    bottom: 130px;
  }

  .btn-donaciones {
    bottom: 70px;
  }
}

/* Celulares pequeños */
@media (max-width: 480px) {
  .navbar {
    padding: 0.8rem 0.5rem;
  }

  .nav-links {
    padding-left: 0.8rem;
  }

  .hero-text h1 {
    font-size: 1.6rem;
  }

  .btn, .btn-play {
    width: 100%;
  }

  .producto-card img {
    height: 150px;
  }

  .footer {
    font-size: 0.85rem;
  }
}

.modal-content.video {
  padding: 0;
  overflow: hidden;
  background: transparent;
}

.modal-content video {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  outline: none;
}

/* Estilos para los controles del video */
.modal-content video::-webkit-media-controls-panel {
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.7));
}

.modal-content video::-webkit-media-controls-play-button,
.modal-content video::-webkit-media-controls-timeline,
.modal-content video::-webkit-media-controls-current-time-display,
.modal-content video::-webkit-media-controls-time-remaining-display,
.modal-content video::-webkit-media-controls-mute-button,
.modal-content video::-webkit-media-controls-volume-slider,
.modal-content video::-webkit-media-controls-fullscreen-button {
  filter: brightness(1.2);
}

/* Botón de cierre para el modal de video */
.modal.video .close {
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.modal.video .close:hover {
  background: rgba(252, 74, 26, 0.9);
  transform: rotate(90deg);
}

/* Responsive para el video */
@media (max-width: 768px) {
  .modal-content.video {
    width: 95%;
    max-width: 95%;
  }
  
  .modal-content video {
    border-radius: 0.5rem;
  }
  
  .modal.video .close {
    width: 35px;
    height: 35px;
    font-size: 1.3rem;
    top: 10px;
    right: 10px;
  }
}