/* Variables de color para el template */
:root {
  --color-bg: #181818;
  --color-bg-card: #222;
  --color-text: #fff;
  --color-text-dark: #181818;
  --color-accent: #ff8c3b; /* Naranja principal */
  --color-whatsapp: #25d366; /* Verde WhatsApp */
  --color-whatsapp-hover: #1ebe57;
  --color-card: #fff;
  --color-shadow: #0002;
  --color-shadow-menu: #0005;
  --color-footer-text: #bdbdbd;
  --color-title: #d6c1a1;
}

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: "Inter", Arial, sans-serif;
  min-height: 100vh;
  padding: 12px;
}

.material-symbols-outlined {
  font-size: 1rem;
  vertical-align: middle;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 18px 0;
  position: fixed;
  width: 100%;
  background-color: #181818;
  top: 0;
  z-index: 1100;
}

.header__container {
  max-width: 440px;
  margin: 0 auto;
  width: 100%;
}

.logo {
  font-size: 2rem;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  width: 360px;
  height: auto;
  margin-top: 10px;
}

.menu-btn {
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 2rem;
  cursor: pointer;
}

/* --- Hamburguesa --- */
.menu-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  z-index: 1101;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.menu-btn .bar {
  width: 28px;
  height: 3px;
  background: var(--color-text);
  margin: 0.17rem 0;
  border-radius: 2px;
  transition: 0.3s;
}

.menu-btn.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}
.menu-btn.active .bar:nth-child(2) {
  opacity: 0;
}
.menu-btn.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* --- Side Menu --- */
.side-menu {
  position: fixed;
  top: 0;
  right: -100vw;
  width: 90vw;
  max-width: 370px;
  height: 100vh;
  background: rgba(24, 24, 24, 0.98);
  box-shadow: -2px 0 16px var(--color-shadow-menu);
  z-index: 1100;
  transition: right 0.3s;
  display: flex;
  flex-direction: column;
  padding: 24px 18px 0 18px;
}

.side-menu.open {
  right: 0;
}

.side-menu ul {
  list-style: none;
  margin-top: 40px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.side-menu ul li a {
  display: block;
  background: var(--color-card);
  color: var(--color-text-dark);
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 24px;
  padding: 14px 0;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 2px 8px var(--color-shadow);
}

.side-menu ul li a:hover {
  background: var(--color-accent);
  color: var(--color-text);
}

/* Overlay */
.menu-overlay {
  display: none;
  position: fixed;
  z-index: 1099;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  transition: opacity 0.3s;
}

.menu-overlay.active {
  display: block;
  opacity: 1;
}

.container {
  max-width: 940px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  top: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.trayectoria {
  width: 700px;
  margin-bottom: 50px;
}

.promos-section {
  display: flex;
  flex-direction: row;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}

.intro {
  text-align: center;
  margin-top: 25px;
}

.intro p {
  font-size: 1.2rem;
  margin: 0px 15px 15px 15px;
}

.intro h2 {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-title);
  margin-bottom: 20px;
}

.promo-banner {
  background: var(--color-accent);
  color: var(--color-text);
  border-radius: 8px;
  padding: 8px 0;
  font-weight: bold;
  margin-bottom: 14px;
  font-size: 1rem;
}

.main-product {
  background: var(--color-bg-card);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px var(--color-shadow);
}

.main-product img {
  width: 100%;
  height: 256px;
  display: block;
  object-fit: cover;
}

.main-product-info {
  padding: 12px;
  background-color: var(--color-text); /* blanco */
  color: var(--color-text-dark); /* texto oscuro */
}

.main-product-info h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--color-text-dark);
}

.whatsapp-btn {
  display: inline-block;
  background: var(--color-whatsapp);
  color: var(--color-text);
  font-weight: bold;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  text-decoration: none;
  font-size: 1rem;
  margin-top: 6px;
  transition: background 0.2s;
  width: 100%;
  text-align: center;
}

.whatsapp-btn:hover {
  background: var(--color-whatsapp-hover);
}

.fichaTecnica-btn {
  display: inline-block;
  background: var(--color-text-dark);
  color: var(--color-text);
  font-weight: bold;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  text-decoration: none;
  font-size: 1rem;
  margin-top: 6px;
  transition: background 0.2s;
  width: 100%;
  text-align: center;
}

.products {
  display: flex;
  margin-bottom: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.product-card {
  background: var(--color-card);
  border-radius: 10px;
  overflow: hidden;
  width: 32%;
  min-width: 110px;
  max-width: 140px;
  box-shadow: 0 2px 8px var(--color-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 10px;
  padding: 12px;
}

.product-card img {
  width: 100%;
  object-fit: cover;
  border-radius: 8px 8px 0px 0px;
}

.product-card h4 {
  font-size: 1trem;
  line-height: 1.5rem;
  color: var(--color-text-dark);
  margin: 8px 2px 4px 2px;
  text-align: left;
}

.features {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 50px;
  margin-bottom: 25px;
}

.features div {
  background: var(--color-bg-card);
  border-radius: 10px;
  width: 32%;
  min-width: 110px;
  max-width: 140px;
  padding: 10px 2px 6px 2px;
  font-size: 0.9rem;
  color: var(--color-text);
  text-align: center;
  box-shadow: 0 2px 8px var(--color-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.features img {
  width: 32px;
  height: 32px;
  margin-bottom: 4px;
}

footer {
  text-align: center;
  margin: 30px 0px 0px 0px;
  padding-bottom: 50px;
}

footer strong {
  display: block;
  font-size: 1.1rem;
  line-height: 1.8rem;
  margin-bottom: 6px;
  color: var(--color-text);
}

footer p {
  font-size: 0.95rem;
  margin-bottom: 25px;
}

.contact-info {
  font-size: 0.9rem;
  color: var(--color-footer-text);
}

.contact-info p {
  margin: 7px 0;
}

/* Responsive */
@media (max-width: 768px) {
  .logo img {
    width: 250px;
  }
  .container {
    max-width: 440px;
  }
  .trayectoria {
    width: 100%;
  }
  .promos-section {
    flex-direction: column;
    align-items: center;
  }
  .products {
    flex-direction: column;
    gap: 12px;
  }
  .product-card {
    width: 100%;
    max-width: 100%;
  }
  .features {
    flex-direction: column;
    gap: 10px;
    width: 90%;
  }
  .features div {
    width: 100%;
    max-width: 100%;
  }
}
.contact-link {
  color: var(--color-footer-text);
  text-decoration: underline;
  transition: color 0.2s;
  word-break: break-all;
}
.contact-link:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.products-slider {
  position: relative;
  max-width: 440px;
  margin: 0 auto 18px auto;
  overflow: hidden;
}
.products-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.product-card {
  flex: 0 0 32%;
  margin-right: 10px;
}
.product-card:last-child {
  margin-right: 0;
}
.slider-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
}
.slider-controls button {
  background: var(--color-bg-card);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.slider-controls button:active {
  background: var(--color-bg-card);
}

.slider-indicator {
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
  min-width: 38px;
  text-align: center;
  user-select: none;
  align-self: center;
}

/* Responsive: 1 producto por slide en mobile */
@media (max-width: 768px) {
  .product-card {
    flex: 0 0 50%;
    max-width: 48%;
  }
  .logo {
    display: flow;
  }
}

/* Agrega esto a tu style.css */
.partners-list {
  margin: 0px auto 10px auto;
  max-width: 400px;
  padding: 0 12px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.partners-list li {
  background: var(--color-bg-card);
  color: var(--color-text);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 1.05rem;
  box-shadow: 0 2px 8px var(--color-shadow);
  text-align: center;
}

.trabajos-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  justify-items: center;
  margin-bottom: 32px;
}
.trabajo-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s;
  box-shadow: 0 2px 8px var(--color-shadow);
}
.trabajo-img:hover {
  transform: scale(1.07);
}

/* Responsive: 1 columna en mobile, 2 en tablet */
@media (max-width: 900px) {
  .trabajos-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .trabajos-gallery {
    grid-template-columns: 1fr;
  }
}
/* Modal imagen grande */
.modal-img {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
}
.modal-img img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 4px 24px #000a;
}
.close-modal {
  position: absolute;
  top: 24px;
  right: 36px;
  color: #fff;
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 2100;
}

.promo-card {
  background: white;
  color: #111;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  max-width: 300px;
  margin-inline: 5px;
}

.promo-images {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.promo-images img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  height: 99%;
}

.promo-details {
  line-height: 1.4rem;
}

.promo-details h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.promo-details ul {
  padding-left: 18px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.promo-details ul li {
  margin-bottom: 2px;
}

.promo-price {
  font-size: 0.9rem;
  font-weight: bold;
}

.promo-discount {
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--color-text-dark);
}

.promo-bonus {
  font-size: 0.9rem;
  color: var(--color-text-dark);
  font-weight: bold;
}

.whatsapp-btn {
  display: inline-block;
  background: #25d366;
  color: white;
  font-weight: bold;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.whatsapp-btn:hover {
  background: #1ebe57;
}

/* Responsive */
/* Mostrar solo la primera imagen y a 100% en pantallas >=600px */
@media (max-width: 768px) {
  .promo-images img {
    width: 100%;
  }

  .promo-images img:nth-child(2) {
    display: none;
  }

  .promo-card {
    max-width: 90%;
  }
}

.products-track {
  display: flex;
  transition: transform 0.4s ease;
  will-change: transform;
}

.product-card {
  min-width: 100%;
  max-width: 100%;
  flex-shrink: 0;
  box-sizing: border-box;
  height: fit-content;
}

.promo-card {
  position: relative;
  overflow: hidden;
}

/* Botón ℹ️ */
.info-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Panel deslizable */
.tech-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  padding: 16px;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  z-index: 9;
}

.tech-panel.active {
  transform: translateY(0);
}

.tech-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.tech-list li {
  margin-bottom: 8px;
  font-size: 15px;
}

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #25d366;
  color: white;
  font-size: 26px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  text-decoration: none;
  transition: background 0.3s ease;
  animation: none;
}

.whatsapp-float:hover {
  background-color: #1ebe57;
}

.whatsapp-float .material-symbols-outlined {
  font-size: 30px;
}

.tooltip {
  position: absolute;
  right: 60px;
  background: #333;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.9rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.3s ease;
}

.whatsapp-float:hover .tooltip {
  opacity: 1;
}

.email-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background-color: #65a6ff;
  color: white;
  font-size: 26px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  text-decoration: none;
  transition: background 0.3s ease;
  animation: none;
}

.email-float:hover {
  background-color: #4d97ff;
}

.email-float .material-symbols-outlined {
  font-size: 30px;
}

.email-float img {
  width: 60px;
  height: 60px;
}

.tooltip-email {
  position: absolute;
  left: 65px;
  background: #333;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.9rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.3s ease;
}

.email-float:hover .tooltip-email {
  opacity: 1;
}

/* Animación de atención (vibración) */
@keyframes shake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  50% {
    transform: translateX(4px);
  }
  75% {
    transform: translateX(-2px);
  }
  100% {
    transform: translateX(0);
  }
}
.attention {
  animation: shake 0.4s ease 1;
}

/* === CSS para Filtros === */
.filtros-section {
  margin: 40px 0;
  padding: 0 12px;
  text-align: center;
}

.filtros-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.filtro-btn {
  background-color: #333;
  color: #fff;
  border: 2px solid transparent;
  padding: 10px 18px;
  border-radius: 24px;
  cursor: pointer;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filtro-btn:hover {
  background-color: #444;
}

.filtro-btn.active {
  background-color: var(--color-accent);
  color: var(--color-text-dark);
  border-color: var(--color-accent);
}

.result-Search {
  font-size: 1rem;
  font-weight: 500;
  margin-top: 12px;
  color: var(--color-title);
}

@media (max-width: 600px) {
  .filtro-btn {
    font-size: 0.95rem;
    padding: 8px 14px;
  }
}

/* Filtros */
.search-First,
.search-Second {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.search-First h3,
.search-Second h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--color-title);
}

.filter-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 1rem;
  background: #eee;
  color: #333;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.filter-btn:hover {
  background: #ddd;
}

.filter-btn.active {
  background: var(--color-accent);
  color: #fff;
}

/* Resultado del filtro */
.result-Search {
  text-align: center;
  margin: 12px auto 24px auto;
  font-size: 1rem;
  color: var(--color-title);
}

.search-Numbre {
  font-weight: bold;
  color: var(--color-accent);
}

.partners-container {
  display: flex;
}

@media (max-width: 768px) {
  .partners-container {
    flex-direction: column;
    width: 100%;
  }
  .partners-list {
    width: 100%;
    align-items: center;
    padding: 0;
  }
  .partners-list li {
    width: 90%;
  }
}

.promo-mensaje-final p {
  text-align: center;
}
