/* Cartfoam Alliance Site - Custom Premium Stylesheet */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* Reset and Variables */
:root {
  --bg-primary: #03060b;
  --bg-secondary: #070d19;
  --bg-sidebar: #020407;
  --text-primary: #ffffff;
  --text-secondary: #8a99ad;
  --text-muted: #4e5d78;
  
  /* Brand Colors */
  --accent-orange: #ff9f1c;
  --accent-orange-hover: #f38d00;
  --accent-gold: #d4a276;
  --accent-coral: #e76f51;
  
  /* Foam Colors */
  --foam-white: #ffffff;
  --foam-black: #1a1b1e;
  --foam-pink: #ff70a6;
  --cardboard-brown: #a27b5c;
  --cardboard-light: #d4a276;

  /* Glassmorphism */
  --glass-bg: rgba(7, 13, 25, 0.65);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-hover-border: rgba(255, 159, 28, 0.3);
  
  /* Dimensions & Transitions */
  --sidebar-width: 260px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

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

/* Hide default cursor on desktop */
@media (min-width: 992px) {
  body, a, button, input, select, label {
    cursor: none !important;
  }
}

html {
  scroll-behavior: initial; /* Managed by Lenis */
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Awwwards Custom Cursor Follower */
#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--accent-orange);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              height 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: none; /* Displayed via JS */
}

.cursor-dot {
  width: 4px;
  height: 4px;
  background-color: var(--accent-orange);
  border-radius: 50%;
  transition: opacity 0.2s ease;
}

.cursor-text {
  font-family: 'Outfit', sans-serif;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #000000;
  text-transform: uppercase;
  position: absolute;
  opacity: 0;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

/* Cursor States */
#custom-cursor.hovered {
  width: 48px;
  height: 48px;
  background-color: rgba(255, 159, 28, 0.12);
  border-color: var(--accent-orange);
}
#custom-cursor.hovered .cursor-dot {
  transform: scale(1.5);
}

#custom-cursor.drag-mode {
  width: 68px;
  height: 68px;
  background-color: var(--accent-orange);
  border-color: var(--accent-orange);
}
#custom-cursor.drag-mode .cursor-dot {
  opacity: 0;
}
#custom-cursor.drag-mode .cursor-text {
  opacity: 1;
}

#custom-cursor.view-mode {
  width: 68px;
  height: 68px;
  background-color: #ffffff;
  border-color: #ffffff;
}
#custom-cursor.view-mode .cursor-dot {
  opacity: 0;
}
#custom-cursor.view-mode .cursor-text {
  opacity: 1;
}

/* Background Stars and Black Holes Canvas */
#space-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}

/* Layout Wrapper */
.app-container {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Sidebar Navigation */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--glass-border);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  height: 100vh;
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 2.5rem 1.5rem;
  transition: var(--transition-smooth);
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 3rem;
  text-decoration: none;
}

.logo-img {
  width: 80px;
  height: auto;
  margin-bottom: 0.8rem;
  transition: var(--transition-smooth);
}

.logo-container:hover .logo-img {
  transform: scale(1.05) rotate(2deg);
}

.logo-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1.2;
}

.logo-subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

.logo-tagline {
  font-family: 'Outfit', sans-serif;
  font-size: 0.55rem;
  font-weight: 500;
  color: var(--accent-orange);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: auto;
  width: 100%;
}

.nav-item {
  width: 100%;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1.2rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 12px;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.nav-link i {
  font-size: 1rem;
  width: 20px;
  text-align: center;
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.03);
}

.nav-item.active .nav-link {
  color: var(--accent-orange);
  background-color: rgba(255, 159, 28, 0.08);
  border-color: rgba(255, 159, 28, 0.15);
}

.nav-item.active .nav-link i {
  transform: scale(1.1);
  color: var(--accent-orange);
}

.sidebar-footer {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1.5rem;
}

/* Mobile Toggle Menu */
.menu-toggle {
  display: none;
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 1000;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.menu-toggle:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

/* Main Content Area */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 0;
  position: relative;
  width: calc(100% - var(--sidebar-width));
}

/* Base Section Styling */
.section {
  padding: 8rem 5rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.section-title span {
  display: inline-block;
}

.section-title .highlight {
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 4rem;
  max-width: 620px;
  line-height: 1.6;
}

/* Glass Card Helper */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: var(--glass-hover-border);
  box-shadow: 0 20px 45px rgba(255, 159, 28, 0.05);
}

/* Premium Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-coral) 100%);
  color: #000000;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  padding: 1rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(255, 159, 28, 0.35);
}

.btn-primary i {
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(255, 159, 28, 0.5);
  color: #000000;
}

.btn-primary:hover i {
  transform: translateX(4px);
}

/* HERO SECTION (INICIO) */
#inicio {
  height: 100vh;
  min-height: 800px;
  display: flex;
  align-items: center;
  padding: 0 5rem;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  position: relative;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  background-image: url('assets/hero-bg.png');
  background-size: cover;
  background-position: center left;
  z-index: -1;
  opacity: 0.45;
  mask-image: linear-gradient(to right, transparent 0%, black 30%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 30%);
}

.hero-dark-grad {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--bg-primary) 40%, rgba(3, 6, 11, 0.8) 60%, rgba(3, 6, 11, 0.2) 100%);
  z-index: -1;
}

.hero-content {
  width: 45%;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-subtitle-top {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent-orange);
  letter-spacing: 3px;
  font-size: 0.9rem;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 4.2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
}

.hero-title .highlight {
  display: block;
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 500px;
}

.hero-btn-container {
  margin-top: 1.5rem;
}

/* 3D Hero Canvas Container */
#hero-canvas-container {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  z-index: 5;
}

#hero-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ISO Certificate Floating Card - Matches WEB2.png */
.hero-cert-badge {
  position: absolute;
  bottom: 22%;
  right: 22%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.8rem;
  z-index: 15;
  background: rgba(4, 7, 13, 0.85);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  animation: floatBadge 4s ease-in-out infinite;
  pointer-events: auto;
}

.cert-badge-icon {
  font-size: 2rem;
  color: var(--accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-badge-info h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.cert-badge-info p {
  color: var(--accent-orange);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

@keyframes floatBadge {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(-1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* Hero Badge Cards at bottom */
.hero-badges-wrapper {
  position: absolute;
  bottom: 3rem;
  left: 5rem;
  right: 5rem;
  z-index: 10;
  display: flex;
  gap: 2rem;
  pointer-events: none;
}

.hero-badge-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.8rem;
  background: rgba(7, 13, 25, 0.75);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  flex: 1;
  pointer-events: auto;
}

.hero-badge-icon {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  background: rgba(255, 159, 28, 0.1);
  border: 1px solid rgba(255, 159, 28, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-orange);
  font-size: 1.25rem;
}

.hero-badge-info h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.15rem;
}

.hero-badge-info p {
  color: var(--text-secondary);
  font-size: 0.75rem;
}

/* UNIFIED CALCULATOR CARD - Matches WEB2.png */
.calc-container-card {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  min-height: 520px;
  border-radius: 24px;
  overflow: hidden;
}

/* Left Visualizer */
.visualizer-side {
  padding: 3rem;
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  height: 100%;
}

.visualizer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  z-index: 5;
}

.visualizer-title h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.visualizer-controls-tip {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

#box-canvas-container {
  width: 100%;
  height: 360px;
  position: relative;
  z-index: 2;
  cursor: grab;
}

#box-canvas-container:active {
  cursor: grabbing;
}

#box-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Right Configurator */
.inputs-side {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.01);
  height: 100%;
}

.calc-form {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.form-group-material {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.form-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
}

.radio-group {
  display: flex;
  gap: 2rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.radio-label:hover {
  color: var(--text-primary);
}

.radio-label input[type="radio"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  outline: none;
  background-color: rgba(255, 255, 255, 0.02);
  display: grid;
  place-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.radio-label input[type="radio"]::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: scale(0);
  transition: 120ms transform cubic-bezier(0.16, 1, 0.3, 1);
  background-color: var(--accent-orange);
  box-shadow: 0 0 10px rgba(255, 159, 28, 0.5);
}

.radio-label input[type="radio"]:checked {
  border-color: var(--accent-orange);
}

.radio-label input[type="radio"]:checked::before {
  transform: scale(1);
}

.radio-label input[type="radio"]:checked + span {
  color: var(--text-primary);
  font-weight: 600;
}

.form-group-dimensions {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.inputs-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.input-number-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-number-wrapper label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.input-box {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  outline: none;
  transition: var(--transition-fast);
}

.input-box:focus {
  border-color: var(--accent-orange);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 3px rgba(255, 159, 28, 0.1);
}

.input-box::-webkit-outer-spin-button,
.input-box::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.input-box[type=number] {
  -moz-appearance: textfield;
}

.calc-btn-container {
  margin-top: 1.5rem;
}

/* DESARROLLO AUTOMÁTICO SECTION */
.dieline-card {
  padding: 3rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.dieline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.dieline-title-block h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.dieline-title-block p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.dieline-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: center;
}

.dieline-view-wrapper {
  background: rgba(1, 3, 6, 0.75);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: hidden;
  position: relative;
}

#dieline-svg-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#dieline-svg-container svg {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.6));
}

/* Dieline Legend Panel */
.dieline-legend-panel {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--glass-border);
  padding: 1.8rem;
  border-radius: 20px;
}

.dieline-legend-panel h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 0.8rem;
  color: var(--text-primary);
}

.legend-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  list-style: none;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.legend-line {
  width: 45px;
  height: 4px;
  border-radius: 2px;
}

.legend-line.corte {
  background-color: #ff9f1c;
  height: 2px;
}

.legend-line.doblez {
  border-top: 2px dashed #4fa3e3;
  height: 0;
  border-radius: 0;
}

.legend-line.dimension {
  border-top: 1.5px solid #8a99ad;
  position: relative;
  height: 0;
}
.legend-line.dimension::before, .legend-line.dimension::after {
  content: '';
  position: absolute;
  top: -3px;
  width: 1.5px;
  height: 7px;
  background-color: #8a99ad;
}
.legend-line.dimension::before { left: 0; }
.legend-line.dimension::after { right: 0; }

.legend-label {
  font-weight: 600;
}

.btn-download-svg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: transparent;
  border: 1.5px solid var(--accent-orange);
  color: var(--accent-orange);
  padding: 1rem 1.5rem;
  border-radius: 14px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 100%;
}

.btn-download-svg:hover {
  background: var(--accent-orange);
  color: #000000;
  box-shadow: 0 4px 20px rgba(255, 159, 28, 0.3);
  transform: translateY(-2px);
}

/* MATERIALES SECTION */
.materiales-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.material-card {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  overflow: hidden;
  position: relative;
}

.material-visual {
  height: 240px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--glass-border);
}

.material-visual-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  transition: var(--transition-smooth);
}

.material-card:hover .material-visual-content {
  transform: scale(1.05);
}

/* Add mockup-matching textures dynamically in CSS or render procedurally */
.material-card:nth-child(1) .material-visual-content {
  background-image: linear-gradient(135deg, rgba(255, 112, 166, 0.2) 0%, rgba(7, 13, 25, 0.9) 100%);
}

.material-card:nth-child(2) .material-visual-content {
  background-image: linear-gradient(135deg, rgba(212, 162, 118, 0.25) 0%, rgba(7, 13, 25, 0.9) 100%);
}

.material-visual-tag {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-orange);
  backdrop-filter: blur(8px);
}

.material-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: -0.5rem;
}

.material-card h3 span {
  color: var(--accent-orange);
}

.material-features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.material-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.material-features li::before {
  content: '\f058';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--accent-orange);
  font-size: 0.95rem;
}

.material-apps {
  border-top: 1px solid var(--glass-border);
  padding-top: 1.5rem;
}

.material-apps h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.material-apps p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.material-link-wrapper {
  display: flex;
  justify-content: flex-end;
}

.material-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.material-card:hover .material-link {
  border-color: var(--accent-orange);
  background-color: var(--accent-orange);
  color: #000000;
  transform: translateX(3px);
  box-shadow: 0 4px 15px rgba(255, 159, 28, 0.3);
}

/* NOSOTROS SECTION */
.nosotros-content {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 4rem;
  align-items: center;
}

.nosotros-text {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.nosotros-text p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.nosotros-pills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.nosotros-pill {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.nosotros-pill-icon {
  font-size: 2rem;
  color: var(--accent-orange);
}

.nosotros-pill h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nosotros-pill p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* CONTACTO & FOOTER */
.contacto-section {
  background-color: #010306;
  border-top: 1px solid var(--glass-border);
  padding: 6rem 5rem 4rem 5rem;
}

.contacto-wrapper {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.footer-logo img {
  width: 55px;
  height: auto;
}

.footer-logo-text {
  display: flex;
  flex-direction: column;
}

.footer-logo-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-primary);
}

.footer-logo-subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--accent-orange);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.footer-industrias-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-align: right;
  margin-bottom: 0.8rem;
}

.footer-industrias-list {
  display: flex;
  gap: 1.8rem;
  list-style: none;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.footer-industrias-list li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-industrias-list i {
  color: var(--accent-orange);
}

.footer-mid-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.contact-card {
  padding: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 159, 28, 0.08);
  border: 1px solid rgba(255, 159, 28, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-orange);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.contact-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-card-info h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.contact-card-info p, .contact-card-info a {
  font-size: 0.9rem;
  color: var(--text-primary);
  text-decoration: none;
  line-height: 1.5;
  transition: var(--transition-fast);
}

.contact-card-info a:hover {
  color: var(--accent-orange);
}

.social-links {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.4rem;
}

.social-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition-smooth);
}

.social-btn:hover {
  background: var(--accent-orange);
  color: #000000;
  border-color: var(--accent-orange);
  box-shadow: 0 4px 10px rgba(255, 159, 28, 0.2);
}

.footer-bottom-row {
  border-top: 1px solid var(--glass-border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

.footer-bottom-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: var(--text-secondary);
}

/* ==========================================
   Awwwards Scroll Reveal Styles
   ========================================== */
.reveal-wrapper {
  overflow: hidden;
  display: block;
}

.reveal-text {
  display: inline-block;
  transform: translateY(102%);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-wrapper.active .reveal-text {
  transform: translateY(0);
}

.reveal-card {
  opacity: 0;
  transform: translateY(60px) scale(0.97);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-card.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* RESPONSIVE DESIGN */

@media (max-width: 1200px) {
  .hero-title {
    font-size: 3.5rem;
  }
  .calc-container-card {
    grid-template-columns: 1fr;
  }
  .visualizer-side {
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
  }
  .dieline-body {
    grid-template-columns: 1fr;
  }
  .dieline-legend-panel {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
  }
  .legend-list {
    flex-direction: row;
    gap: 1.5rem;
  }
  .btn-download-svg {
    width: auto;
    margin-top: 0;
  }
  .materiales-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 992px) {
  :root {
    --sidebar-width: 0px;
  }
  
  /* Hide custom cursor on mobile */
  #custom-cursor {
    display: none !important;
  }
  
  .sidebar {
    left: -280px;
    width: 260px;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
  }
  
  .sidebar.active {
    left: 0;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .main-content {
    margin-left: 0;
    width: 100%;
  }
  
  .section {
    padding: 6rem 2.5rem;
  }
  
  #inicio {
    padding: 0 2.5rem;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: auto;
    min-height: 100vh;
    padding-top: 6rem;
    padding-bottom: 12rem;
  }
  
  .hero-content {
    width: 100%;
    margin-bottom: 3rem;
  }
  
  #hero-canvas-container {
    position: relative;
    width: 100%;
    height: 400px;
    margin-bottom: 2rem;
  }
  
  .hero-cert-badge {
    bottom: 5%;
    right: 5%;
  }
  
  .hero-bg-overlay {
    width: 100%;
    height: 100%;
    opacity: 0.25;
    mask-image: radial-gradient(circle at center, black, transparent);
    -webkit-mask-image: radial-gradient(circle at center, black, transparent);
  }
  
  .hero-badges-wrapper {
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
  
  .nosotros-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-mid-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer-top-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  
  .footer-industrias-title {
    text-align: left;
  }
  
  .footer-industrias-list {
    flex-wrap: wrap;
    gap: 1rem;
  }
}

@media (max-width: 576px) {
  .section {
    padding: 4rem 1.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-title {
    font-size: 2.4rem;
  }
  
  .inputs-row {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  
  .visualizer-side, .inputs-side {
    padding: 1.5rem;
  }
  
  .legend-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
  
  .dieline-legend-panel {
    flex-direction: column;
    align-items: stretch;
  }
  
  .material-features {
    grid-template-columns: 1fr;
  }
  
  .nosotros-pills-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom-row {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ==========================================
   TOP NAV LAYOUT (PDF) — override del sidebar
   ========================================== */
.sidebar { display: none !important; }
.app-container { display: block; }
.main-content { margin-left: 0; width: 100%; }

.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 0.75rem 3rem;
  background: rgba(2, 4, 7, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--glass-border);
}
.topnav { display: flex; align-items: center; gap: 2rem; }
.topnav .nav-link {
  color: var(--text-secondary); text-decoration: none;
  font-family: 'Outfit', sans-serif; font-size: 0.82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px; padding: 0.3rem 0;
  transition: var(--transition-fast);
}
.topnav .nav-link:hover { color: var(--text-primary); }
.topnav .nav-link.active { color: var(--accent-orange); }
.topbar-contact { display: flex; align-items: center; gap: 1.1rem; font-size: 0.72rem; color: var(--text-secondary); }
.topbar-contact a, .topbar-contact span { color: var(--text-secondary); text-decoration: none; display: inline-flex; align-items: center; gap: 0.35rem; transition: var(--transition-fast); }
.topbar-contact a:hover { color: var(--accent-orange); }
.topbar-contact i { color: var(--accent-orange); }

/* Hero header: logo + CTA arriba del hero */
.hero-header {
  position: absolute; top: 4rem; left: 5rem; right: 5rem; z-index: 14;
  display: flex; align-items: center; justify-content: space-between;
}
.hero-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.hero-logo img { width: 52px; height: auto; }
.hero-logo .hl-text { display: flex; flex-direction: column; line-height: 1.15; }
.hero-logo strong { font-family: 'Outfit', sans-serif; font-size: 1rem; font-weight: 800; letter-spacing: 2px; color: #fff; }
.hero-logo small { font-family: 'Outfit', sans-serif; font-size: 0.5rem; letter-spacing: 2px; color: var(--accent-orange); text-transform: uppercase; }
.cta-cotiza {
  display: inline-flex; align-items: center; gap: 0.6rem;
  border: 1px solid var(--accent-orange); color: var(--accent-orange);
  padding: 0.7rem 1.6rem; border-radius: 30px; text-decoration: none;
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 1px;
  background: rgba(4, 7, 13, 0.45); backdrop-filter: blur(6px); transition: var(--transition-smooth);
}
.cta-cotiza:hover { background: var(--accent-orange); color: #000; }

/* menu-toggle ahora vive dentro del topbar */
.menu-toggle { position: static; box-shadow: none; }

/* Dos botones en la calculadora */
.calc-btn-container { display: flex; gap: 1rem; }
.calc-btn-container .btn-primary { flex: 1; }
.btn-secondary {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  background: transparent; border: 1.5px solid var(--accent-orange); color: var(--accent-orange);
  font-family: 'Outfit', sans-serif; font-weight: 700; text-transform: uppercase;
  font-size: 0.8rem; letter-spacing: 1px; padding: 1rem 1.5rem; border-radius: 30px;
  cursor: pointer; transition: var(--transition-smooth);
}
.btn-secondary:hover { background: var(--accent-orange); color: #000; box-shadow: 0 4px 20px rgba(255, 159, 28, 0.3); }

/* "Crece al seleccionar" en materiales */
.material-card { cursor: pointer; }
.material-card.expanded {
  transform: scale(1.03);
  border-color: var(--accent-orange);
  box-shadow: 0 25px 60px rgba(255, 159, 28, 0.18);
}
.material-card.expanded .material-visual { height: 300px; }

@media (max-width: 992px) {
  .topbar { padding: 0.6rem 1.2rem; flex-wrap: wrap; }
  .topbar-contact { display: none; }
  .menu-toggle { display: flex !important; order: 2; }
  .topnav {
    order: 3; width: 100%; flex-direction: column; align-items: stretch; gap: 0;
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  }
  .topnav.active { max-height: 420px; margin-top: 0.5rem; }
  .topnav .nav-link { padding: 0.85rem 0.4rem; border-bottom: 1px solid var(--glass-border); }
  .hero-header { top: 4.2rem; left: 1.5rem; right: 1.5rem; }
  .hero-logo .hl-text { display: none; }
}
