/* ==========================================================================
   Más Global — Componentes
   ========================================================================== */

/* Botones ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 1rem 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  min-height: 48px;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--petrol-700);
  color: var(--white);
}
.btn-primary:hover { background: var(--petrol-800); box-shadow: var(--shadow-md); }

.btn-secondary {
  background: transparent;
  color: var(--petrol-900);
  border-color: var(--accent-line);
}
.btn-secondary:hover { border-color: var(--petrol-700); background: var(--mist-100); }

.btn-ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

.btn-whatsapp {
  background: #25d366;
  color: #06341f;
}
.btn-whatsapp:hover { background: #20bd5a; }

.btn-block { width: 100%; }

.btn-sm { padding: 0.7rem 1.25rem; font-size: 0.72rem; min-height: 40px; }

.btn svg { width: 18px; height: 18px; flex: none; }

/* Header --------------------------------------------------------------------*/

site-header { display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  width: 100%;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: height var(--dur-med) var(--ease), background-color var(--dur-med) var(--ease), border-color var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
}

.site-header.is-scrolled {
  height: var(--header-h-scrolled);
  background: rgba(255,255,255,0.97);
  border-bottom-color: var(--mist-200);
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: none;
}
.brand img { height: 52px; width: auto; transition: height var(--dur-med) var(--ease); }
.site-header.is-scrolled .brand img { height: 42px; }
@media (max-width: 480px) {
  .brand img { height: 40px; }
  .site-header.is-scrolled .brand img { height: 34px; }
}

.main-nav { display: none; }

@media (min-width: 960px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-inline: auto;
  }
  .main-nav a {
    font-family: var(--font-display);
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--ink-soft);
    padding-block: 0.4rem;
    position: relative;
  }
  .main-nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -4px;
    height: 2px;
    background: var(--petrol-600);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur-fast) var(--ease);
  }
  .main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--petrol-900); }
  .main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: none;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  color: var(--petrol-900);
  transition: background var(--dur-fast) var(--ease);
}
.icon-link:hover { background: var(--mist-200); }
.icon-link svg { width: 20px; height: 20px; }

.header-actions .btn { display: none; }
@media (min-width: 640px) {
  .header-actions .btn { display: inline-flex; }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  flex: none;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { display: none; }
.nav-toggle svg { width: 26px; height: 26px; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
}

/* Mobile menu ---------------------------------------------------------------*/

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--white);
  display: flex;
  flex-direction: column;
  padding: var(--space-3);
  transform: translateX(100%);
  transition: transform var(--dur-med) var(--ease);
  visibility: hidden;
}
.mobile-nav.is-open {
  transform: translateX(0);
  visibility: visible;
}
.mobile-nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}
.mobile-nav-top img { height: 34px; }
.mobile-nav-close { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.mobile-nav-close svg { width: 24px; height: 24px; }

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.mobile-nav-links a {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--petrol-900);
  padding-block: 0.6rem;
  border-bottom: 1px solid var(--mist-200);
}

.mobile-nav-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-top: var(--space-3);
}
.mobile-nav-footer .btn { width: 100%; }
.mobile-nav-social { display: flex; gap: var(--space-2); }

body.nav-open { overflow: hidden; }

/* Section heading ------------------------------------------------------------*/

.section-heading {
  max-width: 640px;
  margin-bottom: var(--space-5);
}
.section-heading--center { margin-inline: auto; text-align: center; }
.section-heading--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
  max-width: none;
}

/* Product cards --------------------------------------------------------------*/

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--mist-200);
  transition: box-shadow var(--dur-med) var(--ease), transform var(--dur-med) var(--ease), border-color var(--dur-med) var(--ease);
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: transparent;
}

.product-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.06); }

.product-card__body {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}
.product-card__category {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--petrol-600);
}
.product-card__title { font-size: 1.15rem; }
.product-card__tagline { color: var(--ink-soft); font-size: 0.92rem; }

.product-card__link {
  margin-top: auto;
  padding-top: var(--space-2);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--petrol-900);
}
.product-card__link svg { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease); }
.product-card:hover .product-card__link svg { transform: translateX(4px); }

/* Placeholder de imagen (para productos/aplicaciones sin foto real todavía) ---*/

.img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, var(--mist-100), var(--mist-200));
  overflow: hidden;
}
.img-placeholder::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    repeating-linear-gradient(115deg, rgba(23,73,122,0.05) 0 2px, transparent 2px 42px);
}
.img-placeholder svg {
  width: 34%;
  max-width: 84px;
  color: var(--slate-300);
  position: relative;
  z-index: 1;
}
.img-placeholder__label {
  position: absolute;
  bottom: 10px;
  left: 0; right: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-400);
  z-index: 1;
}

/* Diferenciales ---------------------------------------------------------------*/

.differentiators {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 768px) {
  .differentiators { grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
}
.differentiator {
  padding-top: var(--space-3);
  border-top: 1px solid var(--mist-200);
}
.differentiator__icon { width: 30px; height: 30px; color: var(--petrol-600); margin-bottom: var(--space-2); }
.differentiator h3 { margin-bottom: 0.5rem; }
.differentiator p { color: var(--ink-soft); font-size: 0.95rem; max-width: 34ch; }

/* Instagram -------------------------------------------------------------------*/

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-1);
}
@media (min-width: 640px) {
  .instagram-grid { grid-template-columns: repeat(6, 1fr); gap: 0.6rem; }
}
.instagram-grid a {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}
.instagram-grid a img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-fast) var(--ease); }
.instagram-grid a:hover img { transform: scale(1.06); }

/* CTA final ---------------------------------------------------------------------*/

.cta-band {
  background: linear-gradient(120deg, var(--petrol-900), var(--petrol-700));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-4);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}
.cta-band__logo { height: 40px; width: auto; filter: brightness(0) invert(1); opacity: 0.92; margin-bottom: var(--space-1); }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.82); max-width: 44ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; margin-top: var(--space-1); }

/* Footer --------------------------------------------------------------------------*/

.site-footer {
  background: var(--petrol-900);
  color: rgba(255,255,255,0.72);
  padding-block: var(--space-6) var(--space-4);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-4); }
}
.footer-brand img { height: 36px; margin-bottom: var(--space-2); filter: brightness(0) invert(1); }
.footer-brand p { max-width: 32ch; font-size: 0.9rem; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a, .footer-col address { font-size: 0.92rem; font-style: normal; transition: color var(--dur-fast) var(--ease); }
.footer-col a:hover { color: var(--white); }
.footer-social { display: flex; gap: 0.7rem; margin-top: var(--space-2); }
.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.footer-social a:hover { background: rgba(255,255,255,0.1); }
.footer-social svg { width: 17px; height: 17px; }

.footer-bottom {
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255,255,255,0.14);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: space-between;
  font-size: 0.8rem;
}
.footer-bottom ul { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--white); }

/* WhatsApp flotante -----------------------------------------------------------------*/

.whatsapp-float {
  position: fixed;
  right: var(--space-2);
  bottom: var(--space-2);
  z-index: 250;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #25d366;
  color: #06341f;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 26px rgba(6, 52, 31, 0.32);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.whatsapp-float:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(6, 52, 31, 0.4); }
.whatsapp-float svg { width: 22px; height: 22px; flex: none; }
.whatsapp-float__label { white-space: nowrap; }

@media (max-width: 560px) {
  .whatsapp-float { right: var(--space-1); bottom: var(--space-1); padding: 0.85rem; }
  .whatsapp-float__label { display: none; }
}

/* Breadcrumb ------------------------------------------------------------------------*/

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.82rem;
  color: var(--slate-400);
  margin-bottom: var(--space-3);
}
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--petrol-700); }
.breadcrumb svg { width: 12px; height: 12px; }

/* Filtros / buscador de catálogo -----------------------------------------------------*/

.catalog-toolbar {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
@media (min-width: 860px) {
  .catalog-toolbar { flex-direction: row; align-items: center; justify-content: space-between; }
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.filter-tab {
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--mist-200);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: all var(--dur-fast) var(--ease);
}
.filter-tab:hover { border-color: var(--petrol-500); color: var(--petrol-900); }
.filter-tab[aria-pressed="true"] {
  background: var(--petrol-900);
  border-color: var(--petrol-900);
  color: var(--white);
}

.search-field {
  position: relative;
  flex: none;
  width: 100%;
}
@media (min-width: 860px) { .search-field { width: 260px; } }
.search-field input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.6rem;
  border: 1px solid var(--mist-200);
  border-radius: var(--radius-pill);
  background: var(--white);
}
.search-field input:focus { border-color: var(--petrol-600); }
.search-field svg {
  position: absolute;
  left: 0.9rem; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--slate-400);
}

.empty-state {
  text-align: center;
  padding: var(--space-6) var(--space-2);
  color: var(--ink-soft);
}

/* Galería / masonry aplicaciones -----------------------------------------------------*/

.masonry {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
}
@media (min-width: 640px) {
  .masonry { grid-template-columns: repeat(4, 1fr); }
}

.masonry-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  grid-column: span 2;
  aspect-ratio: 4/3;
}
@media (min-width: 640px) {
  .masonry-item--wide { grid-column: span 2; }
  .masonry-item--tall { grid-row: span 2; aspect-ratio: 3/4; }
  .masonry-item:not(.masonry-item--wide) { grid-column: span 2; }
}

.masonry-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.masonry-item:hover img { transform: scale(1.05); }

.masonry-item__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--space-2);
  background: linear-gradient(to top, rgba(14,44,72,0.82), transparent);
  color: var(--white);
  transform: translateY(8px);
  opacity: 0;
  transition: all var(--dur-fast) var(--ease);
}
.masonry-item:hover .masonry-item__caption,
.masonry-item:focus-within .masonry-item__caption { transform: translateY(0); opacity: 1; }
.masonry-item__caption strong { display: block; font-family: var(--font-display); font-size: 0.95rem; }
.masonry-item__caption span { font-size: 0.78rem; color: rgba(255,255,255,0.82); }

@media (max-width: 639px) {
  .masonry-item__caption { transform: translateY(0); opacity: 1; background: linear-gradient(to top, rgba(14,44,72,0.78), transparent 70%); }
}

/* Formulario de contacto ------------------------------------------------------------*/

.form-field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: var(--space-3); }
.form-field label { font-family: var(--font-display); font-size: 0.8rem; font-weight: 600; color: var(--petrol-900); }
.form-field input, .form-field textarea {
  border: 1px solid var(--mist-200);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  background: var(--white);
  min-height: 48px;
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--petrol-600); }
.form-note { font-size: 0.78rem; color: var(--slate-400); margin-top: var(--space-1); }
.form-status { font-size: 0.9rem; margin-top: var(--space-2); }
.form-status[data-state="ok"] { color: #1a7a44; }
.form-status[data-state="error"] { color: #b3261e; }

/* Contact cards ---------------------------------------------------------------------*/

.contact-methods { display: grid; grid-template-columns: 1fr; gap: var(--space-2); }
@media (min-width: 640px) { .contact-methods { grid-template-columns: repeat(2, 1fr); } }
.contact-method {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-3);
  border: 1px solid var(--mist-200);
  border-radius: var(--radius-md);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.contact-method:hover { border-color: var(--petrol-500); box-shadow: var(--shadow-sm); }
.contact-method__icon {
  width: 44px; height: 44px; flex: none;
  border-radius: 50%;
  background: var(--mist-100);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--petrol-700);
}
.contact-method__icon svg { width: 20px; height: 20px; }
.contact-method h3 { font-size: 1rem; margin-bottom: 0.2rem; }
.contact-method p { font-size: 0.88rem; color: var(--ink-soft); }

/* Specs table (detalle de producto) --------------------------------------------------*/

.spec-list { display: flex; flex-direction: column; }
.spec-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--mist-200);
  font-size: 0.92rem;
}
.spec-row dt { color: var(--ink-soft); }
.spec-row dd { margin: 0; font-weight: 600; color: var(--petrol-900); text-align: right; }

.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--mist-100);
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.check-list { display: flex; flex-direction: column; gap: 0.6rem; }
.check-list li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.94rem; color: var(--ink-soft); }
.check-list svg { width: 18px; height: 18px; flex: none; color: var(--petrol-600); margin-top: 2px; }

.placeholder-note {
  font-size: 0.82rem;
  color: var(--slate-400);
  font-style: italic;
}

/* Badge destacado */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--mist-100);
  color: var(--petrol-700);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
