/* Estilos generales */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.6;
  color: #222;
}

/* Header y navegación */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header img {
  height: 40px;
  margin-right: 10px;
}

header .title {
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
}

nav {
  display: flex;
}

nav a {
  margin-left: 15px;
  text-decoration: none;
  color: #222;
  font-weight: 600;
  transition: color 0.3s;
}

nav a:hover {
  color: #800020;
}

/* Menú móvil */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  background: none;
  border: none;
  color: #222;
}

.menu {
  display: flex;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 20px;
    background: white;
    border: 1px solid #ddd;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1001;
  }
  
  .menu a {
    margin: 10px 0;
  }
  
  .menu.show {
    display: flex;
  }
}

/* Banner */
.banner {
  text-align: center;
  background: url('../imagenes/banner.webp') center/cover no-repeat;
  color: white;
  padding: 80px 20px;
  position: relative;
}

.banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.banner h1 {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: pre-line;
  position: relative;
  z-index: 1;
}

/* Subbanner */
.subbanner {
  background: #f4f4f4;
  padding: 30px 20px;
  text-align: center;
}

.btn-whatsapp {
  display: inline-block;
  margin: 20px auto;
  padding: 12px 20px;
  background: #25D366;
  color: white;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.2s;
}

.btn-whatsapp:hover {
  background: #1da851;
  transform: translateY(-2px);
}

/* Sección de características */
.section-title {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 30px;
  font-size: 1.8rem;
  color: #333;
}

.features, .links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
  text-align: center;
}

.features img, .links img {
  width: 80%;
  max-width: 300px;
  border-radius: 8px;
  transition: transform 0.3s;
}

.features img:hover, .links img:hover {
  transform: scale(1.03);
}

.features p, .links p {
  font-size: 1.1rem;
  font-weight: 700;
  color: #000;
  text-decoration: none;
  margin-top: 15px;
}

/* Sección de descripción */
.description {
  padding: 30px 20px;
  text-align: center;
  background: #f9f9f9;
  margin: 20px 0;
}

.description p {
  margin: 10px 0;
  font-size: 1.1rem;
}

/* Botón flotante WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s, background-color 0.3s;
}

.whatsapp-float:hover {
  background: #1da851;
  transform: scale(1.1);
}

.whatsapp-float img {
  width: 32px;
  height: 32px;
}

@media (max-width: 600px) {
  .whatsapp-float {
    width: 44px;
    height: 44px;
  }
  
  .whatsapp-float img {
    width: 24px;
    height: 24px;
  }
}

/* Footer - Versión simple centrada */
footer {
  background: #800020;
  color: white;
  padding: 40px 20px;
  text-align: center;
}

footer .whatsapp-logo {
  margin-bottom: 20px;
}

footer .whatsapp-logo img {
  width: 80px;
  height: auto;
  transition: transform 0.3s;
}

footer .whatsapp-logo img:hover {
  transform: scale(1.05);
}

footer .footer-text {
  max-width: 700px;
  margin: 0 auto;
}

footer a {
  color: white;
  font-weight: bold;
  text-decoration: none;
  transition: opacity 0.3s;
}

footer a:hover {
  opacity: 0.9;
  text-decoration: underline;
}

footer p {
  margin: 10px 0;
  line-height: 1.6;
}

/* Botón de WhatsApp dentro del footer */
.footer-whatsapp-btn {
  display: inline-block;
  background: #25D366;
  color: white;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 15px;
  transition: background-color 0.3s, transform 0.2s;
  box-shadow: 0 4px 8px rgba(37, 211, 102, 0.3);
}

.footer-whatsapp-btn:hover {
  background: #1da851;
  transform: translateY(-2px);
}
