/* vhao-system\src\main\resources\static\css\vhaopdv.css
   Todo está acotado a .pdv-page / .pdv-footer para no romper style.css */

.pdv-page {
    --pdv-ink: #0d0d0d;
    --pdv-muted: #444;
    --pdv-line: #e6e6e6;
    --pdv-green: #1f8a2e;
    --pdv-green-dark: #176d24;
    --pdv-gray-btn: #e4e6ea;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    color: var(--pdv-ink);
}

/* ---------- Hero ---------- */
.pdv-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
    padding: 28px 0 24px;
}

.pdv-hero h1 {
    font-size: clamp(2rem, 4.2vw, 3rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
}

.pdv-lead {
    font-size: 1.05rem;
    color: var(--pdv-muted);
    margin: 0 0 20px;
}

/* ---------- Botones ---------- */
.pdv-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.pdv-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color .15s ease;
}

.pdv-btn-primary { background: var(--pdv-green); color: #fff; }
.pdv-btn-primary:hover { background: var(--pdv-green-dark); }
.pdv-btn-secondary { background: var(--pdv-gray-btn); color: #222; }
.pdv-btn-secondary:hover { background: #d5d8dd; }
.pdv-btn:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }

/* ---------- Tarjetas de características ---------- */
.pdv-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.pdv-feature {
    display: flex;
    gap: 10px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--pdv-line);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

.pdv-feature strong { display: block; font-size: .95rem; margin-bottom: 2px; }
.pdv-feature p { margin: 0; font-size: .78rem; line-height: 1.35; color: var(--pdv-muted); }

.pdv-ico {
    flex: 0 0 38px;
    height: 38px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
}
.ico-green  { background: #d9f2dc; }
.ico-blue   { background: #dcebff; }
.ico-red    { background: #fde0de; }
.ico-teal   { background: #d3f0ec; }
.ico-purple { background: #e9dcfa; }
.ico-yellow { background: #fdefc4; }

/* ---------- Slider ---------- */
.pdv-slider {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f2f4;
    border: 1px solid var(--pdv-line);
}

.pdv-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity .6s ease;
}
.pdv-slide.active { opacity: 1; }

.pdv-dots { display: flex; justify-content: center; gap: 8px; margin: 12px 0 18px; }
.pdv-dot {
    width: 10px; height: 10px;
    border: 0; padding: 0;
    border-radius: 50%;
    background: #c4c7cc;
    cursor: pointer;
}
.pdv-dot.active { background: var(--pdv-green); width: 28px; border-radius: 6px; }

/* ---------- Precios ---------- */
.pdv-pricing { text-align: center; }
.pdv-pricing h2 { font-size: 1.35rem; margin: 0 0 14px; }

.pdv-plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    text-align: left;
}

.pdv-plan {
    padding: 16px;
    border: 1px solid var(--pdv-line);
    border-radius: 12px;
    background: #f7f7f8;
}
.pdv-plan-best { background: #fff; border: 2px solid var(--pdv-green); }

.pdv-plan h3 { margin: 0; text-align: center; font-size: 1.1rem; }
.pdv-price { margin: 2px 0 12px; text-align: center; font-weight: 700; }

.pdv-plan ul { list-style: none; margin: 0; padding: 0; font-size: .85rem; }
.pdv-plan li { position: relative; padding-left: 20px; margin-bottom: 7px; }
.pdv-plan li::before {
    content: "✓";
    position: absolute; left: 0;
    color: var(--pdv-green);
    font-weight: 700;
}

.pdv-trial { margin: 18px 0 0; font-size: 1.25rem; font-weight: 700; }
.pdv-trial span {
    padding-bottom: 4px;
    background: linear-gradient(#f5c518, #f5c518) left bottom / 100% 3px no-repeat;
}

/* ---------- Testimonios (si los activas) ---------- */
.pdv-testimonials { padding: 8px 0 24px; }
.pdv-testimonials h2 { font-size: 1.3rem; }
.pdv-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pdv-quotes blockquote { margin: 0; font-size: .85rem; color: var(--pdv-muted); }

/* ---------- "Ver todas las características" ---------- */
.pdv-more { padding: 8px 0 28px; }
.pdv-more summary {
    cursor: pointer;
    font-weight: 700;
    padding: 12px 0;
    border-top: 1px solid var(--pdv-line);
}
.pdv-more-body { padding: 6px 0 0; }
.pdv-more-body ul { list-style: none; padding: 0; columns: 2; column-gap: 32px; }
.pdv-more-body li { break-inside: avoid; margin-bottom: 8px; }

/* ---------- Footer ---------- */
.pdv-footer { border-top: 1px solid var(--pdv-line); background: #fff; }
.pdv-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    flex-wrap: wrap;
    font-size: .9rem;
}
.pdv-footer a { color: #555; text-decoration: none; }
.pdv-footer a:hover { text-decoration: underline; }
.pdv-footer-links { display: flex; gap: 24px; }
.pdv-footer-brand { color: #111; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .pdv-hero { grid-template-columns: 1fr; }
    .pdv-hero-media { order: -1; }          /* en móvil, imagen primero */
}

@media (max-width: 600px) {
    .pdv-features { grid-template-columns: 1fr 1fr; }
    .pdv-plans { grid-template-columns: 1fr; }
    .pdv-quotes { grid-template-columns: 1fr; }
    .pdv-more-body ul { columns: 1; }
    .pdv-btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .pdv-slide { transition: none; }
}