/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:        #f5f0e8;
  --slate:        #4a5d6d;
  --slate-dark:   #3d4f5d;
  --slate-footer: #6b7d8e;
  --green:        #7fa18a;
  --green-light:  #9db8a5;
  --purple:       #9b8bb4;
  --purple-light: #b0a0c8;
  --gold:         #c9a94a;
  --gold-light:   #d4b86a;
  --text:         #2c2c2c;
  --text-light:   #666;
  --white:        #ffffff;
  --radius:       18px;
  --radius-sm:    10px;
  --shadow:       0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.13);

  /* tab colors */
  --tab-equations:    var(--slate);
  --tab-cutting:      var(--green);
  --tab-laser:        var(--green-light);
  --tab-vynil:        var(--purple-light);
  --tab-final:        var(--purple);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  font-size: 16px; /* Ajustado para mejor proporción en pantallas grandes */
  line-height: 1.65;
}

/* ── NAVBAR ── */
nav {
  background: var(--slate);
  border-radius: 50px;
  margin: 16px auto;
  max-width: 1100px; /* Ampliado para pantalla completa */
  width: calc(100% - 48px); 
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 12px;
  z-index: 100;
  box-shadow: var(--shadow);
}


.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  color: var(--cream);
  font-size: 1.2rem;
}
.nav-icons { display: flex; align-items: center; gap: 14px; }
.nav-n {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  color: var(--cream);
  font-size: 1.15rem;
  opacity: 0.85;
}
.nav-icons svg { fill: var(--cream); width: 20px; height: 20px; cursor: pointer; opacity: 0.9; }
.nav-icons svg:hover { opacity: 1; }

/* Estilo para los enlaces de navegación */
.nav-icons a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* ── HERO ── */
.hero {
  width: 95%; /* Ocupa todo el ancho de la pantalla */
  margin: 0 auto;
  padding: 36px 24px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 2.55rem;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-intro {
  margin-top: 18px;
  font-size: 1rem;
  color: var(--text-light);
}
.tasks-card {
  background: var(--slate);
  border-radius: var(--radius);
  padding: 22px 26px 28px;
  color: var(--white);
}
.tasks-card h3 {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 18px;
}
.task-item { display: flex; gap: 12px; margin-bottom: 13px; align-items: flex-start; }
.task-star { color: var(--gold); font-size: 1rem; margin-top: 3px; flex-shrink: 0; }
.task-item p { font-size: 0.87rem; line-height: 1.5; opacity: 0.92; }

/* ── TABS (folder shape) ── */
.tabs-section {
  width: 100%; /* Ocupa todo el ancho de la pantalla */
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}

.tabs-grid {
  display: flex;
  gap: 4px;
  width: 100%;
  align-items: flex-end;
  margin-bottom: -1px;
}

.tab-btn {
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 10px 16px 12px;
  border-radius: 12px 12px 0 0;
  transition: all 0.2s;
  color: var(--white);
  position: relative;
  z-index: 1;
  flex: 1;
  text-align: center;
}
.tab-btn:hover { filter: brightness(1.05); }

/* individual colors */
.tab-btn[data-tab="equations"] { background: var(--tab-equations); }
.tab-btn[data-tab="cutting"]   { background: var(--tab-cutting); }
.tab-btn[data-tab="laser"]     { background: var(--tab-laser); }
.tab-btn[data-tab="vynil"]     { background: var(--tab-vynil); }
.tab-btn[data-tab="final"]     { background: var(--tab-final); }

/* active state */
.tab-btn.active {
  padding-top: 16px;
  padding-bottom: 14px;
  filter: brightness(1);
  z-index: 11;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
}

/* ── CONTENT PANELS ── */
.content-area {
  width: 100%; /* Ocupa todo el ancho de la pantalla */
  margin: 0 auto;
  padding: 0 24px 70px;
  position: relative;
  z-index: 1;
}

.panel { 
  display: none; 
  /* Ponemos en 0 las dos esquinas superiores y redondeamos solo las de abajo */
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 36px 32px; 
}

.panel.active { display: block; }

/* Each panel bg matches its tab color */
.panel-equations { background: var(--tab-equations); }
.panel-cutting   { background: var(--tab-cutting); }
.panel-laser     { background: var(--tab-laser); }
.panel-vynil     { background: var(--tab-vynil); }
.panel-final     { background: var(--tab-final); }

.inner-card {
  background: var(--white);
  border-radius: var(--radius);
  margin: 0;
  padding: 40px 42px;
  box-shadow: var(--shadow-lg);
}
.inner-card h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.7rem;
  font-weight: 400;
  margin-bottom: 24px;
}

/* ── HIGHLIGHT BLOCK ── */
.highlight-block {
  display: flex;
  gap: 14px;
  margin-bottom: 26px;
}
.highlight-bar { width: 5px; border-radius: 4px; flex-shrink: 0; }
.green-bar  { background: var(--green); }
.purple-bar { background: var(--purple); }
.highlight-content h4 { font-weight: 700; font-size: 0.94rem; margin-bottom: 5px; }
.highlight-content p  { font-size: 0.87rem; color: var(--text-light); }

/* ── GRIDS ── */
.eq-grid, .kerf-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 22px;
  align-items: start;
  margin: 18px 0 26px;
}
.laser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
  margin: 18px 0 22px;
}

/* ── IMAGE PLACEHOLDERS ── */
.img-placeholder {
  background: #e0ddd5;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.82rem;
  text-align: center;
  padding: px;
  aspect-ratio: 3/3;
}
.img-placeholder.tall   { aspect-ratio: 2/2; }
.img-placeholder.square { aspect-ratio: 1; }

/* ── EQ TEXT ── */
.eq-text h4, .kerf-text h4, .laser-text h4 {
  font-weight: 700; font-size: 0.94rem; margin-bottom: 7px;
}
.eq-text p, .kerf-text p, .laser-text p {
  font-size: 0.87rem; color: var(--text-light); margin-bottom: 8px;
}
.eq-text code {
  background: #f0ece2;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.84rem;
  color: var(--slate-dark);
}
.eq-sub { margin-top: 4px; }
.eq-sub h4 { font-weight: 700; font-size: 0.92rem; margin-bottom: 6px; }
.eq-sub p  { font-size: 0.87rem; color: var(--text-light); }

/* ── STEPS CARD ── */
.steps-card {
  background: #f7f4ef;
  border-radius: var(--radius);
  padding: 26px 28px 30px;
  margin: 22px 0 0;
}
.steps-title {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.09em;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.steps-card p { font-size: 0.87rem; color: var(--text-light); margin-bottom: 16px; }

/* ── CAROUSEL ── */
.carousel-wrapper {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.carousel-slides {
  display: flex;
  transition: transform 0.4s ease;
}
.carousel-slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  min-height: 230px;
}
.slide-placeholder {
  width: 100%;
  height: 180px;
  background: #e0ddd5;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.84rem;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--white);
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.14);
  font-size: 1rem;
  color: var(--text);
  z-index: 5;
  transition: box-shadow 0.2s;
}
.carousel-btn:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 10px 0 14px;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background 0.2s;
}
.carousel-dot.active { background: var(--green); }

/* ── LASER ── */
.note { font-size: 0.85rem; color: var(--text-light); font-style: italic; }
.section-label { font-weight: 700; font-size: 0.93rem; margin: 18px 0 8px; }
.body-text { font-size: 0.87rem; color: var(--text-light); margin-bottom: 6px; }

/* ── PARAMS TABLE ── */
.params-section { margin-top: 22px; }
.params-section h4 { font-weight: 700; font-size: 0.93rem; margin-bottom: 8px; }
.sub-head {
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-light);
  margin: 12px 0 5px;
}
.params-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.params-table th { font-weight: 600; text-align: left; padding: 5px 10px; background: #f0ece2; }
.params-table td { padding: 5px 10px; border-bottom: 1px solid #eee; }
.params-table tbody tr:last-child td { border-bottom: none; }

/* ── VIDEO ── */
.video-block {
  background: #222;
  border-radius: var(--radius-sm);
  margin-top: 16px;
  aspect-ratio: 16/7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 0.85rem;
}

/* ── FINAL RESULT ── */
.final-tags { display: flex; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.final-images { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── BUTTONS ── */
.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-weight: 600;
  font-size: 0.87rem;
  padding: 10px 26px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.2s;
  text-decoration: none;
}
.btn-gold:hover { background: var(--gold-light); }
.btn-center { display: block; width: fit-content; margin: 18px auto 0; }
.btn-outline {
  display: inline-block;
  border: 2px solid var(--white);
  color: var(--white);
  padding: 9px 26px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}
.btn-outline:hover { background: rgba(255,255,255,0.15); }

/* ── FOOTER ── */
footer {
  background: var(--slate-footer);
  padding: 48px 20px 42px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.footer-section { text-align: center; }
.footer-section h4 {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 20px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
}
.social-link:hover { opacity: 0.8; }
.ig-icon {
  width: 38px; height: 38px;
  border: 2px solid var(--white);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.ig-icon svg { fill: var(--white); width: 20px; height: 20px; }

/* ══════════════════════════════
   RESPONSIVE – MOBILE
   ══════════════════════════════ */
@media (max-width: 600px) {

  /* Nav */
  nav { margin: 10px 14px; }

  /* Hero stacks */
  .hero {
    grid-template-columns: 1fr;
    padding: 24px 16px 16px;
    gap: 20px;
  }
  .hero h1 { font-size: 2rem; }

  /* Tabs */
  .tabs-section { padding: 0 14px; }
  .tabs-grid {
    flex-wrap: wrap; 
    gap: 4px;
  }
  .tab-btn {
    font-size: 0.6rem;
    padding: 8px 4px 10px;
  }

  /* Content */
  .content-area { padding: 0 14px 50px; }
  .panel { 
    padding: 24px 20px; 
  }
  .inner-card { 
    padding: 26px 20px 32px; 
  }

  /* Grids collapse */
  .eq-grid, .kerf-grid, .laser-grid, .final-images {
    grid-template-columns: 1fr;
  }

  

  /* Footer */
  footer { grid-template-columns: 1fr; gap: 32px; }
}