/* VARIABLES */
:root {
  --blue: #1e3a8a;
  --blue-light: #2563eb;
  --gray: #6b7280;
  --light-gray: #f3f4f6;
  --white: #ffffff;
  --about-bg: #414A9C;
  --product-card-height: 340px;
  --product-image-height: 220px;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: var(--light-gray);
  color: #111;
}

main {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* HERO */
.hero {
  width: 100%;
  min-height: 100vh;
  background-image: url("../img/background2.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.167);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  max-width: 800px;
  padding: 20px;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 20px;
}

/* BOTÓN */
.btn {
  padding: 12px 25px;
  border: 2px solid var(--blue-light);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: 0.3s;
  font-size: 16px;
}

.btn:hover {
  background: var(--blue-light);
}

/* SECCIONES */
section {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 60px 40px;
  text-align: center;
}

h2 {
  font-size: 32px;
  margin-bottom: 30px;
  color: var(--blue);
}

/* ABOUT */
.about {
  background: radial-gradient(circle at center, var(--blue) 0%, var(--blue) 90%, var(--about-bg) 100%);
  width: 100%;
  max-width: 100%;
  padding: 120px 40px;
  margin: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  color: #fff;
}

.about h2 {
  margin-bottom: 20px;
  font-size: 36px;
  color: var(--white);
  text-align: center;
}

.about h3 {
  margin-bottom: 18px;
  font-size: 28px;
  line-height: 1.2;
  color: var(--white);
  text-align: center;
}

.about p {
  line-height: 1.8;
  color: var(--white);
  text-align: center;
  max-width: 720px;
  margin-bottom: 24px;
}

.about a.about-link {
  display: inline-block;
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.about a.about-link:hover {
  color: var(--blue-light);
  border-color: var(--blue-light);
}

.about img {
  width: 25%;
  border-radius: 16px;
  object-fit: cover;
  display: block;
  height: auto;
}

.about .about-text {
  width: 50%;
}

.partners {
  width: 100%;
  max-width: 100%;
  margin: 0;
  background: #ffffff;
  padding: 60px 40px;
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.partner-card {
  background: #f9fbff;
  border: 1px solid rgba(30, 58, 138, 0.1);
  border-radius: 18px;
  padding: 28px 24px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 30px rgba(30, 58, 138, 0.15);
}

.partner-card h3 {
  margin-bottom: 14px;
  color: var(--blue);
  text-align: center;
}

.partner-card p {
  color: var(--gray);
  line-height: 1.8;
  text-align: justify;
}

.partner-card img {
  display: block;
  margin: 0 auto;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.partner-card a {
  display: inline-block;
  margin-top: 12px;
  color: var(--blue-light);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.events {
  width: 100%;
  max-width: 100%;
  margin: 0;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  padding: 60px 40px;
  margin-top: 40px;
  border-radius: 24px;
  margin-bottom: 30px;
}

.event-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.event-item {
  background: var(--white);
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 28px rgba(15, 23, 42, 0.12);
}

.event-item h3 {
  margin-bottom: 12px;
  color: var(--blue);
  text-align: center;
  size: 24px;
}

.event-item p {
  color: var(--gray);
  line-height: 1.8;
}

/* PRODUCTS */
.product-list {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.product-item {
  background: var(--white);
  border-radius: 10px;
  width: 300px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
  height: 350px;
}

.product-item:hover {
  transform: translateY(-5px);
}

.product-item img {
  width: 200px;
  height: 200px;
  border-radius: 8px;
  margin-bottom: 15px;
  margin-inline: auto;
  display: block;
  object-fit: contain;
}

.product-item h3 {
  margin-bottom: 10px;
  color: var(--blue);
}

.product-item p {
  color: var(--gray);
}

/* SERVICES */
.service-list {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.service-item {
  background: var(--white);
  border-radius: 10px;
  width: 280px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

.service-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 15px;
  margin-inline: auto;
  object-fit: contain;
}

.service-item:hover {
  background: var(--blue);
  color: var(--white);
}

.service-item h3 {
  margin-bottom: 10px;
}

/* Ajuste de scroll para anclas */
[id] {
  scroll-margin-bottom: 60px;
}

:target {
  scroll-margin-bottom: 60px;
}

/* CONTACT */
.contact {
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-light) 100%);
  width: 100%;
  max-width: 100%;
  padding: 120px 40px;
  text-align: center;
}

.contact h1 {
  font-size: 42px;
  color: var(--white);
}

.contact>p {
  color: var(--white);
  font-size: 16px;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto 40px;
}

.contact img {
  width: 100%;
  height: 24px;
}

.contact-info-section {
  width: 100%;
  margin: 0;
  padding: 0px;
  box-sizing: border-box;
}

.contact-container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.contact-info {
  width: 100%;
  box-sizing: border-box;

  background: var(--white);
  border-radius: 18px;
  padding: 40px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  text-align: center;
}



.contact-info h2 {
  margin-bottom: 30px;
  color: var(--blue);
  font-size: 28px;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
  width: 100%;
}

.contact-column {
  display: flex;
  align-items: stretch;
}

.contact-card {
  flex: 1;
  width: 100%;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.contact-card-image {
  border: 2px solid var(--blue-light);
  padding: 0;
  background: transparent;
  height: 220px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-card-image img {
  width: 100%;
  height: auto;
  border-radius: 0;
  object-fit: contain;
  display: block;
  border: none;
  max-width: 100%;
  max-height: 100%;
}

.contact-card-content {
  padding: 30px 25px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-card-title h3 {
  margin: 0 0 8px;
  font-size: 20px;
  color: var(--blue);
}

.contact-card-title p {
  margin: 0;
  color: var(--gray);
  font-size: 14px;
  line-height: 1.6;
}

.contact-card-list {
  display: grid;
  gap: 5px;
  font-size: 18px;
  line-height: 1.3;
}

.contact-card-detail {
  padding: 16px 18px;
  background: #f8fbff;
  border-radius: 14px;
  border: 1px solid rgba(30, 58, 138, 0.1);
  color: var(--gray);
  line-height: inherit;
  font-size: inherit;
}

.contact-card-detail strong {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
}

.contact-card-detail a {
  color: var(--blue-light);
  text-decoration: none;
  transition: 0.3s;
}

.contact-card-detail a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.contact-form {
  background: var(--white);
  border-radius: 18px;
  padding: 40px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.contact-form h2 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--blue);
  font-size: 28px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form label {
  color: var(--blue);
  font-weight: 600;
  font-size: 14px;
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-family: 'Segoe UI', sans-serif;
  font-size: 14px;
  color: #111;
  transition: 0.3s;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #d1d5db;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-form button {
  padding: 14px 28px;
  background: var(--blue-light);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  align-self: center;
  min-width: 180px;
  margin-top: 10px;
}

.contact-form button:hover {
  background: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.contact-form button:active {
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .contact {
    padding: 40px 20px;
  }

  .contact h1 {
    font-size: 32px;
  }

  .contact-container {
    gap: 20px;
  }

  .contact-info,
  .contact-form {
    padding: 30px 20px;
  }

  .contact-info h2,
  .contact-form h2 {
    font-size: 24px;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
  }

  .contact-item {
    padding: 15px;
    border-left-width: 3px;
  }
}

/* PRODUCTS GRID STYLES */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 40px;
  padding: 0 10px;
}

/* Center grid items and avoid full-width expansion when few cards */
.product-grid {
  justify-items: center;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(30, 58, 138, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  height: var(--product-card-height);
  min-height: var(--product-card-height);
  max-height: var(--product-card-height);
  max-width: 360px;
  margin: 0 auto;
}

.product-card:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 28px rgba(30, 58, 138, 0.2);
}

.product-image {
  width: 100%;
  height: var(--product-image-height);
  overflow: hidden;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0ff 100%);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-info {
  padding: 16px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  height: calc(var(--product-card-height) - var(--product-image-height));
  background: var(--white);
  text-align: center;
  overflow: hidden;
}

.product-info h3 {
  font-size: 18px;
  color: var(--blue);
  text-align: justify;
  font-weight: 600;
  line-height: 1.4;
}

.product-info h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* SECCIONES ESPECÍFICAS */
.products,
.products-bestsellers,
.products-cfm,
.products-cross,
.products-testers {
  background: var(--white);
  margin: 0;
  padding: 60px 40px;
  width: 100%;
  max-width: 100%;
  flex-wrap: wrap;
}

.products {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  margin-top: 20px;
}

.products-bestsellers {
  background: linear-gradient(180deg, #f9fbff 0%, #ffffff 100%);
  margin-top: 20px;
}

.products-cfm {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  margin-top: 20px;
}

.products-cross {
  background: linear-gradient(180deg, #f9fbff 0%, #ffffff 100%);
  margin-top: 20px;
}

.products-testers {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  margin-top: 20px;
}

.products h2,
.products-bestsellers h2,
.products-cfm h2,
.products-cross h2,
.products-testers h2 {
  font-size: 32px;
  color: var(--blue);
  margin-bottom: 10px;
  position: relative;
  padding-bottom: 15px;
}

.products h2::after,
.products-bestsellers h2::after,
.products-cfm h2::after,
.products-cross h2::after,
.products-testers h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--blue-light);
  border-radius: 2px;
}

/* RESPONSIVE - PRODUCTS */
@media (max-width: 768px) {

  .products,
  .products-bestsellers,
  .products-cfm,
  .products-cross,
  .products-testers {
    padding: 40px 20px;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    padding: 0;
  }

  .product-image {
    height: 180px;
  }

  .product-card {
    height: 300px;
    min-height: 300px;
    max-height: 300px;
  }

  .product-info {
    height: calc(300px - 180px);
  }

  .product-info h3 {
    font-size: 16px;
  }

  .products h2,
  .products-bestsellers h2,
  .products-cfm h2,
  .products-cross h2,
  .products-testers h2 {
    font-size: 26px;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
  }

  .product-image {
    height: 150px;
  }

  .product-card {
    height: 260px;
    min-height: 260px;
    max-height: 260px;
  }

  .product-info {
    height: calc(260px - 150px);
  }

  .product-info {
    padding: 15px 12px;
  }

  .product-info h3 {
    font-size: 14px;
  }
}

/* SERVICES STYLES */
.services-intro {
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-light) 100%);
  width: 100%;
  max-width: 100%;
  padding: 120px;
  text-align: center;
}

.services-intro h2 {
  font-size: 42px;
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 15px;
}

.services-intro h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--gray) 0%, var(--white) 100%);
  border-radius: 2px;
}

.services-intro p {
  font-size: 16px;
  color: var(--white);
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

.services {
  background: var(--white);
  width: 100%;
  max-width: 100%;
  padding: 60px 40px;
  text-align: center;
}

.services h2 {
  font-size: 32px;
  color: var(--blue);
  margin-bottom: 10px;
  position: relative;
  padding-bottom: 15px;
}

.services h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--blue-light);
  border-radius: 2px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 40px;
  padding: 0 10px;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(30, 58, 138, 0.1);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(30, 58, 138, 0.08);
  cursor: pointer;
  transition: all 0.3s ease;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(30, 58, 138, 0.2);
  border-color: var(--blue-light);
}

.service-image {
  width: 100%;
  height: auto;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0ff 100%);
}

.service-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: contain;
}

.service-card:hover .service-image img {
  transform: scale(1.08);
}

.service-info {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
  text-align: justify
}

.service-info h3 {
  font-size: 20px;
  color: var(--blue);
  font-weight: 600;
  margin: 0;
  transition: color 0.3s ease;
  text-align: center;
}

.service-card:hover .service-info h3 {
  color: var(--blue-light);
}

.service-info p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

.services-cta {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 60px 40px;
  text-align: center;
  color: var(--white);
}

.services-cta h2 {
  font-size: 36px;
  color: var(--white);
  margin-bottom: 16px;
  padding-bottom: 0;
}

.services-cta h2::after {
  display: none;
}

.services-cta p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.btn-services {
  display: inline-block;
  padding: 14px 40px;
  background: var(--white);
  color: var(--blue);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid var(--white);
}

.btn-services:hover {
  background: transparent;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* RESPONSIVE - SERVICES */
@media (max-width: 768px) {

  .services-intro,
  .services {
    padding: 40px 20px;
  }

  .services-intro h2 {
    font-size: 32px;
  }

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

  .service-image {
    height: 180px;
  }

  .service-info {
    padding: 20px 16px;
  }

  .service-info h3 {
    font-size: 18px;
  }

  .service-info p {
    font-size: 13px;
  }
}

@media (max-width: 480px) {

  .services-intro,
  .services {
    padding: 30px 16px;
  }

  .services-intro h2 {
    font-size: 26px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-image {
    height: 150px;
  }

  .service-info {
    padding: 16px 12px;
  }

  .service-info h3 {
    font-size: 16px;
  }

  .services-cta {
    padding: 40px 20px;
  }

  .services-cta h2 {
    font-size: 26px;
  }

  .btn-services {
    padding: 12px 32px;
    font-size: 14px;
  }
}

/* PRODUCT DETAIL PAGE */
.product-detail {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 90px 40px;
}

.product-detail-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.product-detail-image {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(30, 58, 138, 0.1);
  padding: 20px;
}

.product-detail-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

.product-detail-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: justify;
}

.product-detail-info h1 {
  font-size: 42px;
  color: var(--blue);
  margin: 0;
  line-height: 1.2;
}

.product-detail-category {
  display: flex;
  gap: 8px;
  align-items: center;
}

.product-detail-category .badge {
  display: inline-block;
  padding: 8px 16px;
  background: var(--blue-light);
  color: var(--white);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.product-detail-price {
  padding: 20px;
  background: #ecfdf5;
  border-left: 4px solid var(--success);
  border-radius: 8px;
}

.product-detail-price .price {
  margin: 0;
  font-size: 32px;
  color: var(--blue);
  font-weight: 700;
}

.product-detail-description {
  padding: 20px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.product-detail-description h3 {
  color: var(--blue);
  margin-bottom: 12px;
  font-size: 18px;
}

.product-detail-description p {
  color: var(--gray);
  line-height: 1.8;
  margin: 0;
}

.product-detail-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.btn-back-products,
.btn-contact {
  flex: 1;
  padding: 14px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
  display: inline-block;
}

.btn-back-products {
  background: var(--gray-light);
  color: var(--text-dark);
  border: 2px solid #e5e7eb;
}

.btn-back-products:hover {
  background: #e5e7eb;
  border-color: var(--text-dark);
}

.btn-contact {
  background: var(--blue-light);
  color: var(--white);
  border: 2px solid var(--blue-light);
}

.btn-contact:hover {
  background: var(--blue);
  border-color: var(--blue);
}

/* RELATED PRODUCTS */
.related-products {
  background: var(--white);
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 60px 40px;
  text-align: center;
}

.related-products h2 {
  font-size: 32px;
  color: var(--blue);
  margin-bottom: 10px;
  position: relative;
  padding-bottom: 15px;
}

.related-products h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--blue-light);
  border-radius: 2px;
}

.related-products .product-grid {
  margin-top: 40px;
}

/* RESPONSIVE - PRODUCT DETAIL */
@media (max-width: 1024px) {
  .product-detail-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .product-detail {
    padding: 40px 20px;
  }

  .product-detail-info h1 {
    font-size: 32px;
  }

  .product-detail-actions {
    flex-direction: column;
  }

  .btn-back-products,
  .btn-contact {
    width: 100%;
  }

  .related-products {
    padding: 40px 20px;
  }

  .related-products h2 {
    font-size: 26px;
  }
}

@media (max-width: 480px) {
  .product-detail {
    padding: 30px 16px;
  }

  .product-detail-info h1 {
    font-size: 24px;
  }

  .product-detail-price .price {
    font-size: 24px;
  }

  .product-detail-actions {
    gap: 10px;
  }

  .btn-back-products,
  .btn-contact {
    padding: 12px 16px;
    font-size: 14px;
  }

  .related-products {
    padding: 30px 16px;
  }

  .related-products h2 {
    font-size: 22px;
  }
}

/* FILTROS Y BÚSQUEDA */
.products-filters {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  height: 280px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 120px 40px;
}

.filters-container {
  max-width: 1200px;
  margin: 0 auto;
}

.filters-container h2 {
  font-size: 32px;
  color: var(--white);
  margin-bottom: 30px;
  text-align: center;
}

.search-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto auto;
  gap: 16px;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-group label {
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-group input,
.filter-group select {
  padding: 11px 14px;
  border: 2px solid var(--white);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: var(--white);
  color: var(--text-dark);
  transition: 0.3s;
}

.filter-group input:focus,
.filter-group select:focus {
  outline: none;
  border-color: var(--white);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.filter-group input::placeholder {
  color: #9ca3af;
}

.filter-actions {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  height: 100%;
}

.btn-search {
  padding: 11px 24px;
  background: var(--white);
  color: var(--blue);
  border: 2px solid var(--white);
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: 0.3s;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
}

.btn-search:hover {
  background: #f3f4f6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-clear {
  padding: 11px 24px;
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: 0.3s;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
}

.btn-clear:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* RESULTADOS DE BÚSQUEDA */
.results-header {
  text-align: center;
  margin-bottom: 40px;
}

.results-header h2 {
  font-size: 32px;
  color: var(--blue);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 15px;
}

.results-header h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--blue-light);
  border-radius: 2px;
}

.filter-info {
  display: inline-block;
  background: #ecfdf5;
  color: var(--blue);
  padding: 10px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin: 5px;
  border: 1px solid #d1fae5;
}

.result-count {
  color: var(--gray);
  font-size: 16px;
  margin-top: 15px;
}

.result-count strong {
  color: var(--blue);
  font-weight: 700;
}

.no-results {
  grid-column: 1/-1;
  text-align: center;
  padding: 80px 40px;
  background: linear-gradient(135deg, #f9fbff 0%, #ffffff 100%);
  border-radius: 16px;
  margin-top: 20px;
}

.no-results p {
  margin: 10px 0;
  font-size: 18px;
  color: var(--gray);
}

.no-results p:first-child {
  font-size: 32px;
  margin-bottom: 15px;
}

.product-price {
  color: var(--blue-light);
  font-weight: 700;
  font-size: 16px;
  margin-top: 8px;
}

/* RESPONSIVE - FILTROS */
@media (max-width: 1024px) {
  .search-form {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .filter-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .btn-search,
  .btn-clear {
    flex: 1;
  }
}

@media (max-width: 768px) {
  .products-filters {
    padding: 40px 20px;
  }

  .filters-container h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .search-form {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .filter-actions {
    grid-column: 1 / -1;
    flex-direction: column;
    height: auto;
    gap: 10px;
  }

  .btn-search,
  .btn-clear {
    width: 100%;
  }

  .results-header h2 {
    font-size: 26px;
  }

  .filter-info {
    display: block;
    margin: 8px 0;
  }
}

@media (max-width: 480px) {
  .products-filters {
    padding: 30px 16px;
  }

  .filters-container h2 {
    font-size: 20px;
  }

  .filter-group input,
  .filter-group select {
    padding: 10px 12px;
    font-size: 13px;
  }

  .filter-group label {
    font-size: 12px;
  }

  .btn-search,
  .btn-clear {
    font-size: 13px;
    padding: 10px 16px;
  }

  .results-header h2 {
    font-size: 22px;
  }

  .no-results {
    padding: 50px 20px;
  }

  .no-results p:first-child {
    font-size: 24px;
  }

  .no-results p {
    font-size: 14px;
  }
}

.event-image {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #f8fafc;
  border-radius: 8px;
  margin-bottom: 15px;
}

.event-date,
.event-time,
.event-location {
  margin-top: 8px;
}

.no-events {
  width: 100%;
  text-align: center;
  font-size: 1.1rem;
  padding: 30px 15px;
}

.website-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-alert {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;

  width: auto;
  max-width: 380px;
  padding: 13px 18px;

  border-radius: 8px;
  font-size: 15px;
  line-height: 1.4;

  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);

  opacity: 1;
  transform: translateX(0);

  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.contact-alert-success {
  color: #087443;
  background-color: #e8f8f0;
  border-left: 4px solid #10b981;
}

.contact-alert-error {
  color: #a12222;
  background-color: #fdecec;
  border-left: 4px solid #ef4444;
}

.contact-alert.hide {
  opacity: 0;
  transform: translateX(30px);
  pointer-events: none;
}

/* =========================================
   ALERTAS
========================================= */

.page-alert {
  position: fixed;
  top: 30PX;
  right: 24px;

  width: min(420px, calc(100% - 48px));

  padding: 28px 44px 18px 18px;

  overflow: hidden;

  border-radius: 14px;
  border: 1px solid transparent;

  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18);

  z-index: 9999;

  opacity: 1;
  transform: translateY(0);

  animation: pageAlertEnter 0.35s ease;

  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}


/* =========================================
   CONTENIDO
========================================= */

.page-alert-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-alert-message {
  display: block;

  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}


/* =========================================
   ICONO
========================================= */

.page-alert-icon {
  width: 30px;
  height: 30px;

  flex: 0 0 30px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  font-size: 17px;
  font-weight: 800;
}


/* =========================================
   BOTÓN CERRAR
========================================= */

.page-alert-close {
  position: absolute;

  top: 4px;
  right: 6px;

  width: 28px;
  height: 28px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;
  margin: 0;

  color: inherit;

  border: none;
  border-radius: 50%;

  background: transparent;

  font-size: 24px;
  font-weight: 500;
  line-height: 1;

  cursor: pointer;

  opacity: 0.65;

  z-index: 2;

  transition:
    opacity 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.page-alert-close:hover {
  opacity: 1;

  background: rgba(0, 0, 0, 0.08);

  transform: scale(1.08);
}

.page-alert-close:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}


/* =========================================
   ÉXITO
========================================= */

.page-alert-success {
  color: #166534;

  background: #f0fdf4;

  border-color: #bbf7d0;
}

.page-alert-success .page-alert-icon {
  color: #ffffff;

  background: #22c55e;
}

.page-alert-success .page-alert-progress {
  background: #22c55e;
}


/* =========================================
   ERROR
========================================= */

.page-alert-error {
  color: #991b1b;

  background: #fef2f2;

  border-color: #fecaca;
}

.page-alert-error .page-alert-icon {
  color: #ffffff;

  background: #ef4444;
}

.page-alert-error .page-alert-progress {
  background: #ef4444;
}


/* =========================================
   BARRA DE TIEMPO
========================================= */

.page-alert-progress {
  position: absolute;

  right: 0;
  bottom: 0;

  width: 100%;
  height: 5px;

  animation: pageAlertProgress 5s linear forwards;
}


/*
 * Al estar anclada a la derecha y reducir su ancho,
 * la barra desaparece visualmente de izquierda
 * hacia la derecha.
 */
@keyframes pageAlertProgress {
  from {
    width: 100%;
  }

  to {
    width: 0%;
  }
}


/* =========================================
   ENTRADA
========================================= */

@keyframes pageAlertEnter {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =========================================
   SALIDA
========================================= */

.page-alert.hide {
  opacity: 0;

  transform: translateY(-10px);

  pointer-events: none;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 600px) {
  .page-alert {
    padding:
      14px 46px 17px 14px;
  }

  .page-alert-message {
    font-size: 14px;
  }

  .page-alert-icon {
    width: 27px;
    height: 27px;

    flex-basis: 27px;

    font-size: 15px;
  }

  .page-alert-close {
    top: 6px;
    right: 7px;
  }
}

#contactSubmit:disabled {
  opacity: 0.7;
  cursor: wait;
  pointer-events: none;
  transform: none;
}

#contactSubmit:disabled:hover {
  transform: none;
}

.submit-loading:not([hidden]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.submit-spinner {
  width: 16px;
  height: 16px;

  flex-shrink: 0;

  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;

  animation: contactSubmitSpin 0.7s linear infinite;
}

@keyframes contactSubmitSpin {
  to {
    transform: rotate(360deg);
  }
}

.product-action-form {
  margin: 0;
  display: inline-flex;
}

.product-action-form .btn-contact {
  border: none;
  font: inherit;
  cursor: pointer;
}

.product-action-form {
  display: inline-flex;
  margin: 0;
}

.product-action-form .btn-contact {
  border: none;
  font: inherit;
  cursor: pointer;
}

.contact-product-context {
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  background: #f8fafc;
}

.contact-product-context strong {
  margin-right: 6px;
}

.contact-request-type {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  font-weight: 600;
}

/* EVENT COUNTDOWN */
.event-countdown-card .event-date {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}

.event-countdown-card .event-date strong {
  color: var(--blue);
}

.event-countdown-card .event-date span {
  font-size: 0.92rem;
}

.event-live-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  padding: 16px;
  border-radius: 12px;
  background: #f8fafc;
  text-align: center;
}

.event-status-label {
  color: var(--gray);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-countdown-value {
  color: var(--blue);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  line-height: 1.3;
}

.event-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.event-status-badge.ongoing {
  background: #dcfce7;
  color: #166534;
}

.event-status-badge.finished {
  background: #e5e7eb;
  color: #475569;
}

/* =========================================
   RESPONSIVE GLOBAL - SITIO COMPLETO
   ========================================= */

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
  max-width: 100%;
  height: auto;
}

img {
  display: block;
}

input,
select,
textarea,
button {
  max-width: 100%;
}

.hero-content,
.filters-container,
.product-detail-container,
.contact-container {
  width: 100%;
}

/* Escalado fluido de tipografías principales */
.hero h1,
.contact h1 {
  font-size: clamp(2rem, 5vw, 2.625rem);
}

h2,
.products h2,
.products-bestsellers h2,
.products-cfm h2,
.products-cross h2,
.products-testers h2,
.related-products h2,
.services h2,
.filters-container h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

/* Imágenes generales dentro de secciones */
section img,
.about img,
.partner-card img,
.event-image,
.product-item img,
.product-image img,
.service-item img,
.service-image img,
.product-detail-image img,
.contact-card-image img {
  max-width: 100%;
}

/* Partner images */
.partner-card img {
  width: auto;
  max-width: 100%;
  max-height: 180px;
  margin-inline: auto;
  object-fit: contain;
}

/* Eventos */
.event-item {
  min-width: 0;
}

.event-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: 220px;
  object-fit: contain;
  background: #f8fafc;
}

/* Products */
.product-grid {
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}

.product-card {
  width: 100%;
  max-width: 360px;
}

.product-image {
  aspect-ratio: 4 / 3;
  height: auto;
  min-height: 0;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Servicios */
.services-grid {
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

.service-card,
.service-item {
  min-width: 0;
}

.service-image {
  aspect-ratio: 16 / 10;
  height: auto;
}

.service-image img {
  width: 100%;
  height: 100%;
  margin-bottom: 0;
  padding: 12px;
  object-fit: contain;
}

/* Detalle de producto */
.product-detail-image img {
  width: 100%;
  max-height: 650px;
  object-fit: contain;
}

.product-detail-info,
.product-detail-description {
  min-width: 0;
}

.product-detail-info h1,
.product-detail-description p,
.product-info h3,
.service-info p,
.event-item p,
.partner-card p,
.contact-card-detail,
.contact-card-title p {
  overflow-wrap: anywhere;
  word-break: normal;
}

/* Contacto */
.contact-info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-card,
.contact-column {
  min-width: 0;
}

.contact-card-image {
  height: auto;
  min-height: 180px;
  aspect-ratio: 16 / 9;
}

.contact-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contact-card-detail a {
  overflow-wrap: anywhere;
}

/* Filtros */
.products-filters {
  height: auto;
  min-height: 280px;
}

.search-form {
  width: 100%;
}

.filter-group,
.filter-actions {
  min-width: 0;
}

.filter-group input,
.filter-group select {
  width: 100%;
}

/* Alertas */
.contact-alert,
.page-alert {
  max-width: calc(100vw - 32px);
}

/* Tablet */
@media (max-width: 1024px) {

  section,
  .partners,
  .events,
  .products,
  .products-bestsellers,
  .products-cfm,
  .products-cross,
  .products-testers,
  .services,
  .services-cta,
  .related-products,
  .product-detail {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero {
    min-height: min(100svh, 900px);
  }

  .about {
    padding: 80px 32px;
    gap: 32px;
  }

  .about img {
    width: 38%;
  }

  .about .about-text {
    width: 62%;
  }

  .contact-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-detail-container {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-detail-image {
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
  }

  .search-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Móvil grande */
@media (max-width: 768px) {

  section,
  .partners,
  .events,
  .products,
  .products-bestsellers,
  .products-cfm,
  .products-cross,
  .products-testers,
  .services,
  .services-cta,
  .related-products,
  .product-detail,
  .contact,
  .services-intro,
  .products-filters {
    padding-left: 20px;
    padding-right: 20px;
  }

  section,
  .partners,
  .events,
  .products,
  .products-bestsellers,
  .products-cfm,
  .products-cross,
  .products-testers,
  .services,
  .related-products {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .hero {
    min-height: 100svh;
    background-position: center;
  }

  .hero-content {
    max-width: 680px;
    padding: 24px 20px;
  }

  .hero h1 {
    line-height: 1.15;
  }

  .about {
    flex-direction: column;
    padding-top: 60px;
    padding-bottom: 60px;
    text-align: center;
  }

  .about img,
  .about .about-text {
    width: 100%;
    max-width: 680px;
  }

  .about img {
    max-height: 420px;
    object-fit: cover;
    margin: 0 auto;
  }

  .about p {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .partner-grid,
  .event-list,
  .product-grid,
  .services-grid,
  .contact-info-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .partner-card,
  .event-item,
  .product-card,
  .service-card,
  .contact-card {
    width: 100%;
    max-width: 640px;
    margin-inline: auto;
  }

  .product-card {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .product-image {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .product-info {
    height: auto;
    min-height: 96px;
    padding: 16px;
  }

  .product-info h3 {
    text-align: center;
  }

  .services-intro {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .service-image {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .service-image img {
    height: 100%;
  }

  .product-detail-container {
    gap: 24px;
  }

  .product-detail-image {
    padding: 14px;
  }

  .product-detail-info h1 {
    font-size: clamp(1.75rem, 7vw, 2rem);
  }

  .product-detail-actions {
    flex-direction: column;
  }

  .product-detail-actions>*,
  .product-action-form,
  .product-action-form .btn-contact {
    width: 100%;
  }

  .contact-info,
  .contact-form {
    padding: 28px 20px;
  }

  .contact-card-image {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .search-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .filter-actions {
    grid-column: auto;
    flex-direction: column;
    width: 100%;
  }

  .btn-search,
  .btn-clear {
    width: 100%;
    min-width: 0;
  }

  .event-live-status {
    width: 100%;
  }

  .event-countdown-value {
    overflow-wrap: anywhere;
  }
}

/* Móvil compacto */
@media (max-width: 480px) {

  section,
  .partners,
  .events,
  .products,
  .products-bestsellers,
  .products-cfm,
  .products-cross,
  .products-testers,
  .services,
  .services-cta,
  .related-products,
  .product-detail,
  .contact,
  .services-intro,
  .products-filters {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-content {
    padding: 20px 16px;
  }

  .btn,
  .btn-services,
  .btn-back-products,
  .btn-contact,
  .contact-form button {
    width: 100%;
    max-width: 100%;
  }

  .about {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .about h2 {
    font-size: 1.75rem;
  }

  .about h3 {
    font-size: 1.35rem;
  }

  .partner-card,
  .event-item,
  .service-card,
  .contact-card {
    padding-left: 16px;
    padding-right: 16px;
  }

  .event-item {
    padding: 20px 16px;
  }

  .product-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .product-card {
    max-width: 100%;
  }

  .product-image {
    aspect-ratio: 1 / 1;
  }

  .services-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-image {
    aspect-ratio: 16 / 10;
  }

  .product-detail {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .product-detail-price,
  .product-detail-description {
    padding: 16px;
  }

  .contact-info,
  .contact-form {
    padding: 22px 16px;
  }

  .contact-card-content {
    padding: 22px 16px;
  }

  .contact-card-detail {
    padding: 14px;
    font-size: 0.95rem;
  }

  .products-filters {
    min-height: 0;
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .contact-alert,
  .page-alert {
    left: 16px;
    right: 16px;
    width: auto;
    max-width: none;
  }

  .event-status-badge {
    min-width: 0;
    width: 100%;
  }
}

/* Dispositivos táctiles: evita zoom exagerado de tarjetas al tocar */
@media (hover: none) {

  .product-card:hover,
  .product-card:hover .product-image img,
  .service-card:hover,
  .service-card:hover .service-image img,
  .partner-card:hover,
  .event-item:hover {
    transform: none;
  }
}

/* Preferencia del usuario: menos movimiento */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* =========================================================
   RESPONSIVE GLOBAL FINAL
   Ajustes finales para escritorio, tablet, móvil y pantallas
   pequeñas. Se coloca al final para prevalecer sobre reglas
   anteriores cuando sea necesario.
========================================================= */

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img,
video,
iframe,
svg {
  max-width: 100%;
}

img {
  display: block;
}

input,
select,
textarea,
button {
  max-width: 100%;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
a,
span {
  overflow-wrap: break-word;
}

.hero h1,
.contact h1,
.services-intro h2,
.product-detail-info h1 {
  font-size: clamp(1.9rem, 5vw, 2.625rem);
}

h2,
.products h2,
.products-bestsellers h2,
.products-cfm h2,
.products-cross h2,
.products-testers h2,
.related-products h2,
.results-header h2 {
  font-size: clamp(1.55rem, 4vw, 2rem);
}

@media (max-width: 1200px) {
  section,
  .partners,
  .events,
  .products,
  .products-bestsellers,
  .products-cfm,
  .products-cross,
  .products-testers,
  .services,
  .services-cta,
  .related-products,
  .product-detail,
  .contact {
    padding-left: 28px;
    padding-right: 28px;
  }

  .about {
    gap: 30px;
  }

  .about img {
    width: 35%;
  }

  .about .about-text {
    width: 60%;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: min(100svh, 900px);
  }

  .about {
    flex-direction: column;
    justify-content: center;
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .about img,
  .about .about-text {
    width: min(100%, 760px);
  }

  .about img {
    max-height: 420px;
    object-fit: cover;
  }

  .partner-grid,
  .event-list,
  .contact-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card {
    width: 100%;
    max-width: 100%;
  }

  .product-detail-container {
    grid-template-columns: 1fr;
  }

  .products-filters {
    height: auto;
    min-height: 0;
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .search-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  section,
  .partners,
  .events,
  .products,
  .products-bestsellers,
  .products-cfm,
  .products-cross,
  .products-testers,
  .services,
  .services-cta,
  .related-products,
  .product-detail,
  .contact,
  .services-intro,
  .products-filters {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    min-height: 100svh;
    background-position: center center;
  }

  .hero-content {
    width: 100%;
    padding: 24px 16px;
  }

  .hero h1 {
    line-height: 1.12;
  }

  .about {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .about img {
    width: 100%;
    max-height: none;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .partner-grid,
  .event-list,
  .contact-info-grid,
  .services-grid,
  .product-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .partner-card,
  .event-item,
  .service-card,
  .contact-card,
  .product-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .partner-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .event-image {
    width: 100%;
    height: clamp(160px, 56vw, 220px);
    aspect-ratio: auto;
    object-fit: contain;
    background: #f8fafc;
  }

  .product-card {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .product-image {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .product-info {
    height: auto;
    min-height: 96px;
    padding: 16px 14px;
  }

  .service-image {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .service-image img {
    width: 100%;
    height: 100%;
    margin-bottom: 0;
    padding: 12px;
    object-fit: contain;
  }

  .product-detail-image {
    padding: 12px;
  }

  .product-detail-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .product-detail-actions,
  .filter-actions {
    flex-direction: column;
  }

  .btn,
  .btn-services,
  .btn-back-products,
  .btn-contact,
  .btn-search,
  .btn-clear,
  .contact-form button {
    width: 100%;
  }

  .search-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .filter-actions {
    grid-column: auto;
  }

  .contact-info,
  .contact-form {
    padding: 24px 16px;
  }

  .contact-card-image {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .contact-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .contact-alert,
  .page-alert {
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
  }
}

@media (max-width: 380px) {
  section,
  .partners,
  .events,
  .products,
  .products-bestsellers,
  .products-cfm,
  .products-cross,
  .products-testers,
  .services,
  .services-cta,
  .related-products,
  .product-detail,
  .contact,
  .services-intro,
  .products-filters {
    padding-left: 12px;
    padding-right: 12px;
  }

  .partner-card,
  .event-item,
  .contact-card-content,
  .service-info {
    padding-left: 14px;
    padding-right: 14px;
  }

  .contact-info,
  .contact-form {
    padding-left: 14px;
    padding-right: 14px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .product-card:hover,
  .product-card:hover .product-image img,
  .service-card:hover,
  .service-card:hover .service-image img,
  .partner-card:hover,
  .event-item:hover,
  .btn:hover,
  .btn-services:hover {
    transform: none;
  }
}
