/* Variables CSS */
:root {
  --color-pale-blue: #add8e6;
  --color-white: #ffffff;
  --color-orange: #ff8c00;
  --color-green: #25d366;
  --color-dark-blue: #2c3e50;
  --color-gray: #f4f4f4;

  --header-height: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  line-height: 1.6;
  color: var(--color-dark-blue);
  background-color: var(--color-white);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* Header */
.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  background-color: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header--scrolled {
  background-color: var(--color-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header__nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo-link {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 99;
}

.header__logo-img {
  height: 3.5rem;
  max-width: 100%;
}

.header__menu-toggle {
  font-size: 2rem;
  cursor: pointer;
  color: var(--color-white);
  display: none;
  transition: color 0.3s ease;
  z-index: 101;
}

.header--scrolled .header__menu-toggle {
  color: var(--color-dark-blue);
}

.header__menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.header__item {
  position: relative;
}

.header__link {
  color: var(--color-white);
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
  position: relative;
}

.header--scrolled .header__link {
  color: var(--color-dark-blue);
}

.header__link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -3px;
  left: 0;
  background-color: var(--color-orange);
  transition: width 0.3s ease;
}

.header__link:hover::after {
  width: 100%;
}

.header__social-media {
  display: none;
  gap: 1.5rem;
  margin-top: 2rem;
}

.header__social-icon {
  font-size: 1.8rem;
  color: var(--color-dark-blue);
  transition: color 0.3s ease, transform 0.2s ease;
}

.header__social-icon:hover {
  color: var(--color-orange);
  transform: translateY(-3px);
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  overflow: hidden;
}

.hero__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../img/hero-background.webp") no-repeat center center/cover;
  filter: brightness(0.6);
  z-index: -1;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: var(--header-height);
}

.hero__title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  font-weight: 700;
}

.hero__subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}

.hero__button {
  display: inline-block;
  background-color: transparent;
  color: var(--color-white);
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  border: 2px solid var(--color-white);
  transition: background-color 0.3s ease, transform 0.2s ease, color 0.3s ease;
}

.hero__button:hover {
  background-color: var(--color-orange);
  color: var(--color-white);
  border: 2px solid var(--color-orange);
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Secciones Base */
.section {
  padding: 5rem 0;
  text-align: center;
}

.section--light {
  background-color: var(--color-gray);
}

.section__title {
  font-size: 2.5rem;
  color: var(--color-dark-blue);
  margin-bottom: 0.5rem;
}

.section__subtitle {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 3rem;
}

/* Sección Nosotros */
.conocenos__content {
  display: flex;
  align-items: center;
  gap: 3rem;
  text-align: left;
}

.conocenos__image {
  flex: 1;
}

.conocenos__img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.conocenos__info {
  flex: 1;
}

.conocenos__info-title {
  font-size: 2rem;
  color: var(--color-dark-blue);
  margin-bottom: 1rem;
}

.conocenos__info-text {
  color: #666;
  margin-bottom: 2rem;
}

.conocenos__features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.conocenos__feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.conocenos__feature-icon {
  font-size: 2rem;
  color: var(--color-orange);
  margin-top: 0.2rem;
}

.conocenos__feature-title {
  font-size: 1.3rem;
  color: var(--color-dark-blue);
  margin-bottom: 0.2rem;
}

.conocenos__feature-text p {
  color: #666;
}

/* Sección Servicios */
.servicios__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  text-align: center;
}

.servicios__card {
  background-color: var(--color-white);
  padding: 2.5rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 5px solid var(--color-pale-blue);
}

.servicios__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.servicios__icon {
  font-size: 3.5rem;
  color: var(--color-orange);
  margin-bottom: 1rem;
}

.servicios__title {
  font-size: 1.5rem;
  color: var(--color-dark-blue);
  margin-bottom: 0.5rem;
}

.servicios__description {
  color: #666;
}

/* Sección Productos (Galería y Carrusel de Marcas) */
.productos__header {
  margin-bottom: 4rem;
}

.productos__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 5rem;
}

.productos__gallery a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.productos__gallery a:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.productos__item-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.productos__gallery a:hover .productos__item-img {
  transform: scale(1.05);
}

.productos__item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  color: var(--color-white);
  padding: 1rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  text-align: center;
}

.productos__gallery a:hover .productos__item-overlay {
  transform: translateY(0);
}

.productos__item-title {
  font-size: 1.2rem;
  font-weight: 600;
}

.productos__brands-section {
  margin-top: 4rem;
}

/* Carrusel de Marcas */
.brands-carousel {
  overflow: hidden;
  white-space: nowrap;
  padding: 2rem 0;
  position: relative;
}

.brands-carousel__track {
  display: inline-block;
  animation: scrollBrands 30s linear infinite;
  will-change: transform;
}

.brands-carousel__track:hover {
  animation-play-state: paused;
}

.brands-carousel__logo {
  height: 60px;
  width: auto;
  margin: 0 3rem;
  filter: grayscale(100%) brightness(1.5);
  opacity: 0.7;
  transition: filter 0.3s ease, opacity 0.3s ease;
  vertical-align: middle;
}

.brands-carousel__logo:hover {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
}

@keyframes scrollBrands {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Sección Contacto */
.contacto__content {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  text-align: left;
  flex-wrap: wrap;
}

.contacto__info {
  flex: 1;
  min-width: 300px;
}

.contacto__info-title {
  font-size: 2rem;
  color: var(--color-dark-blue);
  margin-bottom: 2rem;
}

.contacto__details {
  margin-bottom: 2rem;
}

.contacto__detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contacto__detail-item i {
  font-size: 1.5rem;
  color: var(--color-orange);
  min-width: 1.5rem;
}

.contacto__social {
  margin-bottom: 2rem;
}

.contacto__social a {
  font-size: 2.5rem;
  color: var(--color-dark-blue);
  margin-right: 1.5rem;
  transition: color 0.3s ease;
}

.contacto__social a:hover {
  color: var(--color-orange);
}

.contacto__map {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contacto__map iframe {
  width: 100%;
  height: 350px;
}

.contacto__form-container {
  flex: 1;
  min-width: 300px;
  background-color: var(--color-white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contacto__form .form-group {
  margin-bottom: 1.5rem;
}

.contacto__form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.contacto__form input,
.contacto__form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
}

.contacto__form input:focus,
.contacto__form textarea:focus {
  outline: none;
  border-color: var(--color-orange);
  box-shadow: 0 0 5px rgba(255, 140, 0, 0.5);
}

.contacto__form-button {
  background-color: var(--color-orange);
  color: var(--color-white);
  border: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.contacto__form-button:hover {
  background-color: #e67e22;
  transform: translateY(-3px);
}

/* WhatsApp */
.btn-whatsapp {
  position: fixed;
  width: 70px;
  height: 70px;
  line-height: 70px;
  bottom: 30px;
  right: 30px;
  font-size: 55px;
  color: var(--color-gray);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-green);
  border-radius: 100px;
  animation: whatsapp-pulse 2s infinite ease-out;
}

.btn-whatsapp:hover {
  background-color: var(--color-white);
  color: var(--color-green);
}

@keyframes whatsapp-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(58, 178, 48, 0.7); 
  }
  70% {
    box-shadow: 0 0 0 20px rgba(58, 178, 48, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(58, 178, 48, 0); 
  }
}

/* Footer Final */
.footer {
  background-color: var(--color-dark-blue);
  color: var(--color-white);
  padding: 2.5rem 0;
  text-align: center;
}

.footer__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__left,
.footer__right {
  flex-grow: 1;
  text-align: left;
}

.footer__right {
  text-align: right;
}

.footer__right a {
  color: var(--color-orange);
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer__right a:hover {
  color: var(--color-white);
}

/* Media Queries para Responsive */
@media (max-width: 992px) {
  .conocenos__content {
    flex-direction: column;
    text-align: center;
  }
  .conocenos__info {
    margin-top: 2rem;
  }
  .conocenos__feature {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .productos__gallery {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .brands-carousel__logo {
    height: 50px;
    margin: 0 2rem;
  }
  .contacto__content {
    flex-direction: column;
  }
  .contacto__info,
  .contacto__form-container {
    min-width: auto;
  }
  .contacto__map {
    margin-top: 2rem;
  }
}

@media (max-width: 768px) {
  .header__nav {
    padding: 0 1rem;
  }

  .header__menu-toggle {
    display: block;
  }

  .header__menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100svh;
    background-color: var(--color-white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1.5rem;
    gap: 2rem;
    transition: left 0.4s ease;
    z-index: 99;
  }

  .header__menu--open {
    left: 0;
  }

  .header__item {
    width: 100%;
    text-align: center;
  }

  .header__link {
    color: var(--color-dark-blue);
    font-size: 1.5rem;
    font-weight: 600;
    display: block;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--color-gray);
  }

  .header__link:last-child {
    border-bottom: none;
  }

  .header__social-media {
    display: flex;
  }

  .header__logo-img {
    height: 3rem;
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .hero__subtitle {
    font-size: 1.2rem;
  }

  .section__title {
    font-size: 2rem;
  }

  .section__subtitle {
    font-size: 1rem;
  }

  .productos__gallery {
    grid-template-columns: 1fr;
  }
  .brands-carousel__logo {
    height: 40px;
    margin: 0 1.5rem;
  }
  .contacto__info,
  .contacto__form-container {
    text-align: center;
  }
  .contacto__detail-item {
    justify-content: center;
  }
  .contacto__social {
    justify-content: center;
    display: flex;
  }
  .footer__content {
    flex-direction: column;
  }
  .footer__left,
  .footer__right {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 2rem;
  }
  .hero__subtitle {
    font-size: 1rem;
  }
  .hero__button {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }
}
