
:root {
  --azul: #5587A7;
  --amarillo: #FFD54F;
  --marron: #8D6E63;
  --fondo: #FAFAFA;
  --texto: #333;
}

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

 body, html {
   height: 100%;
   font-family: 'Open Sans', sans-serif;
   background-color: #f4f4f4;
   color: #333;
}

main {
  padding: 80px 1rem 60px; /* espacio para header y footer */
  display: flex;
  justify-content: center;
  min-height: calc(100% - 140px); /* altura del espacio visible */
}

/* header */
header {
  padding: 0;
}
header img {
  width: 100%;
  height: auto;
  display: block;
}

/* navegacion */
nav {
  display: flex;
  justify-content: space-around;
  background-color: white;
  padding: 0.5rem 0;
  border-bottom: 2px solid #5587A7;
}

nav a {
  text-decoration: none;
  color: #5587A7;
  font-weight: bold;
}

/* Inicio */
.wrapper {
	width: 100%;
  	position: relative;
  	display: inline-block;
  	margin: 60px;
  	margin-bottom: 1rem;
}

/* Estilo base abejas */
.abeja-voladora {
  position: absolute;
  width: 80px;
  height: auto;
  pointer-events: none;
  transition: top 1.2s ease, width 1.2s ease;
}

/* Vuelo ondulado izquierda → derecha */
@keyframes vueloWrapperIzqDer {
  0%   { left: -80px; top: 20%; transform: translateY(0) scale(1) rotate(10deg); }
  20%  { left: 20%; top: 15%; transform: translateY(-15px) scale(1.1) rotate(-10deg); }
  40%  { left: 40%; top: 30%; transform: translateY(10px) scale(0.9) rotate(8deg); }
  60%  { left: 60%; top: 25%; transform: translateY(-20px) scale(1.1) rotate(-8deg); }
  80%  { left: 80%; top: 35%; transform: translateY(15px) scale(0.95) rotate(12deg); }
  100% { left: 100%; top: 20%; transform: translateY(0) scale(1) rotate(10deg); }
}

/* Vuelo ondulado derecha → izquierda */
@keyframes vueloWrapperDerIzq {
  0%   { left: 100%; top: 35%; transform: translateY(0) scale(1) rotate(-10deg); }
  20%  { left: 80%; top: 25%; transform: translateY(-15px) scale(1.1) rotate(10deg); }
  40%  { left: 60%; top: 40%; transform: translateY(10px) scale(0.9) rotate(-8deg); }
  60%  { left: 40%; top: 30%; transform: translateY(-20px) scale(1.1) rotate(8deg); }
  80%  { left: 20%; top: 45%; transform: translateY(15px) scale(0.95) rotate(-12deg); }
  100% { left: -80px; top: 35%; transform: translateY(0) scale(1) rotate(-10deg); }
}

/* Configuración de las 6 abejas */
.abeja1 { animation: vueloWrapperIzqDer 12s linear infinite; }
.abeja2 { animation: vueloWrapperDerIzq 14s linear infinite; }
.abeja3 { animation: vueloWrapperIzqDer 10s linear infinite; }
.abeja4 { animation: vueloWrapperDerIzq 16s linear infinite; }
.abeja5 { animation: vueloWrapperIzqDer 13s linear infinite; }
.abeja6 { animation: vueloWrapperDerIzq 11s linear infinite; }

/* Responsive: más pequeñas y semitransparentes en móvil */
@media (max-width: 768px) {
  .abeja-voladora {
    width: 40px;
    opacity: 0.7;
  }
}

.hero {
	text-align: center;
    padding: 0rem 1rem;
}

.inicio {
    display: flex;
    justify-content: center;
    height: 100vh;
    font-family: sans-serif;
    color: white;
    margin: 0;
}

.vending-container {
  display: flex;
  background: linear-gradient(#1a1a1a, #000);
  border: 4px solid #444;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255 255 255 / 0.1);
  width: 60%;
  height: 98%;
  overflow: hidden;
  margin-top: 0rem;
}

.vending-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px;
  gap: 10px;
  box-sizing: border-box;
}

.panal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: -10.5rem;
  margin-top: -0.5rem;
}

.fila {
  display: flex;
  justify-content: center;margin-top: -4px;
}

.fila-par {
  transform: translateX(3.5rem);
  margin: -4rem;
}

.fila-impar {
  margin-top: -4px;
}

.hex-btn {
  width: 12rem;
  height: 12rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.hex-btn:hover {
  transform: scale(1.05);
}

.tray {
  height: 40px;
  background: #222;
  border-top: 3px solid #333;
  text-align: center;
  line-height: 40px;
  border-radius: 0 0 5px 5px;
  flex-shrink: 0;
  margin-top: -1.5rem;
}

.vending-side {
  width: 232px;
  background: #222;
  display: flex;
  flex-direction: column;
  padding: 15px 10px;
  box-sizing: border-box;
  border-left: 4px solid #444;
  border-radius: 0 10px 10px 0;
  gap: 15px;
  justify-content: flex-start;
}

.screen {
  height: 50px;
  background: #0f0;
  color: black;
  text-align: center;
  line-height: 50px;
  font-weight: bold;
  border: 2px inset #222;
  border-radius: 6px;
  user-select: none;
}

.keyboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0px;
  align-self: center;
}

.key {
  background: #444;
  color: white;
  text-align: center;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  font-size: 16px;
  border: 1px solid #666;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6);
  user-select: none;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.key:hover {
  background: #666;
}

@keyframes abrirCajon {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
    background-color: #333;
  }
  100% {
    transform: translateY(0);
    background-color: #222;
  }
}

.tray.animado {
  animation: abrirCajon 1s ease;
}

/* quienes somos */
.section {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: auto;
	margin-top: 2rem;
}
.section h2 {
    color: #333;
}
.sections p {
    color: #555;
    line-height: 1.6;
}

.quienes-somos {
  margin: 0;
  height: 90vh;
  display: flex;
  background: #f0f0f0;
  background-color: #7DAAC3;
}

.columna {
  width: 50%;
  display: flex;
  flex-direction: column;
  margin-top: 4rem;
  align-items: center;
}

.columna-central {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cuadro-blanco {
  width: 300px;
  height: 300px;
  background-color: white;
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.abeja_bailando {
  width: 90px;
}

/* Animaciones unicas */
.columna img:nth-child(1) {
  animation: zumbar-izquierda 1s infinite;
}

.columna img:nth-child(2) {
  animation: zumbar-derecha 1.2s infinite;
}

.columna img:nth-child(3) {
  animation: zumbar-arriba 1.1s infinite;
}

.columna img:nth-child(4) {
  animation: zumbar-abajo 1.3s infinite;
}

.columna img:nth-child(5) {
  animation: zumbar-aleatorio1 1s infinite;
}

.columna img:nth-child(6) {
  animation: zumbar-aleatorio2 1.4s infinite;
}

.columna img:nth-child(7) {
  animation: zumbar-aleatorio3 1.2s infinite;
}

@keyframes zumbar-izquierda {
  0%, 100% { transform: translateX(0) rotate(0deg) scale(1); }
  50% { transform: translateX(-5px) rotate(-5deg) scale(1.05); }
}

@keyframes zumbar-derecha {
  0%, 100% { transform: translateX(0) rotate(0deg) scale(1); }
  50% { transform: translateX(5px) rotate(5deg) scale(0.95); }
}

@keyframes zumbar-arriba {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  50% { transform: translateY(-5px) rotate(-3deg) scale(1.03); }
}

@keyframes zumbar-abajo {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  50% { transform: translateY(5px) rotate(3deg) scale(0.97); }
}

@keyframes zumbar-aleatorio1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  50% { transform: translate(3px, -3px) rotate(4deg) scale(1.04); }
}

@keyframes zumbar-aleatorio2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  50% { transform: translate(-3px, 2px) rotate(-4deg) scale(0.98); }
}

@keyframes zumbar-aleatorio3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  50% { transform: translate(2px, 3px) rotate(2deg) scale(1.02); }
}

/* contactanos */
.bee-img {
  position: relative;
  top: 12px;
  left: 31%;
  width: 70px;
  height: 60px;
  animation: zumbido 1s infinite alternate;
}

@keyframes zumbido {
  0% { transform: translateX(0) rotate(0deg); }
  50% { transform: translateX(5px) rotate(10deg); }
  100% { transform: translateX(0) rotate(0deg); }
}

form {
  margin-left: 70px; /* espacio para la abeja */
}

.contact-body {
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  padding: 0;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.contact-form {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: auto;
	margin-bottom: 2rem;
}

.contact-form h2 {
  margin-bottom: 20px;
  color: #2e65ac;
  font-size: 24px;
  text-align: center;
}

.contact-form label {
  display: block;
  margin: 10px 0 5px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
}

.contact-form textarea {
  resize: vertical;
  height: 120px;
}

.contact-form button {
  margin-top: 15px;
  background-color: var(--amarillo);
  color: #fff;
  border: none;
  padding: 12px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #ebc137;
}
.bee-img-telefono {
  position: relative;
  top: 12px;
  width: 80px;
  height: auto;
}
.abeja-llamando {
  width: 80px;
  height: auto;
  animation: llamada 0.25s infinite alternate;
}

@keyframes llamada {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(12deg); }
  100% { transform: rotate(-12deg); }
}

/* gracias por contactarnos */
.gracias {
	margin: 0;
    padding: 0;
    background-color: #7DAAC3;
    font-family: 'Open Sans', sans-serif;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50vh;
    flex-direction: column;
    text-align: center;
}

.abeja {
	width: 150px;
	margin-bottom: 20px;
	animation: flotar 2s infinite ease-in-out;
}

@keyframes flotar {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}

h1 {
	font-size: 2em;
	margin-bottom: 10px;
	color: #2e65ac;
    margin-top: -1rem;
}

p {
	font-size: 1.2em;
	margin-bottom: 30px;
}

.btn-volver {
	background-color: var(--amarillo);
    color: #fff;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    transition: background 0.3s;
}

.btn-volver:hover {
	background-color: #ebc137;
}

/* donde estamos */
.contenedor {
	position: relative;
	max-width: 900px;
	width: 100%;
	padding: 60px;
  	background-color: #fff;
  	border-radius: 8px;
  	box-shadow: 0 0 10px rgba(0,0,0,0.1);
  	margin: auto;
	margin-bottom: 2rem;
	margin-top: 4rem;
	padding-right: 60px;
	padding-left: 60px;
	padding-top: 10px;
	padding-bottom: 60px;
}
.abeja-superior {
  position: absolute;
  top: -45px;
  width: 60px;
  animation: volar 6s linear infinite;
  z-index: 2;
}
@keyframes volar {
  0% { left: 0; }
  100% { left: 90%; }
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #2e65ac;
  text-align: center;
}
.fila {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center; /* centra verticalmente los elementos */
}
.direccion-negocio,
.imagen-local {
  flex: 1 1 300px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.direccion-negocio {
  font-size: 1rem;
  line-height: 1.6;
  padding: 1.5rem;
  border-left: 4px solid #FFD54F;
}
.imagen-local {
  padding: 1.5rem;
  border: 2px solid #FFD700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.imagen-local:hover {
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(255, 213, 79, 0.5);
}
.imagen-local img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}
.mapa {
  width: 100%;
  height: 300px;
  border: none;
  border-radius: 8px;
  margin-top: 2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* footer */
footer {
  text-align: center;
  padding: 1rem;
  background-color: #5587A7;
  color: white;
  font-size: 0.9rem;
}

html {
  scroll-behavior: smooth;
}

.social-icons {
	display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.5rem;
	gap: 12px; /* separa sin usar espacios o guiones visuales */
}

.social-icons img {
	width: 40px;
	height: 40px;
	transition: transform 0.3s ease;
}

.social-icons img:hover {
	transform: scale(1.2);
}

/* en construccion */
.construction {
	position: relative;
	margin: 0;
	padding: 0;
	font-family: Arial, sans-serif;
	color: #333;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 50vh;
	text-align: center;
	margin-top: 2rem;
}

.bee-icon-container {
	display: inline-block;
	position: relative;
}

.bee {
	width: 100px;
	position: absolute;
	top: -80px;
	left: 50%;
	transform: translateX(-50%);
	animation: flotar 2s ease-in-out infinite;
	z-index: 2;
}

.sign {
	width: 150px;
}

@keyframes flotar {
	0% { transform: translateX(-50%) translateY(0); }
	50% { transform: translateX(-50%) translateY(-15px); }
	100% { transform: translateX(-50%) translateY(0); }
}

.construction h1 {
	font-size: 2.2em;
	margin-top: 10px;
}

.construction p {
	font-size: 1.1em;
	margin-top: 10px;
}

/* version movil */
@media (max-width: 1024px) {
  nav a {
    text-decoration: none;
    color: #5587A7;
    font-weight: bold;
    margin-left: 1rem;
  }
  .vending-container {
    flex-direction: column;
    width: 90%;
    height: auto;
	margin-top: -2rem;
  }

  .vending-side {
    width: 100%;
    flex-direction: row;
    justify-content: space-around;
    border-left: none;
    border-top: 4px solid #444;
    border-radius: 0 0 10px 10px;
  }

  .keyboard {
    grid-template-columns: repeat(6, 1fr);
    gap: 0.3rem;
    margin: 0 auto;
  }

  .screen {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .panal {
    gap: -8rem;
    margin-top: -0.5rem;
  }

  .fila-par {
    transform: translateX(2rem);
    margin: -1rem;
  }

  .hex-btn {
    width: 9rem;
    height: 9rem;
  }
}

@media (max-width: 600px) {
  nav a {
    text-decoration: none;
    color: #5587A7;
    font-weight: bold;
    margin-left: 1rem;
  }
  .hex-btn {
    width: 5.5rem;
    height: 5.5rem;
  }

  .fila-par {
    transform: translateX(1.5rem);
  }

  .keyboard {
    grid-template-columns: repeat(3, 1fr);
  }

  .wrapper {
    margin: 2rem;
	margin-left: 0rem;
  }
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0;
  }

  nav a {
    text-decoration: none;
    color: #5587A7;
    font-weight: bold;
    margin-left: 1rem;
  }
  
  .quienes-somos {
    flex-direction: column;
    align-items: center;
    height: auto;
    padding: 1rem 0;
  }

  .columna {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
    gap: 10px;
  }

  .columna img {
    width: 36px;
  }

  .section {
    padding: 20px;
    margin: 1rem;
    max-width: 90%;
  }

  .cuadro-blanco {
    width: 200px;
    height: 200px;
  }

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

  .fila {
	  flex-direction: column;
	  align-items: stretch;
  }

  .direccion-negocio,
  .imagen-local {
	  max-width: 100%;
  }
  
  .abeja-superior {
	  width: 40px;
	  top: -32px;
  }
      
}
