/* Tipografía y paleta aproximada basada en logo EnFlete.
   Si deseas ajustar a colores exactos del logo, puedo afinar los valores. */
:root {
  --primary: #F26A1B;
  /* Verde/teal principal */
  --primary-700: #003F75;
  --secondary: #0A6DB1;
  /* Verde profundo para encabezados */
  --accent: #F26A1B;
  /* Ámbar para detalles */
  --bg: #f7fbf9;
  /* Fondo suave */
  --text: #0f172a;
  /* Texto principal */
  --text-muted: #475569;
  /* Texto secundario */
  --border: #dbe3de;
  /* Borde suave */
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  background-image: url("/assets/wallpaper/carretera-austral_prin-min.jpg");
  background-size: cover;
  /* fills the whole area */
  background-position: center;
  /* centers the image */
  background-repeat: no-repeat;
  /* prevents tiling */
  background-attachment: fixed;
  /* optional: parallax-style */
  backdrop-filter: saturate(180%) blur(8px);

}

.container {
  width: min(1100px, 92%);
  margin-inline: auto;

}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: #ffffffcc;
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand-logo {
  height: 100px;
  width: auto;
  display: block;
}

.brand-name {
  font-weight: 700;
  color: var(--secondary);
  font-size: 1.1rem;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  margin-left: 1rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--primary);
}

/* Hero */
.hero {
  background: linear-gradient(120deg, var(--secondary) 0%, var(--primary-700) 48%, var(--primary) 100%);
  color: white;
  width: 80%;
  border-radius: 20px;
  text-align: center;
  margin: auto;
  margin-top: 20px;
}

.hero-content {
  padding: 4.5rem 0;
  text-align: center;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.hero p {
  margin: 0 0 1.5rem;
  color: #e2e8f0;
}

.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  text-decoration: none;
  max-height: 50px;
  vertical-align: middle;
}

.btn-primary {
  background: var(--accent);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-weight: 700;
}

.btn-primary:hover {
  filter: brightness(0.95);
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section-alt {
  background: #fff;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  margin: 0;
  font-size: 1.8rem;
  color: var(--secondary);
}

.section-header p {
  color: var(--text-muted);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .04);
}

.card h3 {
  margin-top: 0;
  color: var(--secondary);
}

.card p {
  color: var(--text-muted);
}

/* Form */
.form {
  width: min(720px, 100%);
  margin: 0 auto;
}

.form {
  width: min(720px, 100%);
  margin: 0 auto;

  /* Nuevo: layout responsivo */
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Cada campo del formulario */
.form-row {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;

  /* Nuevo: deja que se adapte */
  flex: 1 1 300px;
  /* ancho “ideal” 300px, pero flexible */
  margin-left: 0;
  /* ya no usamos float */
}

/* Label */
.form-row label {
  font-weight: 600;
  text-align: left;
  color: var(--bg);
}

/* Input */
.form-row input {
  padding: 0.8rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  outline: none;
  font-size: 1rem;

  /* Nuevo: que ocupe todo el ancho de la columna */
  width: 100%;
}

.form-row input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent);
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.quote-result {
  margin-top: 1.25rem;
}

#quoteMsg {
  color: var(--text);
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
  align-items: center;
}

.contact-logo {
  width: 160px;
  height: auto;
  justify-self: center;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: #fff;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 1rem;
}

.footer-nav a:hover {
  color: var(--primary);
}

/* Responsive */
@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .contact {
    grid-template-columns: 1fr;
  }

  .nav a {
    margin-left: 0.75rem;
  }
}