/* 🔹 Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

/* 🔹 Header */
.main-header {
  background: #0099cc;   /* celeste */
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-header .logo h1 {
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-links a {
  color: #fff;
  margin: 0 0.8rem;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #66d9ff;        /* celeste claro */
}

/* 🔹 Hero principal */
.hero {
  text-align: center;
  padding: 3rem 1rem;
  background: #e6f7ff;   /* fondo celeste muy suave */
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #0099cc;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.btn-primary {
  background: #00bfff;   /* celeste brillante */
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background: #0099cc;
}

/* 🔹 Secciones */
.section {
  padding: 2rem 1rem;
  max-width: 1000px;
  margin: auto;
}

.section h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: #0099cc;
}

/* 🔹 Carrusel de tarjetas con efecto 3D */
.feature-carousel {
  position: relative;
  width: 100%;           /* ocupa todo el ancho disponible */
  max-width: 400px;      /* límite máximo en pantallas grandes */
  height: auto;
  margin: auto;
  perspective: 1000px;   /* efecto 3D */
}

.feature-card {
  position: absolute;
  width: 100%;
  min-height: 180px;     /* altura mínima para móviles */
  backface-visibility: hidden;
  text-align: center;
  padding: 20px;
  background: #f5f5f5;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  animation: rotateCards 12s infinite;
}

.feature-card:nth-child(1) { animation-delay: 0s; }
.feature-card:nth-child(2) { animation-delay: 4s; }
.feature-card:nth-child(3) { animation-delay: 8s; }

@keyframes rotateCards {
  0%   { opacity: 0; transform: rotateY(90deg); }
  10%  { opacity: 1; transform: rotateY(0deg); }
  30%  { opacity: 1; transform: rotateY(0deg); }
  40%  { opacity: 0; transform: rotateY(-90deg); }
  100% { opacity: 0; }
}

/* 🔹 Features grid */
.features .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.feature-card {
  flex: 1;
  min-width: 250px;
  background: #fff;
  border: 1px solid #0099cc;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
}

.feature-card h3 {
  margin-bottom: 0.5rem;
  color: #0099cc;
}

/* 🔹 Botones secundarios */
.btn-secondary {
  display: inline-block;
  background: #0099cc;
  color: #fff;
  padding: 0.8rem 1.2rem;
  margin: 0.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}
.btn-secondary:hover {
  background: #0077aa;
}

/* 🔹 Footer */
.main-footer {
  background: #0099cc;
  color: #fff;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

.main-footer p {
  margin: 0.3rem 0;
}
.main-footer .small-text {
  font-size: 0.9em;
  color: #e6e6e6;
}

/* 📱 Responsivo */
@media (max-width: 768px) {
  .main-header {
    flex-direction: column;
    text-align: center;
  }
  .nav-links {
    margin-top: 1rem;
  }
  .features .feature-grid {
    flex-direction: column;
  }
  .hero h2 {
    font-size: 1.6rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .feature-card {
    font-size: 0.9em;
    padding: 15px;
  }
}

/* 📱 Ajuste adicional para Beneficios en móviles */
@media (max-width: 480px) {
  .benefits {
    margin-top: 4rem;   /* baja más la sección */
    padding: 1.5rem;    /* espacio interno extra */
  }
  .benefits h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
  .benefits ul {
    font-size: 0.95em;
    line-height: 1.6;   /* más aire entre líneas */
  }
  .benefits li {
    margin-bottom: 0.8rem; /* separación entre cada beneficio */
  }
}

