/* ===============================
   VARIABLES
=================================*/
:root{
  --bg:#f5f6f8;
  --card:#ffffff;
  --text:#1c1e21;
  --muted:#6b7280;
  --border:#e4e6eb;
  --primary:#E1306C;
  --footer:#f0f2f5;

  --shadow: 0 10px 24px rgba(0,0,0,.08);
}

body.dark{
  --bg:#0f0f10;
  --card:#17181a;
  --text:#ffffff;
  --muted:#b6b8bd;
  --border:#2a2c30;
  --footer:#121314;

  --shadow: 0 10px 26px rgba(0,0,0,.45);
}

/* ===============================
   RESET / GLOBAL
=================================*/
*{ box-sizing:border-box; }

html, body{
  width:100%;
  max-width:100%;
  overflow-x:hidden; /* ✅ evita scroll lateral y “header corto” */
}

body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  transition: .25s ease;
}

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

.layout, .header-inner, .sidebar, main{ min-width:0; }

/* ===============================
   HEADER
=================================*/
.site-header{
  position: relative;
  top: auto;
  left: 0;
  right: 0;
  z-index: 3000;

  width: 100%;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.header-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 14px;

  display:flex;
  align-items:center;
  gap:12px;
}

.header-left{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 0;
}

.logo{
  font-weight: 800;
  font-size: 18px;
  white-space: nowrap;
}

.header-right{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:10px;
}

/* botones icono */
.icon-btn{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: rgba(0,0,0,.03);
  border: 1px solid transparent;
  cursor:pointer;
}

body.dark .icon-btn{ background: rgba(255,255,255,.06); }

.icon-btn:hover{ border-color: rgba(0,0,0,.10); }
body.dark .icon-btn:hover{ border-color: rgba(255,255,255,.14); }

.icon-btn svg{
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

/* buscador */
.search-wrapper{
  position: relative;
  flex: 1 1 auto;
  max-width: 680px;
  min-width: 200px;
}

.search-icon{
  position:absolute;
  left:14px;
  top:50%;
  transform:translateY(-50%);
  width:18px;
  height:18px;
  opacity:.55;
  pointer-events:none;
}

/* ✅ glass effect */
.search-input{
  width:100%;
  padding: 12px 46px 12px 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  outline:none;
  font-size: 15px;
  color: var(--text);

  background: rgba(255,255,255,.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  transition: .2s ease;
}

body.dark .search-input{
  background: rgba(20,20,22,.55);
}

.search-input:focus{
  border-color: rgba(225,48,108,.65);
  box-shadow: 0 0 0 4px rgba(225,48,108,.14);
}

.clear-search{
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  width:32px;
  height:32px;
  border-radius:999px;
  border:none;
  background: transparent;
  cursor:pointer;
  opacity:.7;
  display:none;
  font-size:22px;
  line-height:0;
  color:inherit;
}

.clear-search:hover{
  opacity:1;
  background: rgba(0,0,0,.05);
}
body.dark .clear-search:hover{
  background: rgba(255,255,255,.08);
}

/* ✅ MOBILE header: 2 filas */
@media(max-width:768px){
  .header-inner{
    flex-wrap: wrap;
    gap:10px;
    padding: 10px 12px;
  }

  .search-wrapper{
    order:3;
    flex: 1 1 100%;
    max-width: 100%;
    min-width: 0;
  }

  .logo{ font-size: 17px; }
}

/* safe area notch */
@supports (padding: max(0px)){
  .header-inner{
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }
}

/* ===============================
   CATBAR MOBILE (NUEVO)
================================= */
.catbar-mobile{ display:none; }

@media (max-width:768px){
  .catbar-mobile{
    display:block;
    position: sticky;
    top: 62px; /* ✅ ajusta 56-74 si quieres */
    z-index: 2400;

    background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border-bottom: 1px solid var(--border);
  }

  .catbar-inner{
    display:flex;
    gap:12px;
    padding: 10px 12px 12px;

    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width:none;

    max-width:100%;
  }
  .catbar-inner::-webkit-scrollbar{ display:none; }

  .catchip{
    flex:0 0 auto;
    width:64px;
    min-width:64px;
    height:64px;

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:6px;

    border-radius:18px;
    border:1px solid transparent;

    background: rgba(0,0,0,.05);
    color: var(--text);
    text-decoration:none;

    transition:.18s ease;
  }

  body.dark .catchip{ background: rgba(255,255,255,.08); }

  .catchip:hover{
    transform: translateY(-1px);
    border-color: rgba(0,0,0,.10);
  }
  body.dark .catchip:hover{ border-color: rgba(255,255,255,.16); }

  .catchip.active{
    background: linear-gradient(45deg,#E1306C,#F77737);
    color:#fff;
    border-color: transparent;
    box-shadow: 0 8px 18px rgba(225,48,108,.30);
  }

  .catemoji{ font-size:20px; line-height:1; }

  .catlabel{
    font-size:11px;
    line-height:1.1;
    text-align:center;
    max-width:58px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    opacity:.85;
  }
  .catchip.active .catlabel{ opacity:1; }
}

/* ===============================
   LAYOUT
=================================*/
.layout{
  max-width:1200px;
  margin:0 auto;
  padding: 22px 16px;

  display:grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
}

@media(max-width:768px){
  .layout{
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px 12px;
  }
}

/* ===============================
   SIDEBAR / CATEGORÍAS (DESKTOP)
=================================*/
.sidebar{ width:100%; max-width:100%; }

.sidebar-title{
  margin: 6px 0 14px;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: .6;
}

/* Desktop lista */
.sidebar-links{
  display:flex;
  flex-direction: column;
  gap:10px;
}

.side-link{
  position: relative;
  display:flex;
  align-items:center;
  gap:12px;

  padding:12px 14px;
  border-radius:16px;
  border:1px solid transparent;

  background: rgba(0,0,0,.04);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  transition:.2s ease;
  overflow:visible;
}

body.dark .side-link{ background: rgba(255,255,255,.06); }

.side-link:hover{
  border-color: rgba(0,0,0,.12);
  transform: translateX(2px);
}
body.dark .side-link:hover{ border-color: rgba(255,255,255,.18); }

.side-link.active{
  background: linear-gradient(45deg,#E1306C,#F77737);
  color:#fff;
  border-color: transparent;
  font-weight:700;
  box-shadow: 0 6px 18px rgba(225,48,108,.25);
}

.side-icon{
  width:28px;
  height:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  flex:0 0 auto;
}

.side-text{
  font-size:14px;
  line-height:1.2;
}

/* Sticky desktop */
@media(min-width:769px){
  .sidebar{
    position: sticky;
    top: 92px;
    align-self: start;
  }
}

/* ✅ móvil: ocultar sidebar categories (se usan en catbar) */
@media(max-width:768px){
  .sidebar-desktop{ display:none; }
}

/* ===============================
   CARDS
=================================*/
.cards{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
  gap: 18px;
}

@media(max-width:768px){
  .cards{
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
    gap: 16px;
  }
}

.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow:hidden;
  transition: .25s ease;
}

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

.cover{ height: 130px; }
.cover img{ width:100%; height:100%; object-fit:cover; display:block; }

.avatar{
  width: 92px;
  height: 92px;
  border-radius: 50%;
  margin: -46px auto 10px;
  display:block;
  object-fit:cover;
  border: 4px solid var(--card);
  background:#d9dbe0;
}

.card-body{
  text-align:center;
  padding: 6px 14px 18px;
}

.card-body h3{
  margin: 6px 0 4px;
  font-size: 18px;
}

.card-body p{
  margin:0;
  color: var(--muted);
  font-size: 13px;
}

.card-actions{
  margin-top: 12px;
  display:flex;
  justify-content:center;
  gap:10px;
  align-items:center;
}

.profile-btn{
  padding: 10px 14px;
  border-radius: 999px;
  border:none;
  cursor:pointer;
  background: linear-gradient(45deg,#E1306C,#F77737);
  color:#fff;
  font-weight: 800;
  text-decoration:none;
}

.profile-btn:hover{ opacity:.92; }

.heart-btn{
  border:none;
  background:transparent;
  cursor:pointer;
  font-size: 18px;
  line-height: 1;
  transform: translateY(1px);
  color:inherit;
}

.heart-btn.active{ color:#E1306C; }

/* ===============================
   FOOTER
=================================*/
footer{
  background: var(--footer);
  margin-top: 56px;
  padding: 44px 0 18px;
  border-top: 1px solid var(--border);
}

.footer-container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.footer-grid{
  display:grid;
  grid-template-columns: repeat(4,1fr);
  gap: 34px;
  margin-bottom: 24px;
}

.footer-col h4{
  margin: 0 0 12px;
  font-size: 16px;
}

.footer-col p{
  margin: 0 0 10px;
  line-height: 1.5;
  color: var(--muted);
}

.footer-col a{
  display:block;
  margin-bottom: 8px;
  opacity: .85;
}

.footer-col a:hover{
  opacity:1;
  color: var(--primary);
}

.footer-bottom{
  border-top: 1px solid var(--border);
  padding-top: 16px;
  font-size: 14px;
  opacity: .82;
  display:flex;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-social{
  display:flex;
  gap: 10px;
  align-items:center;
}

.social-btn{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border: 1px solid var(--border);
  background: transparent;
  transition:.2s ease;
}

.social-btn svg{
  width:18px;
  height:18px;
}

.social-btn:hover{
  transform:translateY(-2px);
  background: linear-gradient(45deg,#E1306C,#F77737);
  color:#fff;
  border-color:transparent;
}

@media(max-width:900px){
  .footer-grid{ grid-template-columns: repeat(2,1fr); }
}

@media(max-width:600px){
  .footer-grid{ grid-template-columns: 1fr; gap: 18px; }
  .footer-bottom{ justify-content:center; text-align:center; }
}

/* ===============================
   PERFIL MODERNO
=================================*/
.profile-wrapper{
  max-width: 900px;
  margin: 34px auto 0;
  padding: 0 16px;
}

.profile-cover img{
  width:100%;
  height: 240px;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid var(--border);
}

.profile-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 44px 22px 26px;
  margin-top: -64px;
  text-align: center;
  box-shadow: var(--shadow);
}

.profile-avatar{
  width: 122px;
  height: 122px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid var(--card);
  margin-top: -92px;
  background: #d9dbe0;
}

.profile-card h1{
  margin: 14px 0 6px;
  font-size: 26px;
  letter-spacing: -0.3px;
}

.profile-category{
  margin: 0 0 18px;
  opacity: .7;
  color: var(--muted);
}

.profile-stats{
  display:flex;
  justify-content:center;
  gap: 38px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.stat{
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 85%, transparent);
}

.stat strong{
  display:block;
  font-size: 18px;
}

.stat span{
  display:block;
  font-size: 12px;
  opacity: .7;
  color: var(--muted);
  margin-top: 2px;
}

.profile-actions{
  display:flex;
  justify-content:center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 6px;
}

.insta-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;

  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(45deg,#E1306C,#F77737);
  color:#fff;
  font-weight: 800;
  border: none;
}

.insta-btn svg{
  width: 18px;
  height: 18px;
}

.insta-btn:hover{ opacity:.92; }

.ghost-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;

  padding: 10px 16px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--border);
  font-weight: 700;
  color: var(--text);
}

.ghost-btn svg{
  width: 18px;
  height: 18px;
}

.ghost-btn:hover{
  border-color: rgba(225,48,108,.45);
  box-shadow: 0 0 0 4px rgba(225,48,108,.10);
}

.profile-story{
  margin-top: 16px;
  text-align: left;
  line-height: 1.7;
  color: color-mix(in srgb, var(--text) 90%, transparent);
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 14px;
}

.profile-embed{
  margin-top: 18px;
}

.embed-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap: 10px;
  padding: 10px 4px;
}

.embed-title{
  font-weight: 800;
  letter-spacing: -0.2px;
}

.embed-sub{
  font-size: 12px;
  opacity: .7;
  color: var(--muted);
}

.embed-frame{
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
}

.embed-frame iframe{
  width:100%;
  height: 520px;
  border:0;
  display:block;
}

@media(max-width:768px){
  .profile-cover img{ height: 210px; }
  .embed-frame iframe{ height: 520px; } /* puedes bajar a 480 si quieres */
}
/* ===============================
   PERFIL (NUEVO)
================================= */
.profile-page{
  max-width:1200px;
  margin:0 auto;
  padding: 16px 12px 26px;
}

.profile-hero{ margin-top: 10px; }

.profile-cover{
  position:relative;
  width:100%;
  height: 220px;
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.04);
}
.profile-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.profile-cover-fade{
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.0) 35%, rgba(0,0,0,.20) 100%);
  pointer-events:none;
}

.profile-shell{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 16px;
  margin-top: -46px;
  padding: 0 10px;
}

.profile-card{
  background: color-mix(in srgb, var(--card) 88%, transparent);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  position:relative;
}

.profile-avatar{
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--card);
  background: #d9dbe0;
  margin-top: -54px;
}

.profile-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-top: 8px;
}

.profile-title h1{
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
}
.profile-category{
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.profile-badges{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size: 13px;
  color: var(--text);
  opacity: .92;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.03);
}
body.dark .badge{ background: rgba(255,255,255,.06); }
.badge svg{ width:16px; height:16px; }

.profile-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 14px;
}

.btn-primary, .btn-ghost{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  text-decoration:none;
  cursor:pointer;
}
.btn-primary{
  background: linear-gradient(45deg,#E1306C,#F77737);
  color:#fff;
}
.btn-primary:hover{ opacity:.92; }

.btn-ghost{
  border-color: var(--border);
  background: rgba(0,0,0,.03);
}
body.dark .btn-ghost{ background: rgba(255,255,255,.06); }
.btn-ghost:hover{
  border-color: rgba(225,48,108,.45);
}

.btn-primary svg, .btn-ghost svg{
  width:18px; height:18px;
}

.profile-story{
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.profile-story h3{
  margin: 0 0 8px;
  font-size: 15px;
}
.profile-story-text{
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.profile-embed{
  background: color-mix(in srgb, var(--card) 88%, transparent);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  height: fit-content;
}

.embed-head{ margin-bottom: 10px; }
.embed-title{
  font-weight: 900;
  font-size: 15px;
}
.embed-sub{
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.embed-frame{
  border-radius: 14px;
  overflow:hidden;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.03);
}
.embed-frame iframe{
  width:100%;
  min-height: 520px;
  border:0;
  display:block;
  background: transparent;
}

/* Recomendados */
.recs{
  max-width:1200px;
  margin: 22px auto 0;
  padding: 0 12px;
}
.recs-head h2{
  margin:0;
  font-size: 18px;
}
.recs-head p{
  margin: 6px 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.recs-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.rec-card{
  border:1px solid var(--border);
  border-radius: 16px;
  overflow:hidden;
  background: var(--card);
  transition: .2s ease;
}
.rec-card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.rec-cover{ height: 70px; }
.rec-cover img{ width:100%; height:100%; object-fit:cover; display:block; }
.rec-body{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 10px 12px 12px;
}
.rec-avatar{
  width:40px; height:40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--card);
  background:#d9dbe0;
}
.rec-name{
  font-weight: 900;
  font-size: 14px;
  line-height: 1.15;
}
.rec-cat{
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

/* Responsive perfil */
@media(max-width: 980px){
  .profile-shell{ grid-template-columns: 1fr; margin-top: -40px; }
  .embed-frame iframe{ min-height: 520px; }
  .recs-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media(max-width: 560px){
  .profile-cover{ height: 200px; }
  .profile-avatar{ width: 96px; height: 96px; margin-top: -50px; }
  .profile-title h1{ font-size: 20px; }
  .recs-grid{ grid-template-columns: 1fr; }
}
/* ===============================
   PROFILE STATS (visitas)
=================================*/
.profile-stats{
  margin-top: 12px;
  display:flex;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
}

.profile-stats .stat{
  min-width:110px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background: color-mix(in srgb, var(--card) 82%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align:center;
}

.profile-stats .stat strong{
  display:block;
  font-size:16px;
  font-weight:800;
}

.profile-stats .stat span{
  display:block;
  margin-top:2px;
  font-size:12px;
  color:var(--muted);
}
/* ===============================
   HERO MINIMAL (sutil + limpio)
================================= */
.hero-min{
  position: relative;
  padding: 44px 16px 30px;
  overflow: hidden;
  background: var(--bg);
}

/* imagen MUY sutil detrás */
.hero-min::before{
  content:"";
  position:absolute;
  inset:-30px;
  background: url("/assets/hero_bg.jpg") center/cover no-repeat;
  filter: blur(4px) saturate(.95);
  opacity: .9;              /* ✅ más sutil */
  transform: scale(1.06);
  pointer-events:none;
}

/* overlay blanco suave para legibilidad */
.hero-min::after{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(255,255,255,.55);
  pointer-events:none;
}

body.dark .hero-min::after{
  background: rgba(0,0,0,.35);
}

.hero-min-inner{
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

/* glass limpio */
.hero-min-card{
  margin: 0 auto;
  max-width: 980px;
  padding: 22px 20px 20px;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
}

body.dark .hero-min-card{
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(20,20,22,.55);
  box-shadow: 0 16px 38px rgba(0,0,0,.45);
}

.hero-min-title{
  margin: 0;
  font-size: 40px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.9px;
}

.hero-min-subtitle{
  margin: 14px auto 18px;
  max-width: 860px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

/* botón igual a tu estilo */
.hero-min-btn{
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 15px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(45deg,#E1306C,#F77737);
  box-shadow: 0 10px 22px rgba(225,48,108,.24);
  transition: .2s ease;
}
.hero-min-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(225,48,108,.30);
}

/* responsive */
@media(max-width:768px){
  .hero-min{ padding: 28px 12px 18px; }
  .hero-min-card{ padding: 16px 14px 16px; border-radius: 18px; }
  .hero-min-title{ font-size: 26px; letter-spacing: -0.4px; }
  .hero-min-subtitle{ font-size: 15px; margin: 10px 0 14px; }
}
/* ===============================
   PROYECTO (corporativo minimal)
================================= */
.proj-hero{
  padding: 26px 16px 6px;
  background: var(--bg);
}
.proj-hero-inner{
  max-width: 1200px;
  margin: 0 auto;
}
.proj-head{
  max-width: 860px;
  margin: 0 auto 14px;
  text-align: center;
}
.proj-title{
  margin: 0;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.7px;
}
.proj-lead{
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

/* Slider */
.proj-slider{
  position: relative;
  margin: 16px auto 0;
  max-width: 1100px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
}
.proj-slides{
  position: relative;
  height: 360px;
}
.proj-slide{
  position:absolute;
  inset:0;
  opacity:0;
  transition: opacity .45s ease;
}
.proj-slide.is-active{ opacity:4; }
.proj-slide img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

/* Flechas */
.proj-nav{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width:44px; height:44px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor:pointer;
  font-size: 28px;
  line-height: 0;
  display:flex;
  align-items:center;
  justify-content:center;
}
body.dark .proj-nav{ background: rgba(20,20,22,.45); }
.proj-nav.prev{ left: 12px; }
.proj-nav.next{ right: 12px; }
.proj-nav:hover{ transform: translateY(-50%) scale(1.03); }

/* Dots */
.proj-dots{
  position:absolute;
  left:0; right:0;
  bottom: 12px;
  display:flex;
  gap:8px;
  justify-content:center;
}
.proj-dot{
  width:10px; height:10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.55);
  cursor:pointer;
}
body.dark .proj-dot{ background: rgba(255,255,255,.22); }
.proj-dot.is-active{
  background: linear-gradient(45deg,#E1306C,#F77737);
  width: 26px;
}

/* Main */
.proj-main{
  padding: 14px 16px 34px;
  background: var(--bg);
}
.proj-container{
  max-width: 1200px;
  margin: 0 auto;
  display:grid;
  gap: 14px;
}
.proj-card{
  background: color-mix(in srgb, var(--card) 88%, transparent);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 18px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.proj-card h2{
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: -0.2px;
}
.proj-card p{
  margin: 0 0 10px;
  color: color-mix(in srgb, var(--text) 88%, transparent);
  line-height: 1.75;
}
.proj-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 10px;
}
.proj-box{
  border: 1px solid var(--border);
  background: rgba(0,0,0,.02);
  border-radius: 16px;
  padding: 14px 14px;
}
body.dark .proj-box{ background: rgba(255,255,255,.04); }

.proj-box h3{
  margin: 0 0 8px;
  font-size: 15px;
}
.proj-list{
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}
.proj-list li{ margin: 6px 0; }
.proj-list-check{
  padding-left: 0;
  list-style: none;
}
.proj-list-check li{
  position: relative;
  padding-left: 26px;
}
.proj-list-check li::before{
  content: "✓";
  position:absolute;
  left: 0;
  top: 0;
  font-weight: 900;
  background: linear-gradient(45deg,#E1306C,#F77737);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.proj-note{
  margin-top: 10px !important;
  color: var(--muted) !important;
}

/* Footer corporativo */
.footer-corp{
  background: var(--footer);
  margin-top: 22px;
  padding: 44px 0 18px;
  border-top: 1px solid var(--border);
}
.footer-ally{
  color: var(--muted);
  line-height: 1.6;
  font-size: 13px;
}
.footer-mini-links a{ opacity: .9; }
.footer-mini-links a:hover{ color: var(--primary); }

/* Responsive */
@media(max-width: 900px){
  .proj-slides{ height: 300px; }
  .proj-grid{ grid-template-columns: 1fr; }
}
@media(max-width: 600px){
  .proj-title{ font-size: 26px; }
  .proj-slides{ height: 240px; }
  .proj-nav{ width:40px; height:40px; border-radius: 14px; }
}
/* ===============================
   PARTNERS GLASS (tarjetas + animación)
================================= */
.partners-glass{
  padding: 44px 16px 18px;
  background: var(--bg);
}

.partners-wrap{
  max-width: 1200px;
  margin: 0 auto;
}

.partners-head{
  max-width: 880px;
  margin: 0 auto 16px;
  text-align: center;
}

.partners-head h2{
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.2px;
}

.partners-head p{
  margin: 10px auto 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

/* Grid */
.partners-grid{
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media(max-width: 900px){
  .partners-grid{ grid-template-columns: 1fr; }
}

/* Tarjetas glass */
.partner-card{
  display: block;
  text-decoration: none;
  color: inherit;

  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  background: rgba(255,255,255,.56);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow: 0 14px 30px rgba(0,0,0,.06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

body.dark .partner-card{
  background: rgba(20,20,22,.52);
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
}

.partner-card:hover{
  transform: translateY(-3px);
  border-color: rgba(225,48,108,.35);
  box-shadow: 0 18px 40px rgba(0,0,0,.10);
}

.partner-inner{
  display:flex;
  align-items:center;
  gap: 14px;
  padding: 14px 14px;
}

/* Logo: B/N por defecto -> color al hover */
.partner-logo{
  width: 140px;
  max-width: 42vw;
  height: 54px;
  object-fit: contain;

  filter: grayscale(100%) contrast(1.05);
  opacity: .78;
  transition: filter .28s ease, opacity .28s ease, transform .28s ease;
}

.partner-card:hover .partner-logo{
  filter: grayscale(0%) contrast(1.02);
  opacity: 1;
  transform: translateY(-1px);
}

.partner-meta{
  min-width: 0;
  text-align: left;
}

.partner-name{
  font-weight: 900;
  font-size: 14px;
  letter-spacing: -0.1px;
}

.partner-sub{
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

/* Detalle sutil (línea degradado arriba de la tarjeta al hover) */
.partner-card::before{
  content:"";
  display:block;
  height: 2px;
  border-radius: 18px 18px 0 0;
  background: transparent;
  transition: background .25s ease;
}
/* Asegura que la tarjeta recorte la línea */
.partner-card{
  position: relative;
  overflow: hidden; /* ✅ clave */
}

/* Línea superior “real” clipeada por el borde */
.partner-card::before{
  content:"";
  position:absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;               /* puedes usar 2px si la quieres más fina */
  background: transparent;
  opacity: 0;
  transition: opacity .25s ease, background .25s ease;
}

/* Solo aparece al hover */
.partner-card:hover::before{
  opacity: 1;
  background: linear-gradient(45deg,#E1306C,#F77737);
}
/* ===============================
   ONEPAGE NAV (LIMPIO + STICKY)
   - Fijo arriba mientras scrolleas
   - Minimal, corporativo
================================= */

/* Para que los anchors no queden tapados por header + nav */
:root{
  --header-h: 64px; /* ajusta si tu header es más alto */
  --onepage-h: 52px;
}

/* Scroll suave */
html{ scroll-behavior: smooth; }

#proyecto, #que-hacemos, #impacto, #aliados{
  scroll-margin-top: calc(var(--header-h) + var(--onepage-h) + 14px);
}

/* Header: si quieres también sticky, aquí lo dejas normal o sticky.
   Si ya lo tienes relativo, lo respetamos. */
.site-header{
  background: var(--card);
}

/* Menú sticky real */
.onepage-nav{
  position: sticky;
  top: 0;                 /* queda pegado al top del viewport */
  z-index: 4000;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

/* Contenedor */
.onepage-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 12px;

  display:flex;
  align-items:center;
  gap: 10px;

  overflow-x:auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;

  position: relative;
}
.onepage-inner::-webkit-scrollbar{ display:none; }

/* Links (chips) */
.onepage-link{
  flex: 0 0 auto;
  height: var(--onepage-h);
  padding: 0 14px;
  border-radius: 999px;

  display:inline-flex;
  align-items:center;
  justify-content:center;

  font-weight: 900;
  font-size: 13px;
  white-space: nowrap;

  color: var(--text);
  background: rgba(0,0,0,.04);
  border: 1px solid transparent;

  transition: .18s ease;
}

body.dark .onepage-link{
  background: rgba(255,255,255,.07);
}

.onepage-link:hover{
  border-color: rgba(225,48,108,.25);
  box-shadow: 0 0 0 4px rgba(225,48,108,.10);
}

/* Activo simple (sin pill para evitar bugs) */
.onepage-link.is-active{
  background: linear-gradient(45deg,#E1306C,#F77737);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 18px rgba(225,48,108,.20);
}

/* En móvil, que no se sienta “apretado” */
@media(max-width:768px){
  :root{ --header-h: 64px; }
  .onepage-inner{ padding: 10px 10px; gap: 8px; }
  .onepage-link{ padding: 0 12px; font-size: 12.5px; }
}
/* FIX PROJ LISTS (sin color-mix) */
.proj-list{
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}
.proj-list li{ margin: 6px 0; }

.proj-list.proj-list-check{
  list-style: none;
  padding-left: 0;
  margin: 10px 0 0;
}

.proj-list.proj-list-check li{
  position: relative;
  padding-left: 26px;
  margin: 8px 0;
  color: var(--muted);
  line-height: 1.65;
}

.proj-list.proj-list-check li::before{
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 900;
  background: linear-gradient(45deg,#E1306C,#F77737);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* ===============================
   KPI COUNTERS (minimal + glass)
================================= */
.kpi{
  padding: 14px 16px 18px;
  background: var(--bg);
}

.kpi-wrap{
  max-width: 1200px;
  margin: 0 auto;
}

.kpi-head{
  text-align:center;
  max-width: 820px;
  margin: 0 auto 14px;
}

.kpi-title{
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.2px;
  font-weight: 900;
}

.kpi-sub{
  margin: 8px auto 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.kpi-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  justify-content:center;
  gap: 12px;
  margin-top: 14px;
}

@media(max-width: 980px){
  .kpi-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media(max-width: 600px){
  .kpi-grid{ grid-template-columns: 1fr; }
}

.kpi-card{
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);

  padding: 14px 14px;
  display:flex;
  gap: 12px;
  align-items:flex-start;

  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.kpi-card:hover{
  transform: translateY(-2px);
  border-color: rgba(225,48,108,.28);
  box-shadow: 0 18px 40px rgba(0,0,0,.10);
}

/* Icon con pill degradado */
.kpi-icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 auto;
  color:#fff;
  background: linear-gradient(45deg,#E1306C,#F77737);
  box-shadow: 0 10px 22px rgba(225,48,108,.20);
}

.kpi-icon svg{
  width: 22px;
  height: 22px;
}

.kpi-meta{ min-width:0; }

.kpi-number{
  font-size: 24px;
  font-weight: 1000;
  letter-spacing: -0.4px;
  line-height: 1.05;
}

.kpi-label{
  margin-top: 6px;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: -0.1px;
}

.kpi-desc{
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
/* SVG iconos de categorías */
.catemoji svg,
.side-icon svg{
  width: 22px;
  height: 22px;
  display:block;
}

/* Si tu SVG usa stroke="currentColor" */
.catemoji,
.side-icon{
  color: var(--text);
  opacity: .95;
}

/* Cuando el chip está activo (gradiente) */
.catchip.active .catemoji,
.catchip.active .catlabel{
  color:#fff;
}

.side-link.active .side-icon,
.side-link.active .side-text{
  color:#fff;
}
.historia-galeria{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-top:12px;
}
.historia-thumb{
  width:100%;
  height:190px; /* antes seguramente estaba en 100 o auto */
  border-radius:12px;
  overflow:hidden;
  cursor:pointer;
  background:#f3f4f6;
  position:relative;
}

.historia-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.lightbox{ position:fixed; inset:0; z-index:9999; }
.lightbox-backdrop{ position:absolute; inset:0; background:rgba(0,0,0,.7); }
#lightboxImg{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  max-width:92vw;
  max-height:88vh;
  border-radius:14px;
}
.lightbox-close{
  position:absolute;
  top:16px;
  right:18px;
  width:42px;
  height:42px;
  border-radius:999px;
  border:0;
  background:rgba(255,255,255,.18);
  color:#fff;
  font-size:28px;
  cursor:pointer;
}
.lightbox-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:46px;
  height:46px;
  border-radius:999px;
  border:0;
  background:rgba(255,255,255,.18);
  color:#fff;
  font-size:34px;
  line-height:46px;
  cursor:pointer;
  z-index:10001;
  display:flex;
  align-items:center;
  justify-content:center;
}

.lightbox-prev{ left:14px; }
.lightbox-next{ right:14px; }

.lightbox-nav:disabled{
  opacity:.35;
  cursor:not-allowed;
}

@media (max-width: 520px){
  .lightbox-nav{
    width:42px;
    height:42px;
    font-size:32px;
  }
}
/* ===== FOOTER PRO ===== */

.footer-pro{
  margin-top:28px;
  border-top:1px solid rgba(0,0,0,.06);
  background:linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,.95));
}

.footer-pro__container{
  max-width:1200px;
  margin:0 auto;
  padding:26px 16px 18px;
}

.footer-pro__top{
  display:grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap:22px;
  align-items:start;
}

.footer-pro__brand{
  padding:14px;
  border-radius:18px;
  background:rgba(255,255,255,.65);
  border:1px solid rgba(0,0,0,.06);
  box-shadow:0 12px 30px rgba(0,0,0,.06);
}

.footer-pro__logo{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:inherit;
  font-weight:900;
  font-size:18px;
}

.footer-pro__logo img{
  width:42px;
  height:42px;
  object-fit:contain;
  border-radius:12px;
}

.footer-pro__logo-fallback{
  display:inline-block;
}

.footer-pro__desc{
  margin:10px 0 12px;
  opacity:.78;
  line-height:1.5;
  font-size:14px;
}

.footer-pro__chips{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.footer-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.08);
  background:rgba(255,255,255,.8);
  text-decoration:none;
  color:inherit;
  font-size:13px;
  font-weight:700;
}

.footer-pro__cols{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:18px;
}

.footer-col h4{
  margin:0 0 10px;
  font-size:14px;
  font-weight:900;
  letter-spacing:.2px;
}

/* ✅ link divertido: se mueve y sale flecha */
.footer-link{
  display:block;
  position:relative;
  padding:8px 10px;
  margin:4px 0;
  border-radius:12px;
  text-decoration:none;
  color:inherit;
  opacity:.85;
  border:1px solid transparent;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, opacity .2s ease;
}

.footer-link span{
  display:inline-block;
  transition: transform .2s ease;
}

.footer-link::after{
  content:"";
  width:14px;
  height:14px;
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%) translateX(-6px);
  opacity:0;
  transition:all .2s ease;

  background:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23E1306C' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 12h14M13 5l7 7-7 7'/%3E%3C/svg%3E") center/contain no-repeat;
}

.footer-link:hover{
  background:rgba(255,255,255,.9);
  border-color:rgba(0,0,0,.06);
  opacity:1;
  transform: translateY(-1px);
}

.footer-link:hover span{
  transform: translateX(6px);
}

.footer-link:hover::after{
  opacity:1;
  transform: translateY(-50%) translateX(0);
}

/* Bottom */
.footer-pro__bottom{
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid rgba(0,0,0,.06);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.footer-pro__copy{
  opacity:.7;
  font-size:13px;
}

.footer-pro__social{
  display:flex;
  gap:10px;
}

.footer-pro .social-btn{
  width:42px;
  height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.08);
  background:rgba(255,255,255,.85);
  box-shadow:0 10px 22px rgba(0,0,0,.06);
  color:inherit;
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration:none;
}

.footer-pro .social-btn:hover{
  transform: translateY(-2px);
  box-shadow:0 16px 30px rgba(0,0,0,.10);
}

/* Responsive */
@media(max-width: 900px){
  .footer-pro__top{
    grid-template-columns:1fr;
  }
  .footer-pro__cols{
    grid-template-columns:1fr 1fr;
  }
}
@media(max-width: 520px){
  .footer-pro__cols{
    grid-template-columns:1fr;
  }
}
.card-cover-gradient{
  width:100%;
  height:160px;
  border-radius:14px 14px 0 0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:46px;
  font-weight:800;
  color:white;
  background-size:200% 200%;
  animation:gradientMove 6s ease infinite;
}

/* Gradientes por categoría */

.cat-alimentos-artesanales{
  background:linear-gradient(135deg,#f7971e,#ffd200);
}

.cat-belleza{
  background:linear-gradient(135deg,#ff6a88,#ff99ac);
}

.cat-arte{
  background:linear-gradient(135deg,#7F00FF,#E100FF);
}

.cat-servicios{
  background:linear-gradient(135deg,#36D1DC,#5B86E5);
}

.cat-moda{
  background:linear-gradient(135deg,#ff512f,#dd2476);
}

.cat-tecnologia{
  background:linear-gradient(135deg,#11998e,#38ef7d);
}

/* animación suave */

@keyframes gradientMove{
  0%{background-position:0% 50%;}
  50%{background-position:100% 50%;}
  100%{background-position:0% 50%;}
}/* ===== COVER GRADIENT (cuando NO hay portada) ===== */
.cover-grad{
  width:100%;
  height:100%;
  min-height:150px;           /* ajusta a tu alto de cover actual */
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:14px 14px 0 0; /* si tu cover ya redondea, lo respeta */
  background-size:200% 200%;
  animation:gradMove 6s ease infinite;
}

.cover-grad .cg-initial{
  font-weight:900;
  font-size:44px;
  line-height:1;
  color:#fff;
  text-shadow:0 12px 22px rgba(0,0,0,.22);
}

/* Gradientes por “tipo” */
.cover-grad.grad-food{
  background:linear-gradient(135deg,#f7971e,#ffd200);
}
.cover-grad.grad-beauty{
  background:linear-gradient(135deg,#ff6a88,#ff99ac);
}
.cover-grad.grad-art{
  background:linear-gradient(135deg,#7F00FF,#E100FF);
}
.cover-grad.grad-services{
  background:linear-gradient(135deg,#36D1DC,#5B86E5);
}
.cover-grad.grad-tech{
  background:linear-gradient(135deg,#11998e,#38ef7d);
}
.cover-grad.grad-default{
  background:linear-gradient(135deg,#E1306C,#F77737,#FCAF45);
}

@keyframes gradMove{
  0%{background-position:0% 50%;}
  50%{background-position:100% 50%;}
  100%{background-position:0% 50%;}
}
/* =========================================
   COVER GRADIENT (cuando NO hay portada)
   - SIN letras grandes
   - cambia por categoría
   - animación suave
========================================= */

/* El alto lo define .cover{height:130px;} en tu CSS.
   Esto solo ocupa 100% de ese alto */
.cover-grad{
  width:100%;
  height:100%;
  display:block;
  background-size:200% 200%;
  animation:gradMove 7s ease infinite;
}

/* ✅ Asegura que NO salga texto (por si quedó algo viejo) */
.cover-grad .cg-initial{ display:none !important; }
.cover-grad::before{ content:none !important; }

/* === Gradientes por categoría (coinciden con index.php) === */
.cover-grad.grad-bread{
  background: linear-gradient(135deg, #f7971e, #ffd200);
}

.cover-grad.grad-sweet{
  background: linear-gradient(135deg, #ff6a88, #ff99ac);
}

.cover-grad.grad-coffee{
  background: linear-gradient(135deg, #7b4a12, #f0a04b);
}

.cover-grad.grad-craft{
  background: linear-gradient(135deg, #7F00FF, #E100FF);
}

.cover-grad.grad-farm{
  background: linear-gradient(135deg, #00c6ff, #0072ff);
}

.cover-grad.grad-green{
  background: linear-gradient(135deg, #11998e, #38ef7d);
}

.cover-grad.grad-food{
  background: linear-gradient(135deg, #ff512f, #dd2476);
}

.cover-grad.grad-default{
  background: linear-gradient(135deg, #E1306C, #F77737, #FCAF45);
}

/* Animación */
@keyframes gradMove{
  0%{background-position:0% 50%;}
  50%{background-position:100% 50%;}
  100%{background-position:0% 50%;}
}
.video-play{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  font-size:28px;
  color:#fff;
  background:rgba(0,0,0,.55);
  width:44px;
  height:44px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
}
/* =========================
   HOME HERO / SLIDER
========================= */
.home-hero{
  padding: 14px 12px 6px;
  background: var(--bg);
}

.home-hero-slider{
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  height: 460px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
}

.home-hero-slide{
  position:absolute;
  inset:0;
  opacity:0;
  transform: scale(1.02);
  transition: opacity .6s ease, transform .6s ease;
}

.home-hero-slide.is-active{
  opacity:1;
  transform: scale(1);
  z-index: 1;
}

.home-hero-slide img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.home-hero-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.30) 48%, rgba(0,0,0,.10) 100%);
}

.home-hero-content{
  position:absolute;
  left: 72px;
  bottom: 38px;
  max-width: 680px;
  color:#fff;
  z-index:2;
}

@media(max-width:700px){
  .home-hero-content{
    left:18px;
    right:18px;
    bottom:18px;
    max-width:none;
  }
}

.hero-kicker,
.section-kicker{
  display:inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .3px;
  text-transform: uppercase;
  color:#fff;
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.home-hero-content h1,
.home-hero-content h2{
  margin: 14px 0 0;
  font-size: 46px;
  line-height: 1.06;
  letter-spacing: -.9px;
  font-weight: 1000;
}

.home-hero-content p{
  margin: 14px 0 0;
  font-size: 17px;
  line-height: 1.55;
  opacity: .95;
}

.home-hero-actions{
  margin-top: 20px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.hero-btn-primary,
.hero-btn-ghost{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration:none;
  transition: .2s ease;
}

.hero-btn-primary{
  color:#fff;
  background: linear-gradient(45deg,#E1306C,#F77737);
  box-shadow: 0 14px 28px rgba(225,48,108,.28);
}

.hero-btn-primary:hover{
  transform: translateY(-2px);
}

.hero-btn-ghost{
  color:#fff;
  border:1px solid rgba(255,255,255,.24);
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-btn-ghost:hover{
  background: rgba(255,255,255,.16);
}

.hero-btn-ghost.darkline{
  color: var(--text);
  border-color: var(--border);
  background: rgba(0,0,0,.03);
}
body.dark .hero-btn-ghost.darkline{
  background: rgba(255,255,255,.06);
  color: var(--text);
}

/* flechas */
.hero-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:5;
  width:48px;
  height:48px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.14);
  color:#fff;
  font-size:30px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-nav.prev{ left: 16px; }
.hero-nav.next{ right: 16px; }

.hero-nav:hover{
  transform: translateY(-50%) scale(1.03);
}

/* dots */
.hero-dots{
  position:absolute;
  left:0;
  right:0;
  bottom:16px;
  z-index:5;
  display:flex;
  justify-content:center;
  gap:8px;
}

.hero-dot{
  width:10px;
  height:10px;
  border:0;
  border-radius:999px;
  cursor:pointer;
  background: rgba(255,255,255,.58);
  transition: .25s ease;
}

.hero-dot.is-active{
  width:28px;
  background: linear-gradient(45deg,#E1306C,#F77737);
}

/* =========================
   SEARCH PRO
========================= */
.search-pro-section{
  padding: 18px 12px 2px;
}

.search-pro-wrap{
  max-width: 1200px;
  margin: 0 auto;
}

.search-pro-card{
  border-radius: 22px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  padding: 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}

.search-pro-head h2{
  margin:0;
  font-size: 22px;
}

.search-pro-head p{
  margin:6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.search-pro-form{
  display:flex;
  gap:10px;
  flex:1;
  justify-content:flex-end;
  flex-wrap:wrap;
}

.search-pro-input-wrap{
  position:relative;
  min-width: 300px;
  flex: 1 1 420px;
  max-width: 680px;
}

.search-pro-icon{
  position:absolute;
  left:14px;
  top:50%;
  transform:translateY(-50%);
  width:18px;
  height:18px;
  opacity:.58;
}

.search-pro-input{
  width:100%;
  height:48px;
  border-radius: 999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.58);
  padding: 0 16px 0 42px;
  color: var(--text);
  outline:none;
}

body.dark .search-pro-input{
  background: rgba(255,255,255,.05);
}

.search-pro-input:focus{
  border-color: rgba(225,48,108,.55);
  box-shadow: 0 0 0 4px rgba(225,48,108,.12);
}

.search-pro-btn{
  height:48px;
  padding: 0 18px;
  border:0;
  border-radius: 999px;
  cursor:pointer;
  font-weight:900;
  color:#fff;
  background: linear-gradient(45deg,#E1306C,#F77737);
}

/* =========================
   SECTION HEAD
========================= */
.section-head{
  max-width: 840px;
  margin: 0 auto 16px;
}

.section-head.center{
  text-align:center;
}

.section-head h2{
  margin: 12px 0 0;
  font-size: 34px;
  font-weight: 1000;
  letter-spacing: -.6px;
}

.section-head p{
  margin: 10px auto 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}

/* =========================
   HOME CATEGORIES
========================= */
.home-cats{
  max-width: 1200px;
  margin: 28px auto 0;
  padding: 0 12px;
}

.home-cats-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
  margin-top: 18px;
}

.home-cat-card{
  display:block;
  border-radius: 22px;
  padding: 20px;
  color:#fff;
  text-decoration:none;
  min-height: 180px;
  position:relative;
  overflow:hidden;
  box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease;
}

.home-cat-card:hover{
  transform: translateY(-4px);
}

.home-cat-icon{
  font-size: 34px;
  line-height: 1;
}

.home-cat-card h3{
  margin: 18px 0 8px;
  font-size: 22px;
  font-weight: 1000;
}

.home-cat-card p{
  margin:0;
  line-height:1.55;
  opacity:.95;
  max-width: 320px;
}

.cat-pink{ background: linear-gradient(135deg,#E1306C,#ff7aa2); }
.cat-orange{ background: linear-gradient(135deg,#F77737,#FCAF45); }
.cat-purple{ background: linear-gradient(135deg,#7F00FF,#E100FF); }
.cat-blue{ background: linear-gradient(135deg,#36D1DC,#5B86E5); }
.cat-red{ background: linear-gradient(135deg,#ff416c,#ff4b2b); }
.cat-green{ background: linear-gradient(135deg,#11998e,#38ef7d); }

/* =========================
   HOW IT WORKS
========================= */
.how-it-works{
  max-width:1200px;
  margin: 34px auto 0;
  padding: 0 12px;
}

.how-grid{
  display:grid;
  grid-template-columns: repeat(3,1fr);
  gap:14px;
  margin-top:18px;
}

.how-card{
  border-radius: 22px;
  border:1px solid var(--border);
  background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  padding: 20px;
}

.how-num{
  width:44px;
  height:44px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  font-weight:1000;
  color:#fff;
  background: linear-gradient(45deg,#E1306C,#F77737);
  box-shadow: 0 10px 22px rgba(225,48,108,.20);
}

.how-card h3{
  margin: 16px 0 8px;
  font-size: 20px;
}

.how-card p{
  margin:0;
  color: var(--muted);
  line-height:1.65;
}

/* =========================
   KPI MODERN
========================= */
.kpi-modern{
  max-width:1200px;
  margin: 34px auto 0;
  padding: 0 12px;
}

.kpi-modern-grid{
  display:grid;
  grid-template-columns: repeat(4,1fr);
  gap:14px;
  margin-top:18px;
}

.kpi-modern-card{
  border-radius: 22px;
  border:1px solid var(--border);
  background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  padding: 18px;
}

.kpi-modern-card strong{
  display:block;
  font-size: 30px;
  font-weight:1000;
  line-height:1.05;
}

.kpi-modern-card span{
  display:block;
  margin-top:8px;
  font-weight:900;
  font-size:14px;
}

.kpi-modern-card p{
  margin:8px 0 0;
  color: var(--muted);
  line-height:1.55;
  font-size:13px;
}

/* =========================
   CTA FINAL
========================= */
.home-cta{
  max-width:1200px;
  margin: 36px auto 0;
  padding: 0 12px;
}

.home-cta-card{
  border-radius: 26px;
  padding: 28px;
  color:#fff;
  background: linear-gradient(135deg,#E1306C 0%, #F77737 52%, #FCAF45 100%);
  box-shadow: 0 20px 40px rgba(225,48,108,.24);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
}

.home-cta-text h2{
  margin: 14px 0 0;
  font-size: 34px;
  line-height:1.1;
  font-weight:1000;
  letter-spacing:-.6px;
}

.home-cta-text p{
  margin: 12px 0 0;
  max-width: 720px;
  line-height:1.6;
  opacity:.96;
}

.home-cta-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

/* =========================
   RESPONSIVE
========================= */
@media(max-width: 980px){
  .home-hero-slider{ height: 400px; }
  .home-hero-content h1,
  .home-hero-content h2{ font-size: 36px; }

  .home-cats-grid,
  .how-grid,
  .kpi-modern-grid{
    grid-template-columns: repeat(2,1fr);
  }
}

@media(max-width: 700px){
  .home-hero-slider{ height: 340px; border-radius: 18px; }
  .home-hero-content{
    left:18px;
    right:18px;
    bottom:18px;
    max-width:none;
  }

  .home-hero-content h1,
  .home-hero-content h2{
    font-size: 28px;
  }

  .home-hero-content p{
    font-size:14px;
  }

  .search-pro-card{
    padding: 16px;
  }

  .search-pro-input-wrap{
    min-width: 100%;
    flex: 1 1 100%;
  }

  .home-cats-grid,
  .how-grid,
  .kpi-modern-grid{
    grid-template-columns: 1fr;
  }

  .section-head h2{
    font-size: 28px;
  }

  .home-cta-text h2{
    font-size: 28px;
  }

 /* ===============================
   HERO NAV (flechas ocultas)
=================================*/

.hero-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:5;

  width:40px;
  height:40px;
  border-radius:999px;

  border:1px solid rgba(255,255,255,.15);
  background: rgba(20,20,25,.25);

  color:#fff;
  font-size:22px;
  font-weight:700;

  display:flex;
  align-items:center;
  justify-content:center;

  cursor:pointer;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  transition:
    opacity .25s ease,
    transform .2s ease,
    background .2s ease;

  opacity:0;           /* ocultas */
  pointer-events:none; /* no interfieren */
}

/* posición */
.hero-nav.prev{ left:12px; }
.hero-nav.next{ right:12px; }

/* aparecen cuando pasas el mouse por el slider */
.home-hero-slider:hover .hero-nav{
  opacity:.85;
  pointer-events:auto;
}

/* hover */
.hero-nav:hover{
  opacity:1;
  transform:translateY(-50%) scale(1.05);
  background: rgba(20,20,25,.40);
}

/* ===============================
   MOBILE
=================================*/

@media(max-width:700px){

  /* en móvil sí se ven siempre */
  .hero-nav{
    opacity:.8;
    pointer-events:auto;

    width:34px;
    height:34px;
    font-size:18px;
  }

  .hero-nav.prev{ left:8px; }
  .hero-nav.next{ right:8px; }
/* =========================
   TOPBAR PÚBLICO LIMPIO
========================= */
.site-header-public{
  position: sticky;
  top: 0;
  z-index: 5000;
  width: 100%;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

body.dark .site-header-public{
  background: rgba(20,20,22,.92);
}

.header-inner-public{
  max-width: 1200px;
  margin: 0 auto;
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  position: relative;
}

.header-left-public{
  display: flex;
  align-items: center;
  min-width: 0;
}

.site-logo-public{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -.3px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.logo-dot{
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(45deg,#E1306C,#F77737);
  box-shadow: 0 8px 18px rgba(225,48,108,.25);
  flex: 0 0 auto;
}

.site-nav-public{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.site-nav-public a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 15px;
  border-radius: 999px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  transition: .18s ease;
  white-space: nowrap;
}

.site-nav-public a:hover{
  background: rgba(0,0,0,.05);
}

body.dark .site-nav-public a:hover{
  background: rgba(255,255,255,.08);
}

.site-nav-public a.is-active{
  background: linear-gradient(45deg,#E1306C,#F77737);
  color: #fff;
  box-shadow: 0 10px 24px rgba(225,48,108,.20);
}

.header-right-public{
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle-public{
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

body.dark .nav-toggle-public{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
}

.nav-toggle-public span{
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: .25s ease;
}

.nav-toggle-public.is-open span:nth-child(1){
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle-public.is-open span:nth-child(2){
  opacity: 0;
}
.nav-toggle-public.is-open span:nth-child(3){
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 920px){
  .header-inner-public{
    grid-template-columns: auto 1fr auto;
  }

  .nav-toggle-public{
    display: inline-flex;
    justify-self: center;
  }

  .site-nav-public{
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 12px;
    right: 12px;
    z-index: 6000;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0,0,0,.12);
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .site-nav-public.is-open{
    display: flex;
  }

  .site-nav-public a{
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 640px){
  .header-inner-public{
    min-height: 68px;
    padding: 0 12px;
    gap: 10px;
  }

  .site-logo-public{
    font-size: 17px;
  }

  .site-nav-public{
    left: 10px;
    right: 10px;
  }
}

/* =========================
   FOOTER PRO LIMPIO
========================= */
.footer-pro{
  margin-top: 28px;
  border-top: 1px solid rgba(0,0,0,.06);
  background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.96));
}

.footer-pro__container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 26px 16px 18px;
}

.footer-pro__top{
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 22px;
  align-items: start;
}

.footer-pro__brand{
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
}

.footer-pro__logo{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-weight: 900;
  font-size: 18px;
}

.footer-pro__logo-dot{
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(45deg,#E1306C,#F77737);
  box-shadow: 0 8px 18px rgba(225,48,108,.25);
  flex: 0 0 auto;
}

.footer-pro__logo-fallback{
  display: inline-block;
}

.footer-pro__desc{
  margin: 10px 0 12px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.footer-pro__chips{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.88);
  text-decoration: none;
  color: inherit;
  font-size: 13px;
  font-weight: 700;
}

.footer-pro__cols{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.footer-col h4{
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .2px;
}

.footer-link{
  display: block;
  position: relative;
  padding: 8px 10px;
  margin: 4px 0;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  opacity: .88;
  border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, opacity .2s ease;
}

.footer-link span{
  display: inline-block;
  transition: transform .2s ease;
}

.footer-link::after{
  content:"";
  width:14px;
  height:14px;
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%) translateX(-6px);
  opacity:0;
  transition:all .2s ease;
  background:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23E1306C' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 12h14M13 5l7 7-7 7'/%3E%3C/svg%3E") center/contain no-repeat;
}

.footer-link:hover{
  background: rgba(255,255,255,.92);
  border-color: rgba(0,0,0,.06);
  opacity: 1;
  transform: translateY(-1px);
}

.footer-link:hover span{
  transform: translateX(6px);
}

.footer-link:hover::after{
  opacity:1;
  transform: translateY(-50%) translateX(0);
}

.footer-pro__bottom{
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-pro__copy{
  color: var(--muted);
  font-size: 13px;
}

/* =========================
   FOOTER PRO DARK MODE
========================= */
body.dark .footer-pro{
  background: linear-gradient(180deg, rgba(18,19,20,.92), rgba(18,19,20,.98));
  border-top: 1px solid rgba(255,255,255,.08);
}

body.dark .footer-pro__brand{
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.08);
  box-shadow: 0 12px 30px rgba(0,0,0,.30);
}

body.dark .footer-chip{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.10);
  color: var(--text);
}

body.dark .footer-link{
  color: var(--text);
  opacity: .9;
}

body.dark .footer-link:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.08);
}

body.dark .footer-pro__bottom{
  border-top-color: rgba(255,255,255,.08);
}

body.dark .footer-pro__copy{
  color: var(--muted);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px){
  .footer-pro__top{
    grid-template-columns: 1fr;
  }

  .footer-pro__cols{
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px){
  .footer-pro__cols{
    grid-template-columns: 1fr;
  }

  .footer-pro__container{
    padding: 24px 12px 16px;
  }
}