/* ========================================
   TUBOFLEX — Collapsible Plastic Tubes
   Spanish B2B Site · Static · 2026
   ======================================== */

:root {
  --brand-primary: #0ea5b7;
  --brand-primary-dark: #047481;
  --brand-accent: #f97316;
  --brand-ink: #0f172a;
  --brand-muted: #475569;
  --brand-soft: #f1f5f9;
  --brand-line: #e2e8f0;
  --brand-white: #ffffff;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 30px 80px rgba(15, 23, 42, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--brand-ink);
  background: var(--brand-white);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 14px;
}

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--brand-muted);
  max-width: 640px;
}

/* ========== NAV ========== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--brand-line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.logo__mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
}

.nav__menu {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav__menu a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--brand-muted);
  transition: color 0.2s var(--ease);
  position: relative;
}

.nav__menu a:hover,
.nav__menu a.is-active {
  color: var(--brand-ink);
}

.nav__menu a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--brand-primary);
  border-radius: 2px;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--brand-ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease);
  margin: 0 auto;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
  cursor: pointer;
  border: 0;
  font-family: inherit;
  white-space: nowrap;
}

.btn--primary {
  background: var(--brand-ink);
  color: white;
}

.btn--primary:hover {
  background: var(--brand-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--accent {
  background: var(--brand-primary);
  color: white;
}

.btn--accent:hover {
  background: var(--brand-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: transparent;
  color: var(--brand-ink);
  border: 1px solid var(--brand-line);
}

.btn--ghost:hover {
  border-color: var(--brand-ink);
  background: var(--brand-soft);
}

.btn--lg {
  padding: 16px 28px;
  font-size: 1rem;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(14, 165, 183, 0.15), transparent 60%),
              radial-gradient(900px 500px at 0% 10%, rgba(249, 115, 22, 0.06), transparent 60%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero__copy h1 span.hl {
  background: linear-gradient(120deg, var(--brand-primary), var(--brand-primary-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin-top: 20px;
  font-size: 1.15rem;
  color: var(--brand-muted);
  max-width: 520px;
}

.hero__cta {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--brand-line);
}

.hero__stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--brand-ink);
  letter-spacing: -0.02em;
}

.hero__stat-lbl {
  font-size: 0.82rem;
  color: var(--brand-muted);
  margin-top: 2px;
}

.hero__visual {
  position: relative;
  aspect-ratio: 4 / 5;
}

/* ========== TUBE ILLUSTRATION ========== */
.tube-stack {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.tube {
  position: absolute;
  width: 140px;
  height: 420px;
  border-radius: 70px 70px 12px 12px;
  box-shadow: var(--shadow-lg), inset -20px 0 40px rgba(0, 0, 0, 0.15), inset 20px 0 40px rgba(255, 255, 255, 0.25);
  transition: transform 0.6s var(--ease);
}

.tube::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 28px;
  background: #1f2937;
  border-radius: 30px 30px 6px 6px;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.3);
}

.tube::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 8%;
  right: 8%;
  height: 12px;
  background: #0f172a;
  border-radius: 2px;
}

.tube--1 {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  transform: rotate(-8deg) translate(-90px, 20px);
  z-index: 1;
}

.tube--2 {
  background: linear-gradient(135deg, #0ea5b7 0%, #047481 100%);
  z-index: 3;
  transform: rotate(0deg);
}

.tube--3 {
  background: linear-gradient(135deg, #f97316 0%, #c2410c 100%);
  transform: rotate(8deg) translate(90px, 30px);
  z-index: 2;
}

.hero__visual:hover .tube--1 { transform: rotate(-12deg) translate(-110px, 10px); }
.hero__visual:hover .tube--3 { transform: rotate(12deg) translate(110px, 20px); }

.tube__label {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.85;
}

.tube--1 .tube__label { color: #0f172a; }

/* ========== SECTIONS ========== */
section {
  padding: 80px 0;
}

.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section__head .lead {
  margin: 16px auto 0;
}

/* ========== TRUST BAR ========== */
.trust {
  padding: 40px 0;
  border-top: 1px solid var(--brand-line);
  border-bottom: 1px solid var(--brand-line);
  background: var(--brand-soft);
}

.trust__label {
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-muted);
  margin-bottom: 20px;
}

.trust__items {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
}

.trust__item {
  font-weight: 700;
  color: var(--brand-muted);
  opacity: 0.75;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

/* ========== FEATURE GRID ========== */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: white;
  border: 1px solid var(--brand-line);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}

.feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-primary);
}

.feature__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(14, 165, 183, 0.12), rgba(14, 165, 183, 0.04));
  color: var(--brand-primary);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.feature h3 {
  margin-bottom: 8px;
}

.feature p {
  color: var(--brand-muted);
  font-size: 0.98rem;
}

/* ========== PRODUCT SHOWCASE ========== */
.products {
  background: var(--brand-soft);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--brand-line);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-card__visual {
  height: 260px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
}

.mini-tube {
  width: 80px;
  height: 220px;
  border-radius: 40px 40px 6px 6px;
  position: relative;
  box-shadow: var(--shadow-md), inset -10px 0 20px rgba(0, 0, 0, 0.15);
}

.mini-tube::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 18px;
  background: #0f172a;
  border-radius: 18px 18px 4px 4px;
}

.mini-tube::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 10%;
  right: 10%;
  height: 7px;
  background: #0f172a;
  border-radius: 2px;
}

.product-card__body {
  padding: 24px;
}

.product-card__tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--brand-primary);
  background: rgba(14, 165, 183, 0.1);
  border-radius: 999px;
  margin-bottom: 10px;
}

.product-card h3 {
  margin-bottom: 8px;
}

.product-card__specs {
  list-style: none;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--brand-line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-card__specs li {
  font-size: 0.88rem;
  color: var(--brand-muted);
  display: flex;
  justify-content: space-between;
}

.product-card__specs strong {
  color: var(--brand-ink);
  font-weight: 600;
}

/* ========== INDUSTRY GRID ========== */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.industry {
  padding: 40px 28px;
  background: white;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.4s var(--ease);
}

.industry:hover {
  background: var(--brand-ink);
  color: white;
  transform: translateY(-4px);
  border-color: var(--brand-ink);
}

.industry:hover .industry__icon {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.industry:hover p {
  color: rgba(255, 255, 255, 0.7);
}

.industry__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--brand-soft);
  color: var(--brand-primary);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  font-size: 1.4rem;
  transition: all 0.4s;
}

.industry h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.industry p {
  font-size: 0.85rem;
  color: var(--brand-muted);
}

/* ========== PROCESS ========== */
.process {
  background: var(--brand-ink);
  color: white;
}

.process h2 { color: white; }

.process .section__head .lead {
  color: rgba(255, 255, 255, 0.65);
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.step {
  position: relative;
  padding: 28px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

.step__num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: white;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 16px;
}

.step h3 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.step p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
}

/* ========== COLORS PAGE ========== */
.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}

.swatch {
  padding: 12px;
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--brand-line);
  text-align: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.swatch:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.swatch__chip {
  aspect-ratio: 1;
  border-radius: 10px;
  margin-bottom: 10px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.swatch__name {
  font-size: 0.85rem;
  font-weight: 600;
}

.swatch__code {
  font-size: 0.72rem;
  color: var(--brand-muted);
  font-family: "Courier New", monospace;
}

/* ========== CTA BAND ========== */
.cta-band {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.cta-band h2 {
  color: white;
  max-width: 720px;
  margin: 0 auto 16px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto 32px;
  font-size: 1.1rem;
}

.cta-band .btn {
  background: white;
  color: var(--brand-primary-dark);
}

.cta-band .btn:hover {
  background: var(--brand-ink);
  color: white;
}

/* ========== FORM ========== */
.form-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
}

.form {
  background: white;
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--brand-line);
  box-shadow: var(--shadow-sm);
}

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

.form__field {
  margin-bottom: 18px;
}

.form__field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--brand-ink);
}

.form__field input,
.form__field select,
.form__field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--brand-line);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: 0;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 183, 0.15);
}

.form__field textarea {
  resize: vertical;
  min-height: 120px;
}

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

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-item__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.contact-item h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.contact-item p {
  color: var(--brand-muted);
  font-size: 0.95rem;
}

/* ========== FOOTER ========== */
.footer {
  background: #020617;
  color: #94a3b8;
  padding: 60px 0 24px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer h4 {
  color: white;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer a {
  color: #94a3b8;
  font-size: 0.92rem;
  transition: color 0.2s;
}

.footer a:hover {
  color: white;
}

.footer__brand .logo__mark {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
}

.footer__brand p {
  margin-top: 16px;
  font-size: 0.92rem;
  max-width: 340px;
}

.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
}

.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  place-items: center;
  transition: background 0.2s;
}

.socials a:hover {
  background: var(--brand-primary);
  color: white;
}

/* ========== PAGE HEADER ========== */
.page-hero {
  padding: 80px 0 60px;
  background: linear-gradient(180deg, var(--brand-soft) 0%, white 100%);
  text-align: center;
}

.page-hero .lead {
  margin: 16px auto 0;
}

/* ========== FAQ ========== */
.faq {
  max-width: 820px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--brand-line);
  padding: 20px 0;
}

.faq__q {
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  list-style: none;
  font-size: 1.05rem;
}

.faq__q::-webkit-details-marker { display: none; }

.faq__q::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--brand-primary);
  font-weight: 400;
  transition: transform 0.3s;
}

details[open] .faq__q::after {
  content: "−";
}

.faq__a {
  color: var(--brand-muted);
  padding-top: 12px;
  font-size: 0.98rem;
}

/* ========== REVEAL ANIMATION ========== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }

/* ========== RESPONSIVE ========== */
@media (max-width: 960px) {
  .hero__grid,
  .form-grid { grid-template-columns: 1fr; }
  .hero__visual { aspect-ratio: 1 / 1; max-height: 500px; }
  .features__grid,
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .process__steps { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .form__row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  section { padding: 60px 0; }
  .hero { padding: 48px 0 72px; }
  .nav__menu { display: none; }
  .nav__toggle { display: flex; }
  .nav__menu.is-open {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--brand-line);
    box-shadow: var(--shadow-md);
  }
  .hero__stats { grid-template-columns: 1fr; gap: 12px; padding-top: 24px; }
  .features__grid,
  .product-grid,
  .industries-grid,
  .process__steps { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; text-align: center; }
}
