
/*
Theme Name: Digy Talks
Theme URI: https://digygroup.com
Author: Digy Group
Author URI: https://digygroup.com
Description: Tema completo y utilitario para el podcast Digy Talks. Pensado para conectar el feed del podcast, controlar CTAs y recursos desde un panel interno y ofrecer una experiencia 100% funcional.
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: digy-talks
*/

:root {
    --dt-bg: #020617;
    --dt-bg-alt: #020617;
    --dt-primary: #38bdf8;
    --dt-primary-soft: rgba(56, 189, 248, 0.12);
    --dt-accent: #f97316;
    --dt-text: #e5e7eb;
    --dt-text-muted: #9ca3af;
    --dt-border: #1f2937;
    --dt-radius-lg: 1.25rem;
    --dt-radius-full: 999px;
    --dt-shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.7);
}

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

body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #020617 0, #020617 35%, #000 100%);
    color: var(--dt-text);
    line-height: 1.6;
}

a {
    color: var(--dt-primary);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

a:hover {
    color: #7dd3fc;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(16px);
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.86), transparent);
    border-bottom: 1px solid rgba(15, 23, 42, 0.92);
}

.site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.site-logo {
    width: 40px;
    height: 40px;
    border-radius: 1.4rem;
    background: conic-gradient(from 150deg, #38bdf8, #f97316, #4ade80, #38bdf8);
    padding: 2px;
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.4);
}

.site-logo-inner {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: radial-gradient(circle at 30% 0, #0f172a, #020617);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    color: #e5e7eb;
}

.site-title-text {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.site-title-text a {
    color: #f9fafb;
    font-weight: 650;
    font-size: 1rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.site-tagline {
    font-size: 0.8rem;
    color: var(--dt-text-muted);
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.8rem;
}

.main-navigation a {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    color: var(--dt-text-muted);
}

.main-navigation a:hover,
.main-navigation .current-menu-item a,
.main-navigation .current_page_item a {
    color: #f9fafb;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.55);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.header-cta a {
    font-size: 0.8rem;
    padding: 0.45rem 1.1rem;
    border-radius: var(--dt-radius-full);
    background: linear-gradient(135deg, #38bdf8, #f97316);
    color: #020617;
    font-weight: 600;
    box-shadow: var(--dt-shadow-soft);
}

.header-cta a:hover {
    opacity: 0.94;
}

.menu-toggle {
    display: none;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.98);
    color: #e5e7eb;
    font-size: 0.8rem;
}

.site-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.8rem 1.4rem 3.8rem;
    min-height: 60vh;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 2.15fr) minmax(0, 1.7fr);
    gap: 2.4rem;
    align-items: center;
    padding: 1.9rem;
    margin-bottom: 3rem;
    border-radius: 1.8rem;
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.2), transparent 55%), radial-gradient(circle at right, rgba(248, 250, 252, 0.08), transparent 55%), linear-gradient(135deg, #020617, #020617);
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: var(--dt-shadow-soft);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.88);
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.5);
    font-size: 0.7rem;
    color: var(--dt-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.hero-kicker span:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.22);
    color: #38bdf8;
    font-size: 0.75rem;
}

.hero-title {
    font-size: clamp(2.25rem, 3.1vw + 1rem, 2.9rem);
    line-height: 1.05;
    margin: 0.8rem 0 0.6rem;
    letter-spacing: -0.04em;
}

.hero-title span {
    background: linear-gradient(135deg, #38bdf8, #f97316);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 0.98rem;
    color: var(--dt-text-muted);
    max-width: 34rem;
    margin-bottom: 1.3rem;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.4rem;
}

.hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    color: var(--dt-text-muted);
}

.hero-meta-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.9);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.62rem 1.4rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #38bdf8, #f97316);
    color: #020617;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--dt-shadow-soft);
}

.btn-primary span:first-child {
    font-size: 1.1rem;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.3rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.96);
    color: var(--dt-text);
    font-size: 0.85rem;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1.1rem;
}

.hero-badge {
    font-size: 0.72rem;
    padding: 0.18rem 0.65rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.98);
    color: var(--dt-text-muted);
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.hero-visual {
    position: relative;
    min-height: 230px;
}

.hero-card {
    position: relative;
    border-radius: 1.5rem;
    padding: 1.1rem 1.1rem 1rem;
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.22), transparent 55%), radial-gradient(circle at bottom right, rgba(248, 250, 252, 0.15), transparent 60%), #020617;
    border: 1px solid rgba(148, 163, 184, 0.5);
    box-shadow: var(--dt-shadow-soft);
}

.hero-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.9rem;
}

.hero-card-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--dt-text-muted);
}

.hero-card-pill {
    padding: 0.18rem 0.65rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.96);
    font-size: 0.72rem;
    color: var(--dt-text-muted);
}

.waveform {
    width: 100%;
    height: 46px;
    border-radius: 0.9rem;
    background-image: linear-gradient(90deg, rgba(148, 163, 184, 0.14) 0, rgba(148, 163, 184, 0.14) 18%, rgba(56, 189, 248, 0.45) 18%, rgba(56, 189, 248, 0.45) 38%, rgba(148, 163, 184, 0.2) 38%, rgba(148, 163, 184, 0.2) 62%, rgba(56, 189, 248, 0.5) 62%, rgba(56, 189, 248, 0.5) 80%, rgba(148, 163, 184, 0.1) 80%, rgba(148, 163, 184, 0.1) 100%);
    background-size: 260% 100%;
    animation: waveform 9s ease-in-out infinite alternate;
    margin-bottom: 0.9rem;
}

@keyframes waveform {
    from { background-position: 0 50%; }
    to { background-position: 100% 50%; }
}

.hero-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.76rem;
    color: var(--dt-text-muted);
}

.hero-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.hero-card-episode {
    font-size: 0.84rem;
    color: #e5e7eb;
}

.hero-card-people {
    font-size: 0.78rem;
}

.hero-card-duration {
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.96);
}

.section {
    margin-bottom: 3.2rem;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.6rem;
}

.section-kicker {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--dt-text-muted);
    margin-bottom: 0.32rem;
}

.section-title {
    font-size: 1.35rem;
    margin: 0;
}

.section-description {
    font-size: 0.9rem;
    color: var(--dt-text-muted);
    max-width: 30rem;
}

.episode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.1rem;
}

.episode-card {
    position: relative;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.92));
    border-radius: var(--dt-radius-lg);
    padding: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.9);
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.episode-tag {
    font-size: 0.7rem;
    padding: 0.12rem 0.55rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.16);
    color: #7dd3fc;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.episode-tag::before {
    content: "●";
    font-size: 0.65rem;
}

.episode-title {
    margin: 0;
    font-size: 1rem;
}

.episode-title a {
    color: #f9fafb;
}

.episode-excerpt {
    font-size: 0.85rem;
    color: var(--dt-text-muted);
}

.episode-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.75rem;
    color: var(--dt-text-muted);
}

.episode-footer {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.episode-play {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: var(--dt-primary-soft);
    color: #e0f2fe;
}

.episode-play span:first-child {
    font-size: 1rem;
}

.chip {
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    font-size: 0.7rem;
    color: var(--dt-text-muted);
}

.hosts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.1rem;
}

.host-card {
    background: rgba(15, 23, 42, 0.96);
    border-radius: var(--dt-radius-lg);
    padding: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.host-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.host-avatar {
    width: 46px;
    height: 46px;
    border-radius: 1.5rem;
    background: radial-gradient(circle at 30% 0, #38bdf8, #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #e5e7eb;
}

.host-meta {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.host-name {
    font-size: 0.96rem;
    font-weight: 600;
}

.host-role {
    font-size: 0.8rem;
    color: var(--dt-text-muted);
}

.host-bio {
    font-size: 0.86rem;
    color: var(--dt-text-muted);
}

.host-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.2rem;
}

.host-links a {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.subscribe-bar {
    margin-top: 0.9rem;
    padding: 0.9rem 1rem;
    border-radius: 1.1rem;
    background: rgba(15, 23, 42, 0.98);
    border: 1px dashed rgba(148, 163, 184, 0.7);
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
}

.subscribe-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.subscribe-links a {
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.5);
    font-size: 0.76rem;
}

.site-footer {
    border-top: 1px solid rgba(15, 23, 42, 0.96);
    background: radial-gradient(circle at top, #020617, #000);
    margin-top: 2.4rem;
}

.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.6rem 1.4rem 2.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--dt-text-muted);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.footer-links a {
    font-size: 0.8rem;
    color: var(--dt-text-muted);
}

.footer-links a:hover {
    color: #e5e7eb;
}

.content-narrow {
    max-width: 760px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 1.5rem;
}

.page-title {
    font-size: 1.8rem;
    margin: 0 0 0.4rem;
}

.page-intro {
    font-size: 0.96rem;
    color: var(--dt-text-muted);
}

.post-meta {
    font-size: 0.8rem;
    color: var(--dt-text-muted);
    margin-bottom: 1rem;
}

.post-meta span + span::before {
    content: "·";
    margin: 0 0.35rem;
}

.post-content {
    font-size: 0.96rem;
    color: #e5e7eb;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    margin-top: 1.5rem;
}

.post-content p {
    margin-bottom: 0.9rem;
}

.post-content ul,
.post-content ol {
    padding-left: 1.1rem;
    margin-bottom: 0.9rem;
}

.post-content li {
    margin-bottom: 0.3rem;
}

.archive-list {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(0, 1.2fr);
    gap: 2rem;
}

.archive-main {
    display: grid;
    gap: 1rem;
}

.archive-card {
    padding: 1rem;
    border-radius: 1.1rem;
    background: rgba(15, 23, 42, 0.97);
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.archive-card-title {
    margin: 0 0 0.3rem;
    font-size: 1.05rem;
}

.archive-card-title a {
    color: #f9fafb;
}

.archive-card-meta {
    font-size: 0.8rem;
    color: var(--dt-text-muted);
    margin-bottom: 0.5rem;
}

.archive-card-excerpt {
    font-size: 0.88rem;
    color: var(--dt-text-muted);
}

.archive-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.archive-sidebar-block {
    padding: 0.9rem;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.97);
    border: 1px solid rgba(148, 163, 184, 0.35);
    font-size: 0.86rem;
    color: var(--dt-text-muted);
}

.archive-sidebar-block h3 {
    margin: 0 0 0.6rem;
    font-size: 0.9rem;
}

.button-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    font-size: 0.78rem;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.settings-table {
    margin-top: 1rem;
    border-collapse: collapse;
}

.settings-table th,
.settings-table td {
    padding: 0.4rem 0.6rem;
}

.settings-table th {
    text-align: left;
}

.settings-table input[type="text"],
.settings-table input[type="url"],
.settings-table textarea {
    width: 100%;
    max-width: 480px;
}

.settings-table textarea {
    min-height: 60px;
}

@media (max-width: 960px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
        padding: 1.5rem;
    }
    .hero-visual {
        order: -1;
    }
    .archive-list {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 760px) {
    .site-header-inner {
        padding-inline: 1rem;
    }
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        padding: 0.8rem 1.4rem 1.1rem;
        background: rgba(2, 6, 23, 0.98);
        border-bottom: 1px solid rgba(15, 23, 42, 0.96);
    }
    .main-navigation.is-open {
        display: flex;
        justify-content: flex-end;
    }
    .main-navigation ul {
        flex-direction: column;
        align-items: flex-end;
    }
    .header-cta {
        display: none;
    }
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
    }
}
