/*
Theme Name: Estilo de Vida
Theme URI: https://estilodevida.tv
Author: Estilo de Vida Productions
Author URI: https://estilodevida.tv
Description: A sleek, modern, cinematic WordPress theme for "Estilo de Vida" — a Spanish-language streaming program empowering today's Latina woman with solutions for life, health, nutrition, finances, and home. Features a full-bleed photo hero, royal-blue category bar, advertiser banner zones, social widgets (Facebook, Instagram), RSS support, and full Gutenberg compatibility.
Version: 1.1.4
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: estilo-de-vida
Tags: blog, news, magazine, two-columns, right-sidebar, custom-menu, custom-logo, featured-images, full-width-template, theme-options, threaded-comments, translation-ready
*/

/* ==========================================================================
   Estilo de Vida — Cinematic Magazine Layout
   Royal Blue + White, with brand-gradient accents.
   ========================================================================== */

:root {
    --edv-blue: #1e3a8a;
    --edv-blue-dark: #0f1f5e;
    --edv-blue-light: #3b5ec9;
    --edv-white: #ffffff;
    --edv-cream: #fbf8f1;
    --edv-cream-2: #f4eee0;
    --edv-ink: #0f1437;
    --edv-muted: #5a6285;
    --edv-border: #e6eaf5;
    --edv-pink: #ff3b8a;
    --edv-orange: #ff8a3b;
    --edv-violet: #a23bff;
    --edv-gradient: linear-gradient(90deg, #ff8a3b 0%, #ff3b8a 50%, #a23bff 100%);
    --edv-shadow-sm: 0 2px 8px rgba(20, 40, 97, 0.06);
    --edv-shadow-md: 0 12px 36px rgba(20, 40, 97, 0.12);
    --edv-shadow-lg: 0 28px 70px rgba(20, 40, 97, 0.18);
    --edv-radius: 14px;
    --edv-radius-lg: 26px;
    --edv-font-display: "Playfair Display", "Georgia", serif;
    --edv-font-script: "Dancing Script", "Playfair Display", cursive;
    --edv-font-body: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--edv-font-body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--edv-ink);
    background: var(--edv-cream);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--edv-blue); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--edv-pink); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--edv-font-display);
    color: var(--edv-ink);
    line-height: 1.15;
    margin: 0 0 .6em;
    font-weight: 700;
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1.1em; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 28px; }

/* ===== Header (cinematic, transparent over hero) ===== */
.edv-header {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 50;
    padding: 22px 0;
}
.edv-header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
}
.edv-menu-toggle {
    background: transparent;
    border: 0;
    color: #fff;
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background .2s ease;
}
.edv-menu-toggle:hover { background: rgba(255,255,255,.12); }
.edv-menu-toggle svg { width: 28px; height: 28px; }
.edv-logo {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
.edv-logo img,
.edv-logo .custom-logo {
    max-height: 92px;
    width: auto;
    transition: filter .2s ease;
}
@media (max-width: 768px) {
    .edv-logo img,
    .edv-logo .custom-logo { max-height: 64px; }
}
/* On the transparent home hero, lift the color logo off the photo with a soft scrim */
.edv-header:not(.is-solid):not(.is-page) .edv-logo img {
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.45)) drop-shadow(0 0 14px rgba(255,255,255,.35));
}
/* Safety net: if the user uploaded a logo with a white background via Customize,
   blend it so white pixels disappear against any header color. */
.edv-logo .custom-logo,
.edv-logo img.custom-logo,
.edv-drawer-logo .custom-logo,
.edv-drawer-logo img.custom-logo {
    mix-blend-mode: multiply;
    background: transparent;
}
.edv-social-row {
    display: flex;
    gap: 14px;
    align-items: center;
}
.edv-social-row a {
    color: #fff;
    display: inline-flex;
    transition: opacity .2s ease, transform .2s ease;
}
.edv-social-row a:hover { opacity: .75; transform: translateY(-2px); }
.edv-social-row svg { width: 22px; height: 22px; }

/* Solid header on inner pages */
.edv-header.is-page {
    position: relative;
    background: #fff;
    border-bottom: 1px solid var(--edv-border);
    box-shadow: var(--edv-shadow-sm);
}
.edv-header.is-page .edv-menu-toggle { color: var(--edv-ink); }
.edv-header.is-page .edv-menu-toggle:hover { background: rgba(15,20,55,.06); }
.edv-header.is-page .edv-social-row a { color: var(--edv-ink); }

/* Sticky variant after scroll */
body.scrolled .edv-header { position: fixed; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); padding: 12px 0; box-shadow: var(--edv-shadow-sm); }
body.scrolled .edv-header .edv-logo img { filter: none; }
body.scrolled .edv-header .edv-menu-toggle { color: var(--edv-ink); }
body.scrolled .edv-header .edv-social-row a { color: var(--edv-ink); }

/* ===== Slide-out Menu Drawer ===== */
.edv-drawer {
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;
    visibility: hidden;
}
.edv-drawer.is-open { pointer-events: auto; visibility: visible; }
.edv-drawer-overlay {
    position: absolute; inset: 0;
    background: rgba(15,20,55,.6);
    opacity: 0;
    transition: opacity .3s ease;
}
.edv-drawer.is-open .edv-drawer-overlay { opacity: 1; }
.edv-drawer-panel {
    position: absolute;
    top: 0; left: 0;
    width: min(420px, 90vw);
    height: 100%;
    background: linear-gradient(160deg, var(--edv-blue-dark) 0%, var(--edv-blue) 100%);
    color: #fff;
    padding: 80px 40px 40px;
    transform: translateX(-100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    box-shadow: var(--edv-shadow-lg);
}
.edv-drawer.is-open .edv-drawer-panel { transform: translateX(0); }
.edv-drawer-close {
    position: absolute;
    top: 22px; right: 22px;
    background: transparent; border: 0;
    color: #fff; cursor: pointer;
    padding: 8px;
    border-radius: 8px;
}
.edv-drawer-close:hover { background: rgba(255,255,255,.12); }
.edv-drawer-close svg { width: 24px; height: 24px; }
.edv-drawer-logo { margin-bottom: 36px; }
.edv-drawer-logo img,
.edv-drawer-logo .custom-logo { max-height: 96px; width: auto; }
.edv-drawer ul { list-style: none; padding: 0; margin: 0 0 32px; }
.edv-drawer li { border-bottom: 1px solid rgba(255,255,255,.12); }
.edv-drawer li a {
    display: block;
    color: #fff;
    font-family: var(--edv-font-display);
    font-size: 1.4rem;
    padding: 16px 0;
    transition: color .2s ease, padding .2s ease;
}
.edv-drawer li a:hover { color: var(--edv-pink); padding-left: 8px; }
.edv-drawer li.current-menu-item a { color: var(--edv-pink); }
.edv-drawer-social {
    display: flex; gap: 18px; margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.12);
}
.edv-drawer-social a { color: #fff; opacity: .85; }
.edv-drawer-social a:hover { opacity: 1; color: var(--edv-pink); }
.edv-drawer-social svg { width: 22px; height: 22px; }

/* ===== Cinematic Hero ===== */
.edv-hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
    background: var(--edv-blue-dark);
}
.edv-hero-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.edv-hero-bg::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(15,20,55,.78) 0%, rgba(15,20,55,.55) 40%, rgba(15,20,55,.15) 80%);
}
.edv-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 140px clamp(32px, 6vw, 96px) 90px;
    width: 100%;
}
.edv-hero-copy { max-width: 640px; }
.edv-hero h1 {
    color: #fff;
    font-family: var(--edv-font-display);
    font-style: italic;
    font-size: clamp(2.6rem, 6vw, 5rem);
    line-height: 1.05;
    margin: 0 0 18px;
    font-weight: 600;
    letter-spacing: -0.015em;
}
.edv-hero h1 .edv-script {
    font-family: var(--edv-font-script);
    font-weight: 700;
    background: var(--edv-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-style: normal;
    font-size: 1.15em;
    display: inline-block;
    transform: translateY(.05em);
}
.edv-hero-eyebrow {
    font-family: var(--edv-font-body);
    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 32px;
    opacity: .95;
}
.edv-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.edv-btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    cursor: pointer;
    border: 0;
}
.edv-btn-primary {
    background: var(--edv-blue);
    color: #fff;
}
.edv-btn-primary:hover { background: var(--edv-pink); color: #fff; transform: translateY(-2px); }
.edv-btn-cream {
    background: var(--edv-cream);
    color: var(--edv-ink);
}
.edv-btn-cream:hover { background: #fff; color: var(--edv-blue); transform: translateY(-2px); }
.edv-btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}
.edv-btn-outline:hover { background: #fff; color: var(--edv-blue); }

/* ===== Royal Blue Category Bar ===== */
.edv-catbar {
    background: var(--edv-blue);
    position: relative;
}
.edv-catbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: wrap;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 12px;
}
.edv-catbar-inner a {
    color: #fff;
    font-family: var(--edv-font-body);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 22px 16px;
    transition: background .2s ease;
    text-align: center;
    flex: 1 1 auto;
}
.edv-catbar-inner a:hover,
.edv-catbar-inner a.is-active {
    background: var(--edv-blue-dark);
    color: #fff;
}
@media (max-width: 880px) {
    .edv-catbar-inner { padding: 0; }
    .edv-catbar-inner a { flex-basis: 50%; padding: 14px 8px; font-size: 12px; }
}

/* ===== Wave / Curve Section Divider ===== */
.edv-wave {
    display: block;
    width: 100%;
    height: 80px;
    margin: 0;
}
.edv-wave-cream { background: var(--edv-cream); }
.edv-wave-white { background: #fff; }

/* ===== Section Heading ===== */
.edv-section { padding: 70px 0; }
.edv-section.is-cream { background: var(--edv-cream); }
.edv-section.is-white { background: #fff; }
.edv-section-head {
    text-align: center;
    margin-bottom: 48px;
}
.edv-section-eyebrow {
    display: inline-block;
    font-family: var(--edv-font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--edv-blue);
    margin-bottom: 12px;
}
.edv-section-eyebrow::before,
.edv-section-eyebrow::after {
    content: "";
    display: inline-block;
    width: 32px; height: 2px;
    background: var(--edv-blue);
    vertical-align: middle;
    margin: 0 12px;
}
.edv-section-head h2 {
    font-family: var(--edv-font-display);
    font-style: italic;
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    margin: 0 0 8px;
}
.edv-section-head .edv-script {
    font-family: var(--edv-font-script);
    background: var(--edv-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1.2em;
    font-style: normal;
}
.edv-section-head p { color: var(--edv-muted); max-width: 580px; margin: 8px auto 0; }
.edv-section-head .edv-section-link {
    display: inline-block;
    margin-top: 18px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--edv-blue);
    border-bottom: 2px solid var(--edv-blue);
    padding-bottom: 4px;
}
.edv-section-head .edv-section-link:hover { color: var(--edv-pink); border-color: var(--edv-pink); }

/* ===== Layout grid (content + sidebar on inner pages) ===== */
.edv-main { padding: 56px 0; }
.edv-grid { display: grid; grid-template-columns: 1fr 320px; gap: 48px; }
@media (max-width: 980px) { .edv-grid { grid-template-columns: 1fr; } }

/* ===== Post cards ===== */
.edv-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 30px;
}
.edv-cards.is-three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) { .edv-cards.is-three { grid-template-columns: 1fr; } }
.edv-card {
    background: #fff;
    border-radius: var(--edv-radius);
    overflow: hidden;
    box-shadow: var(--edv-shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex;
    flex-direction: column;
}
.edv-card:hover { transform: translateY(-6px); box-shadow: var(--edv-shadow-md); }
.edv-card-thumb {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--edv-border);
    display: block;
}
.edv-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.edv-card:hover .edv-card-thumb img { transform: scale(1.06); }
.edv-card-cat {
    position: absolute;
    top: 14px; left: 14px;
    background: var(--edv-blue);
    color: #fff;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    border-radius: 4px;
}
.edv-card-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.edv-card h3 {
    font-family: var(--edv-font-display);
    font-size: 1.3rem;
    margin: 0 0 10px;
    line-height: 1.3;
}
.edv-card h3 a { color: var(--edv-ink); }
.edv-card h3 a:hover { color: var(--edv-blue); }
.edv-card-excerpt { color: var(--edv-muted); font-size: 15px; flex: 1; }
.edv-card-meta { font-size: 12px; color: var(--edv-muted); margin-top: 16px; letter-spacing: .04em; text-transform: uppercase; }

/* ===== About / Program section ===== */
.edv-about {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
}
@media (max-width: 880px) { .edv-about { grid-template-columns: 1fr; } }
.edv-about-img {
    border-radius: var(--edv-radius-lg);
    overflow: hidden;
    box-shadow: var(--edv-shadow-md);
    aspect-ratio: 4/3;
}
.edv-about-img img { width:100%; height:100%; object-fit: cover; }
.edv-about-text h2 { font-style: italic; }

/* ===== Single post ===== */
.edv-single article {
    background: #fff;
    border-radius: var(--edv-radius-lg);
    box-shadow: var(--edv-shadow-sm);
    overflow: hidden;
}
.edv-single .edv-post-hero img { width: 100%; height: auto; max-height: 540px; object-fit: cover; }
.edv-single-body { padding: 44px clamp(24px, 5vw, 60px); }
.edv-single-meta {
    display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
    color: var(--edv-muted); font-size: 13px; margin-bottom: 14px;
    text-transform: uppercase; letter-spacing: .08em;
}
.edv-single-meta .edv-cat-tag {
    background: var(--edv-blue);
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: .12em;
    font-size: 11px;
}
.edv-single h1 { margin-top: 4px; font-style: italic; font-size: clamp(2rem, 4vw, 3rem); }
.edv-content img { border-radius: 12px; margin: 28px 0; box-shadow: var(--edv-shadow-sm); }
.edv-content h2 { margin-top: 1.6em; font-style: italic; }
.edv-content blockquote {
    border-left: 5px solid;
    border-image: var(--edv-gradient) 1;
    padding: 8px 0 8px 22px;
    margin: 28px 0;
    font-style: italic;
    color: var(--edv-blue-dark);
    font-size: 1.2rem;
    font-family: var(--edv-font-display);
}

/* ===== Sidebar ===== */
.edv-sidebar { display: flex; flex-direction: column; gap: 28px; }
.edv-widget {
    background: #fff;
    padding: 24px;
    border-radius: var(--edv-radius);
    box-shadow: var(--edv-shadow-sm);
}
.edv-widget-title {
    font-family: var(--edv-font-display);
    font-style: italic;
    font-size: 1.2rem;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--edv-border);
    position: relative;
}
.edv-widget-title::after {
    content: "";
    position: absolute;
    bottom: -2px; left: 0;
    width: 60px; height: 2px;
    background: var(--edv-gradient);
}
.edv-widget ul { list-style: none; padding: 0; margin: 0; }
.edv-widget ul li { padding: 10px 0; border-bottom: 1px dashed var(--edv-border); }
.edv-widget ul li:last-child { border-bottom: 0; }

.edv-social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.edv-social-link {
    display: flex; align-items: center; gap: 10px;
    padding: 12px; border-radius: 10px;
    color: #fff; font-weight: 700; font-size: 14px;
}
.edv-social-fb { background: #1877f2; }
.edv-social-ig { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.edv-social-link:hover { color: #fff; opacity: .9; }

.edv-ad {
    display: block; border-radius: var(--edv-radius); overflow: hidden;
    box-shadow: var(--edv-shadow-sm); background: #fff; text-align: center; position: relative;
}
.edv-ad img { width: 100%; display: block; }
.edv-ad-label {
    position: absolute; top: 8px; left: 8px;
    background: rgba(15,20,55,.75); color: #fff; font-size: 10px;
    letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px;
}
.edv-ad-placeholder {
    background: var(--edv-cream); border: 2px dashed var(--edv-border);
    padding: 48px 16px; color: var(--edv-muted); border-radius: var(--edv-radius);
    text-align: center; font-size: 14px;
}
.edv-ad-zone { margin: 50px 0; text-align: center; }

/* Pagination */
.edv-pagination { margin-top: 40px; display: flex; justify-content: center; gap: 6px; }
.edv-pagination a, .edv-pagination span {
    padding: 10px 16px; border-radius: 8px; background: #fff;
    box-shadow: var(--edv-shadow-sm); color: var(--edv-ink); font-weight: 600;
}
.edv-pagination .current { background: var(--edv-blue); color: #fff; }

/* ===== Footer ===== */
.edv-footer {
    background: var(--edv-blue-dark);
    color: #cdd5f0;
    padding: 64px 0 28px;
    margin-top: 0;
}
.edv-footer a { color: #fff; }
.edv-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 36px;
}
@media (max-width: 800px) { .edv-footer-grid { grid-template-columns: 1fr 1fr; } }
.edv-footer h4 {
    color: #fff;
    font-family: var(--edv-font-body);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .18em;
    margin: 0 0 18px;
}
.edv-footer ul { list-style: none; padding: 0; margin: 0; }
.edv-footer ul li { padding: 7px 0; }
.edv-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 22px;
    text-align: center;
    font-size: 13px;
    color: #8b94bc;
}
.edv-footer-logo img { max-height: 70px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.edv-footer-tag { color: #cdd5f0; max-width: 380px; }
.edv-footer-social { display: flex; gap: 14px; margin-top: 18px; }
.edv-footer-social a { color: #fff; opacity: .8; }
.edv-footer-social a:hover { opacity: 1; color: var(--edv-pink); }
.edv-footer-social svg { width: 22px; height: 22px; }

/* ===== Mobile ===== */
@media (max-width: 720px) {
    .edv-hero { min-height: 75vh; }
    .edv-hero-inner { padding: 110px 32px 70px; }
    .edv-social-row { display: none; }
}

/* WP core helpers */
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100%; margin-left: 0; margin-right: 0; }
.aligncenter { text-align: center; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: 13px; color: var(--edv-muted); text-align: center; margin-top: 6px; }
.screen-reader-text {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.sticky, .bypostauthor { /* required */ }

/* Comments */
.edv-comments { margin-top: 40px; background:#fff; padding: 30px; border-radius: var(--edv-radius); box-shadow: var(--edv-shadow-sm); }
.edv-comments h3 { margin-top: 0; }
.comment-list { list-style: none; padding: 0; }
.comment-list li { padding: 16px 0; border-bottom: 1px solid var(--edv-border); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%; padding: 10px 14px; border: 1px solid var(--edv-border); border-radius: 8px; font-family: inherit; font-size: 15px;
}
.comment-form textarea { min-height: 120px; }
.comment-form .submit { margin-top: 10px; background: var(--edv-blue); color:#fff; border:0; padding: 12px 24px; border-radius: 4px; font-weight: 700; cursor: pointer; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; }
