body
{
  font-family: 'Nunito', sans-serif;
  color: #555;
  background-color: #f6efe9;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.clear
{
  clear: both;
}

/* Barra de navegación */
#top {
  background-color: #f0f8ff;
  padding: 20px;
  height: 70px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 100;
}

.logo img {
  max-width: 200px;
  height: auto;
}

.menu {
  list-style: none;
  display: flex;
  gap: 30px;
}

.menu li a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  transition: color 0.3s;
}

.menu li a:hover {
  color: #96a3c2;
}

/* RESPONSIVO */
@media (max-width: 600px) {
  

  .logo img {
    max-width: 150px;
  }

  .menu
  {
    width: 100%;
    margin: 0;
    padding: 0;
    justify-content: center;
    margin-top: 20px;
    gap: 20px;
  }

  .navbar {
    display: block;
    text-align: center;
  }
}


/*COVER*/
#cover {
  width: 90%;
  padding: 80px 5%;
  height: auto;
  background: linear-gradient(#f0f8ff, #f6efe9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cover-content {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  z-index: 10;
}

.cover-image img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.cover-texto {
  max-width: 500px;
}

.cover-texto h1 {
  font-size: 4em;
  color: #96a3c2;
  font-weight: bolder;
  margin: 0;
}

.cover-texto p {
  font-size: 1.2em;
  color: #555;
  
  text-align: justify;
}

.cta-button {
  padding: 12px 24px;
  background-color: #de8631;
  color: white;
  font-size: 1em;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  font-family: 'Nunito', sans-serif;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.cta-button:hover {
  background-color: #d4741a;
}

/* RESPONSIVO */
@media (max-width: 1000px) {
  .cover-image img {
    width: 300px;
    height: 300px;
  }

  .cover-texto h1 {
    font-size: 3em;
  }

  .cover-content {
    flex-direction: column;
    text-align: center;
  }

  .cover-texto {
    align-items: center;
  }

  .cover-texto p {
    text-align: center;
  }

  .cta-button {
    align-self: center;
  }
}

@media (max-width: 768px) {
  .cover-image img {
    width: 200px;
    height: 200px;
  }

  .cover-texto
  {
    width: 90%;
    padding: 5%;
  }
} 

/* CONTENIDO */
#content
{
  width: 100%;
  position: relative;
  z-index: 10;
}

/*BOXES*/
.clear
{
  clear: both;
}

.boxes
{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.box_center
{
  width: 80%;
  margin: 0 auto;
  text-align: center;
  font-size: 26px;
  margin-bottom: 40px !important;
}

.box_left
{
  width: 40%;
  margin-right: 5%;
}

.box_left2
{
  width: 40%;
  margin-right: 5%;
  text-align: left;
}

.box_right
{
  width: 40%;
  text-align: left;
  margin-left: 5%;
}

.box_left p, .box_left2 p, .box_right p
{
  font-size: 18px;
}

.cita_txt
{
  font-weight: bold;
  font-style: italic;
}

.box_square
{
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  width: 100%;
}

.box_sq_im
{
  width: 40px;
  height: 40px;
  border-radius: 50px;
  margin-right: 10px;
}

.box_square p
{
  width: calc(100% - 50px);
  margin: 0;
}

.box_icono
{
  width: 100%;
  height: auto;
  filter: invert(100%) sepia(0%) saturate(7500%) hue-rotate(156deg) brightness(126%) contrast(102%);
}

@media (max-width: 600px) {
  .boxes
  {
    display: block;
    text-align: left;
    width: 90%;
    margin: 0 auto;
  }

  .box_center
  {
    width: 90%;
    text-align: left;
  }

  .box_left
  {
    width: 100%;
    margin-right: 0%;
    text-align: left;
    margin-bottom: 40px;
  }

  .box_left2
  {
    width: 100%;
    margin-right: 0%;
    text-align: left;
    margin-bottom: 40px;
  }

  .box_right
  {
    width: 100%;
    text-align: left;
    margin-left: 0%;
  }
}

/*HISTORIA*/
#historia
{
  width: 100%;
  margin: 0 auto;
  padding: 50px 0;
  text-align: center;
  z-index: 10;
  background-color: #f2ede9;
  color: #555;
}

#historia h2
{
  color: #f0957b;
}

.profile-image img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/*SERVICIOS*/
#propuesta
{
  width: 100%;
  margin: 0 auto;
  padding: 50px 0;
  text-align: center;
  z-index: 10;
  color: #555;
}

#propuesta h2
{
  color: #95a3c2;
}

/*SERVICIOS*/
#servicios
{
  width: 100%;
  margin: 0 auto;
  padding: 50px 0;
  text-align: center;
  z-index: 10;
  /*background-color: #ebbd92;*/
  background-image: url('images/fiesta.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
}

/*INSTALACIONES*/
#instalaciones
{
  width: 100%;
  margin: 0 auto;
  padding: 50px 0;
  margin: 0 auto;
  text-align: center;
  z-index: 10;
  color: #555;
}

#instalaciones h2
{
  color: #95a3c2;
  margin-bottom: 0;
}

#instalaciones p
{
  margin: 0;
  font-size: 18px;
  margin-bottom: 0;
}

.galeria
{
  width: 90%;
  margin-top: 20px;
  margin-bottom: 30px;
  position: relative;
  z-index: 10;
}

.galeria img {
  float: left;
  width: 23%;
  height: 200px; /* Altura máxima */
       /* Mantiene proporción */
  margin: 1%;
  border-radius: 10px;
  object-fit: cover; /* O usa cover si prefieres que llene */
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
}

.lightbox.hidden {
  display: none;
}

body.lightbox-open {
  overflow: hidden;
}

.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 10px 20px;
  cursor: pointer;
  z-index: 1000;
  transition: background 0.3s;
}

#prev {
  left: 20px;
}

#next {
  right: 20px;
}

.nav-button:hover {
  background: rgba(255,255,255,0.4);
}


/* RESPONSIVO */
@media (max-width: 768px) {
 
  .galeria img {
    width: 48%;
  }
}

@media (max-width: 600px) {
  .galeria
  {
    width: 100%;
  }
}

/* FRASES */
#frases_container
{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 400px;
  text-align: center;
  z-index: 10;
  background-color: #96a3c2;
}

#frases
{
  font-size: 6vw;
  gap: 0.5em;
  font-weight: bolder;
  color: #fff;
  width: 90%;
}

.word
{
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.word.visible
{
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVO */
@media (max-width: 768px) {
  #frases
  {
    font-size: 10vw;
  }
}


/*FOOTER*/
.footer {
  background-color: #96a3c2;
  color: #eee;
  padding: 20px;
  text-align: center;
  position: relative;
  z-index: 100;
}

.social-links {
  margin-bottom: 12px;
}

.social-links a {
  display: inline-block;
  margin: 0 10px;
  transition: opacity 0.3s ease;
}

.social-links a img {
  width: 30px;
  height: 30px;
}

.social-links a:hover {
  opacity: 0.7;
}

.footer p {
  font-size: 0.9em;
  margin: 0;
}

/*POPUP*/
.popup
{
  width: 100%;
  height: 100%;
  position: fixed;
  z-index: 200;
  background-color: rgba(150, 163,194, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
}

.popup_box
{
  width: calc(80% - 60px);
  max-width: 500px;
  padding: 60px 30px;
  background-color: #fff;
  text-align: center;
  border-radius: 30px;
  font-size: 24px;
  position: relative;
  font-weight: bolder;
}

.popup_box h3
{
  color: #96a3c2;
}

.close_icon
{
  position: absolute;
  top:0px;
  right: 15px;
  font-size: 40px;
  font-weight: bolder;
  cursor: pointer;
  color: #959595;
}

.close_icon:hover
{
  opacity: .6;
}

/*TIENDA*/
.grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  background: white;
  padding: 10px;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card img {
  max-width: 100%;
  border-radius: 6px;
  object-fit: cover;
  height: 150px;
}

.product-info {
  margin-top: 10px;
  flex-grow: 1;
}

.product-title {
  font-weight: bold;
  font-size: 1.1em;
}

.product-description {
  font-size: 0.9em;
  color: #555;
  margin: 5px 0;
}

.product-price {
  font-weight: bold;
  margin-top: 10px;
}

.buy-button {
  margin-top: 10px;
  padding: 10px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.buy-button:hover {
  background: #0056b3;
}

/* Responsive: 2 columns en pantallas < 768px */
@media (max-width: 767px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/*COLABORA PAGE*/
#titulo_main
{
  margin: 0px auto;
  padding: 30px;
  width: calc(100% - 60px);
  text-align: center;
  font-size: 30px;
  background: linear-gradient(#f0f8ff, #f3f1e4);
}

#titulo_main h1
{
  position: relative;
  margin: 0;
  z-index: 10;
  color: #96a3c2;
}

#sub_content
{
  width: 80%;
  margin: 0 auto;
  text-align: center;
}

.sub_im
{
  width: 100%;
  height: auto;
  margin-bottom: 50px;
}

.sub_im img
{
  width: 100%;
  height: auto;
  border-radius: 20px;
}

.sub_info
{
  font-size: 22px;
}


/*FIGURAS*/
.decorations {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none; /* no interfieren con clicks */
  overflow: hidden;
  z-index: 0; /* detrás de todo */
}

.fig {
  will-change: transform;
  position: absolute;
}


/* Círculo animado */
.fig1 {
  top: 5%;
  left: 10%;
}

.circle {
  width: 300px;
  height: 300px;
  background: rgba(101, 185, 227, 0.2);
  border-radius: 50%;
  animation: floatUpDown 6s ease-in-out infinite;
}

/* Cuadro con bordes suaves */
.fig2 {
  top: 60%;
  left: 70%;
}

.rounded-square {
  width: 220px;
  height: 220px;
  background: rgba(255, 170, 0, 0.1);
  border-radius: 20px;
  animation: floatLeftRight 8s ease-in-out infinite;
}

/* Semicírculo */
.fig3 {
  top: 55%;
  right: 30%;
}

.semi-circle {
  width: 150px;
  height: 75px;
  background: rgba(131, 160, 120, 0.3);
  border-top-left-radius: 75px;
  border-top-right-radius: 75px;
  animation: rotate 10s linear infinite;
}

/* Arcoiris */
.fig4 {
  bottom: 10%;
  left: 20%;
}

.semi-circle-svg {
  animation: floatUpDown 6s ease-in-out infinite;
  pointer-events: none;
}

/* Estrella */
.fig5{
    top: 15%;
    right: 20%;
}
.pulsing-star {
    animation: rotate 10s ease-in-out infinite;
    transform-origin: center;
    pointer-events: none;
  }

/* Animaciones */
@keyframes floatUpDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes floatLeftRight {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(30px); }
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% {
      transform: scale(1);
      opacity: 1;
    }
    50% {
      transform: scale(1.05);
      opacity: 0.85;
    }
  }


/*DESFASES ANIMATED*/
.mo1
{
  animation-delay: 0;
}

.mo2
{
  animation-delay: .5;
}

.mo3
{
  animation-delay: 1;
}

.mo4
{
  animation-delay: 1.5;
}

.mo5
{
  animation-delay: 2;
}

