/* ============================================================
   Feina — página de producto (rrdesarrollos.cl/feina)
   Se carga DESPUÉS de style.css: reutiliza navbar, botones,
   footer y WhatsApp FAB, y agrega la identidad de Feina.
   Colores de marca: violeta #513DA1 | ámbar #FFC72C (logo RR)
   ============================================================ */

.page-feina {
    --c-violeta: #513DA1;
    --c-hondo:   #3A2A7D;
    --c-noche:   #221851;
    --c-lavanda: #F6F5FA;
    --c-linea:   #E4E0F2;
    --c-ambar:   #FFC72C;
    --c-texto:   #1E1A2E;
    --c-suave:   #5E5873;
    --c-display: 'Lexend', 'Poppins', sans-serif;
}

.page-feina h1,
.page-feina h2,
.page-feina h3 { font-family: var(--c-display); letter-spacing: -0.01em; text-wrap: balance; }

/* ---- Navbar: el logo de Feina siempre visible ---- */
.page-feina .nav-logo img {
    height: 34px;
    opacity: 1;
    pointer-events: auto;
}
.page-feina .navbar.scrolled { background: rgba(58, 42, 125, 0.97); }

/* ---- Encabezados de sección ---- */
.c-head { max-width: 680px; margin: 0 auto 3.5rem; text-align: center; }
.c-head h2 {
    font-size: clamp(1.7rem, 3.6vw, 2.5rem);
    font-weight: 800;
    color: var(--c-violeta);
    line-height: 1.2;
    margin-bottom: 0.9rem;
}
.c-head p { color: var(--c-suave); font-size: 1.05rem; }
.c-dark .c-head h2 { color: #fff; }
.c-dark .c-head p { color: rgba(255,255,255,0.75); }

.c-dark { background: var(--c-hondo); color: #fff; }
.c-soft { background: var(--c-lavanda); }

/* ============================================================
   HERO
   ============================================================ */
.c-hero {
    position: relative;
    background-color: var(--c-violeta);
    background-image:
        radial-gradient(ellipse 70% 60% at 75% 45%, rgba(255,199,44,0.10), transparent 70%),
        linear-gradient(rgba(255,255,255,0.055) 2px, transparent 2px),
        linear-gradient(90deg, rgba(255,255,255,0.055) 2px, transparent 2px);
    background-size: auto, 76px 76px, 76px 76px;
    color: #fff;
    padding: calc(var(--nav-height) + 4.5rem) 0 5rem;
    overflow: hidden;
}
.c-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 3rem;
    align-items: center;
}
.c-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--c-ambar);
    background: rgba(255,199,44,0.12);
    border: 1px solid rgba(255,199,44,0.28);
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    margin-bottom: 1.4rem;
}
.c-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.3rem;
}
.c-hero h1 em { font-style: normal; color: var(--c-ambar); }
.c-br-desk { display: none; }
@media (min-width: 1025px) {
    .c-hero h1 { text-wrap: wrap; }
    .c-hero h1 em { white-space: nowrap; }
    .c-br-desk { display: inline; }
}
.c-hero-sub {
    font-size: 1.12rem;
    color: rgba(255,255,255,0.85);
    max-width: 540px;
    margin-bottom: 2rem;
}
.c-hero-btns { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.6rem; }
.c-hero-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.4rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
}
.c-hero-notes i { color: var(--c-ambar); margin-right: 0.35rem; }

/* ---- Teléfono de ejemplo ---- */
.c-phone-wrap { position: relative; display: flex; justify-content: center; }
.c-phone {
    width: 300px;
    max-width: 100%;
    background: var(--c-lavanda);
    border: 10px solid #17103a;
    border-radius: 40px;
    box-shadow: 0 30px 80px rgba(15, 8, 45, 0.45);
    overflow: hidden;
    color: var(--c-texto);
    font-size: 0.82rem;
}
.c-phone-top {
    background: var(--c-noche);
    color: #fff;
    padding: 1.1rem 1rem 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
}
.c-phone-top span { font-family: var(--c-display); letter-spacing: 0.5px; }
.c-phone-top i { color: var(--c-ambar); }
.c-phone-body { padding: 0.85rem; display: flex; flex-direction: column; gap: 0.7rem; }
.c-card {
    background: #fff;
    border: 1px solid var(--c-linea);
    border-radius: 12px;
    padding: 0.8rem 0.9rem;
}
.c-card strong { display: block; font-size: 0.9rem; }
.c-card small { color: var(--c-suave); display: block; line-height: 1.45; }
.c-pill {
    display: inline-block;
    margin-top: 0.45rem;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.12rem 0.55rem;
    border-radius: 20px;
    background: #FFF1C7;
    color: #7A5600;
}
.c-timeline { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }
.c-timeline li {
    display: grid;
    grid-template-columns: 16px 1fr auto;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--c-suave);
}
.c-timeline li::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--c-linea);
    background: #fff;
    justify-self: center;
}
.c-timeline li.ok::before { background: var(--c-violeta); border-color: var(--c-violeta); }
.c-timeline li.now { color: var(--c-texto); font-weight: 600; }
.c-timeline li.now::before { background: var(--c-ambar); border-color: var(--c-ambar); box-shadow: 0 0 0 4px rgba(255,199,44,0.25); }
.c-timeline time { font-variant-numeric: tabular-nums; }
.c-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; margin-top: 0.5rem; }
.c-photos span {
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    background: linear-gradient(135deg, #CFC8EA, #A99BDB);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.9);
}
.c-photos span:last-child { background: #fff; border: 1.5px dashed #B7ADDF; color: var(--c-violeta); }
.c-phone-btn {
    background: var(--c-violeta);
    color: #fff;
    text-align: center;
    font-weight: 600;
    padding: 0.7rem;
    border-radius: 10px;
}
.c-float {
    position: absolute;
    right: -0.5rem;
    bottom: 3.5rem;
    background: #fff;
    color: var(--c-texto);
    border-radius: 14px;
    padding: 0.75rem 1rem;
    box-shadow: 0 18px 40px rgba(15, 8, 45, 0.3);
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.82rem;
    max-width: 230px;
}
.c-float i {
    width: 34px;
    height: 34px;
    flex: none;
    border-radius: 10px;
    background: var(--c-ambar);
    color: var(--c-noche);
    display: flex;
    align-items: center;
    justify-content: center;
}
.c-float strong { display: block; font-size: 0.85rem; }
.c-float small { color: var(--c-suave); }

/* ============================================================
   RUBROS
   ============================================================ */
.c-rubros { padding: 2.2rem 0; border-bottom: 1px solid var(--c-linea); }
.c-rubros .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.8rem 1.1rem; }
.c-rubros p { flex-basis: 100%; margin-bottom: 0.3rem; text-align: center; text-wrap: balance; font-weight: 600; color: var(--c-suave); font-size: 0.92rem; }
.c-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #fff;
    border: 1px solid var(--c-linea);
    border-radius: 30px;
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--c-texto);
}
.c-chip i { color: var(--c-violeta); }
.c-chip-more { background: transparent; border-style: dashed; color: var(--c-suave); }

/* ============================================================
   PROBLEMAS
   ============================================================ */
.c-pains { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.c-pain {
    border: 1px solid var(--c-linea);
    border-radius: var(--radius);
    padding: 1.6rem 1.4rem;
    background: #fff;
}
.c-pain i { font-size: 1.4rem; color: var(--c-violeta); margin-bottom: 0.9rem; }
.c-pain h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--c-texto); }
.c-pain p { font-size: 0.93rem; color: var(--c-suave); line-height: 1.6; }

/* ============================================================
   CÓMO FUNCIONA — los pasos van unidos por una pista con nodos
   ============================================================ */
.c-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.4rem;
    position: relative;
}
.c-steps::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: rgba(255,199,44,0.45);
}
.c-step { position: relative; text-align: center; }
.c-step-num {
    width: 46px;
    height: 46px;
    margin: 0 auto 1.1rem;
    border-radius: 50%;
    background: var(--c-ambar);
    color: var(--c-noche);
    font-family: var(--c-display);
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 0 6px var(--c-hondo);
}
.c-step h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.2rem; }
.c-step .c-who {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--c-ambar);
    margin-bottom: 0.6rem;
}
.c-step p { font-size: 0.92rem; color: rgba(255,255,255,0.78); line-height: 1.6; }

/* ============================================================
   FUNCIONES
   ============================================================ */
.c-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.c-feature {
    background: #fff;
    border: 1px solid var(--c-linea);
    border-radius: var(--radius);
    padding: 1.6rem;
    transition: transform var(--transition), box-shadow var(--transition);
}
.c-feature:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(81, 61, 161, 0.12); }
.c-feature-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(81, 61, 161, 0.1);
    color: var(--c-violeta);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 1rem;
}
.c-feature h3 { font-size: 1.05rem; font-weight: 600; color: var(--c-texto); margin-bottom: 0.4rem; }
.c-feature p { font-size: 0.93rem; color: var(--c-suave); line-height: 1.6; }
.c-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--c-violeta);
    background: rgba(81, 61, 161, 0.08);
    border-radius: 20px;
    padding: 0.1rem 0.55rem;
    margin-left: 0.3rem;
    vertical-align: middle;
}

/* ============================================================
   ROLES
   ============================================================ */
.c-roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.c-role {
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: var(--radius);
    padding: 1.5rem;
    background: rgba(255,255,255,0.04);
}
.c-role i { color: var(--c-ambar); font-size: 1.3rem; margin-bottom: 0.8rem; }
.c-role h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 0.2rem; }
.c-role .c-where { display: block; font-size: 0.8rem; color: rgba(255,255,255,0.55); margin-bottom: 0.7rem; }
.c-role p { font-size: 0.92rem; color: rgba(255,255,255,0.8); line-height: 1.6; }

/* ============================================================
   PLANES
   ============================================================ */
.c-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; align-items: stretch; }
.c-plan {
    background: #fff;
    border: 1px solid var(--c-linea);
    border-radius: var(--radius);
    padding: 2rem 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}
.c-plan.is-featured { border: 2px solid var(--c-violeta); box-shadow: 0 18px 50px rgba(81, 61, 161, 0.16); }
.c-plan-name { font-family: var(--c-display); font-size: 1.3rem; font-weight: 700; color: var(--c-texto); }
.c-plan-for { font-size: 0.9rem; color: var(--c-suave); margin-top: -0.7rem; }
.c-plan-price { font-family: var(--c-display); color: var(--c-violeta); line-height: 1.1; }
.c-plan-price strong { font-size: 2.4rem; font-weight: 800; }
.c-plan-price span { font-size: 0.95rem; font-weight: 600; color: var(--c-suave); }
.c-plan ul { display: flex; flex-direction: column; gap: 0.55rem; font-size: 0.93rem; flex: 1; }
.c-plan li { display: flex; gap: 0.6rem; align-items: baseline; }
.c-plan li i { color: var(--c-violeta); font-size: 0.85rem; }
.c-plan .btn { justify-content: center; }
.btn-violeta { background: var(--c-violeta); color: #fff; border-color: var(--c-violeta); }
.btn-violeta:hover { background: var(--c-hondo); border-color: var(--c-hondo); transform: translateY(-3px); }
.btn-line { background: transparent; color: var(--c-violeta); border-color: var(--c-violeta); }
.btn-line:hover { background: rgba(81, 61, 161, 0.08); transform: translateY(-3px); }
.c-cycles {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
}
.c-cycle {
    background: #fff;
    border: 1px solid var(--c-linea);
    border-radius: 30px;
    padding: 0.45rem 1.1rem;
    font-size: 0.9rem;
}
.c-cycle b { color: var(--c-violeta); }
.c-plans-notes {
    max-width: 760px;
    margin: 1.8rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--c-suave);
    text-align: center;
}

/* ============================================================
   PREGUNTAS
   ============================================================ */
.c-faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.8rem; }
.c-faq details {
    background: #fff;
    border: 1px solid var(--c-linea);
    border-radius: 14px;
    padding: 1.1rem 1.4rem;
}
.c-faq summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--c-texto);
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}
.c-faq summary::-webkit-details-marker { display: none; }
.c-faq summary::after { content: '+'; color: var(--c-violeta); font-size: 1.3rem; line-height: 1; }
.c-faq details[open] summary::after { content: '−'; }
.c-faq details p { margin-top: 0.7rem; color: var(--c-suave); font-size: 0.95rem; }
.c-faq summary:focus-visible { outline: 2px solid var(--c-violeta); outline-offset: 4px; border-radius: 4px; }

/* ============================================================
   PRUEBA GRATIS (formulario)
   ============================================================ */
.c-trial { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 3rem; align-items: start; }
.c-trial-text h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 800; line-height: 1.15; margin-bottom: 1rem; }
.c-trial-text > p { color: rgba(255,255,255,0.8); margin-bottom: 1.6rem; }
.c-trial-list { display: flex; flex-direction: column; gap: 0.8rem; }
.c-trial-list li { display: flex; gap: 0.75rem; align-items: baseline; color: rgba(255,255,255,0.9); }
.c-trial-list i { color: var(--c-ambar); }
.c-form {
    background: #fff;
    color: var(--c-texto);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 24px 60px rgba(10, 5, 35, 0.35);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.c-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.c-form label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.35rem; }
.c-form input,
.c-form select,
.c-form textarea {
    width: 100%;
    font: inherit;
    font-size: 0.95rem;
    padding: 0.7rem 0.9rem;
    border: 1.5px solid var(--c-linea);
    border-radius: 10px;
    background: #fff;
    color: var(--c-texto);
    transition: border-color var(--transition);
}
.c-form input:focus,
.c-form select:focus,
.c-form textarea:focus { outline: none; border-color: var(--c-violeta); box-shadow: 0 0 0 3px rgba(81, 61, 161, 0.15); }
.c-form .form-feedback { font-size: 0.9rem; padding: 0.75rem 1rem; border-radius: 10px; }
.c-form .form-feedback.success { background: #E7F7EE; color: #1B6B3A; }
.c-form .form-feedback.error { background: #FDECEC; color: #9B1C1C; }
.c-form small { color: var(--c-suave); font-size: 0.8rem; }

/* ---- Footer: enlace a privacidad ---- */
.page-feina .footer-logo { height: 42px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .c-pains, .c-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .c-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .c-hero-grid, .c-trial { grid-template-columns: 1fr; }
    .c-hero { padding-bottom: 4rem; }
    .c-float { right: 0; bottom: 1.5rem; }
    .c-plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
    .c-steps { grid-template-columns: 1fr; gap: 1.8rem; max-width: 520px; margin: 0 auto; }
    .c-steps::before { top: 10px; bottom: 10px; left: 22px; right: auto; width: 3px; height: auto; }
    .c-step { display: grid; grid-template-columns: 46px 1fr; gap: 0 1.1rem; text-align: left; }
    .c-step-num { margin: 0; grid-row: span 3; }
}
@media (max-width: 600px) {
    .c-pains, .c-roles, .c-features { grid-template-columns: 1fr; }
    .c-form-row { grid-template-columns: 1fr; }
    .c-form { padding: 1.4rem; }
    .c-float { position: static; margin: 1rem auto 0; }
    .c-phone-wrap { flex-direction: column; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
    .c-feature, .btn { transition: none; }
}
