body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  background-color:#f4f3fa;
  color: #333;
}

header {
  background-color: #7D5FFF;
  color: white;
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img { width: 40px; height: 40px; }
header h1 { font-size: 1.3em; }

nav a {
  color: white;
  margin-left: 15px;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s;
}
nav a:hover { opacity: 0.8; }

/* Hero */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  background: linear-gradient(120deg, #7D5FFF, #C19FFF);
  color: white;
  padding: 80px 30px;
}
.hero-content { max-width: 500px; }
.hero h2 { font-size: 2em; margin-bottom: 15px; }
.hero p { font-size: 1.1em; line-height: 1.5; margin-bottom: 30px; }
.hero-img { max-width: 400px; border-radius: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.hero-img:hover { transform: translateY(-5px); }


/* Boton */
.btn {
  background-color: white;
  color: #7D5FFF;
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: bold;
}
.btn:hover { background-color: #f2ebff; }

/* Bloques de contnido */
.info {
  background-color: white;
  border-left: 6px solid #7D5FFF;
  margin: 60px auto;
  max-width: 1000px;
  padding: 50px 30px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}
.info h3 { text-align: center; color: #5b45c9; margin-bottom: 40px; }
.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 30px;
}
.card {
  background-color: #f8f7fc;
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 25px;
  text-align: center;
  width: 280px;
  transition: transform 0.3s;
}
.card:hover { transform: translateY(-5px); }
.card img { width: 100px; height: auto; margin-bottom: 20px; }

/* CTA: inscripción y newsletter */
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 70px 20px;
  background-color: #ede9ff;
}

.cta h3 { color: #5b45c9; font-size: 1.6em; }
.cta p { margin-bottom: 20px; font-weight: 500; }

/* Línea horizontal */
hr {
  border: none;
  border-top: 2px solid #7D5FFF;
  width: 80%;
  margin: 30px auto;
  opacity: 0.6;
}

/* Formulario newsletter */
.formulario-newsletter {
  background-color: #ede9ff; 
  border: 2px solid #7D5FFF; 
  border-radius: 12px;
  padding: 25px; 
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  gap: 15px; 
  max-width: 400px;
  margin: 20px auto 0;
}

/* Inputs */
.formulario-newsletter input[type="text"],
.formulario-newsletter input[type="email"] {
  padding: 10px 12px; 
  border: 1px solid #7D5FFF;
  border-radius: 6px;
  font-size: 1em;
  width: 100%;
  background-color: #ffffff;
  color: #333;
  box-sizing: border-box; 
}
.formulario-newsletter input:focus {
  outline: none;
  border-color: #5b45c4;
  box-shadow: 0 0 5px rgba(125, 95, 255, 0.5);
}

/* Checkbox */
.formulario-newsletter .newsletter {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 12px;
  gap: 16 px;
}
.formulario-newsletter .newsletter label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.95em;
  color: #333;
}
.formulario-newsletter .newsletter input[type="checkbox"] {
  accent-color: #7D5FFF;
  transform: scale(1.1);
  padding: 12px;
  margin: 0;
}

/* Btn enviar */
.formulario-newsletter button {
  background-color: #7D5FFF;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1em;
  transition: 0.3s;
}
.formulario-newsletter button:hover { background-color: #5b45c4; }

/* Pie de página */
footer {
  text-align: center;
  padding: 25px;
  background-color: #dcd8f7;
  color: #444;
  font-size: 0.9em;
}
