/* ====== VARIABLES DE COLOR ====== */
:root {
  --dark: #333;
  --light: #f9f9f9;
  --vibrant-blue: #007BFF;
  --yellow: #FFC107;
  --orange: #FF5722;
  --purple: #9C27B0;
  --coral: #FF6F61;
  --turquoise: #40E0D0;
  --greenblue: #3BE0D0;
  --gradient-hero: linear-gradient(135deg, #00c2cb, #3be0d0);
}

/* ====== ESTRUCTURA GENERAL ====== */
body {

  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: var(--light);
  color: var(--dark);
  line-height: 1.6;
  font-size: 16px;
  scroll-behavior: smooth;

}

/* ====== HEADER ====== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white; /* Cambiado a fondo blanco */
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1); /* Sombra suave para separación */
}

.logo {
  height: 70px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
}

nav a {
  text-decoration: none;
  color: var(--vibrant-blue); /* Color de texto acorde a tu logo */
  font-weight: bold;
  transition: color 0.1s;
}

nav a:hover {
  color: var(--yellow);
}


/* ====== HERO ====== */
.hero {
  position: relative;
  text-align: center;
  padding: 80px 30px;
  color: white;
  background: var(--gradient-hero);
  overflow: hidden;
  border-bottom: 6px solid var(--yellow);
}

.hero::before {
  content: " ";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('taller3.png') center center / cover no-repeat;
  opacity: 0.30;
  z-index: 0;
}


.hero h1 {
  font-size: 2.5em;
  margin: 0;
  font-weight: 800;
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
  position: relative;
  z-index: 1;
}

.hero h2 {
  font-size: 1.5em;
  margin-top: 15px;
  color: #f0f0f0;
  font-weight: 600;
}



.hero p {
  font-size: 1.2em;
  margin-top: 10px;
  color: #f0f0f0;
}

.hero button {
  margin-top: 20px;
  background: var(--yellow);
  color: var(--dark);
  border: none;
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.hero button:hover {
  background: var(--orange);
  transform: scale(1.05);
}


/* ====== QUIENES SOMOS ====== */
.about {
  text-align: center;
  padding: 40px 20px;
}

.about h2 {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: var(--purple);
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.about-card {
  background: white;
  border-left: 5px solid var(--turquoise);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  flex: 1 1 250px;
}


.values {
  text-align: center;
  padding: 40px 20px;
  background: var(--light);
}

.values h2 {
  font-size: 1.8em;
  margin-bottom: 30px;
  color: var(--purple);
}

.values-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.value-card {
  background: white;
  border-left: 5px solid var(--turquoise);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s;
}

.value-card:hover {
  transform: translateY(-5px);
}


/* ====== SERVICIOS ====== */
.services {
  text-align: center;
  padding: 40px 20px;
}

.services h2 {
  font-size: 1.8em;
  margin-bottom: 30px;
  color: var(--coral);
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.card {
  background: white;
  border-top: 4px solid var(--vibrant-blue);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.benefits {
  text-align: center;
  padding: 40px 20px;
  background: var(--light);
}

.benefits h2 {
  font-size: 1.8em;
  margin-bottom: 30px;
  color: var(--purple);
}

.benefits-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.benefit-card {
  background: white;
  border-left: 5px solid var(--greenblue);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s;
}

.benefit-card:hover {
  transform: translateY(-5px);
}

/* ====== GALERÍA (SLIDER) ====== */
.slider-container {
  position: relative;
  max-width: 900px; /* Más ancho */
  margin: 20px auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  background: var(--light);
}

.slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slider img {
  width: 100%;
  max-height: 600px; /* Más alto */
  flex-shrink: 0;
  object-fit: contain; /* Mostrar imagen completa */
  background-color: #000; /* Fondo para áreas vacías */
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: white;
  border: none;
  font-size: 2em;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  z-index: 10;
}

.prev:hover, .next:hover {
  background: rgba(0,0,0,0.7);
}

.prev { left: 10px; }
.next { right: 10px; }

.slider-info {
  text-align: center;
  font-size: 1em;
  color: var(--dark);
  margin-top: 10px;
}

/* ====== TESTIMONIOS ====== */
.testimonios {
  text-align: center;
  padding: 40px 20px;
  background: white;
}

.testimonios h2 {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: var(--purple);
}

.testimonial-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--light);
  border-left: 5px solid var(--turquoise);
  padding: 20px;
  border-radius: 8px;
  flex: 1 1 250px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.testimonial-card h4 {
  margin-top: 10px;
  color: var(--vibrant-blue);
}

.socials {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #3be0d0, #00c2cb);
  color: white;
}

.socials h2 {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #fff;
}

.socials p {
  font-size: 1em;
  margin-bottom: 25px;
  color: #f5f5f5;
}

.social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.social-btn {
  text-decoration: none;
  color: white;
  padding: 12px 20px;
  border-radius: 25px;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.social-btn:hover {
  transform: scale(1.05);
}

.social-btn.facebook {
  background: #1c55a4; /* azul profundo */
}

.social-btn.instagram {
  background: #ff6f61; /* coral */
}

.social-btn.whatsapp {
  background: #00c2cb; /* turquesa */
}

.social-btn.youtube {
  background: #f98b34; /* naranja cálido */
}



/* ====== FOOTER ====== */
footer {
  background: var(--vibrant-blue);
  color: white;
  text-align: center;
  padding: 20px 10px;
}

/* ====== WHATSAPP BUTTON ====== */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: white;
  font-size: 2em;
  border-radius: 50%;
  text-align: center;
  padding: 12px 14px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  text-decoration: none;
  z-index: 200;
  transition: transform 0.3s, background 0.3s;
}

.whatsapp-button:hover {
  background: #1ebe57;
  transform: scale(1.1);
}

/* ====== MEDIA QUERIES ====== */
@media (max-width: 768px) {
  .slider-container {
    max-width: 90%;
  }
  .slider img {
    height: 200px;
  }
  header {
    flex-direction: column;
  }
  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
}
/* Botón QR flotante en lado izquierdo, más abajo */
.qr-button {
  position: fixed;
  bottom: 40px; /* más abajo */
  left: 20px;
  background: #00c2cb; /* turquesa del logo */
  color: white;
  font-size: 2em;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: background 0.3s, transform 0.2s;
  z-index: 1000;
}

.qr-button:hover {
  background: #3be0d0; /* cyan del logo */
  transform: scale(1.1);
}

/* Modal QR */
.qr-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
}

.qr-modal-content {
  background: white;
  margin: 10% auto;
  padding: 20px;
  border-radius: 25px; /* más redondeado */
  width: 90%;
  max-width: 320px;
  text-align: center;
  position: relative;
  animation: fadeIn 0.3s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.qr-modal-content h3 {
  margin-top: 0;
  color: #00c2cb;
}

.qr-image {
  width: 100%;
  max-width: 220px;
  margin: 10px auto;
  border-radius: 16px; /* bordes suaves a la imagen QR */
}

.qr-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.8em;
  cursor: pointer;
  color: #666;
  transition: color 0.3s;
}

.qr-close:hover {
  color: #000;
}

@keyframes fadeIn {
  from {opacity: 0; transform: scale(0.95);}
  to {opacity: 1; transform: scale(1);}
}


/* ====== EFECTOS GLOBALES ====== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth; /* Scroll suave */
}

body {
  animation: fadeInPage 0.8s ease-in-out;
}

/* Animación entrada general */
@keyframes fadeInPage {
  from { opacity: 0; transform: translateY(20px);}
  to { opacity: 1; transform: translateY(0);}
}

/* Títulos con degradado */
h1, h2, h3 {
  background: linear-gradient(90deg, var(--turquoise), var(--coral), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: #405ade;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 800;
}

/* ====== NAV LINKS con efecto underline dinámico ====== */
nav a {
  position: relative;
  font-weight: 600;
}

nav a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 3px;
  bottom: -5px;
  left: 0;
  background: var(--yellow);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* ====== HERO con efecto animado ====== */
.hero {
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 20%, transparent 60%);
  animation: heroLight 8s infinite linear;
}

@keyframes heroLight {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero h1 {
  animation: slideIn 1s ease forwards;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-40px);}
  to { opacity: 1; transform: translateY(0);}
}

/* Botón hero con pulso */
.hero button {
  position: relative;
  overflow: hidden;
}

.hero button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 30px;
  background: rgba(255,255,255,0.4);
  opacity: 0;
  transform: scale(0.5);
  transition: transform 0.3s, opacity 0.3s;
}

.hero button:hover::before {
  opacity: 1;
  transform: scale(1);
}

/* ====== TARJETAS con hover animado ====== */
.about-card, .value-card, .card, .benefit-card, .testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.about-card::before, .value-card::before, .card::before, .benefit-card::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: 0.6s;
}

.about-card:hover::before,
.value-card:hover::before,
.card:hover::before,
.benefit-card:hover::before {
  left: 100%;
}

.about-card:hover, .value-card:hover, .card:hover, .benefit-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* ====== GALERÍA con zoom suave ====== */
.slider img {
  transition: transform 0.6s ease;
}

.slider img:hover {
  transform: scale(1.08);
  cursor: zoom-in;
}

/* ====== BOTONES REDES SOCIALES con animación glow ====== */
.social-btn {
  position: relative;
  overflow: hidden;
}

.social-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255,255,255,0.2);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.4s, transform 0.4s;
}

.social-btn:hover::after {
  opacity: 1;
  transform: scale(1);
}

/* ====== BOTÓN WHATSAPP y QR con rebote ====== */
.whatsapp-button, .qr-button {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0);}
  50% { transform: translateY(-5px);}
}

/* Hover brillante */
.whatsapp-button:hover, .qr-button:hover {
  box-shadow: 0 0 15px rgba(255,255,255,0.6), 0 0 25px currentColor;
}

/* ====== CONTENEDOR DE FOTOS EN FILA ====== */
.mission-gallery {
  display: flex;
  flex-direction: row; /* 🔥 Ahora en fila */
  gap: 15px;
  margin: 20px auto 0 auto;
  max-width: 90%;
  padding: 5px;
  flex-wrap: wrap; /* 🔥 Para que baje si hay muchas fotos */
  justify-content: center; /* 🔥 Centra horizontalmente */
}

.mission-item {
  background: #fff;
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 220px; /* 🔥 Todas las fotos con el mismo ancho */
}

.mission-item:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

.mission-item img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.testimonios {
  background: #f7f7f7;
  text-align: center;
  padding: 30px 15px;
  margin-top: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.testimonios h2 {
  font-size: 1.6em;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.testimonios p {
  max-width: 500px;
  margin: 0 auto 15px auto;
  font-size: 1em;
  color: #444;
}

.testimonio-video {
  max-width: 400px; /* 🔥 MÁS PEQUEÑO */
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.testimonio-video:hover {
  transform: scale(1.03);
}

.testimonio-video video {
  width: 100%;
  display: block;
  border-radius: 14px;
}
