/* ============================================
   iziRisk Op — Home (Brand Book / mockup home-v4)
   ============================================ */

/* --- Hero --- */
.op-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    padding: 150px 0 110px;
    background:
        radial-gradient(1000px 600px at 85% 30%, rgba(126, 93, 235, 0.55), transparent 60%),
        radial-gradient(700px 500px at 0% 100%, rgba(82, 212, 253, 0.18), transparent 60%),
        var(--navy);
}

.op-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    max-width: 1240px;
}

.op-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(82, 212, 253, 0.14);
    color: var(--cyan);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 30px;
    letter-spacing: 0.3px;
    margin-bottom: 22px;
}

.op-hero h1 {
    color: var(--white);
    font-size: clamp(2.4rem, 4.6vw, 3.75rem);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -1.5px;
    margin: 0 0 22px;
}

.op-hero h1 s {
    position: relative;
    text-decoration: none;
    color: var(--yellow);
}

.op-hero h1 s::after {
    content: "";
    position: absolute;
    left: -4px;
    right: -4px;
    top: 54%;
    height: 6px;
    background: var(--pink);
    border-radius: 4px;
    transform: rotate(-3deg);
}

.op-hero-sub {
    font-size: 1.1rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 32px;
    max-width: 520px;
}

.op-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
}
.op-hero-cta { display: flex; flex-direction: column; }
.op-hero-ctas .izi-btn--lg { padding: 14px 24px; }

.op-hero-micro {
    margin: 8px 0 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
}

.izi-slogan {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}
.izi-slogan b { color: var(--green); }

/* Franjas diagonales de marca */
.op-stripe {
    position: absolute;
    z-index: 1;
    height: 14px;
    border-radius: 2px;
    transform: rotate(45deg);
    transform-origin: left center;
    opacity: 0.5;
}
.op-stripe--green  { left: -40px; bottom: 80px; width: 260px; background: var(--green); }
.op-stripe--yellow { right: 150px; bottom: 20px; width: 180px; background: var(--yellow); }
.op-stripe--pink   { right: 70px; bottom: -20px; width: 110px; background: var(--pink); }

/* Laptop + tarjetas flotantes */
.op-hero-visual {
    position: relative;
    padding: 0 20px;
}

.op-laptop-screen {
    background: #1d1d36;
    border: 1px solid #4a4a75;
    border-radius: 18px 18px 0 0;
    padding: 12px 12px 14px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
}

.op-laptop-screen img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.op-laptop-base {
    position: relative;
    height: 20px;
    width: 114%;
    margin-left: -7%;
    background: linear-gradient(#cfd2e3, #9ea2bd);
    border-radius: 0 0 22px 22px;
}
.op-laptop-base::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 130px;
    height: 8px;
    margin-left: -65px;
    background: #8b8fab;
    border-radius: 0 0 10px 10px;
}

.op-float {
    position: absolute;
    background: var(--white);
    color: var(--navy);
    border-radius: 16px;
    box-shadow: 0 24px 50px rgba(20, 20, 50, 0.4);
    font-size: 0.8rem;
    line-height: 1.45;
}

.op-float--heat {
    left: -16px;
    bottom: 18%;
    width: 190px;
    padding: 12px 14px;
}

.op-float-title {
    display: block;
    font-size: 0.7rem;
    color: #8a8aa8;
    margin-bottom: 8px;
}

.op-mini-heat {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 3px;
}
.op-mini-heat i { height: 18px; border-radius: 4px; }
.op-mini-heat .h1 { background: #33d688; }
.op-mini-heat .h2 { background: #ff9f5a; }
.op-mini-heat .h3 { background: var(--yellow); }
.op-mini-heat .h4 { background: var(--pink); }
.op-mini-heat .h5 { background: #e8435f; }

.op-float-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 0.7rem;
}
.op-float-foot b { color: #28b870; font-size: 1.05rem; }

.op-float--bot {
    right: -12px;
    top: 34%;
    width: 270px;
    padding: 14px;
}

.op-bot-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.op-bot-head b { display: block; font-size: 0.875rem; line-height: 1.2; }
.op-bot-head small { font-size: 0.7rem; color: #28b870; }

.op-bot-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--purple), var(--cyan));
}

.op-bot-q,
.op-bot-a {
    margin: 0;
    padding: 8px 12px;
    font-size: 0.78rem;
}
.op-bot-q {
    background: var(--purple);
    color: var(--white);
    border-radius: 12px 12px 4px 12px;
    margin: 0 0 8px 28px;
}
.op-bot-a {
    background: #f4f5fb;
    border-radius: 12px 12px 12px 4px;
}

/* --- Productos --- */
.op-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-top: 48px;
}

.op-pc {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px 24px;
    background: var(--white);
    border: 1px solid #e8e9f3;
    border-radius: 22px;
    color: var(--navy);
}

.op-pc h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: inherit;
}
.op-pc h3 span { font-weight: 400; }

.op-pc p {
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--muted);
    margin: 0 0 16px;
}

.op-pc-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.op-pc-icon--green  { background: var(--green); color: var(--navy); }
.op-pc-icon--purple { background: #efeafd; color: var(--purple); }
.op-pc-icon--cyan   { background: #e3f8ff; color: #1fa9d6; }
.op-pc-icon--yellow { background: #fff4d9; color: #d39b12; }

.op-ai {
    font-size: 0.8rem;
    line-height: 1.5;
    background: #f3f0fe;
    color: #4a3aa8;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 18px;
}

.op-ai-pill {
    display: inline-block;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.3px;
    background: var(--purple);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 20px;
    margin-right: 4px;
}

.op-pc-link {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--purple);
    text-decoration: none;
}
.op-pc-link:hover { color: var(--navy); }

.op-pc-hub {
    position: absolute;
    top: 22px;
    right: 20px;
    font-size: 0.7rem;
    color: #8a8aa8;
    border: 1px solid #e1e3ee;
    padding: 2px 10px;
    border-radius: 20px;
}

.op-pc--feat {
    background: linear-gradient(150deg, var(--navy), #4a3a9a);
    color: var(--white);
    border: 0;
    box-shadow: 0 30px 60px rgba(50, 50, 85, 0.25);
}
.op-pc--feat p { color: rgba(255, 255, 255, 0.8); }
.op-pc--feat ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    font-size: 0.875rem;
}
.op-pc--feat li { margin: 6px 0; }
.op-pc--feat li::before {
    content: "✓";
    color: var(--green);
    font-weight: 700;
    margin-right: 10px;
}
.op-pc--feat .op-ai { background: rgba(82, 212, 253, 0.15); color: var(--cyan); }
.op-pc--feat .op-ai-pill { background: var(--cyan); color: var(--navy); }
.op-pc--feat .izi-btn { align-self: flex-start; }

.op-pc-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--yellow);
    color: var(--navy);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}

/* Tarjetas al mismo nivel (todas con lista) */
.op-pc ul { list-style: none; padding: 0; margin: 0 0 18px; font-size: 0.85rem; color: var(--navy); }
.op-pc li { margin: 6px 0; }
.op-pc li::before { content: "✓"; color: var(--purple); font-weight: 700; margin-right: 10px; }
.op-pc .op-pc-link { margin-top: auto; }
.op-pc-hub--here { border-color: var(--green); color: var(--navy); background: rgba(51,236,141,.12); }

/* --- Secciones de funcionalidad --- */
.op-feature { padding-top: 32px; }
.op-feature--alt { background: var(--bg); padding-top: 96px; }

.op-feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.op-feature-row--reverse .op-shot { order: 2; }

.op-shot {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e8e9f3;
    box-shadow: 0 30px 70px rgba(50, 50, 85, 0.18);
}
.op-shot img { display: block; width: 100%; height: auto; }

.op-feature-text h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.15;
    color: var(--navy);
    margin: 0 0 14px;
}
.op-feature-text > p { color: var(--muted); font-size: 1rem; line-height: 1.6; }

.op-steps,
.op-checks {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: grid;
    gap: 14px;
    font-size: 0.95rem;
    color: #55557a;
    line-height: 1.5;
}
.op-steps li { display: flex; gap: 14px; align-items: flex-start; }
.op-steps i {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
    font-size: 0.85rem;
    color: var(--white);
}
.op-checks li::before {
    content: "✓";
    color: #28c877;
    font-weight: 700;
    margin-right: 10px;
}

/* --- Agenda --- */
.op-agenda-box {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 56px;
    padding: 60px;
    border-radius: 30px;
    color: var(--white);
    background: linear-gradient(135deg, var(--purple), #5b46c9);
}

.op-agenda-text h2 {
    color: var(--white);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 14px;
}
.op-agenda-text p { color: rgba(255, 255, 255, 0.85); }
.op-agenda-text ul { list-style: none; padding: 0; margin: 26px 0 0; }
.op-agenda-text li { margin: 10px 0; }
.op-agenda-text li::before { content: "✓"; color: var(--yellow); font-weight: 700; margin-right: 10px; }
.op-eyebrow-yellow { color: var(--yellow); }

.op-form {
    background: var(--white);
    color: var(--navy);
    border-radius: 22px;
    padding: 32px;
    box-shadow: 0 30px 60px rgba(30, 20, 80, 0.3);
}

.op-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.op-field { display: block; margin-bottom: 14px; }
.op-field span {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 6px;
}
.op-field input {
    width: 100%;
    border: 1.5px solid #e1e3ee;
    border-radius: 10px;
    padding: 11px 14px;
    font: inherit;
    font-size: 0.9rem;
    color: var(--navy);
    transition: border-color var(--transition);
}
.op-field input:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(126, 93, 235, 0.15); }
.op-field--error input { border-color: var(--pink); }

.op-form-error {
    color: #d23a59;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 12px;
}

.op-form .izi-btn { width: 100%; justify-content: center; margin-top: 4px; }
.op-form small {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: #9a9ab5;
    margin-top: 12px;
}

/* --- Modal post-demo --- */
.op-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(20, 20, 45, 0.6);
    backdrop-filter: blur(4px);
}
.op-modal[hidden] { display: none; }

.op-modal-card {
    position: relative;
    max-width: 440px;
    width: 100%;
    background: var(--white);
    color: var(--navy);
    border-radius: 22px;
    padding: 36px 32px 32px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.op-modal-card h3 { font-size: 1.35rem; font-weight: 700; margin: 16px 0 10px; color: var(--navy); }
.op-modal-card p { color: var(--muted); font-size: 0.95rem; margin: 0 0 22px; }

.op-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    border: 0;
    background: none;
    font-size: 1.6rem;
    line-height: 1;
    color: #9a9ab5;
    cursor: pointer;
}

/* --- Responsive --- */
@media (max-width: 1100px) {
    .op-products-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 992px) {
    .op-hero { padding: 120px 0 80px; }
    .op-hero-grid,
    .op-feature-row,
    .op-agenda-box { grid-template-columns: 1fr; }
    .op-feature-row--reverse .op-shot { order: 0; }
    .op-hero-visual { max-width: 640px; margin: 24px auto 0; }
    .op-agenda-box { padding: 40px 28px; gap: 32px; }
}

@media (max-width: 640px) {
    .op-products-grid,
    .op-form-row { grid-template-columns: 1fr; }
    .op-hero-ctas .izi-btn { width: 100%; justify-content: center; }
    .op-hero-cta { width: 100%; }
    .op-float--heat { display: none; }
    .op-float--bot { position: relative; right: auto; top: auto; width: auto; margin-top: 20px; }
    .op-form { padding: 24px; }
}

.op-form-done h3 { margin: 0 0 8px; }
.op-form-done h3:focus { outline: 2px solid var(--green, #1f8a5b); outline-offset: 4px; }
.op-form-done p { margin: 0; }
.op-form button[disabled] { opacity: 0.7; cursor: progress; }

.op-form-privacy { display: block; margin-top: 10px; font-size: 0.78rem; opacity: 0.8; }

.op-form-error ul { margin: 0; padding-left: 18px; }
.op-field-msg { display: block; color: #d23a59; font-size: 0.8rem; margin-top: 4px; }
.op-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 0.85rem; margin: 4px 0 14px; cursor: pointer; }
.op-consent input { width: auto; height: auto; padding: 0; margin: 3px 0 0; flex: 0 0 auto; }
.op-consent span { flex: 1 1 auto; min-width: 0; overflow-wrap: break-word; }
.op-consent.op-field--error span { color: #d23a59; }
