/* =========================================================
   NIZA ISABELA — styles.css
   Sistema de diseño: tokens + componentes compartidos
   ========================================================= */

:root{
  --bg:#FFFDEE;
  --blush:#F2E7D3;
  --card:#FFFFFF;
  --accent:#B8862E;
  --accent-deep:#8D582E;
  --gold:#F6D47D;
  --ink:#2E2013;
  --grey:#8A7860;
  --line:#E8DAC0;
  --radius:6px;
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ background:var(--bg) !important; color-scheme:light; }
body{
  font-family:'Inter',sans-serif; color:var(--ink); background:var(--bg) !important;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4,.serif{ font-family:'Fraunces', serif; }
a{ color:inherit; }
img{ max-width:100%; display:block; }
.container{ max-width:1120px; margin:0 auto; padding:0 32px; }

/* ===== NAV ===== */
nav.site-nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:20px 32px; border-bottom:1px solid var(--line);
  position:sticky; top:0; background:rgba(255,255,255,.92); backdrop-filter:blur(6px); z-index:50;
}
.logo{ font-family:'Fraunces', serif; font-size:22px; font-weight:500; text-decoration:none; }
.logo span{ color:var(--accent-deep); }
.nav-links{ display:flex; gap:32px; list-style:none; }
.nav-links a{ color:var(--ink); text-decoration:none; font-size:14px; }
.nav-links a.active{ color:var(--accent-deep); font-weight:600; border-bottom:2px solid var(--accent-deep); padding-bottom:4px; }
.nav-icons{ display:flex; gap:12px; align-items:center; }
.admin-pill{
  font-size:11px; color:var(--accent-deep); border:1px solid var(--line); background:var(--blush);
  border-radius:20px; padding:7px 16px; text-decoration:none; font-weight:600;
  transition:background .2s ease, border-color .2s ease;
}
.admin-pill:hover{ background:var(--gold); border-color:var(--accent-deep); }
.menu-toggle{ display:none; background:none; border:none; font-size:20px; cursor:pointer; color:var(--ink); }

@media(max-width:860px){
  .menu-toggle{ display:block; }
  .nav-links{
    position:absolute; top:100%; left:0; right:0; background:#fff; border-bottom:1px solid var(--line);
    flex-direction:column; gap:0; max-height:0; overflow:hidden; transition:max-height .25s ease;
  }
  .nav-links.open{ max-height:320px; }
  .nav-links a{ padding:16px 32px; border-bottom:1px solid var(--line); display:block; }
}

/* ===== BUTTONS ===== */
.btn{ font-family:'Inter',sans-serif; font-size:14px; font-weight:600; padding:14px 26px; border-radius:2px; text-decoration:none; display:inline-block; border:none; cursor:pointer; text-align:center; }
.btn-primary{ background:var(--ink); color:#fff; }
.btn-primary:hover{ background:var(--accent-deep); }
.btn-outline{ border:1px solid var(--ink); color:var(--ink); background:transparent; }
.btn-outline:hover{ border-color:var(--accent-deep); color:var(--accent-deep); }
.btn-block{ width:100%; }

/* ===== HERO ===== */
.hero{ display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:60px; padding:80px 32px; max-width:1120px; margin:0 auto; }
.eyebrow{ font-size:12px; letter-spacing:.14em; text-transform:uppercase; color:var(--accent-deep); font-weight:600; margin-bottom:14px; }
.hero h1{ font-size:50px; line-height:1.1; font-weight:500; margin-bottom:20px; }
.hero h1 em{ color:var(--accent-deep); font-style:italic; }
.hero p{ color:var(--grey); font-size:16px; line-height:1.7; max-width:420px; margin-bottom:30px; }
.cta-row{ display:flex; gap:14px; flex-wrap:wrap; }
.photo-block{ aspect-ratio:4/5; border-radius:var(--radius); background:linear-gradient(155deg,#F6ECD8,#F0CE86); display:flex; align-items:center; justify-content:center; color:#fff; font-size:12px; text-align:center; padding:30px; }

.divider{ display:flex; justify-content:center; padding:6px 0 50px; }
.divider svg{ width:120px; height:40px; }

/* ===== CATEGORY CARDS ===== */
.categories{ display:grid; grid-template-columns:1fr 1fr; gap:24px; max-width:1120px; margin:0 auto; padding:0 32px 90px; }
.cat-card{ position:relative; border-radius:var(--radius); overflow:hidden; aspect-ratio:16/11; display:flex; align-items:flex-end; padding:32px; border:1px solid var(--line); text-decoration:none; }
.cat-card.a{ background:linear-gradient(160deg,#FFFCF4,#F2E7D3); }
.cat-card.b{ background:linear-gradient(160deg,#FBE7A8,#F6D47D); }
.cat-card .cat-label{ font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:var(--grey); margin-bottom:8px; }
.cat-card h3{ font-size:26px; color:var(--ink); font-weight:500; }
.cat-card .arrow{ position:absolute; top:28px; right:28px; color:var(--ink); font-size:20px; }

/* ===== SECTION HEAD ===== */
.section-head{ text-align:center; max-width:560px; margin:0 auto 50px; padding:0 32px; }
.section-head .eyebrow{ margin-bottom:12px; }
.section-head h2{ font-size:32px; font-weight:500; margin-bottom:12px; }
.section-head p{ color:var(--grey); font-size:15px; line-height:1.7; }

/* ===== PRODUCT / COURSE GRID ===== */
.grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:32px; max-width:1120px; margin:0 auto; padding:0 32px 90px; }
.card{
  text-align:left;
  background:#fff;
  border:1px solid var(--line);
  border-radius:calc(var(--radius) + 6px);
  overflow:hidden;
  box-shadow:0 3px 10px rgba(46,32,19,.05);
}
.card-photo{ aspect-ratio:1/1.05; margin-bottom:0; position:relative; overflow:hidden;
  background:linear-gradient(160deg,#F6ECD8,#F0CE86); display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:11px; letter-spacing:.03em; padding:20px; text-align:center; }
.card-photo.alt{ background:linear-gradient(160deg,#FFFCF4,#EAD9B8); color:#9C8355; }
.badge{ position:absolute; top:14px; left:14px; font-size:10px; letter-spacing:.06em; text-transform:uppercase; background:#fff; color:var(--accent-deep); padding:5px 10px; border-radius:20px; font-weight:600; }
.card h4{ font-size:17px; font-weight:500; margin:16px 18px 6px; }
.card .price{ font-size:13px; color:var(--grey); margin:0 18px 12px; }
.card a.link{ font-size:13px; font-weight:600; color:var(--ink); text-decoration:none; border-bottom:1px solid var(--ink); padding-bottom:2px; background:none; border-top:none; border-left:none; border-right:none; cursor:pointer; font-family:'Inter'; margin:0 18px 18px; display:inline-block; }
.card a.link:hover{ color:var(--accent-deep); border-color:var(--accent-deep); }

.filters{ display:flex; justify-content:center; gap:10px; padding:0 32px 50px; flex-wrap:wrap; }
.filter{ font-size:13px; padding:9px 20px; border-radius:24px; border:1px solid var(--line); background:#fff; color:var(--grey); cursor:pointer; font-weight:500; }
.filter.active{ background:var(--ink); color:#fff; border-color:var(--ink); }

.note-strip{ max-width:1120px; margin:0 auto 90px; padding:0 32px; }
.note-strip p{ background:var(--blush); border-radius:8px; padding:16px 22px; font-size:13px; color:var(--accent-deep); text-align:center; font-style:italic; }

/* ===== COURSES BAND (home) ===== */
.courses-band{ background:var(--ink); padding:90px 32px; }
.courses-inner{ max-width:1120px; margin:0 auto; }
.courses-head{ display:flex; align-items:flex-end; justify-content:space-between; margin-bottom:36px; flex-wrap:wrap; gap:16px; }
.courses-head .eyebrow{ color:var(--gold); margin-bottom:8px; }
.courses-head h2{ color:#fff; font-size:28px; font-weight:500; }
.courses-head p{ color:#D8CBB0; font-size:14px; max-width:380px; margin-top:8px; line-height:1.6; }
.courses-cta{ font-size:13px; font-weight:600; color:var(--ink); background:#fff; padding:12px 22px; border-radius:2px; text-decoration:none; white-space:nowrap; }
.courses-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.course-card{ background:#3B2A1A; border-radius:8px; overflow:hidden; text-decoration:none; }
.course-photo{ aspect-ratio:4/3; background:linear-gradient(160deg,#F6ECD8,#F0CE86); display:flex; align-items:center; justify-content:center; color:#fff; font-size:11px; text-align:center; padding:16px; position:relative; }
.course-photo .pdf-badge{ position:absolute; top:12px; left:12px; font-size:9px; text-transform:uppercase; background:#fff; color:var(--accent-deep); padding:4px 9px; border-radius:14px; font-weight:600; }
.course-body{ padding:18px; }
.course-body h5{ color:#fff; font-size:14.5px; font-weight:500; margin-bottom:8px; font-family:'Fraunces'; }
.course-body .cprice{ color:var(--gold); font-size:13px; font-weight:600; }
.format-note{ display:inline-block; font-size:12px; color:var(--accent-deep); background:var(--blush); padding:6px 16px; border-radius:20px; margin-top:10px; }
.how-it-works{ max-width:1120px; margin:20px auto 90px; padding:0 32px; }
.how-it-works h3{ text-align:center; font-size:22px; font-weight:500; margin-bottom:36px; }
.steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
.step{ text-align:center; }
.step-num{ width:34px; height:34px; border-radius:50%; background:var(--blush); color:var(--accent-deep); display:flex; align-items:center; justify-content:center; font-weight:700; margin:0 auto 14px; font-size:14px; }
.step p{ font-size:13px; color:var(--grey); line-height:1.6; }
.step h5{ font-size:14px; margin-bottom:6px; }

/* ===== ABOUT ===== */
.about{ background:var(--blush); padding:90px 32px; }
.about-inner{ max-width:1120px; margin:0 auto; display:grid; grid-template-columns:.9fr 1.1fr; gap:64px; align-items:center; }
.about-photo{ aspect-ratio:1/1; border-radius:var(--radius); background:linear-gradient(160deg,#3B2A1A,#6B4A2E); }
.about h2{ font-size:30px; font-weight:500; margin-bottom:16px; }
.about p{ color:var(--grey); font-size:15px; line-height:1.8; margin-bottom:24px; max-width:460px; }

/* ===== PAGE HEAD (Catálogo / Cursos / Nosotros / Contacto) ===== */
.page-head{ text-align:center; padding:64px 32px 16px; }
.page-head h1{ font-size:38px; font-weight:500; margin-bottom:14px; }
.page-head p{ color:var(--grey); max-width:480px; margin:0 auto; line-height:1.7; font-size:15px; }

/* ===== PRODUCT DETAIL ===== */
.breadcrumb{ max-width:1120px; margin:0 auto; padding:24px 32px 0; font-size:12px; color:var(--grey); }
.breadcrumb span{ color:var(--accent-deep); }
.detail{ display:grid; grid-template-columns:1fr 1fr; gap:56px; max-width:1120px; margin:0 auto; padding:24px 32px 100px; }
.detail .photo{ aspect-ratio:1/1.05; border-radius:var(--radius); background:linear-gradient(160deg,#F6ECD8,#F0CE86); display:flex; align-items:center; justify-content:center; color:#fff; font-size:12px; text-align:center; padding:30px; }
.thumbs{ display:flex; gap:10px; margin-top:14px; }
.thumb{ width:64px; height:64px; border-radius:4px; background:linear-gradient(160deg,#F6ECD8,#EAD9B8); border:1px solid var(--line); }
h1.title{ font-size:32px; font-weight:500; margin-bottom:12px; }
.detail .price{ font-size:20px; color:var(--accent-deep); font-weight:600; margin-bottom:18px; }
.desc{ color:var(--grey); font-size:14px; line-height:1.8; margin-bottom:26px; }
.field{ margin-bottom:22px; }
.field label, label.small{ display:block; font-size:12px; font-weight:600; letter-spacing:.03em; text-transform:uppercase; color:var(--grey); margin-bottom:10px; }
.options{ display:flex; gap:10px; flex-wrap:wrap; }
.opt{ border:1px solid var(--line); border-radius:20px; padding:8px 18px; font-size:13px; background:#fff; cursor:pointer; }
.opt.selected{ border-color:var(--accent-deep); color:var(--accent-deep); font-weight:600; background:var(--blush); }
.qty-row{ display:flex; align-items:center; gap:16px; margin-bottom:24px; }
.qty-box{ display:flex; align-items:center; border:1px solid var(--line); border-radius:24px; overflow:hidden; }
.qty-box button{ border:none; background:none; padding:8px 16px; font-size:15px; cursor:pointer; }
.qty-box span{ padding:0 6px; font-size:14px; }
.divider-note{ margin-top:24px; padding:16px 18px; background:var(--blush); border-radius:6px; font-size:12.5px; color:var(--accent-deep); font-style:italic; }
.upload-box{ border:1.5px dashed var(--line); border-radius:6px; padding:26px; text-align:center; color:var(--grey); font-size:13px; cursor:pointer; }

/* ===== FORMS (cotización / checkout) ===== */
.form-wrap{ max-width:640px; margin:0 auto; padding:50px 32px 100px; }
.form-head{ text-align:center; margin-bottom:34px; }
.form-head h1{ font-size:30px; font-weight:500; margin-bottom:10px; }
.form-head p{ color:var(--grey); font-size:14px; }
.panel{ background:#fff; border:1px solid var(--line); border-radius:8px; padding:30px; margin-bottom:20px; }
.panel h3{ font-size:16px; font-weight:500; margin-bottom:18px; }
.row2{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
select, input[type=text], input[type=date], input[type=email], textarea{
  width:100%; padding:12px 14px; border:1px solid var(--line); border-radius:6px; font-family:'Inter'; font-size:13.5px; color:var(--ink); background:#fff;
}
textarea{ resize:vertical; min-height:80px; }
.helper{ font-size:11.5px; color:var(--grey); margin-top:6px; }
.warn{ font-size:12px; color:#A0522D; margin-top:6px; display:none; }
.warn.show{ display:block; }
.after-submit{ background:var(--blush); border-radius:8px; padding:24px; margin-top:24px; text-align:center; display:none; }
.after-submit.show{ display:block; }
.after-submit .wa-btn{ display:inline-flex; align-items:center; gap:8px; background:var(--ink); color:#fff; padding:12px 22px; border-radius:2px; text-decoration:none; font-size:13px; font-weight:600; margin-top:12px; }
.after-submit p{ font-size:13px; color:var(--accent-deep); }
.digital-note{ background:var(--blush); border-radius:6px; padding:14px 16px; font-size:12.5px; color:var(--accent-deep); font-style:italic; }

/* Checkout specific */
.steps-bar{ display:flex; justify-content:center; gap:10px; padding:40px 32px 10px; }
.step-pill{ font-size:12.5px; padding:8px 18px; border-radius:20px; border:1px solid var(--line); color:var(--grey); }
.step-pill.active{ border-color:var(--accent-deep); color:var(--accent-deep); font-weight:600; background:var(--blush); }
.step-pill.done{ color:var(--accent-deep); }
.layout-2col{ display:grid; grid-template-columns:1.4fr 1fr; gap:40px; max-width:1080px; margin:0 auto; padding:30px 32px 100px; }
.sucursal-row{ border:1px solid var(--line); border-radius:6px; padding:14px; font-size:13px; margin-bottom:10px; display:flex; justify-content:space-between; align-items:center; cursor:pointer; }
.sucursal-row.sel{ border-color:var(--accent-deep); background:var(--blush); }
.sum-item{ display:flex; justify-content:space-between; font-size:13px; padding:12px 0; border-bottom:1px solid var(--line); }
.sum-item .meta{ color:var(--grey); font-size:11.5px; display:block; margin-top:2px; }
.sum-total{ display:flex; justify-content:space-between; padding-top:16px; font-size:16px; font-weight:600; }
.pay-methods{ display:flex; gap:8px; margin:18px 0; flex-wrap:wrap; }
.pay-pill{ font-size:11px; border:1px solid var(--line); border-radius:14px; padding:5px 10px; color:var(--grey); }

/* ===== MODAL (quick view) ===== */
.modal-overlay{
  display:flex; position:fixed; inset:0; background:rgba(46,32,19,0); z-index:200;
  align-items:center; justify-content:center; padding:24px;
  opacity:0; visibility:hidden; pointer-events:none;
  transition:opacity .3s ease, background .3s ease, visibility 0s linear .3s;
}
.modal-overlay.open{
  opacity:1; visibility:visible; pointer-events:auto; background:rgba(46,32,19,.45);
  transition:opacity .3s ease, background .3s ease, visibility 0s linear 0s;
}
.modal{ background:#fff; border-radius:10px; max-width:760px; width:100%; overflow:hidden; display:grid; grid-template-columns:1fr 1fr; grid-template-rows:1fr; position:relative; max-height:88vh; }
.modal-overlay.open .modal{ transform:scale(1); }
.modal-close{ position:absolute; top:16px; right:16px; width:32px; height:32px; border-radius:50%; background:#fff; border:1px solid var(--line); cursor:pointer; font-size:16px; z-index:2; }
.modal-photo{
  background:linear-gradient(160deg,#F6ECD8,#F0CE86); display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:12px; text-align:center; padding:24px;
  aspect-ratio:1/1.05; align-self:start;
}
.modal-body{
  padding:32px; overflow-y:auto; min-height:0;
  max-height:88vh;
}
.modal-body h3{ font-size:24px; font-weight:500; margin:6px 0 10px; }
.modal-body .price{ font-size:16px; color:var(--accent-deep); font-weight:600; margin-bottom:16px; }
.modal-body p{ font-size:13px; color:var(--grey); line-height:1.7; margin-bottom:20px; }
@media(max-width:600px){ .modal{ grid-template-columns:1fr; } .modal-photo{ display:none; } }

/* ===== FOOTER ===== */
footer.site-footer{ border-top:1px solid var(--line); padding:56px 32px 40px; }
.footer-inner{ max-width:1120px; margin:0 auto; display:grid; grid-template-columns:1.3fr 1fr 1fr; gap:40px; }
footer h5{ font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--grey); margin-bottom:16px; font-weight:600; }
footer p, footer a{ font-size:14px; color:var(--ink); line-height:2; text-decoration:none; display:block; }
.footer-bottom{ text-align:center; font-size:12px; color:var(--grey); margin-top:50px; }
.footer-simple{ text-align:center; padding:40px 32px; color:var(--grey); font-size:12px; border-top:1px solid var(--line); }

/* ===== ADMIN PANEL ===== */
.app{ display:grid; grid-template-columns:230px 1fr; min-height:100vh; }
.sidebar{ background:var(--ink); color:#EADFC7; }
.sidebar .logo{ font-size:19px; color:#fff; padding:26px 20px 20px; display:block; }
.sidebar .logo span{ color:var(--gold); }
.sidebar-nav{ padding:0 12px; }
.nav-item{ display:flex; align-items:center; gap:10px; padding:11px 12px; border-radius:6px; font-size:13.5px; color:#D8CBB0; margin-bottom:4px; cursor:pointer; text-decoration:none; }
.nav-item.active{ background:#4a3722; color:#fff; font-weight:600; }
.nav-section{ font-size:10px; text-transform:uppercase; letter-spacing:.08em; color:#8A7860; margin:22px 0 8px; padding:0 12px; }
.admin-main{ padding:34px 40px; }
.topbar{ display:flex; justify-content:space-between; align-items:center; margin-bottom:30px; flex-wrap:wrap; gap:12px; }
.topbar h1{ font-size:24px; font-weight:500; }
.period{ font-size:12.5px; border:1px solid var(--line); border-radius:20px; padding:8px 16px; color:var(--grey); background:#fff; }
.kpis{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; margin-bottom:30px; }
.kpi{ background:#fff; border:1px solid var(--line); border-radius:8px; padding:20px; }
.kpi .label{ font-size:11.5px; color:var(--grey); text-transform:uppercase; letter-spacing:.03em; margin-bottom:10px; }
.kpi .value{ font-size:24px; font-weight:600; }
.kpi .delta{ font-size:11.5px; color:#5B7A4E; margin-top:6px; }
.charts-row{ display:grid; grid-template-columns:1.6fr 1fr; gap:18px; margin-bottom:30px; }
.admin-panel{ background:#fff; border:1px solid var(--line); border-radius:8px; padding:24px; }
.admin-panel h3{ font-size:14.5px; font-weight:600; margin-bottom:20px; }
.bar-chart{ display:flex; align-items:flex-end; gap:14px; height:180px; padding-top:10px; }
.bar-col{ flex:1; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; height:100%; }
.bar{ width:100%; border-radius:4px 4px 0 0; background:linear-gradient(180deg,var(--gold),var(--accent)); }
.bar-label{ font-size:10.5px; color:var(--grey); margin-top:8px; }
.donut-wrap{ display:flex; align-items:center; gap:22px; justify-content:center; }
.donut{ width:130px; height:130px; border-radius:50%; background:conic-gradient(var(--accent-deep) 0% 68%, var(--gold) 68% 100%); position:relative; }
.donut::after{ content:""; position:absolute; inset:22px; background:#fff; border-radius:50%; }
.legend{ font-size:12.5px; }
.legend div{ display:flex; align-items:center; gap:8px; margin-bottom:10px; }
.dot{ width:10px; height:10px; border-radius:50%; }
table.admin-table{ width:100%; border-collapse:collapse; font-size:13px; }
table.admin-table th{ text-align:left; font-size:11px; text-transform:uppercase; letter-spacing:.03em; color:var(--grey); padding:10px 12px; border-bottom:1px solid var(--line); }
table.admin-table td{ padding:13px 12px; border-bottom:1px solid var(--line); }
.tag{ font-size:11px; padding:4px 10px; border-radius:12px; font-weight:600; }
.tag.pastel{ background:var(--blush); color:var(--accent-deep); }
.tag.curso{ background:#EFE3D0; color:#6B4A2E; }
.status{ font-size:11px; padding:4px 10px; border-radius:12px; }
.status.produccion{ background:var(--gold); color:#7A5A16; }
.status.listo, .status.entregado{ background:#DCE9D5; color:#43653A; }

@media(max-width:1000px){
  .hero, .categories, .about-inner, .footer-inner, .detail, .layout-2col{ grid-template-columns:1fr; }
  .grid, .kpis, .courses-grid, .steps{ grid-template-columns:1fr 1fr; }
  .charts-row{ grid-template-columns:1fr; }
  .app{ grid-template-columns:1fr; }
}
@media(max-width:700px){
  .sidebar{ display:flex; flex-direction:column; }
  .sidebar-nav{ display:flex; overflow-x:auto; gap:8px; padding:14px; }
  .nav-item{ flex:0 0 auto; white-space:nowrap; margin-bottom:0; }
  .nav-section{ display:none; }
  .admin-main{ padding:20px; }
  .kpis{ grid-template-columns:1fr 1fr; gap:12px; }
  table.admin-table{ display:block; overflow-x:auto; white-space:nowrap; }
}
@media(max-width:600px){
  .grid, .courses-grid, .steps, .row2{ grid-template-columns:1fr; }
  .hero h1{ font-size:34px; }
}

/* ===== FORM FEEDBACK (mensajes de confirmación) ===== */
.form-feedback{ font-size:13px; margin-top:12px; padding:12px 14px; border-radius:6px; display:none; }
.form-feedback.show{ display:block; }
.form-feedback.success{ background:var(--blush); color:var(--accent-deep); font-weight:600; }
.form-feedback.error{ background:#F7E3DE; color:#A0522D; font-weight:600; }

/* ===== PRECIO CON DESCUENTO ===== */
.price-old{ text-decoration:line-through; color:var(--grey); font-size:12px; margin-right:6px; }
.price-new{ color:var(--accent-deep); font-weight:600; }
.discount-badge{ position:absolute; top:14px; right:14px; font-size:10px; letter-spacing:.06em; text-transform:uppercase; background:var(--accent-deep); color:#fff; padding:5px 10px; border-radius:20px; font-weight:600; }

/* ===== AJUSTES DE INPUTS FALTANTES ===== */
input[type=tel]{
  width:100%; padding:12px 14px; border:1px solid var(--line); border-radius:6px;
  font-family:'Inter'; font-size:13.5px; color:var(--ink); background:#fff;
}

input[type=date]::-webkit-calendar-picker-indicator{
  filter:invert(31%) sepia(24%) saturate(1184%) hue-rotate(360deg) brightness(94%) contrast(90%);
  cursor:pointer;
}

input[type=text]:focus, input[type=date]:focus, input[type=email]:focus,
input[type=tel]:focus, input[type=password]:focus, select:focus, textarea:focus{
  outline:none; border-color:var(--accent-deep);
}

input[type=number]{
  width:100%; padding:12px 14px; border:1px solid var(--line); border-radius:6px;
  font-family:'Inter'; font-size:13.5px; color:var(--ink); background:#fff;
}

input[type=password]{
  width:100%; padding:12px 14px; border:1px solid var(--line); border-radius:6px;
  font-family:'Inter'; font-size:13.5px; color:var(--ink); background:#fff;
}

/* ===== CARRITO EN CHECKOUT ===== */
.cart-qty-btn{
  border:1px solid var(--line); background:#fff; color:var(--ink); border-radius:4px;
  width:22px; height:22px; font-size:13px; cursor:pointer; display:inline-flex;
  align-items:center; justify-content:center; line-height:1;
}
.cart-qty-btn:hover{ border-color:var(--accent-deep); color:var(--accent-deep); }
.cart-qty-value{ font-size:13px; margin:0 4px; color:var(--ink); font-weight:500; }
.cart-remove-btn{
  border:none; background:none; color:var(--accent-deep); font-size:12px;
  cursor:pointer; text-decoration:underline; margin-top:6px; font-family:'Inter'; padding:0;
}
.cart-remove-btn:hover{ color:var(--ink); }

.cart-item-size{
  display:inline-block; font-size:11px; color:var(--accent-deep); background:var(--blush);
  padding:3px 10px; border-radius:12px; margin-bottom:6px; font-weight:600;
}
.cart-item-qty-row{ display:flex; align-items:center; gap:8px; margin-top:6px; }

/* ===== ANIMACIONES ===== */

/* Fade-in al hacer scroll */
.reveal-on-scroll{
  opacity:0; transform:translateY(24px);
  transition:opacity .6s ease, transform .6s ease;
}
.reveal-on-scroll.is-visible{ opacity:1; transform:translateY(0); }

/* Hover elevado en tarjetas */
.card, .cat-card, .course-card{
  transition:transform .3s ease, box-shadow .3s ease;
}
.card:hover, .cat-card:hover, .course-card:hover{
  transform:translateY(-6px);
  box-shadow:0 16px 28px rgba(46,32,19,.14);
}
.card-photo, .course-photo{
  transition:transform .4s ease;
  overflow:hidden;
}
.card:hover .card-photo, .course-card:hover .course-photo{
  transform:scale(1.04);
}

/* Botones: micro-interacción al presionar */
.btn, .btn-mini, .filter, .opt{
  transition:transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn:active, .btn-mini:active, .filter:active, .opt:active{
  transform:scale(.96);
}

/* Header con sombra al hacer scroll */
nav.site-nav{
  transition:box-shadow .25s ease;
}
nav.site-nav.scrolled{
  box-shadow:0 2px 14px rgba(46,32,19,.10);
}

/* Pulso del contador del carrito */
.cart-icon-count.pulse{
  animation:cartPulse .45s ease;
}
@keyframes cartPulse{
  0%{ transform:scale(1); }
  30%{ transform:scale(1.5); }
  60%{ transform:scale(.9); }
  100%{ transform:scale(1); }
}

/* Respeta accesibilidad: usuarios con "reducir movimiento" no ven animaciones */
@media (prefers-reduced-motion: reduce){
  .reveal-on-scroll, .card, .cat-card, .course-card, .card-photo, .course-photo,
  .btn, .btn-mini, .filter, .opt, nav.site-nav, .cart-icon-count{
    transition:none !important; animation:none !important;
  }
}


/* ===== ENTRADA "WOW" DEL HERO (solo index.html) ===== */
.hero-anim-item{
  opacity:0;
  transform:translateY(28px);
  transition:opacity .8s ease, transform .8s ease;
}
.hero-anim-item.hero-in{
  opacity:1;
  transform:translateY(0);
}
/* La foto entra desde el lado opuesto, se siente más dinámico */
.hero .photo-block.hero-anim-item{
  transform:translateX(36px);
}
.hero .photo-block.hero-anim-item.hero-in{
  transform:translateX(0);
}



/* ===== FADE REVERSIBLE AL HACER SCROLL (secciones grandes, index.html) ===== */
.fade-scroll-section{
  transition:opacity .5s ease, transform .5s ease;
}
.fade-scroll-section.fs-hidden{
  opacity:.15;
  transform:translateY(-14px);
}
@media (prefers-reduced-motion: reduce){
  .fade-scroll-section{ transition:none !important; }
  .fade-scroll-section.fs-hidden{ opacity:1; transform:none; }
}



/* ===== WIDGET DE SUBIDA DE ARCHIVOS ===== */
.upload-trigger{
  display:flex; align-items:center; gap:10px;
  border:1.5px dashed var(--line); border-radius:6px;
  padding:16px; cursor:pointer; color:var(--grey); font-size:13px;
  transition:border-color .2s ease, background .2s ease, color .2s ease;
}
.upload-trigger:hover{ border-color:var(--accent-deep); background:var(--blush); color:var(--accent-deep); }
.upload-icon{ font-size:20px; }
.upload-result{
  display:flex; align-items:center; gap:14px;
  background:var(--blush); border-radius:6px; padding:12px 16px;
}
.upload-thumb{ width:56px; height:56px; border-radius:6px; object-fit:cover; flex-shrink:0; }
.upload-result-info{ display:flex; flex-direction:column; gap:6px; }
.upload-check{ font-size:12.5px; color:var(--accent-deep); font-weight:600; }
.upload-change-btn{
  font-size:11.5px; color:var(--ink); background:none; border:none; text-decoration:underline;
  cursor:pointer; padding:0; align-self:flex-start; font-family:'Inter';
}
.upload-status{ font-size:12px; display:block; margin-top:8px; color:var(--grey); }
.upload-status.uploading{ color:var(--accent-deep); font-weight:600; }
.upload-status.error{ color:#A0522D; font-weight:600; }

/* ===== ICONOS DE NAV (carrito, cuenta) REDISEÑADOS ===== */
.nav-icon-btn{
  display:inline-flex; align-items:center; justify-content:center;
  width:38px; height:38px; border-radius:50%;
  border:1px solid var(--line); background:#fff;
  font-size:16px; text-decoration:none; color:var(--ink);
  position:relative; transition:background .2s ease, border-color .2s ease, transform .2s ease;
}
.nav-icon-btn:hover{
  background:var(--blush); border-color:var(--accent-deep); transform:translateY(-2px);
}

/* ===== VARIANTE DEL WIDGET DE SUBIDA PARA DOCUMENTOS (PDF) ===== */
.upload-doc-icon{
  width:56px; height:56px; border-radius:6px; background:var(--blush);
  display:flex; align-items:center; justify-content:center; font-size:22px; flex-shrink:0;
}
.upload-doc-name{
  font-size:12px; color:var(--ink); word-break:break-all; max-width:220px;
}

/* ===== COLORES DE ESTADO EN SELECTS (pedidos y cotizaciones) ===== */
.status-select.st-rojo{ background:#F7E3DE; color:#A0522D; border-color:#A0522D; font-weight:600; }
.status-select.st-amarillo{ background:var(--gold); color:#7A5A16; border-color:#7A5A16; font-weight:600; }
.status-select.st-verde{ background:#DCE9D5; color:#43653A; border-color:#43653A; font-weight:600; }



/* ===== DETALLE DE PEDIDO (secciones separadas) ===== */
.detalle-row{
  padding:16px 0; border-bottom:1px solid var(--line);
}
.detalle-row:last-child{ border-bottom:none; padding-bottom:0; }
.detalle-label{
  font-size:11px; text-transform:uppercase; letter-spacing:.03em;
  color:var(--accent-deep); font-weight:600; margin-bottom:8px;
}
.detalle-valor{
  font-size:14px; color:var(--ink); line-height:1.7; white-space:pre-line;
}
.detalle-valor.total{ font-size:20px; font-weight:600; color:var(--accent-deep); }



/* ===== BOTÓN MINI (compartido en todo el admin) ===== */
.btn-mini{
  font-size:12px; padding:7px 14px; border:1px solid var(--line);
  border-radius:6px; background:#fff; cursor:pointer;
  font-family:'Inter'; color:var(--ink);
  transition:border-color .2s ease, color .2s ease, background .2s ease;
}
.btn-mini:hover{
  border-color:var(--accent-deep); color:var(--accent-deep); background:var(--blush);
}

/* ===== BARRA DE PROGRESO (subida de video) ===== */
.upload-progress-wrap{ margin-top:10px; }
.upload-progress-bar{
  width:100%; height:8px; background:var(--line); border-radius:20px; overflow:hidden;
}
.upload-progress-fill{
  height:100%; background:var(--accent-deep); width:0%; transition:width .2s ease;
}
.upload-progress-text{ font-size:11.5px; color:var(--grey); margin-top:6px; }


/* ===== TARJETAS DE CUENTA ===== */
.cuenta-tarjetas{
  display:grid; grid-template-columns:repeat(3, 1fr); gap:18px;
}
.cuenta-tarjeta{
  background:#fff; border:1px solid var(--line); border-radius:10px;
  padding:26px 22px; text-decoration:none; color:var(--ink);
  position:relative; transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cuenta-tarjeta:hover{
  transform:translateY(-3px); box-shadow:0 10px 20px rgba(46,32,19,.08); border-color:var(--accent-deep);
}
.cuenta-tarjeta-icono{ font-size:26px; margin-bottom:14px; }
.cuenta-tarjeta h3{ font-size:16px; font-weight:500; margin-bottom:6px; font-family:'Fraunces'; }
.cuenta-tarjeta p{ font-size:12.5px; color:var(--grey); line-height:1.5; }
.cuenta-tarjeta-flecha{
  position:absolute; top:24px; right:22px; font-size:16px; color:var(--accent-deep);
}
@media(max-width:700px){ .cuenta-tarjetas{ grid-template-columns:1fr; } }

/* ===== PÁGINA DE DETALLE (mis-pedidos, mis-cotizaciones, mis-cursos) ===== */
.detalle-item-card{
  background:#fff; border:1px solid var(--line); border-radius:10px;
  padding:22px; margin-bottom:14px;
}
.detalle-item-header{
  display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:14px; flex-wrap:wrap; gap:10px;
}
.detalle-item-titulo{ font-size:15px; font-weight:500; }
.detalle-item-fecha{ font-size:12px; color:var(--grey); }
.back-link{
  display:inline-block; font-size:13px; color:var(--accent-deep); text-decoration:none;
  margin-bottom:24px; font-weight:600;
}
.back-link:hover{ text-decoration:underline; }
.video-player{
  width:100%; border-radius:8px; margin-top:12px; background:#000; max-height:400px;
}