:root {
  --primary-color: #0460f4;
  --secondary-color: #f9f9f9;
  --font-color: #333;
  --font-family: Arial, sans-serif;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* GLOBAL */
body {
  font-family: var(--font-family);
  color: var(--font-color);
  background: var(--secondary-color);
  line-height: 1.5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* NAVBAR */
.navbar {
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.navbar ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.navbar a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  transition: color 0.3s ease;
}
.navbar a:hover {
  color: var(--primary-color);
}

/* HERO */
.hero-section {
  background-image: url('../img/fondo.png'); /* Reemplaza con la ruta correcta */
  background-size: contain; /* Asegura que la imagen cubra todo el área */
  background-position: center; /* Centra la imagen */
  background-repeat: no-repeat; /* Evita que la imagen se repita */
  padding: 4rem 1rem; /* Ajusta el espacio interno */
  display: flex; /* Asegura que el contenido esté bien alineado */
  flex-direction: column; /* Coloca los elementos en columna */
  align-items: center; /* Centra horizontalmente */
  justify-content: center; /* Centra verticalmente */
  color: white; /* Texto legible sobre el fondo */
  text-align: center;
}
.hero-content {
  position: relative;
  z-index: 2; /* Asegura que el contenido esté sobre la imagen */
}
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 48%;
  background: rgba(4, 96, 244, 0.7); /* Agrega un efecto de superposición oscuro */
  z-index: 1;
}
.hero-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 800px; /* Limita el ancho del texto */
}

.hero-section .btn-cta {
  margin: 0.5rem; /* Espaciado entre botones */
}

.btn-cta {
  background: #fff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 30px;
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-cta:hover {
  background: var(--primary-color);
  color: #fff;
  transform: scale(1.05);
}

.features {
  background: #fff;
  padding: 3rem 0;
}
.features h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}
.features-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.feature-card {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.features-cards .icon {
  width: 50px;
  height: 50px;
  margin-bottom: 1rem;
  fill: var(--primary-color);
  transition: transform 0.3s ease, fill 0.3s ease;
}
.feature-card:hover .icon {
  transform: scale(1.1);
  fill: #0A3761;
}
.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.feature-card p {
  font-size: 0.9rem;
  color: #555;
}


/* PRECIOS */
#precios {
  background: #fff;
  padding: 3rem 0;
  text-align: center;
}
#precios h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}
.pricing-cards {
  display: flex;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  justify-content: center;
  
}
.pricing-card {
  background: #f9f9f9;
  border: 2px solid var(--primary-color);
  padding: 2rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: cenrter;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.pricing-card.highlight {
  border: 2px solid var(--primary-color);
  background: #e3f2fd;
  padding: 2rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #333;
}
.pricing-card .price {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}
.pricing-card .price span {
  font-size: 1rem;
  color: #555;
}
.pricing-card ul {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  text-align: left;
}
.pricing-card ul li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #555;
}
.pricing-card ul li:before {
  content: '✔';
  color: var(--primary-color);
  font-weight: bold;
  margin-right: 0.5rem;
}

/* TESTIMONIOS */
#testimonios {
  background: #fff;
  padding: 3rem 0;
}
#testimonios h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
}
.testimonials-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.testimonial-card {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}
.testimonial-card p {
  font-style: italic;
  color: #555;
  margin-bottom: 1rem;
}
.testimonial-card span {
  display: block;
  font-weight: bold;
  color: #333;
}

/* BLOG */
#blog {
  background: #fafafa;
  padding: 3rem 0;
}
#blog h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
}
.blog-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.blog-card {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.blog-card h3 {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 0.5rem;
}
.blog-card p {
  color: #555;
  margin-bottom: 1rem;
}
.blog-card a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: bold;
}
.blog-card a:hover {
  text-decoration: underline;
}

/* CONTACTO */
#contacto {
  background: #fff;
  padding: 3rem 0;
}
#contacto h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
}
#contacto p {
  text-align: center;
  font-size: 1rem;
  color: #555;
  margin-bottom: 2rem;
}
#contacto form {
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}
#contacto input,
#contacto textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}
#contacto button {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.3s ease;
}
#contacto button:hover {
  background: #0A3761;
}

/* FOOTER */
footer {
  background: #fff;
  text-align: center;
  padding: 1rem;
  color: #555;
  font-size: 0.9rem;
}
footer p {
  margin: 0;
}

/* Media Query para dispositivos móviles */
@media (max-width: 768px) {
  .hero-section {
    background-size: contain; /* Ajusta el fondo para pantallas pequeñas */
    padding: 2rem 1rem;
  }
  .hero-section h2 {
    font-size: 2rem;
  }
  .hero-section p {
    font-size: 1rem;
  }
}