/* Reset and base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #222;
  background-color: #faf8f2;
}

header.hero {
  background: url('https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=1500&q=80') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 100px 20px;
  display: flex;
  flex-direction: column;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

header p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.btn {
  background: #d4af37;
  color: #0a1f44;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
}

.btn:hover {
  background: #c69749;
}

nav {
  display: flex;
  justify-content: flex-end;
  padding: 10px 20px;
  background: #f8f8f8;
}

nav a {
  margin-left: 15px;
  text-decoration: none;
  color: #333;
}

section {
  padding: 50px 20px;
  max-width: 1100px;
  margin: auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Testimonial face images smaller and round */
.testimonials .card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 15px auto 10px auto;
  display: block;
}

.card h3,
.card p {
  padding: 0 15px 0 15px;
}

footer {
  background: #222;
  color: white;
  padding: 20px;
  text-align: center;
}

form {
  display: grid;
  gap: 10px;
}

input,
textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100%;
  font-size: 1.1rem;
  box-sizing: border-box;
}

/* Contact grid styles */
.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-form-col,
.contact-details-col {
  width: 100%;
}

.contact-details-col {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.07);
  padding: 25px 30px;
  color: #0a1f44;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 1.05rem;
  box-sizing: border-box;
}

.contact-details-col h3 {
  margin-top: 0;
  color: black;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.contact-details-col p {
  margin: 8px 0;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-details-col .icon {
  font-size: 1.2em;
  color: #c69749;
  min-width: 22px;
  text-align: center;
}

.suggested-card-footer{
  display: flex;
  justify-content: end;
  margin: 10px;
  align-items: baseline;
}

@media (min-width: 768px) {
  .contact-grid {
    flex-direction: row;
    gap: 40px;
  }

  .contact-form-col {
    width: 60%;
  }

  .contact-details-col {
    width: 40%;
  }
}

button {
  background: #0a1f44;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1rem;
  width: 100%;
}

.lang-switch {
  position: absolute;
  top: 15px;
  right: 20px;
}

.lang-switch a {
  margin-left: 10px;
  text-decoration: none;
  font-weight: bold;
  color: #d4af37;
}

.card strong {
  display: block;
  padding: 0 15px 10px 15px;
  color: #0a1f44;
  font-weight: bold;
}

.card p {
  margin-top: 0;
}

.text-center {
  text-align: center;
}

/* Product page styles */

section.product-section {
  padding: 20px;
  max-width: 1100px;
  margin: auto;
}

main {
  margin: auto;
}

a {
  color: #d4af37;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  background: transparent;
  box-shadow: none;
  margin-bottom: 30px;
}

.logo {
  font-weight: bold;
  font-size: 1.8rem;
  color: #0a1f44;
  user-select: none;
}

.language-switcher {
  font-weight: bold;
  font-size: 1rem;
  color: #0a1f44;
  user-select: none;
}

.language-switcher span {
  cursor: pointer;
}

.language-switcher span:not(:last-child)::after {
  content: " | ";
  color: #0a1f44;
  padding: 0 5px;
}

.product-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  overflow-x: hidden;
  max-width: 1100px;
  margin: auto;
}

.main-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  object-fit: cover;
  max-height: 450px;
}

.thumbnails {
  margin-top: 15px;
  display: flex;
  gap: 15px;
  max-width: 100%;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.thumbnails img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.thumbnails img.selected,
.thumbnails img:hover {
  border-color: #d4af37;
}

.product-info {
  flex: 1 1 300px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-title {
  font-size: 1.8rem;
  color: #0a1f44;
  margin-bottom: 2px;
}

.price {
  font-size: 1.5rem;
  color: #d4af37;
  margin: 5px 0;
  font-weight: bold;
}

.description {
  font-size: 1rem;
  line-height: 1.5;
  color: #444;
  margin: 8px 0;
}

.btn {
  background-color: #d4af37;
  color: #0a1f44;
  border: none;
  padding: 15px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.2rem;
  cursor: pointer;
  margin-top: 8px;
  text-align: center;
  user-select: none;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #c69749;
}

footer {
  background: #222;
  color: white;
  padding: 20px;
  text-align: center;
}

/* Header nav menu styles */
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: 26px;
}

.main-nav a {
  color: #0a1f44;
  font-weight: 500;
  font-size: 1.06rem;
  text-decoration: none;
  padding: 2px 8px;
  border-radius: 5px;
  transition: background 0.2s, color 0.2s;
  position: relative;
}

.main-nav a:hover,
.main-nav a:focus {
  background: #d4af37;
  color: #fff;
  text-decoration: none;
}

/* También te puede interesar section */
.related-section {
  margin-top: 48px;
  margin-bottom: 40px;
}

.related-title {
  font-size: 1.25rem;
  color: #0a1f44;
  font-weight: bold;
  text-align: left;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}

.related-cards-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.mini-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.09);
  min-width: 170px;
  max-width: 185px;
  flex: 0 0 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 13px 10px 14px 10px;
  text-align: center;
  transition: box-shadow 0.2s;
}

.mini-card:hover,
.mini-card:focus-within {
  box-shadow: 0 3px 16px rgba(212, 175, 55, 0.14);
}

.mini-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  margin-bottom: 10px;
  border: none;
}

.mini-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.mini-card-title {
  font-size: 1rem;
  color: #0a1f44;
  font-weight: bold;
  margin-bottom: 4px;
}

.price-tag {
  color: #d4af37;
  font-weight: bold;
  margin-top: 4px;
  font-size: 1rem;
}

@media (min-width: 768px) {
  .image-gallery {
    flex: 1 1 400px;
    min-width: 300px;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .product-container {
    flex-direction: column;
    gap: 10px;
  }

  .image-gallery,
  .product-info {
    min-width: 100%;
  }

  .thumbnails {
    justify-content: center;
  }

  header {
    padding: 15px 20px;
  }

  .language-switcher {
    font-size: 0.9rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  .main-nav {
    gap: 18px;
    margin-left: 12px;
  }

  .related-cards-row {
    gap: 10px;
  }

  .mini-card {
    min-width: 135px;
    max-width: 155px;
    padding: 10px 5px 12px 5px;
  }

  .mini-card img {
    height: 140px;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .product-container {
    flex-direction: column;
  }

  .image-gallery,
  .product-info {
    min-width: 100%;
  }

  .thumbnails {
    justify-content: center;
  }

  header {
    padding: 15px 20px;
  }

  .language-switcher {
    font-size: 0.9rem;
  }

  .logo {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {

  .image-gallery,
  .product-info {
    min-width: auto;
    width: 100%;
    padding: 0px 20px;
  }
}