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

html {
  height: 100%;
}

body {
  font-family: "Roboto", Arial, sans-serif;
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  min-height: 100vh;
  margin: 0 auto;
  background: #3b3481;
  color: aliceblue;
}

main {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  width: 100%;
  /* overflow: hidden; */
  padding: 0 1rem;
}

/* Nav */

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  padding: 1rem 2rem;
  position: relative;
  z-index: 100;
}

.navbar-logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.navbar-logo img,
.footer-logo img {
  width: 150px;
}

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

.navbar-links li a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.2s;
}

.navbar-links li a:hover {
  color: #7c3aed;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 6px;
}

.navbar-toggle .bar {
  width: 100%;
  height: 4px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #3b3481;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
    display: none;
  }
  .navbar-links.active {
    display: flex;
  }
  .navbar-toggle {
    display: flex;
  }
}

/* MAIN - HERO */

.hero {
  position: relative;
  width: 100%;
  min-height: 320px;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* overflow: hidden; */
  max-height: none;
}

.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  border-radius: 10px;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  padding: 2rem;
  padding-top: 2.5rem;
  box-sizing: border-box;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  max-width: 600px;
  text-align: center;
}

@media (max-width: 768px) {
  main {
    min-height: 40vh;
    height: auto;
    padding: 0 0.5rem;
  }
  .hero {
    min-height: 40vh;
    height: auto;
    max-height: none;
    display: block;
  }
  .hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
  }
  .hero-content {
    height: 100%;
    justify-content: flex-start;
    align-items: center;
    padding-top: 1.2rem;
    padding-bottom: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .hero-content h1 {
    font-size: 1.1rem;
    margin-bottom: 0.7rem;
    text-align: center;
  }
  .hero-content p {
    font-size: 0.95rem;
    max-width: 95vw;
    text-align: center;
  }
}

/* Productos Main Card Layout */
.productos-breadcrumb {
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

.productos-breadcrumb a {
  color: #7c3aed;
  text-decoration: none;
}

.productos-card {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: 2.5rem;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  padding: 2.5rem 2rem;
  align-items: flex-start;
}

.productos-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.productos-gallery .main-img {
  width: 100%;
  max-width: 340px;
  /* aspect-ratio: 4/3; */
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background: #eee;
}

.productos-gallery .thumbs {
  display: flex;
  gap: 0.7rem;
}

.productos-gallery .thumbs img {
  width: 70px;
  height: 55px;
  object-fit: fill;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border 0.2s;
}

.productos-gallery .thumbs img.active-thumb,
.productos-gallery .thumbs img:hover {
  border: 2px solid #7c3aed;
  box-shadow: 0 0 6px #a78bfa;
}

.productos-info h1 {
  font-size: 2rem;
  color: #e7d5d5;
  margin-bottom: 0.7rem;
}

.productos-desc {
  font-size: 1.08rem;
  margin-bottom: 1.2rem;
  line-height: 1.5;
  color: #e7d5d5;
}

.productos-info h2 {
  font-size: 1.1rem;
  color: #7c3aed;
  margin-bottom: 0.6rem;
  margin-top: 1.2rem;
}

.productos-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.productos-table th,
.productos-table td {
  text-align: left;
  padding: 0.4rem 0.6rem 0.4rem 0;
  font-size: 1rem;
  border-bottom: 1px solid #eee;
}

.productos-table th {
  color: #f8dada;
  font-weight: 700;
  width: 170px;
}

.productos-table td {
  color: #fae9e9;
}

.btn-contactar {
  display: inline-block;
  background: #7c3aed;
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  letter-spacing: 1px;
  transition: background 0.2s;
  margin-top: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.btn-contactar:hover {
  background: #a78bfa;
  color: #222;
}

/* Responsive */
@media (max-width: 900px) {
  .productos-card {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem 0.7rem;
  }
  .productos-gallery .main-img {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .productos-main {
    padding: 0.2rem;
  }
  .productos-card {
    padding: 0.7rem 0.2rem;
  }
  .productos-info h1 {
    font-size: 1.3rem;
  }
  .productos-desc,
  .productos-table th,
  .productos-table td {
    font-size: 0.98rem;
  }
  .productos-gallery .thumbs img {
    width: 50px;
    height: 38px;
  }
}

/* Contacto Main Card Layout */

.contacto-card {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr;
  gap: 2.5rem;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  padding: 2.5rem 2rem;
  max-width: 1000px;
  width: 100%;
}

.contacto-formulario {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.contacto-formulario h1 {
  font-size: 2rem;
  color: #7c3aed;
  margin-bottom: 0.7rem;
}

.contacto-desc {
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
}

.contacto-formulario form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.contacto-formulario label {
  font-weight: 500;
  color: #7c3aed;
  margin-bottom: 0.2rem;
  font-size: 1rem;
}

.contacto-formulario input,
.contacto-formulario textarea {
  padding: 0.7rem 1rem;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 1rem;
  background: #f3f4f6;
  color: #222;
  outline: none;
  transition: border 0.2s;
}

.contacto-formulario input:focus,
.contacto-formulario textarea:focus {
  border: 1.5px solid #7c3aed;
}

.btn-enviar {
  margin-top: 0.7rem;
  background: #7c3aed;
  color: #fff;
  padding: 0.9rem 0;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.1);
}

.btn-enviar:hover {
  background: #a78bfa;
  color: #222;
}

.contacto-info {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contacto-info h2 {
  font-size: 1.2rem;
  color: #7c3aed;
  margin-bottom: 0.7rem;
}

.contacto-info ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem 0;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.contacto-info ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.contacto-info ul i {
  color: #7c3aed;
  font-size: 1.1rem;
  margin-top: 0.2rem;
  min-width: 20px;
  text-align: center;
}

.contacto-mapa {
  width: 100%;
  height: 180px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.1);
}

.contacto-mapa iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
}

/* Responsive */
@media (max-width: 900px) {
  .contacto-card {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem 0.7rem;
  }
  .contacto-main {
    padding: 1rem 0.2rem;
  }
}

@media (max-width: 600px) {
  .contacto-card {
    padding: 0.7rem 0.2rem;
  }
  .contacto-formulario h1 {
    font-size: 1.3rem;
  }
  .contacto-info h2 {
    font-size: 1rem;
  }
  .contacto-mapa {
    height: 120px;
  }
}

/* Footer */

.footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: start;
  color: #fff;
  padding: 2rem 2rem 1.5rem 2rem;
  gap: 1rem;
}

.footer-logo {
  justify-self: start;
  font-weight: bold;
  font-size: 1.3rem;
  align-self: center;
}

.footer-social,
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-title {
  font-weight: bold;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.footer-icons {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 0.5rem;
}

.footer-icons a {
  color: #fff;
  font-size: 1.4rem;
  transition: color 0.2s;
}

.footer-icons a:hover {
  color: #7c3aed;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: flex-start;
}

.footer-contact-info i {
  margin-right: 0.5rem;
  color: #7c3aed;
  width: 18px;
  text-align: center;
}

.footer-contact-info a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact-info a:hover {
  color: #7c3aed;
}

@media (max-width: 600px) {
  .footer {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }
  .footer-logo {
    justify-self: center;
    margin-bottom: 0.5rem;
  }
  .footer-contact-info {
    align-items: center;
  }
}
