/*
Theme Name: iabro
Theme URI: https://iabro.online
Author: J.M. Romero
Author URI: https://iabro.online
Description: Tema personalizado para iabro.online — Canal de YouTube sobre Inteligencia Artificial.
Version: 1.0
Requires at least: 6.0
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: iabro
*/

/* ══════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --yellow: #FFE500;
    --black:  #0A0A0A;
    --white:  #FFFFFF;
    --gray:   #F4F4F4;
    --mid:    #666666;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--white);
    color: var(--black);
    overflow-x: hidden;
    line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; }
ul { list-style: none; }

/* ══════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════ */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--black);
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    transition: box-shadow 0.3s;
}
#navbar.scrolled { box-shadow: 0 4px 32px rgba(0,0,0,0.5); }

.nav-logo {
    font-weight: 900;
    font-size: 26px;
    color: var(--white);
    text-decoration: none;
    letter-spacing: -1.5px;
    display: flex;
    align-items: center;
    gap: 3px;
}
.nav-logo .dot {
    display: inline-block;
    width: 7px; height: 7px;
    background: var(--yellow);
    border-radius: 50%;
    margin-bottom: 12px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-menu a {
    color: rgba(255,255,255,0.72);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.2s;
}
.nav-menu a:hover,
.nav-menu a.current_page_item { color: var(--yellow); }

.nav-cta-btn {
    background: var(--yellow) !important;
    color: var(--black) !important;
    padding: 9px 20px !important;
    border-radius: 4px;
}
.nav-cta-btn:hover { opacity: 0.9 !important; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); transition: 0.3s; }

/* ══════════════════════════════════════════
   PAGE WRAPPER
══════════════════════════════════════════ */
.page-wrap { padding-top: 68px; }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
    background: var(--black);
    min-height: calc(100vh - 68px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: 'IA';
    position: absolute;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 520px;
    color: rgba(255,229,0,0.035);
    right: -60px; top: 50%;
    transform: translateY(-50%);
    user-select: none;
    pointer-events: none;
    line-height: 1;
}
.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 48px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 80px;
    align-items: center;
    width: 100%;
}
.hero-tag {
    display: inline-block;
    background: var(--yellow);
    color: var(--black);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 2px;
    margin-bottom: 28px;
}
.hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(64px, 9vw, 120px);
    color: var(--white);
    line-height: 0.93;
    margin-bottom: 28px;
}
.hero h1 em { color: var(--yellow); font-style: normal; }
.hero-desc {
    font-size: 18px;
    color: rgba(255,255,255,0.6);
    line-height: 1.75;
    max-width: 500px;
    margin-bottom: 44px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-yt {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--yellow);
    color: var(--black);
    padding: 16px 30px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-yt:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(255,229,0,0.35); color: var(--black); }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--white);
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.18);
    transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); transform: translateY(-3px); }

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.stat-num { font-family: 'Bebas Neue', sans-serif; font-size: 46px; color: var(--yellow); line-height: 1; }
.stat-label { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 4px; text-transform: uppercase; letter-spacing: 1px; }

.book-mockup { position: relative; width: 260px; flex-shrink: 0; }
.book-mockup img {
    width: 100%;
    border-radius: 6px;
    box-shadow: -24px 24px 64px rgba(0,0,0,0.6), 12px -8px 40px rgba(255,229,0,0.08);
    transform: perspective(900px) rotateY(-8deg) rotateX(2deg);
    transition: transform 0.5s ease;
}
.book-mockup:hover img { transform: perspective(900px) rotateY(0deg) rotateX(0deg); }
.book-badge-pill {
    position: absolute; bottom: -16px; right: -16px;
    width: 80px; height: 80px;
    background: var(--yellow);
    border-radius: 50%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    font-weight: 900; font-size: 10px;
    text-align: center; text-transform: uppercase;
    line-height: 1.3;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    border: 3px solid var(--black);
}

/* ══════════════════════════════════════════
   SECTIONS COMMON
══════════════════════════════════════════ */
.section { padding: 104px 48px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-hd { margin-bottom: 56px; }

.tag {
    display: inline-block;
    font-size: 11px; font-weight: 700;
    letter-spacing: 3px; text-transform: uppercase;
    color: var(--yellow); background: var(--black);
    padding: 5px 12px; border-radius: 2px;
    margin-bottom: 14px;
}
.tag-inv { background: var(--yellow); color: var(--black); }

.sec-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(44px, 6vw, 72px);
    line-height: 1;
}
.sec-sub {
    font-size: 18px; color: #666;
    margin-top: 14px; max-width: 560px; line-height: 1.65;
}
.sec-sub-light { color: rgba(255,255,255,0.55); }
.sec-title-light { color: var(--white); }

/* ══════════════════════════════════════════
   VIDEOS SECTION
══════════════════════════════════════════ */
#videos { background: var(--gray); }

.videos-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }

.video-card {
    background: var(--white);
    border-radius: 10px; overflow: hidden;
    text-decoration: none; color: var(--black);
    transition: transform 0.3s, box-shadow 0.3s;
    display: block;
}
.video-card:hover { transform: translateY(-7px); box-shadow: 0 24px 60px rgba(0,0,0,0.13); }

.video-thumb { position: relative; padding-bottom: 56.25%; background: #111; overflow: hidden; }
.video-thumb iframe {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; border: none;
}
.thumb-placeholder {
    position: absolute; inset: 0;
    background: linear-gradient(135deg,#141414,#242424);
    display: flex; align-items: center; justify-content: center;
}
.yt-label {
    position: absolute; top: 14px; left: 14px;
    background: var(--yellow); color: var(--black);
    font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; padding: 4px 10px; border-radius: 2px;
}
.play-circle {
    width: 64px; height: 64px;
    background: var(--yellow); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.2s;
}
.video-card:hover .play-circle { transform: scale(1.12); }
.play-circle svg { width: 28px; height: 28px; fill: var(--black); margin-left: 4px; }

.video-meta { padding: 20px 22px 24px; }
.video-meta h3 { font-size: 15px; font-weight: 700; line-height: 1.45; margin-bottom: 8px; }
.video-meta span { font-size: 12px; color: #999; }
.videos-cta { text-align: center; margin-top: 52px; }

/* ══════════════════════════════════════════
   BOOK SECTION
══════════════════════════════════════════ */
#libro { background: var(--black); }

.book-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 80px; align-items: center;
}
.book-grid-img img {
    border-radius: 6px;
    box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}
.book-info h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(40px,5vw,72px);
    color: var(--white); line-height: 0.95; margin-bottom: 10px;
}
.book-info h2 em { color: var(--yellow); font-style: normal; }
.book-author { font-size: 16px; color: rgba(255,255,255,0.45); margin-bottom: 24px; }
.book-desc { font-size: 16px; color: rgba(255,255,255,0.7); line-height: 1.8; margin-bottom: 36px; }
.book-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.btn-amazon {
    display: inline-flex; align-items: center; gap: 10px;
    background: #FF9900; color: #0A0A0A;
    padding: 15px 28px; border-radius: 4px;
    font-weight: 700; font-size: 15px; text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-amazon:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(255,153,0,0.4); color: #0A0A0A; }

.free-box {
    background: rgba(255,229,0,0.07);
    border: 1px solid rgba(255,229,0,0.18);
    border-radius: 10px; padding: 28px 30px;
}
.free-box h4 { font-size: 17px; font-weight: 700; color: var(--yellow); margin-bottom: 6px; }
.free-box p { font-size: 14px; color: rgba(255,255,255,0.5); margin-bottom: 18px; line-height: 1.6; }
.free-form { display: flex; gap: 10px; }
.free-form input {
    flex: 1; padding: 13px 16px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--white); border-radius: 4px;
    font-size: 14px; font-family: 'Inter', sans-serif;
}
.free-form input::placeholder { color: rgba(255,255,255,0.3); }
.free-form input:focus { outline: none; border-color: var(--yellow); }
.free-form button {
    padding: 13px 22px; background: var(--yellow); color: var(--black);
    border: none; border-radius: 4px; font-weight: 700; font-size: 14px;
    cursor: pointer; font-family: 'Inter', sans-serif; white-space: nowrap;
    transition: transform 0.2s;
}
.free-form button:hover { transform: translateY(-2px); }

/* ══════════════════════════════════════════
   BLOG SECTION
══════════════════════════════════════════ */
#blog { background: var(--white); }

.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }

.blog-card {
    border-radius: 10px; overflow: hidden;
    border: 1px solid #EBEBEB;
    text-decoration: none; color: var(--black);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-7px); box-shadow: 0 24px 60px rgba(0,0,0,0.1); }

.blog-card-top { background: var(--black); padding: 28px; }
.blog-badge {
    display: inline-block;
    background: var(--yellow); color: var(--black);
    font-size: 10px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    padding: 4px 10px; border-radius: 2px; margin-bottom: 14px;
}
.blog-card-top h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 26px; color: var(--white); line-height: 1.1;
}
.blog-card-body {
    padding: 22px 28px 26px;
    flex: 1; display: flex; flex-direction: column;
}
.blog-card-body p { font-size: 14px; line-height: 1.72; color: #666; flex: 1; margin-bottom: 20px; }
.read-more {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; color: var(--black);
    text-decoration: none;
}
.read-more svg { transition: transform 0.2s; }
.blog-card:hover .read-more svg { transform: translateX(4px); }

/* ══════════════════════════════════════════
   NEWSLETTER
══════════════════════════════════════════ */
#newsletter { background: var(--yellow); padding: 96px 48px; }
.nl-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.nl-inner h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(48px,7vw,80px);
    color: var(--black); line-height: 0.95; margin-bottom: 16px;
}
.nl-inner h2 span { background: var(--black); color: var(--yellow); padding: 0 10px; border-radius: 3px; }
.nl-inner p { font-size: 18px; color: rgba(0,0,0,0.6); margin-bottom: 40px; line-height: 1.6; }
.nl-form { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; }
.nl-form input {
    flex: 1; padding: 16px 18px;
    border: 2px solid var(--black); background: var(--white);
    border-radius: 4px; font-size: 15px; font-family: 'Inter', sans-serif;
}
.nl-form input:focus { outline: none; }
.nl-form button {
    padding: 16px 24px; background: var(--black); color: var(--white);
    border: 2px solid var(--black); border-radius: 4px;
    font-weight: 700; font-size: 15px; cursor: pointer;
    font-family: 'Inter', sans-serif; white-space: nowrap; transition: background 0.2s;
}
.nl-form button:hover { background: #222; }
.nl-note { margin-top: 14px; font-size: 12px; color: rgba(0,0,0,0.45); }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.site-footer { background: var(--black); padding: 72px 48px 40px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
    display: grid; grid-template-columns: 2fr 1fr 1fr;
    gap: 60px; padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo-mark {
    font-weight: 900; font-size: 30px; color: var(--white);
    letter-spacing: -1.5px; margin-bottom: 16px;
}
.footer-logo-mark span { color: var(--yellow); }
.footer-brand-text { font-size: 14px; color: rgba(255,255,255,0.4); line-height: 1.75; max-width: 300px; }
.socials { display: flex; gap: 10px; margin-top: 24px; }
.soc {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.07); border-radius: 6px;
    text-decoration: none; transition: background 0.2s;
}
.soc:hover { background: var(--yellow); }
.soc:hover svg { fill: var(--black); }
.soc svg { width: 17px; height: 17px; fill: rgba(255,255,255,0.6); transition: fill 0.2s; }
.fc h4 {
    font-size: 11px; font-weight: 700;
    letter-spacing: 2.5px; text-transform: uppercase;
    color: var(--yellow); margin-bottom: 20px;
}
.fc ul li { margin-bottom: 10px; }
.fc ul a {
    font-size: 14px; color: rgba(255,255,255,0.45);
    text-decoration: none; transition: color 0.2s;
}
.fc ul a:hover { color: var(--white); }
.footer-bottom {
    padding-top: 32px; display: flex;
    justify-content: space-between; align-items: center;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.25); }

/* ══════════════════════════════════════════
   BLOG / SINGLE POST STYLES
══════════════════════════════════════════ */
.blog-header {
    background: var(--black);
    padding: 80px 48px 64px;
    text-align: center;
}
.blog-header h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(48px, 7vw, 96px);
    color: var(--white); line-height: 0.95;
    margin-bottom: 16px;
}
.blog-header p { font-size: 18px; color: rgba(255,255,255,0.55); }

.blog-archive-grid {
    max-width: 1200px; margin: 0 auto;
    padding: 64px 48px;
    display: grid; grid-template-columns: repeat(3,1fr); gap: 28px;
}

.post-thumbnail { position: relative; padding-bottom: 56.25%; overflow: hidden; background: #111; }
.post-thumbnail img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; transition: transform 0.4s;
}
.blog-card:hover .post-thumbnail img { transform: scale(1.04); }
.post-thumbnail .no-thumb {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--black) 0%, #1a1a1a 100%);
    display: flex; align-items: center; justify-content: center;
}
.post-thumbnail .no-thumb span {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 48px; color: rgba(255,229,0,0.2);
}

/* Single post */
.single-wrap { max-width: 780px; margin: 0 auto; padding: 72px 48px; }

.post-header { margin-bottom: 40px; }
.post-category {
    display: inline-block;
    background: var(--yellow); color: var(--black);
    font-size: 11px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    padding: 5px 12px; border-radius: 2px; margin-bottom: 16px;
    text-decoration: none;
}
.post-header h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1; margin-bottom: 16px;
}
.post-meta { font-size: 13px; color: #999; margin-bottom: 32px; }
.post-featured-img { border-radius: 8px; margin-bottom: 40px; }
.post-content { font-size: 17px; line-height: 1.85; color: #222; }
.post-content h2 { font-family: 'Bebas Neue', sans-serif; font-size: 36px; margin: 40px 0 16px; }
.post-content h3 { font-size: 22px; font-weight: 700; margin: 32px 0 12px; }
.post-content p { margin-bottom: 24px; }
.post-content a { color: var(--black); text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: 3px; }
.post-content ul, .post-content ol { margin: 0 0 24px 24px; }
.post-content li { margin-bottom: 8px; }
.post-content blockquote {
    border-left: 4px solid var(--yellow);
    padding: 12px 24px; margin: 32px 0;
    background: var(--gray); border-radius: 0 6px 6px 0;
    font-style: italic; color: #444;
}
.post-content img { border-radius: 6px; margin: 24px 0; }

.back-to-blog {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--black); color: var(--white);
    padding: 13px 22px; border-radius: 4px;
    font-weight: 600; font-size: 14px;
    text-decoration: none; margin-top: 48px;
    transition: background 0.2s;
}
.back-to-blog:hover { background: #222; color: var(--white); }

/* Page (genérica) */
.page-wrap-inner { max-width: 900px; margin: 0 auto; padding: 80px 48px; }
.page-wrap-inner h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(44px,6vw,80px); margin-bottom: 32px;
}

/* ══════════════════════════════════════════
   REVEAL ANIMATION
══════════════════════════════════════════ */
.reveal {
    opacity: 0; transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 960px) {
    #navbar { padding: 0 24px; }
    .nav-menu {
        display: none;
        position: fixed; top: 68px; left: 0; right: 0;
        background: #111; flex-direction: column;
        padding: 24px; gap: 16px;
        border-top: 1px solid rgba(255,255,255,0.07);
    }
    .nav-menu.open { display: flex; }
    .hamburger { display: flex; }

    .hero-inner { grid-template-columns: 1fr; padding: 60px 24px; text-align: center; }
    .hero-desc { margin: 0 auto 36px; }
    .hero-btns { justify-content: center; }
    .hero-stats { justify-content: center; }
    .book-mockup { margin: 0 auto; width: 200px; }
    .book-badge-pill { display: none; }

    .section { padding: 64px 24px; }
    .videos-grid, .blog-grid, .blog-archive-grid { grid-template-columns: 1fr; }
    .book-grid { grid-template-columns: 1fr; gap: 40px; }
    .book-grid-img { max-width: 240px; margin: 0 auto; }
    .book-info { text-align: center; }
    .book-btns { justify-content: center; }
    .free-form { flex-direction: column; }

    #newsletter { padding: 64px 24px; }
    .nl-form { flex-direction: column; }

    .site-footer { padding: 48px 24px 32px; }
    .footer-top { grid-template-columns: 1fr; gap: 36px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

    .blog-header, .single-wrap, .page-wrap-inner, .blog-archive-grid { padding-left: 24px; padding-right: 24px; }
}

@media (min-width: 961px) and (max-width: 1160px) {
    .videos-grid, .blog-grid, .blog-archive-grid { grid-template-columns: repeat(2,1fr); }
}

/* WordPress alignment classes */
.alignleft  { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin: 0 auto 16px; display: block; }
.wp-caption { font-size: 13px; color: #888; text-align: center; margin-top: 6px; }
