:root {
  --accent: #f2b237; /* Amarillo cálido */
  --bg: #ffffff;
  --text: #222222;
  --muted: #666666;
  --container: 1100px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); line-height: 1.6; }

/* Contenedor general */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1rem;
}

/* Header */


.site-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 1.5rem;
  color: var(--accent);
}

/* Navegación */
.nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.nav a {
  text-decoration: none;
  color: #8bb1ba;     /* 💙 color institucional base */
  font-weight: 500;
  transition: all 0.3s ease;
}

/* Efecto hover del menú */
.nav a:hover {
  color: #1e4a99;       /* azul institucional */
  /*border-bottom: 2px solid var(--accent);/* /* línea inferior */
  transition: all 0.3s ease;     /* transición suave */
}

#nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
}

.nav a.active {
  color: #1e4a99;
  font-weight: 700;
  /*border-bottom: 2px solid #1e4a99; */
}



/* Secciones */

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  font-weight: 600;
}

.hero {
  background-image: url("../images/fondo.jpeg");
  background-size: cover;      /* que la imagen cubra todo el ancho */
  background-position: center; /* centrada */
  background-repeat: no-repeat;/* que no se repita */
  color: white;                /* texto en blanco para contraste */
  padding: 6rem 1rem;          /* espacio arriba/abajo */
  text-align: center;
  min-height: 50vh;           /* ocupa toda la altura de la pantalla */
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image img {
  max-width: 100%;   /* nunca supera el ancho de la pantalla */
  height: auto;      /* mantiene proporción */
  display: block;    /* elimina espacio raro abajo */
  margin: 0 auto;    /* centrada */
}

.section {
  padding: 2rem 1rem;
}
.section.alt {
  background: #fff;
}
.section h2 {
  margin-bottom: 0.5rem;
}
.section p {
  color: var(--muted);
}

.circles-section {
  padding: 40px 20px;
  text-align: center;
  background-color: #fafafa;
}

.circles-container {
  display: flex;
  flex-wrap: wrap;         /* que se acomoden en varias filas si no entra */
  gap: 20px;
  justify-content: center; /* siempre centrados */
}

.circle {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
  transition: transform 0.3s;
}

.circle img {
  width: 80%;
  height: 80%;
  object-fit: contain; /* la imagen se ve entera, sin recortarse */
}

.circle:hover {
  transform: scale(1.1);
}








/* Responsive */
@media (max-width: 768px) {
  .nav { display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0.5rem; }
  #nav-toggle { display: block; }
}

.logo img {
  height: 45px;
  width: auto;
}

/* Botón flotante WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 20px;   /* distancia desde abajo */
  right: 20px;    /* distancia desde la derecha */
  z-index: 999;   /* siempre encima */
}

.whatsapp-float img {
  width: 55px;    /* tamaño del botón */
  height: auto;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}

.whatsapp-float img:hover {
  transform: scale(1.1);
}

/* PRODUCTOS */

.productos-section {
  padding: 40px 20px;
  background: #fff;
}

.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

/* Card */
.producto-card {
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 15px;
  text-align: left; /* Texto productos */
  background: #fafafa;
}

/* Card */
.producto-card h3 {
  text-align: center; /* Texto productos */
}

/* Galería */
.producto-gallery {
  position: relative;
}
.producto-img {
  display: none;
  width: 100%;
  aspect-ratio: 1 / 1; /* cuadrada */
  object-fit: contain; /* que se vea completa */
}
.producto-img.active {
  display: block;
}
.producto-thumbs {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.producto-thumbs img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border: 2px solid transparent;
  cursor: pointer;
}
.producto-thumbs img.active {
  border-color: #1e4a99; /* color acento */
}

/* Acordeón */
.accordion {
  margin-top: 10px;
  background: #1e4a99;
  color: white;
  cursor: pointer;
  padding: 10px;
  width: 100%;
  text-align: center;
  border: none;
  outline: none;
  border-radius: 6px;
  transition: background 0.3s;
}
.accordion:hover {
  background: #8bb1ba;
}
.panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.panel ul {
  padding: 10px;
  margin: 0;
  list-style: none;
}
.panel li {
  padding: 5px 0;
  border-bottom: 1px solid #eee;
}

/* Footer */
.site-footer {
  background: #fff;
  border-top: 1px solid #eee;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-links a {
  color: #fff; 
}

.site-footer {
background-color: #1e4a99;
  color: white;
  padding: 20px 0;
  text-align: center;
}

.site-footer .social-icons {
  margin-top: 10px;
  
}

.site-footer .social-icons a {
  display: inline-block;
  margin: 0 10px;
  transition: transform 0.3s;
}

.site-footer .social-icons a:hover {
  transform: scale(1.2); /* pequeño efecto al pasar el mouse */
}

.site-footer .social-icons img {
  width: 24px;
  height: 24px;
  vertical-align: middle;
}

.footer-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Opcional: asegurarse que el contenedor no “hinche” */
.footer-image {
  overflow: hidden;
}

.footer-image img {
  max-width: 60%;
}


.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.contact-card {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.contact-card h3 {
  margin-bottom: 10px;
  color: #333;
}

.contact-card p {
  margin-bottom: 15px;
  color: #666;
  font-size: 0.9rem;
}

.contact-btn {
  background-color: #1e4a99;
  color: white;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.contact-btn:hover {
  background-color: #8bb1ba;
}

.centrado {
  text-align: center;
}

/* --- Sección de talleres --- */
.talleres-section {
  padding: 60px 20px;
  background-color: #fafafa;
  text-align: center;
}

.talleres-titulo {
  font-size: 2rem;
  color: #333;
  margin-bottom: 10px;
}

.talleres-subtitulo {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 30px;
}

.talleres-descripcion {
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #444;
  line-height: 1.6;
}

.talleres-bloques {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  text-align: left;
}

.taller-item {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 20px;
  transition: transform 0.2s;
}

.taller-item:hover {
  transform: translateY(-4px);
}

.taller-item h4 {
  color: #f2b237;
  margin-bottom: 10px;
  text-align: center;
}

.talleres-contacto {
  margin-top: 40px;
  font-size: 1rem;
}

.talleres-contacto a {
  color: #f2b237;
  text-decoration: none;
  font-weight: 600;
}

.talleres-contacto a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
  .talleres-descripcion {
    text-align: left;
    padding: 0 10px;
  }
  .talleres-bloques {
    text-align: left;
  }
}

.enlaces-internos {
  margin: 40px auto;
  text-align: center;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

.enlaces-internos a {
  color: #1e4a99;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.enlaces-internos a:hover {
  color: #f2b237; /* amarillo institucional */
}


/* Video responsivo */
.video-section {
  background-color: #fafafa; /* opcional: color suave de fondo */
  padding: 40px 20px;
  text-align: center;
}

.video-container {
  position: relative;
  padding-bottom: 25%; /* proporción 16:9 */
  height: 0;
  overflow: hidden;
  max-width: 700px;
  margin: 0 auto;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


.intro {
  text-align: center;
  padding: 40px 20px;
  background-color: #f8fafc;
}

.links-section {
  padding: 40px 20px;
  text-align: center;
}

.links-section h2 {
  color: #1e4a99;
  margin-bottom: 20px;
}

.button-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  max-width: 800px;
  margin: 0 auto;
}

.button-grid a {
  background-color: #1e4a99;
  color: white;
  text-decoration: none;
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 600;
  transition: background 0.3s, transform 0.2s;
}

.button-grid a:hover {
  background-color: #8bb1ba;
  transform: scale(1.05);
}
