:root {
    --bg: #f5f4f2;
    --bg-page: linear-gradient(180deg, #fffdfb 0%, #faf8f5 45%, #f0eeeb 100%);
    --surface: #ffffff;
    --surface-elevated: #fffaf6;
    --border: #d9d9de;
    --border-subtle: #ebe8e4;
    --text: #111111;
    --text-muted: #4a4a52;
    --link: #1a1a1a;
    --link-hover: #c2410c;
    /* Acento venta (naranja apagado) */
    --accent-sale: #d9480f;
    --accent-sale-soft: rgba(217, 72, 15, 0.09);
    --accent-sale-mid: rgba(217, 72, 15, 0.18);
    --accent-sale-glow: rgba(217, 72, 15, 0.22);
    /* Botones negros */
    --btn-bg: #0a0a0a;
    --btn-bg-hover: #1c1c1c;
    --btn-text: #ffffff;
    --btn-border: #0a0a0a;
    --danger-border: #c4a0a0;
    --radius: 12px;
    --radius-pill: 999px;
    --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-display: "Segoe UI", system-ui, -apple-system, sans-serif;
    --max: 1040px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
    --shadow-card-hover: 0 8px 28px rgba(0, 0, 0, 0.1);
    --video-aspect: 9 / 16;
    --video-max-width: 420px;
    --safe-inline: max(1rem, env(safe-area-inset-left, 0px));
    --safe-inline-end: max(1rem, env(safe-area-inset-right, 0px));
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    background-image: var(--bg-page);
    -webkit-tap-highlight-color: rgba(217, 72, 15, 0.15);
}

a {
    color: var(--link);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--link-hover);
}

.wrap {
    width: min(100% - var(--safe-inline) - var(--safe-inline-end), var(--max));
    margin-inline: auto;
}

.site-header {
    padding: 1rem 0 1.125rem;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--surface);
    box-shadow: var(--shadow-sm), 0 3px 0 0 var(--accent-sale-soft);
}

.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}

.logo {
    font-family: var(--font-display);
    font-size: clamp(0.9rem, 2.8vw, 1.2rem);
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
    line-height: 1.3;
    max-width: 100%;
}

.logo:hover {
    color: var(--accent-sale);
    text-decoration: none;
    opacity: 1;
}

.tagline {
    flex: 1 1 min(100%, 14rem);
    margin: 0;
    font-size: clamp(0.8rem, 2.8vw, 0.9rem);
    color: var(--text-muted);
    line-height: 1.4;
    max-width: 40ch;
}

.main {
    padding: clamp(1.25rem, 4vw, 2rem) 0 clamp(2rem, 6vw, 3rem);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.6rem 1.15rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    border: 1px solid var(--btn-border);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:focus-visible {
    outline: 2px solid var(--accent-sale);
    outline-offset: 2px;
}

.btn--accent {
    background: linear-gradient(180deg, #161616 0%, var(--btn-bg) 100%);
    color: var(--btn-text);
    border: 1px solid #1f1f1f;
    box-shadow:
        0 0 0 1px var(--accent-sale-glow),
        0 4px 16px rgba(0, 0, 0, 0.18);
}

.btn--accent:hover {
    background: linear-gradient(180deg, #222 0%, var(--btn-bg-hover) 100%);
    color: var(--btn-text);
    border-color: rgba(217, 72, 15, 0.55);
    box-shadow:
        0 0 0 2px var(--accent-sale-mid),
        0 6px 22px rgba(217, 72, 15, 0.14);
}

.btn--large {
    min-height: 48px;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
}

.hero {
    text-align: center;
    padding: clamp(1.25rem, 5vw, 2.25rem) 0 clamp(1.5rem, 4vw, 2.5rem);
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 5vw, 2.35rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.85rem;
    letter-spacing: -0.03em;
    color: var(--text);
}

.hero__sub {
    color: var(--text-muted);
    max-width: 38ch;
    margin: 0 auto 0.85rem;
    font-size: clamp(0.95rem, 3vw, 1.05rem);
}

.hero__sub strong {
    color: var(--accent-sale);
    font-weight: 600;
}

.hero__price {
    font-size: clamp(1.05rem, 3vw, 1.2rem);
    margin-bottom: 1.25rem;
    color: var(--text);
}

.hero__price strong {
    color: var(--accent-sale);
    font-weight: 700;
}

.grid-section h2,
.card h2 {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 3.5vw, 1.5rem);
    margin: 0 0 1rem;
    font-weight: 700;
    color: var(--text);
}

.video-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: clamp(0.75rem, 3vw, 1rem);
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
}

@media (min-width: 380px) {
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    }
}

@media (min-width: 640px) {
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

.video-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: clamp(0.75rem, 2vw, 1rem);
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    color: inherit;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.video-card a:hover {
    border-color: rgba(217, 72, 15, 0.35);
    box-shadow:
        var(--shadow-card-hover),
        0 0 0 1px var(--accent-sale-soft);
}

.video-card__thumb {
    position: relative;
    aspect-ratio: var(--video-aspect);
    border-radius: 8px;
    background: linear-gradient(180deg, #e4e4e8, #d8d8de);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    max-height: min(320px, 55vh);
    margin-inline: auto;
    width: 100%;
    overflow: hidden;
}

.video-card__thumb--has-img {
    background: #1a1a1c;
}

.video-card__poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.play-icon {
    position: relative;
    z-index: 1;
    width: 2.75rem;
    height: 2.75rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    border-radius: 50%;
    background: rgba(10, 10, 10, 0.72);
    color: #fff5f0;
    border: 1px solid rgba(217, 72, 15, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    padding-left: 3px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2), 0 0 12px var(--accent-sale-soft);
}

.video-card__thumb--has-img .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.video-card__title {
    font-weight: 600;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    margin-bottom: 0.35rem;
    color: var(--text);
    line-height: 1.35;
}

.video-card__desc {
    font-size: clamp(0.8rem, 2.5vw, 0.85rem);
    color: var(--text-muted);
    line-height: 1.4;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: clamp(1.1rem, 3vw, 1.5rem);
    margin-top: clamp(1.25rem, 4vw, 2rem);
    box-shadow: var(--shadow-sm);
}

.card--error {
    border-color: var(--danger-border);
    background: #fdf8f8;
}

.card--seo ul {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--text-muted);
}

.benefits li {
    margin-bottom: 0.5rem;
}

.benefits strong {
    color: var(--accent-sale);
    font-weight: 700;
}

.video-page__head h1 {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 4vw, 2rem);
    margin: 0 0 0.65rem;
    line-height: 1.25;
    font-weight: 700;
}

.lede {
    color: var(--text-muted);
    font-size: clamp(0.98rem, 2.8vw, 1.05rem);
    margin: 0 0 1.25rem;
    max-width: 65ch;
}

.video-wrap {
    margin-inline: auto;
    width: min(var(--video-max-width), 100%, calc(min(85vh, 780px) * 9 / 16));
    aspect-ratio: var(--video-aspect);
    border-radius: var(--radius);
    overflow: hidden;
    background: #0d0d0d;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md), 0 0 0 1px var(--accent-sale-soft);
}

.video-wrap video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    vertical-align: middle;
}

.cta-block {
    margin-top: clamp(1.5rem, 4vw, 2rem);
    padding: clamp(1.15rem, 3vw, 1.5rem);
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--accent-sale-soft) 0%, var(--surface-elevated) 42%, #ffffff 100%);
    border: 1px solid var(--border-subtle);
    border-left: 4px solid var(--accent-sale);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.cta-block h2 {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 3vw, 1.25rem);
    margin: 0 0 0.5rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.cta-block p {
    margin: 0 0 1rem;
    color: var(--text-muted);
    font-size: clamp(0.95rem, 2.5vw, 1rem);
}

.cta-block strong {
    color: var(--accent-sale);
    font-weight: 700;
}

.breadcrumb {
    margin-top: clamp(1.25rem, 4vw, 2rem);
    font-size: clamp(0.85rem, 2.5vw, 0.9rem);
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--link);
    font-weight: 500;
}

.breadcrumb a:hover {
    color: var(--accent-sale);
}

.site-footer {
    padding: clamp(1.25rem, 3vw, 1.5rem) 0;
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border-subtle);
    box-shadow: inset 0 1px 0 0 var(--accent-sale-soft);
    font-size: clamp(0.85rem, 2.5vw, 0.9rem);
    color: var(--text-muted);
    background: linear-gradient(180deg, #fffdfb 0%, var(--surface) 100%);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    align-items: center;
    justify-content: space-between;
}

.footer-inner p {
    margin: 0;
}

code {
    font-size: 0.88em;
    background: var(--surface-elevated);
    border: 1px solid var(--border-subtle);
    padding: 0.15em 0.45em;
    border-radius: 4px;
    color: var(--text);
}

/* Móvil: cabecera y CTA más usables */
@media (max-width: 600px) {
    .header-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .tagline {
        max-width: none;
        text-align: center;
    }

    .header-inner .btn--accent {
        width: 100%;
    }

    .logo {
        text-align: center;
        width: 100%;
    }

    .hero .btn--large {
        width: 100%;
        max-width: 22rem;
    }

    .cta-block .btn--large {
        width: 100%;
        max-width: 22rem;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
}

@media (min-width: 601px) {
    .header-inner .btn--accent {
        flex-shrink: 0;
    }
}


/* ===============================
   BUSCADOR PROFESIONAL
=============================== */

.search-box{
    width:100%;
    display:flex;
    justify-content:center;
    margin:25px 0 35px 0;
}

.search-box input{
    width:100%;
    max-width:520px;
    padding:16px 24px;
    border:none;
    outline:none;
    border-radius:50px;
    font-size:16px;
    font-weight:500;
    background:#ffffff;
    color:#111;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    transition:all .25s ease;
}

.search-box input::placeholder{
    color:#888;
}

.search-box input:focus{
    transform:scale(1.02);
    box-shadow:0 14px 35px rgba(0,0,0,.14);
}

/* móvil */
@media(max-width:768px){

.search-box{
    margin:20px 0 25px 0;
    padding:0 10px;
}

.search-box input{
    font-size:15px;
    padding:14px 18px;
}

}
