/* ==== Reset ==== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background: rgba(245, 245, 245, 0);
  color: #333;
}

main {
  flex: 1;
}

/* ==== Header ==== */
header {
  display: flex;
  justify-content: space-between;
  background: transparent;
  align-items: center;
  background: rgba(0, 0, 0, 0.01);
  color: white;
  padding: 15px 20px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(2px);
}

header .nav a {
  color: white;
  transition: color 0.3s ease;
}

header.scrolled {
  box-shadow: 0 2px 5px rgba(112, 112, 112, 0.1);
}

header.scrolled .nav li a:hover {
  color:rgb(78, 73, 73)
}

header.scrolled .nav a {
  color: black;
}

header img {
  height: 40px;
  margin-right: 10px;
}

.menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.bar {
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 5px;
  transition: all 0.3s ease;
}

/* Estado "X" */
.menu.open .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu.open .bar:nth-child(2) {
  opacity: 0;
}
.menu.open .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ==== Nav Menu ==== */
.nav {
  display: flex;
  align-items: center;
}

.nav ul {
  display: flex;
  flex-direction: row;
  gap: 35px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav li a {
  text-decoration: none;
  color: rgb(255, 255, 255);
}

.nav li a:hover {
  color: #000000;
}

header h1 {
  font-size: 1.3rem;
}

.contact a {
  color: white;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  border-style: solid;
  border-width: 2px;
  font-weight: bold;
  transition: background 0.3s;
  transition: all 0.5s ease;
}

.contact a:hover {
  color: white;
  box-shadow: rgb(148, 148, 148) 0px 7px 29px 0px;
}

/* ==== Hero ==== */
.hero {
  position: relative;
  background: url("img/background.png") center/cover no-repeat;
  height: 100vh;
  color: white;
  padding: 0 20px;
  text-align: center;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1;
}

.hero h2 {
  padding: 20px 10px;
  font-size: 4rem;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.hero h2,
.hero p {
  position: relative;
  z-index: 2;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-style: solid;
  border-width: 2px;
  color: white;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  z-index: 2;
  width: 25%;
  transition: all 0.5s ease;
}

.btn:hover {
  letter-spacing: 3px;
  color: rgb(255, 255, 255);
  box-shadow: rgb(41, 41, 41) 0px 7px 29px 0px;
}


/* ==== Catalog Content ==== */
.catalog {
  padding: 60px 20px 40px; /* espacio para el header */
  background: #f9f9f9;
}
.catalog h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.5rem;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}
.product-card {
  background: white;
  border: 1px solid #ddd;
  max-width: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.product-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}
.product-card h3 {
  word-wrap: normal;
  padding: 15px;
  font-size: 1.2rem;
}
.product-card p {
  padding: 0 15px 15px;
  color: #666;
  font-size: 0.95rem;
}
.btn-catalog {
  display: block;
  width: calc(100% - 30px);
  margin: 0 auto 15px;
  padding: 10px 0;
  border-style: solid;
  color: black;
  border-radius: 25px;
  text-align: center;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s;
}
.btn-catalog:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transform: scale(1.05);
}

/* ==== Carrusel ==== */
.carousel-container {
  position: relative;
  overflow: hidden;
  background-color: white;
  padding: 40px 20px;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.carousel-track {
  display: flex;
  scroll-behavior: smooth;
  transition: transform 0.5s ease-in-out;
  gap: 40px;
}

.product-card {
  flex: 0 0 auto;
  min-width: 250px;
  scroll-snap-align: start;
}

/* ==== About Section ==== */
.about {
  padding: 60px 20px;
  background: white;
  text-align: left;
  height: 100vh;
}
.about h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
.about p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #555;
}
.about img {
  max-width: 400px;
  float: right;
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
  margin-left: 20px;
}
.btn-about {
  display: inline-block;
  padding: 12px 28px;
  border-style: solid;
  border-width: 2px;
  color: rgb(53, 230, 18);
  border-radius: 30px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s;
}
.btn-about:hover {
  color: white;
  background: #13db13;
  transform: scale(1.05);
}


/* ==== Ubication Map ==== */
.ubication {
  height: auto;
  padding-top: 50px;
  justify-content: center;
  background: #f9f9f9;
}

.map {
  background-color: white;
  height: auto;
  align-items: center;
  padding: 60px 20px;
}

.ubication h2{
  text-align: center;
  font-size: 2.5em;
}

.map iframe {
  width: 100%;
  height: 600px;
}

/* ==== Footer ==== */
footer {
  background: #0e0d0d;
  color: #bbb;
  padding: 40px 20px 20px;
  font-size: 0.95rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-bottom: 20px;
}

.footer-col h3, 
.footer-col3 h4,
.footer-col h4 {
  color: #fff;
  margin-bottom: 15px;
}

.footer-col3 ul {
  display: grid;
}

.footer-col3 a {
  color: #b1b1b1;
  text-decoration: none;
  padding-bottom: 10px;
  line-height: 1.5;
}

.footer-col3 a:hover {
  color: white;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col ul li a:hover {
  color: white;
}

.socials a {
  display: inline-block;
  margin-right: 15px;
  color: #b1b1b1;
  font-size: 1.3rem;
  transition: color 0.3s, transform 0.2s;
}

.socials a:hover {
  color: white;
  transform: scale(1.2);
}

.footer-col p i {
  margin-right: 8px;
  color: #b1b1b1;
}

.footer-bottom {
  text-align: center;
  padding-top: 15px;
  border-top: 1px solid #444;
  font-size: 0.85rem;
}

/* ==== Responsive ==== */

/* Tablets y pantallas medianas */
@media (max-width: 1024px) {
  header {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
  }

  .nav ul {
    gap: 20px;
    flex-wrap: wrap;
  }

  .hero h2 {
    font-size: 3rem;
  }

  .btn {
    width: auto; /* evita que el botón se estire demasiado */
    padding: 12px 24px;
  }
}

/* Móviles */
@media (max-width: 768px) {
  header {
    align-items: center;
    flex-direction: row;
    text-align: center;
  }

  .nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: left 0.3s ease;
    z-index: 1000;
  }

  .nav ul {
    flex-direction: column;
    gap: 25px;
    text-align: center;
  }

  .nav.active {
    left: 0;
  }

  .contact a {
    background: rgba(0, 0, 0, 0);
    color: black;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    border-style: solid;
    border-width: 2px;
    font-weight: bold;
    transition: background 0.3s;
    animation:shadow-pop-br .3s cubic-bezier(.47,0.000,.745,.715) both;
    -webkit-animation: shadow-pop-br .3s cubic-bezier(.47,0.000,.745,.715) both;
  }

  .contact a:hover {
    color: white;
  }

  .menu {
    display: flex;
  }

  header {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .contact {
    margin-top: 10px;
    width: 100%;
    text-align: center;
  }

  .contact {
    margin-top: 10px;
  }

  .hero {
    height: auto;
    padding: 100px 20px 60px; /* espacio por el header */
  }

  .hero h2 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    padding: 12px 20px;
  }

  .catalog {
    padding: 40px 15px;
  }

  .catalog h2 {
    font-size: 2rem;
  }

  .product-card img {
    height: 180px;
  }

  .about img{
    float: center;
    max-width: 200px;
  }

  .map iframe {
    width: 100%;
    height: 600px;
  }

  footer {
    text-align: center;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .socials a {
    margin: 0 10px;
  }
}

/* Pantallas muy pequeñas (<=480px) */
@media (max-width: 480px) {
  header h1 {
    font-size: 1rem;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .btn {
    font-size: 0.9rem;
    padding: 10px 18px;
  }

  .product-card h3 {
    font-size: 1rem;
  }

  .footer-col h3, 
  .footer-col h4 {
    font-size: 1rem;
  }
}
