/* ══════════════════════════════════════════════════
   ROTOMUNDO — Shared Styles
   Fuentes: Oswald (headings) + DM Sans (body)
══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=DM+Sans:wght@300;400;500;600;700&display=swap');

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'DM Sans', sans-serif;
  color: #1a1a2e;
  background: #fff;
  line-height: 1.65;
  overflow-x: hidden;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ─── VARIABLES ─── */
:root {
  --navy:        #001a33;
  --navy-deep:   #000d1a;
  --navy-mid:    #00264d;
  --sky:         #0099CC;
  --sky-dark:    #007aaa;
  --sky-light:   #e0f5fc;
  --gold:        #c8922a;
  --gold-light:  #e6b84a;
  --gold-subtle: rgba(200,146,42,.12);
  --white:       #ffffff;
  --gray:        #f4f6f8;
  --gray2:       #e4e8ee;
  --gray3:       #6b7280;
  --text:        #0f1923;
  --green:       #25D366;
  --nav-h:       68px;
  --radius:      8px;
  --radius-lg:   16px;
  --shadow:      0 2px 16px rgba(0,26,51,.08);
  --shadow-lg:   0 8px 40px rgba(0,26,51,.14);
  --shadow-xl:   0 16px 64px rgba(0,26,51,.20);
  --trans:       220ms ease;
  --trans-slow:  380ms ease;
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4, h5 {
  font-family: 'Oswald', sans-serif;
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: .01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); font-weight: 700; letter-spacing: .02em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 700; letter-spacing: .02em; }
h3 { font-size: clamp(1rem, 1.6vw, 1.2rem); font-weight: 600; letter-spacing: .01em; }
h4 { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }

/* ─── LAYOUT ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.section   { padding: 104px 0; }
.section-sm { padding: 64px 0; }

/* ─── SECTION LABELS ─── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sky);
  background: rgba(0,153,204,.08);
  border: 1px solid rgba(0,153,204,.2);
  border-radius: 3px;
  padding: 5px 12px;
  margin-bottom: 20px;
}
.section-label::before { display: none; }
.section-title {
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: .01em;
  line-height: 1.15;
}
.section-sub {
  color: #4b5563;
  font-size: .95rem;
  max-width: 520px;
  line-height: 1.85;
  font-weight: 400;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .04em;
  transition: background var(--trans), color var(--trans), transform var(--trans), box-shadow var(--trans);
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary  { background: var(--sky);   color: #fff; }
.btn-primary:hover  { background: var(--sky-dark); box-shadow: 0 8px 24px rgba(0,153,204,.35); }
.btn-navy    { background: var(--navy);  color: #fff; }
.btn-navy:hover    { background: var(--navy-mid);  box-shadow: 0 8px 24px rgba(0,51,102,.35); }
.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.55);
}
.btn-outline-white:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-outline-sky {
  background: transparent;
  color: var(--sky);
  border: 2px solid var(--sky);
}
.btn-outline-sky:hover { background: var(--sky); color: #fff; }
.btn-wa { background: var(--green); color: #fff; }
.btn-wa:hover { background: #1ebe5a; box-shadow: 0 8px 24px rgba(37,211,102,.35); }
.btn-sm { padding: 10px 20px; font-size: .95rem; }
.btn-lg { padding: 18px 40px; font-size: 1.15rem; }

/* ─── FADE-IN ON SCROLL ─── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible { opacity: 1; transform: none; }
.fade-in[data-d="1"] { transition-delay: .08s; }
.fade-in[data-d="2"] { transition-delay: .18s; }
.fade-in[data-d="3"] { transition-delay: .28s; }
.fade-in[data-d="4"] { transition-delay: .38s; }
.fade-in[data-d="5"] { transition-delay: .48s; }
.fade-in[data-d="6"] { transition-delay: .58s; }
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
}

/* ─── HERO ENTRANCE ─── */
.h-enter {
  opacity: 0;
  transform: translateY(20px);
  animation: hEnter .72s cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes hEnter { to { opacity: 1; transform: none; } }
.h-enter.d1 { animation-delay: .05s; }
.h-enter.d2 { animation-delay: .22s; }
.h-enter.d3 { animation-delay: .38s; }
.h-enter.d4 { animation-delay: .54s; }
.h-enter.d5 { animation-delay: .68s; }
@media (prefers-reduced-motion: reduce) {
  .h-enter { animation: none; opacity: 1; transform: none; }
}

/* ══════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: box-shadow var(--trans);
}
#navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.nav-logo-icon {
  height: 48px;
  width: auto;
  flex-shrink: 0;
}
.nav-logo-text {
  display: none;
}
.nav-logo svg { flex-shrink: 0; }
.nav-logo .logo-accent { color: var(--sky); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: .9rem;
  letter-spacing: .01em;
  color: rgba(255,255,255,.75);
  padding: 8px 16px;
  border-radius: 6px;
  transition: color var(--trans), background var(--trans);
  position: relative;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.1); }
.nav-links a.nav-active { color: #fff; font-weight: 600; }
.nav-links a.nav-active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 16px; right: 16px;
  height: 2px;
  background: var(--sky);
  border-radius: 2px;
}
.nav-cta-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--sky);
  color: #fff;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: .88rem;
  transition: background var(--trans), transform var(--trans);
}
.nav-cta-btn:hover { background: var(--sky-dark); transform: translateY(-1px); }
.nav-cta-btn svg { flex-shrink: 0; }
/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--trans), opacity var(--trans);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: #fff;
  padding: 12px 24px 28px;
  border-top: 1px solid var(--gray2);
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
  z-index: 199;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  padding: 14px 0;
  border-bottom: 1px solid var(--gray2);
}
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu .nav-cta-btn { display: flex; margin-top: 16px; width: 100%; justify-content: center; color: #fff; }
@media (max-width: 860px) {
  .nav-links, .nav-cta-btn { display: none; }
  .hamburger { display: flex; }
}

/* ══════════════════════════════════════════════════
   PAGE HERO (short, for inner pages)
══════════════════════════════════════════════════ */
.page-hero {
  background: linear-gradient(135deg, #001020 0%, var(--navy) 55%, #004d80 100%);
  padding: calc(var(--nav-h) + 64px) 0 72px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(0,153,204,.14) 0%, transparent 60%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: rgba(255,255,255,.45);
  margin-bottom: 20px;
  font-family: 'Oswald', sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.page-breadcrumb a { color: rgba(255,255,255,.45); transition: color var(--trans); }
.page-breadcrumb a:hover { color: var(--sky); }
.page-breadcrumb span { color: var(--sky); }
.page-hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--white);
  max-width: 640px;
  margin-bottom: 16px;
}
.page-hero-title em { font-style: normal; color: var(--sky); }
.page-hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.62);
  max-width: 520px;
  line-height: 1.75;
}

/* ══════════════════════════════════════════════════
   PRODUCT CARDS (shared)
══════════════════════════════════════════════════ */
/* ── ProductCard (estilo componente React) ── */
.prod-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--gray2);
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
  cursor: pointer;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s ease;
}
.prod-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
}
.prod-img {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  overflow: hidden;
  position: relative;
}
.prod-img img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  transition: transform .35s ease;
}
.prod-card:hover .prod-img img { transform: scale(1.06); }
.prod-badge {
  position: absolute;
  top: 0; left: 0;
  background: linear-gradient(135deg, var(--navy), var(--sky));
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
}
.prod-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 6px;
}
.prod-name {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.25;
}
.prod-tagline {
  font-size: .82rem;
  color: var(--gray3);
  line-height: 1.4;
}
.prod-capacity {
  font-family: 'Oswald', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-top: 8px;
}
.prod-offer-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  justify-content: center;
}
.prod-garantia-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fefce8;
  border: 1px solid #fde047;
  border-radius: 100px;
  padding: 4px 12px;
  font-size: .78rem;
  font-weight: 600;
  color: #854d0e;
}
.prod-cta {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--navy);
  color: #fff;
  padding: 12px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  margin-top: 16px;
  transition: background var(--trans), transform var(--trans);
  cursor: pointer;
  border: none;
}
.prod-cta:hover { background: var(--sky); transform: translateY(-1px); }

/* Spec rows — usados en catálogo detalle */
.prod-specs { margin-bottom: 18px; width: 100%; text-align: left; }
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--gray2);
  font-size: .86rem;
}
.spec-row:last-child { border-bottom: none; }
.spec-label { color: var(--gray3); }
.spec-val { font-weight: 600; color: var(--text); }
.spec-val.garantia { color: var(--sky-dark); font-weight: 700; }

/* ══════════════════════════════════════════════════
   TABS
══════════════════════════════════════════════════ */
.tabs {
  display: flex;
  background: var(--gray2);
  border-radius: 12px;
  padding: 5px;
  gap: 6px;
  width: fit-content;
  margin: 0 auto 48px;
}
.tab-btn {
  padding: 11px 32px;
  border-radius: 9px;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--gray3);
  background: transparent;
  transition: background var(--trans), color var(--trans), box-shadow var(--trans);
  cursor: pointer;
  border: none;
}
.tab-btn.active {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(0,51,102,.25);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ══════════════════════════════════════════════════
   FLOATING WHATSAPP
══════════════════════════════════════════════════ */
.wa-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 300;
  width: 58px; height: 58px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  transition: transform var(--trans), box-shadow var(--trans);
  cursor: pointer;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.6); }
.wa-float svg { width: 30px; height: 30px; color: #fff; }
.wa-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,.4);
  animation: waPulse 2s ease-out infinite;
}
@keyframes waPulse {
  0%   { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,.55);
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-logo-text { filter: brightness(0) invert(1); }
.footer-tagline {
  font-size: .9rem;
  line-height: 1.75;
  margin-bottom: 24px;
  max-width: 280px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--trans);
  cursor: pointer;
}
.footer-social a:hover { background: var(--sky); }
.footer-social svg { width: 17px; height: 17px; color: #fff; }
.footer-col h5 {
  font-family: 'Oswald', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  font-size: .88rem;
  color: rgba(255,255,255,.45);
  transition: color var(--trans);
}
.footer-col ul a:hover { color: var(--white); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: .88rem;
}
.footer-contact-item svg { flex-shrink: 0; color: var(--sky); margin-top: 1px; }
.footer-contact-item a { color: rgba(255,255,255,.55); transition: color var(--trans); }
.footer-contact-item a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: .82rem;
}
.footer-bottom a { color: rgba(255,255,255,.4); transition: color var(--trans); }
.footer-bottom a:hover { color: var(--white); }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ══════════════════════════════════════════════════
   PROD GRID
══════════════════════════════════════════════════ */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .prod-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .prod-grid { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════
   SHARED SCROLL REVEAL INIT
══════════════════════════════════════════════════ */
