/* css/index.css */

/* Reset sencillo */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Adobe Clean Bold', sans-serif;
  background: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Hero principal */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem;
  background: url('../images/hero-bg.webp') center/cover no-repeat;
  min-height: 70vh;
}

.hero-content {
  background: rgba(255,255,255,0.85);
  padding: 2rem;
  border-radius: 8px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.cta-hero {
  display: inline-block;
  background: #319d70;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-size: 1.1rem;
  transition: background 0.2s;
}

.cta-hero:hover {
  background: #278a5d;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
  background: #fff;
  border-top: 1px solid #e0e0e0;
}

/* Responsive */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
}
/* Preloader: ocupa toda la ventana */
#preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #fff;             /* color de fondo */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Imagen centrada, lista para animar */
#preloader-img {
  width: 100px; /* ajústalo a tu gusto */
  height: auto;
  backface-visibility: hidden;   /* para 3D más suave */
  animation: spin3D 0.8s ease-in-out forwards;
}

/* Definimos la animación: rotación en Y y fade-out */
@keyframes spin3D {
  0% {
    transform: perspective(600px) rotateY(0deg);
    opacity: 1;
  }
  70% {
    transform: perspective(600px) rotateY(360deg);
    opacity: 1;
  }
  100% {
    transform: perspective(600px) rotateY(360deg);
    opacity: 0;
  }
}

/* Clase que añadiremos por JS para ocultar el overlay */
#preloader.hidden {
  display: none;
}
