/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #0f172a;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
}

/* Encabezado con efecto Matrix */
.header-matrix {
  position: relative;
  height: 40vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0a2e66;
  color: white;
}

#matrixCanvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.header-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.header-content img {
  height: 50px;
  width: 50px;
  margin: 9px;
  margin-bottom: 0;
}

.header-content h1 {
  font-size: 2.5rem;
  font-weight: bold;
  letter-spacing: 2px;
  color: white;
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
  opacity: 0;
  animation: fadeIn 3s ease forwards;
  animation-delay: 2s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/*galeria hover*/
.gallery-container {
  max-width: 1200px;
  margin: 15px auto;
  background-color: #0f172a;
}

.gallery-container h2 {
  text-align: center;
  color: white;
  margin-bottom: 40px;
  font-size: 2.5rem;
}


.gallery-title {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  background-color: #1e293b;
  height: 250px;
  border: 1px solid #ccc;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(235, 230, 230, 0.1);
  cursor: pointer;
}

.description-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
  z-index: 2;
}

.description-overlay h3 {
  margin-bottom: 10px;
  font-size: 1.3em;
}

.description-overlay p {
  font-size: 0.9em;
  line-height: 1.4;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

/* Efecto hover para desktop */
.gallery-item:hover .description-overlay {
  opacity: 0;
}

.gallery-item:hover .gallery-image {
  opacity: 1;
}

/* Estado inicial - solo descripción visible */
.description-overlay {
  opacity: 1;
}

.gallery-image {
  opacity: 0;
}


/* Sección sobre nosotros */
.about-section {
  background-color: white;
  padding: 60px 20px;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.about-content img {
  width: 100%;
  max-width: 600px;
  border-radius: 10px;
}

.about-text {
  max-width: 600px;
}

.about-text p {
  margin: 10px;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #0a2e66;
}

.about-text ul {
  list-style: none;
  padding-left: 0;
}

.about-text li {
  margin-bottom: 10px;
}

/* Testimonios */
.testimonials-section {
  background-color: #1e293b;
  padding: 60px 20px;
}

.testimonials-section h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 40px;
  color: #ffffff;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background-color: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.testimonial-card img {
  height: 90px;
  width: 90px;
}

.testimonial-avatar {
  border-radius: 50%;
  margin-bottom: 10px;
}

.testimonial-role {
  font-size: 0.9rem;
  color: #666;
}


/* Sección de redes sociales */
.social-section {
  background-color: #1e293b;
  padding: 60px 20px;
  text-align: center;
}

.social-section h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: #ffffff;
}

.social-description {
  max-width: 600px;
  margin: auto;
  margin-bottom: 40px;
  font-size: 1.1rem;
  color: #333;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  color: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.social-link svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Colores específicos para cada red social */
.facebook {
  background-color: #1877f2;
}

.instagram {
  background: linear-gradient(45deg, #f000ff, #ffad00);
}

.youtube {
  background-color: #fc0101;
}

.tiktok {
  background-color: #0c0c0c;
}

/* Estilo para el botón de "Me gusta" */
.megusta {
  background-color: #f8f9fa;
  padding: 20px;
  text-align: center;
}

.mg {
  margin-bottom: 30px;
}

.like-section {
  background-color: #0f172a;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.like-button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.like-button:hover {
  background-color: #0056b3;
  transform: scale(1.05);
}

.like-button.liked {
  background-color: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

.like-count {
  font-size: 18px;
  font-weight: bold;
  color: #d6d3d3;
  margin-top: 10px;
}

.like-text {
  margin-bottom: 15px;
  color: #d6d3d3;
}

/* Contacto */
.contact-section {
  background-color: white;
  padding: 60px 20px;
}

.contact-section h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 40px;
  color: #0a2e66;
}

.contact-form {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}


.animated-border-button {
  position: relative;
  padding: 15px 30px;
  font-size: 18px blue;
  font-weight: bold;
  color: #333;
  background : rgb(90, 30, 201);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  z-index: 1;
}


.animated-border-button::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: conic-gradient(from 0deg,
      #00eeff,
      #00aaff,
      #0066ff,
      #00eeff);
  border-radius: 10px;
  z-index: -1;
  animation: rotate 2s linear infinite;
}

.animated-border-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgb(241, 237, 237);
  border-radius: 8px;
  z-index: -1;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.animated-border-button:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.animated-border-button:active {
  transform: scale(0.95);
}
/*cosas*/
.cosas {
  background-color: #0f172a;
}
.containercosas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  margin: auto;
}

.cosas img{
  width: 60px;
  height: 55px;;
  border-radius: 10px;
  padding: 5px;
}
.cosas h2 {
  width: 90%;
  text-align: center;
  color: white;
  margin: 10px;

}

/* Footer */
.footer {
  height: 20px;
  background-color: #0f172a;
  color: white;
  text-align: center;
  padding: 20px;
}
.footer .container {
  display: flex;
  height: 80%;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.footer p {
  margin: 0;
  font-size: 0.9rem;
  color: #d6d3d3;
}

/* Para dispositivos móviles - tocar para mostrar imagen */
@media (max-width: 768px) {
  .gallery-item.active .description-overlay {
    opacity: 0;
  }

  .gallery-item.active .gallery-image {
    opacity: 1;
  }
}

/* Estilo adicional para mejor experiencia móvil */
@media (max-width: 768px) {
  .gallery-container h2 {
    font-size: 1.8rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    height: 200px;
    width: 90%;
    margin: auto;
  }

  .social-icons {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
}