:root{--raspberry:#b1005a;--text:#101828;--muted:#667085;--border:#EEF2F6;--bg:#f5f6fe}
*{box-sizing:border-box}
html,body{height:100%}
/* Evitar desplazamiento horizontal en móviles por desbordes */
html,body{overflow-x:hidden}
body{display:flex;flex-direction:column;min-height:100vh;margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;color:var(--text);background:var(--bg)}
.container{max-width:1100px;margin:0 auto;padding:0 16px}
.py-5{padding-top:3rem;padding-bottom:3rem;flex:1 0 auto}

/* HERO */
.full-bleed{position:relative;left:50%;right:50%;margin-left:-50vw;margin-right:-50vw;width:100vw}
.hero{padding:72px 0;background:linear-gradient(180deg,#F4F5FF 0%, #F7F0FA 60%, #FFFFFF 100%)}
.hero-inner{max-width:880px;margin:0 auto;text-align:center;padding:24px}
.hero-icon{width:56px;height:56px;line-height:56px;margin:0 auto 12px;border-radius:14px;background:#ffecf4;color:var(--raspberry);font-weight:700;font-size:24px}
.hero-title{font-size:42px;line-height:1.1;margin:8px 0 10px}
.hero-subtitle{color:var(--muted);margin:0 0 22px}
.hero-form{display:flex;justify-content:center}
.input-xl{width:100%;max-width:760px;border:1px solid var(--border);border-radius:14px;overflow:visible;background:#fff;box-shadow:0 6px 22px rgba(16,24,40,.06);display:flex;align-items:center;padding:6px}
.input-xl .input-group-text{height:44px;display:flex;align-items:center;justify-content:center;padding:0 12px;background:#fff;border:none;color:var(--muted)}
.input-xl .input-group-text svg{width:18px;height:18px}
.input-xl .form-control{height:44px;font-size:16px;border:none;flex:1;min-width:0;padding:0 12px;background:#fff}
.input-xl .form-control::placeholder{color:var(--muted)}
.input-xl .form-control:focus{outline:none;box-shadow:none}
.input-xl .btn{height:40px;font-size:16px;border-radius:10px;margin-left:8px;padding:0 16px}
.input-xl .btn.btn-primary{background:linear-gradient(135deg,#ff3da8,#b1005a);border-color:transparent}

/* Mejoras de ajuste extremo para móviles muy pequeños */
@media (max-width:380px){
  .input-xl{flex-wrap:wrap;padding:6px}
  .input-xl .btn{margin-left:0;margin-top:8px;width:100%;height:44px}
}

/* Grid & utilities (ligero) */
#page{display:grid;grid-template-columns:1fr;gap:1.25rem}
.row{display:flex;flex-wrap:wrap;gap:1rem}
.col-12{flex:0 0 100%}
.col-4{flex:0 0 calc(33.333% - .01px)}
.col-md-2{flex:0 0 100%}
.col-md-4{flex:0 0 100%}
.col-md-6{flex:0 0 100%}
.col-lg-6{flex:0 0 100%}
.col-lg-4{flex:0 0 100%}
.col-lg-8{flex:0 0 100%}
@media (min-width:768px){
  .col-md-2{flex-basis:calc(16.666% - .01px)}
  .col-md-4{flex-basis:calc(33.333% - .01px)}
  .col-md-6{flex-basis:calc(50% - .01px)}
}
@media (min-width:992px){
  .col-lg-6{flex-basis:calc(50% - .01px)}
  .col-lg-4{flex-basis:calc(33.333% - .01px)}
  .col-lg-8{flex-basis:calc(66.666% - .01px)}
  #page{display:grid;grid-template-columns:1fr 2fr;align-items:start}
}
.g-3{gap:1rem}
.g-4{gap:1.25rem}
.d-flex{display:flex}
.align-items-center{align-items:center}
.justify-content-between{justify-content:space-between}
.text-center{text-align:center}
.small{font-size:.875rem}
.gap-3{gap:.75rem}
.gap-4{gap:1rem}
.mt-2{margin-top:.5rem}
.mt-4{margin-top:1.25rem}
.w-100{width:100%}
.d-none{display:none}

/* Evitar que imágenes o SVG desborden en el contenido (no afecta header/footer) */
main img,main svg{max-width:100%;height:auto}

/* Medias mínimas para tipografía en móviles */
@media (max-width:575.98px){
  .hero-title{font-size:34px}
  .hero-inner{padding:18px}
}

/* Header */
.aclc-header{position:sticky;top:0;background:#fff;border-bottom:1px solid var(--border);z-index:10}
.aclc-header .head-inner{display:flex;align-items:center;justify-content:space-between;padding:12px 16px}
.aclc-header .brand{display:inline-flex;align-items:center;gap:8px;text-decoration:none}
/* Menú principal */
.aclc-header .menu-toggle{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border:1px solid var(--border);border-radius:10px;background:#fff;color:var(--text);cursor:pointer}
.aclc-header .menu-toggle:hover{background:#fafafa}
.aclc-header .nav-links{display:flex;align-items:center;gap:16px}
.aclc-header .nav-links .menu{list-style:none;display:flex;align-items:center;margin:0;padding:0}
.aclc-header .nav-links .menu-item{position:relative}
.aclc-header .nav-links .menu-link{display:inline-flex;align-items:center;gap:8px;color:var(--text);text-decoration:none;padding:8px 10px;border-radius:10px}
.aclc-header .nav-links .menu-link:hover{background:#f7f7fb}
.aclc-header .nav-links .chev{opacity:.6}
/* Dropdown */
.aclc-header .dropdown{position:absolute;top:calc(100% + 10px);left:0;min-width:260px;background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:0 12px 28px rgba(16,24,40,.12);padding:8px;display:none;list-style:none;margin:0}
.aclc-header .dropdown a{display:block;padding:10px 12px;border-radius:8px;color:var(--text);text-decoration:none}
.aclc-header .dropdown a:hover{background:#f5f6fe}
.aclc-header .has-dropdown:hover > .dropdown{display:block}
.aclc-header .has-dropdown:focus-within > .dropdown{display:block}
.aclc-header .btn-cta{padding:10px 16px;border-radius:999px;background:#d22f41;color:#fff;border:0;text-decoration:none;box-shadow:0 6px 14px rgba(210,47,65,.25)}
.aclc-header .btn-cta:hover{filter:brightness(.95)}
/* Evitar hueco entre botón y dropdown en escritorio */
@media (min-width:992px){
  .aclc-header .dropdown::before{content:"";position:absolute;top:-12px;left:0;right:0;height:12px}
}
/* Responsive */
@media (max-width:991.98px){
  .aclc-header .menu-toggle{display:inline-flex}
  .aclc-header .nav-links{position:fixed;inset:64px 12px auto 12px;transform:translateY(-12px);background:#fff;border:1px solid var(--border);box-shadow:0 16px 36px rgba(16,24,40,.16);border-radius:14px;padding:12px;display:none;flex-direction:column;align-items:stretch;gap:10px}
  .aclc-header .nav-links.is-open{display:flex}
  .aclc-header .nav-links .menu{flex-direction:column;align-items:stretch}
  .aclc-header .nav-links .menu-link{padding:10px 12px}
  .aclc-header .has-dropdown > .dropdown{position:static;display:none;border:1px solid var(--border);box-shadow:none;margin-top:6px}
  .aclc-header .has-dropdown.open > .dropdown{display:block}
}
@media (min-width:992px){
  .aclc-header .menu-toggle{display:none}
}

/* Cards & UI */
.card{border-radius:14px;border:1px solid var(--border);background:#fff;box-shadow:0 2px 12px rgba(16,24,40,.06)}
.card .card-title{font-weight:700}
.card .card-header{padding:12px 16px;border-bottom:1px solid var(--border);font-weight:600}
.card .card-body{padding:18px 16px}
.avatar-lg{width:88px;height:88px;border-radius:50%;object-fit:cover;border:1px solid var(--border);display:block;margin:0 auto 6px}
.profile-head h3{margin:6px 0 2px}
.stats-card{display:flex;gap:0;border:1px solid var(--border);border-radius:12px;overflow:hidden;background:#fff;box-shadow:0 1px 6px rgba(16,24,40,.04)}
.stats-card .stats-item{flex:1;padding:12px 8px}
.stats-card .stats-item + .stats-item{border-left:1px solid var(--border)}
.er-notice{display:flex;align-items:center;gap:8px;border:1px solid #D1FADF;background:#ECFDF3;color:#027A48;border-radius:10px;padding:10px 12px;font-size:.9rem}
.er-notice::before{content:"⭐"}
.btn-outline-raspberry{border-color:#ff4db4;color:#b1005a;background:#fff}
.btn-outline-raspberry:hover{background:#fff0f7}
.kpi-row{display:grid;grid-template-columns:1fr;gap:12px;margin-bottom:12px}
.kpi-card{border:1px solid var(--border);border-radius:14px;padding:14px;background:#fff;display:flex;flex-direction:column;align-items:center;gap:6px;box-shadow:0 1px 6px rgba(16,24,40,.04)}
.kpi-card{min-width:0}
@media (min-width:576px){
  .kpi-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
}
.kpi-card .kpi-icon{font-size:20px}
.kpi-card .kpi-value{font-weight:700;font-size:20px}
.kpi-card .kpi-label{color:var(--muted)}

/* Publicaciones */
#loadMoreWrap{display:none !important}
.input-group{display:flex;align-items:center}
.input-group .input-group-text{background:#fff;border:1px solid var(--border);border-right:none;border-radius:10px 0 0 10px;padding:10px 12px}
.form-control{border:1px solid var(--border);border-left:none;border-radius:0 10px 10px 0;padding:10px 12px;outline:none}
.form-control:focus{border-color:#d6dce3;box-shadow:0 0 0 2px rgba(177,0,90,.08)}
.form-label{font-weight:600;color:var(--muted)}

.btn{border-radius:10px;padding:10px 16px;border:1px solid transparent;cursor:pointer}
.btn-primary{background:var(--raspberry);border-color:var(--raspberry);color:#fff}
.btn-primary:hover{filter:brightness(.95)}
.btn-outline-secondary{border-color:var(--border);background:#fff;color:var(--text)}
.btn[disabled]{opacity:.7;cursor:not-allowed}

/* Typography */
.display-6{font-size:2.2rem}
.text-muted{color:var(--muted)!important}
.h3{font-size:1.5rem}
.h4{font-size:1.25rem}
.h6{font-size:1rem}
.fw-bold{font-weight:700}

/* Post cards */
.post-card{display:block;border:1px solid var(--border);border-radius:12px;overflow:hidden;text-decoration:none;color:inherit;background:#fff;box-shadow:0 1px 6px rgba(16,24,40,.04)}
.post-card:hover{box-shadow:0 4px 18px rgba(16,24,40,.08)}
.post-thumb{width:100%;padding-top:100%;background:#eee center/cover no-repeat}
.post-meta{padding:10px 12px}
/* Grid responsivo para publicaciones */
@media (min-width:768px){
  #posts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
  #posts > div{flex:initial}
}
@media (min-width:992px){
  #posts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
  #posts > div{flex:initial}
}

/* Loading */
.loading-overlay{position:fixed;inset:0;background:rgba(255,255,255,.7);backdrop-filter:saturate(180%) blur(4px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px}
/* Asegurar que se oculte si tiene d-none */
.loading-overlay.d-none{display:none !important}
.spinner{width:36px;height:36px;border-radius:50%;border:3px solid #e9e9f2;border-top-color:var(--raspberry);animation:spin .9s linear infinite}
.loading-text{color:var(--muted)}
@keyframes spin{to{transform:rotate(360deg)}}

/* Footer */
.aclc-footer{margin-top:auto;border-top:1px solid var(--border);background:#fff;width:100%}
.aclc-footer .container{padding:22px 16px;display:flex;flex-direction:column;align-items:center;gap:16px}
.aclc-footer .footer-social{display:flex;align-items:center;gap:18px}
.aclc-footer .footer-social .social-link{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:10px;color:#9aa3af;background:#f4f5f7;border:1px solid var(--border);text-decoration:none;transition:all .2s ease}
.aclc-footer .footer-social .social-link:hover{color:#111827;background:#fff}
.aclc-footer .footer-social svg{width:20px;height:20px}

.aclc-footer .footer-links{width:100%;display:flex;flex-direction:column;align-items:center;gap:12px}
.aclc-footer .footer-links .link-row{list-style:none;display:flex;flex-wrap:wrap;justify-content:center;gap:18px;margin:0;padding:0}
.aclc-footer .footer-links .link-row a{color:var(--text);text-decoration:none}
.aclc-footer .footer-links .link-row a:hover{text-decoration:underline}
.aclc-footer .footer-links .small-row{gap:24px}

.aclc-footer .footer-copy{display:block;color:var(--muted);text-align:center}

@media (min-width:768px){
  .aclc-footer .container{gap:18px}
  .aclc-footer .footer-social .social-link{width:40px;height:40px}
  .aclc-footer .footer-social svg{width:22px;height:22px}
}

@media (min-width:992px){
  .aclc-footer .footer-links .link-row{gap:28px}
  .aclc-footer .footer-links .small-row{gap:32px}
}

/* ======================
   NUEVAS SECCIONES
   ====================== */

/* Sección promocional UGC */
.ugc-promo-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #e879f9 0%, #d946ef 25%, #c026d3 50%, #a21caf 75%, #86198f 100%);
  color: white;
}

.ugc-promo-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.ugc-content {
  text-align: center;
}

.ugc-title {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 16px 0;
  line-height: 1.2;
}

.ugc-subtitle {
  font-size: 18px;
  margin: 0 0 24px 0;
  opacity: 0.95;
  line-height: 1.4;
}

.ugc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: #a21caf;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
}

.ugc-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  color: #86198f;
}

.ugc-video {
  display: flex;
  justify-content: center;
}

.video-player {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.video-player:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 35px rgba(0,0,0,0.25);
}

@media (min-width: 768px) {
  .ugc-promo-inner {
    grid-template-columns: 2fr 1fr;
    gap: 48px;
  }
  
  .ugc-content {
    text-align: left;
  }
  
  .ugc-title {
    font-size: 40px;
  }
  
  .ugc-subtitle {
    font-size: 20px;
  }
}

/* Sección "Cómo funciona" */
.how-it-works {
  padding: 80px 0;
  background: white;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 48px 0;
  color: var(--text);
}

.steps-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.step-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(16,24,40,0.06);
  transition: all 0.2s ease;
}

.step-card:hover {
  box-shadow: 0 4px 20px rgba(16,24,40,0.1);
  transform: translateY(-2px);
}

.step-number {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #ff3da8, #b1005a);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: var(--text);
}

.step-content p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

@media (min-width: 768px) {
  .steps-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
  
  .step-card {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }
  
  .step-number {
    margin: 0 auto;
  }
}

/* Sección explicativa */
.explanation-section {
  padding: 60px 0;
  background: #f8fafc;
}

.explanation-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.explanation-content p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 20px 0;
}

.explanation-content p:last-child {
  margin-bottom: 0;
}

/* Preguntas frecuentes */
.faq-section {
  padding: 80px 0;
  background: white;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  background: white;
  box-shadow: 0 1px 6px rgba(16,24,40,0.04);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.2s ease;
}

.faq-question:hover {
  background: #f8fafc;
}

.faq-question h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: inherit;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 24px 20px 24px;
  max-height: 500px;
}

.faq-answer p {
  margin: 0 0 12px 0;
  color: var(--muted);
  line-height: 1.5;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer ul,
.faq-answer ol {
  margin: 12px 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.5;
}

.faq-answer li {
  margin-bottom: 8px;
}

.faq-answer li:last-child {
  margin-bottom: 0;
}

.faq-answer a {
  color: var(--raspberry);
  text-decoration: none;
}

.faq-answer a:hover {
  text-decoration: underline;
}

/* Tabla de engagement */
.engagement-table-section {
  padding: 80px 0;
  background: #f8fafc;
}

.table-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 40px 0;
  color: var(--text);
}

.table-responsive {
  overflow-x: auto;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(16,24,40,0.08);
  background: white;
}

.engagement-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 14px;
}

.engagement-table th,
.engagement-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.engagement-table th {
  background: #f8fafc;
  font-weight: 600;
  color: var(--text);
  font-size: 15px;
  white-space: nowrap;
}

.engagement-table td {
  color: var(--text);
  white-space: nowrap;
}

.engagement-table tbody tr:hover {
  background: #f8fafc;
}

.engagement-table tbody tr:last-child td {
  border-bottom: none;
}

@media (max-width: 767.98px) {
  .engagement-table {
    font-size: 12px;
  }
  
  .engagement-table th,
  .engagement-table td {
    padding: 12px 16px;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .table-title {
    font-size: 22px;
  }
  
  .ugc-title {
    font-size: 28px;
  }
  
  .ugc-subtitle {
    font-size: 16px;
  }
}

@media (max-width: 575.98px) {
  .ugc-promo-section {
    padding: 40px 0;
  }
  
  .how-it-works {
    padding: 60px 0;
  }
  
  .faq-section,
  .engagement-table-section {
    padding: 60px 0;
  }
  
  .section-title {
    margin-bottom: 32px;
  }
  
  .engagement-table th,
  .engagement-table td {
    padding: 10px 12px;
  }
}
