/* Variables de colores */
:root {
  --primary-color: #6366f1;
  --secondary-color: #4f46e5;
  --accent-color: #3b82f6;
  --light-blue: #e8f0fe;
  --dark-blue: #1e40af;
  --text-color: #333;
  --light-text: #666;
  --white: #fff;
  --border-color: #ddd;
  --transparent-dark: rgba(0, 0, 0, 0.7);
  --transparent-blue: rgba(79, 70, 229, 0.8);
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans",
    "Helvetica Neue", sans-serif;
  line-height: 1.6;
  color: var(--white);
  height: 100vh;
  background-image: url("road.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--transparent-dark);
  z-index: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Encabezado */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  margin-bottom: 50px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo i {
  font-size: 36px;
  color: var(--primary-color);
  margin-right: 15px;
}

h1 {
  color: var(--white);
  font-size: 28px;
}

.fecha-hora {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 8px 15px;
  border-radius: 8px;
  font-weight: bold;
}

/* Contenido principal */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-content {
  text-align: center;
  margin-bottom: 60px;
}

h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--light-blue);
}

.btn-calcular {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white);
  text-decoration: none;
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 20px;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-calcular i {
  margin-right: 10px;
}

.btn-calcular:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.btn-calcular:active {
  transform: translateY(0);
}

/* Características */
.features {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 20px;
}

.feature {
  flex: 1;
  background-color: var(--transparent-blue);
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  transition: transform 0.3s;
}

.feature:hover {
  transform: translateY(-10px);
}

.feature i {
  font-size: 40px;
  color: var(--light-blue);
  margin-bottom: 15px;
}

.feature h3 {
  color: var(--white);
  margin-bottom: 10px;
  font-size: 20px;
}

.feature p {
  color: var(--light-blue);
}

/* Pie de página */
footer {
  text-align: center;
  padding: 20px 0;
  color: var(--light-blue);
  margin-top: 30px;
}

/* Responsive */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .fecha-hora {
    margin-top: 10px;
  }

  .features {
    flex-direction: column;
  }

  .hero-content h2 {
    font-size: 28px;
  }

  .hero-content p {
    font-size: 16px;
  }
}
