:root {
  --primary: #0d6efd;
  --primary-hover: #0a58ca;
  --light-bg: #f8f9fa;
  --section-light: #ffffff;
  --card-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
  --gallery-shadow: 0 4px 24px rgba(0,0,0,0.08);
  --border-radius: 12px;
}

/* Reset básico */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Segoe UI', Roboto, sans-serif;
  background-color: var(--light-bg);
  color: #212529;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 2rem 0;
}

/* NAVBAR */
.navbar {
  background-color: #fff;
  border-bottom: 1px solid #dee2e6;
  padding: 1rem 0;
  position: sticky;
  top: 0; z-index: 1000;
}

.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 40px;
  margin-right: 1.2rem;
}

.navbar h1 {
  color: var(--primary);
  font-size: 1.6rem;
  margin-right: auto;
  white-space: nowrap;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
  transition: color 0.2s;
}

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

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
  margin-left: 1rem;
}

/* HERO */
.hero {
  background: linear-gradient(120deg, #e9f2ff 80%, #fff 100%);
  text-align: center;
  padding: 7rem 1rem 5rem 1rem;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  color: var(--primary);
  font-weight: bold;
}

.hero p {
  font-size: 1.2rem;
  color: #495057;
  margin-bottom: 2rem;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
  padding: 0.75rem 2.2rem;
  border: none;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: background-color 0.2s;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

/* SECCIONES */
.section {
  padding: 4rem 0;
  background: none;
}
.section.light {
  background: var(--section-light);
}

.section h2 {
  text-align: center;
  font-size: 2.2rem;
  color: #212529;
  margin-bottom: 2.2rem;
  letter-spacing: 0.01em;
}

/* CARDS */
.cards {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  background: #fff;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 32px rgba(13,110,253,0.07);
}

.card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}
.card p {
  color: #495057;
}

/* GALERÍA */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem;
  justify-items: center;
  align-items: center;
  margin-top: 1.5rem;
}
.gallery-img {
  width: 100%;
  max-width: 340px;
  height: 210px;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: var(--gallery-shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.gallery-img:hover {
  transform: scale(1.045);
  box-shadow: 0 10px 40px rgba(13,110,253,0.13);
}

/* INCOTERMS */
.terms {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}
.term {
  background: #f1f3f5;
  padding: 1.5rem 2rem;
  border-radius: 8px;
  font-weight: 500;
  min-width: 180px;
  text-align: center;
}

/* SOBRE NOSOTROS */
.nosotros-container {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nosotros-text {
  flex: 1;
  min-width: 270px;
}

.mockup {
  max-width: 350px;
  border-radius: var(--border-radius);
  margin-top: 1rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.10);
}

/* FORMULARIO */
form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  padding: 2rem 1.3rem;
  border-radius: var(--border-radius);
  box-shadow: 0 0 16px rgba(0,0,0,0.04);
}
form input, form textarea {
  padding: 0.75rem 1rem;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
}
form textarea { resize: vertical; height: 120px; }
form button { align-self: flex-start; }

/* FOOTER */
footer {
  background: #212529;
  color: #dee2e6;
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

/* RESPONSIVE */
@media (max-width: 991px) {
  .hero h1 { font-size: 2rem; }
  .navbar h1 { font-size: 1.1rem; }
  .mockup { max-width: 230px; }
  .nosotros-container { flex-direction: column; }
  .gallery { grid-template-columns: 1fr; gap: 1.2rem;}
}

@media (max-width: 768px) {
  .navbar-content { flex-direction: row; }
  .navbar-toggle { display: block; }
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    background: #fff;
    padding: 1.2rem 1.5rem;
    position: absolute;
    top: 70px; right: 0;
    width: 250px;
    box-shadow: -4px 0 16px rgba(0,0,0,0.07);
    border-top: 1px solid #e0e0e0;
    display: none;
    z-index: 999;
    border-radius: 0 0 0 12px;
    transition: right 0.3s;
  }
  .nav-links.show { display: flex; }
}

@media (max-width: 600px) {
  .container { padding: 1.3rem 0; }
  .section { padding: 2.2rem 0; }
  .navbar h1 { font-size: 0.95rem; }
  .hero { padding: 3.5rem 0.5rem; }
  .section h2 { font-size: 1.3rem; }
  .btn-primary { width: 100%; text-align: center; }
  form { padding: 1rem 0.2rem; }
  .gallery-img { height: 140px; }
}

@media (min-width: 769px) {
  .nav-links {
    display: flex !important;
    flex-direction: row;
    position: static;
    background: none;
    width: auto;
    box-shadow: none;
    padding: 0;
    border: none;
  }
}

/*
 Cosas por hacer:
 || Opromización básica de SEO
 || 

*/