/*
Theme Name: Twenty Twenty-Five Child (David Preciado)
Theme URI: http://localhost/wp-biography-david
Template: twentytwentyfive
Description: Tema hijo personalizado diseñado con una estética prémium y corporativa para la biografía y blog del empresario David Preciado Martínez.
Author: Antigravity AI
Version: 1.0.0
*/

/* -------------------------------------------------------------
   SYSTEM VARIABLES & DESIGN TOKENS
   ------------------------------------------------------------- */
:root {
    --primary: #0f172a;
    /* Slate 900 - Navy profundo */
    --primary-light: #1e293b;
    /* Slate 800 */
    --accent: #d97706;
    /* Amber 600 - Dorado elegante */
    --accent-hover: #b45309;
    /* Amber 700 */
    --accent-light: #fef3c7;
    /* Amber 100 */
    --bg-light: #f8fafc;
    /* Slate 50 - Fondo neutro */
    --bg-white: #ffffff;
    --text-main: #334155;
    /* Slate 700 */
    --text-muted: #64748b;
    /* Slate 500 */
    --border-color: #e2e8f0;
    /* Slate 200 */

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Outfit', 'Inter', -apple-system, sans-serif;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    --border-radius: 12px;
    --container-max-width: 1200px;
}

/* -------------------------------------------------------------
   RESET & BASE STYLES
   ------------------------------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition-fast);
}

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

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* -------------------------------------------------------------
   NAVIGATION HEADER (GLASSMORPHISM)
   ------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition-fast);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.site-logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.site-logo a span {
    color: var(--accent);
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 32px;
}

.main-navigation a {
    font-weight: 500;
    color: var(--primary);
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition-fast);
}

.main-navigation a:hover::after,
.main-navigation li.current-menu-item a::after {
    width: 100%;
}

.main-navigation a:hover {
    color: var(--accent);
}

/* -------------------------------------------------------------
   HERO / BIOGRAPHY INTRO
   ------------------------------------------------------------- */
.hero-section {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content h2 {
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 12px;
    font-weight: 600;
    font-family: var(--font-body);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-content p.lead {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--primary);
    margin-bottom: 32px;
    font-weight: 400;
    border-left: 4px solid var(--accent);
    padding-left: 20px;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 8px solid var(--bg-white);
    transform: rotate(1deg);
    transition: var(--transition-smooth);
}

.hero-image-card:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 0 30px 50px -10px rgba(15, 23, 42, 0.15);
}

.hero-image-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.cta-button {
    display: inline-block;
    padding: 14px 28px;
    background-color: var(--primary);
    color: var(--bg-white);
    font-weight: 600;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition-fast);
}

.cta-button:hover {
    background-color: var(--accent);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* -------------------------------------------------------------
   TRAJECTORY / TILES SECTION
   ------------------------------------------------------------- */
.trajectory-section {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.section-title-wrapper {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-tag {
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 8px;
    display: inline-block;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

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

.trajectory-card {
    background: var(--bg-light);
    padding: 40px 32px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.trajectory-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

.trajectory-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background: var(--bg-white);
}

.trajectory-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 24px;
    display: inline-block;
}

.trajectory-card h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.trajectory-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* -------------------------------------------------------------
   MORE INFO / SPLIT SECTION
   ------------------------------------------------------------- */
.more-info-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.split-content h3 {
    font-size: 2.2rem;
    margin-bottom: 24px;
}

.split-content p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: var(--text-main);
}

.highlight-box {
    background: var(--primary);
    color: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    position: relative;
}

.highlight-box h4 {
    color: var(--accent);
    font-family: var(--font-body);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.highlight-box blockquote {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    line-height: 1.5;
    margin-bottom: 24px;
    font-style: italic;
}

.highlight-author {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* -------------------------------------------------------------
   LATEST POSTS GRID (HOME PREVIEW)
   ------------------------------------------------------------- */
.latest-posts-section {
    padding: 100px 0;
    background-color: var(--bg-white);
}

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

.post-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.post-thumbnail {
    height: 220px;
    overflow: hidden;
    background-color: var(--primary);
    position: relative;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-card-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.post-card-title {
    font-size: 1.25rem;
    margin-bottom: 16px;
    line-height: 1.4;
}

.post-card-title a {
    color: var(--primary);
}

.post-card-title a:hover {
    color: var(--accent);
}

.post-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more-link {
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.read-more-link::after {
    content: '→';
    transition: var(--transition-fast);
}

.post-card:hover .read-more-link::after {
    transform: translateX(4px);
}

/* -------------------------------------------------------------
   BLOG ARCHIVE PAGE
   ------------------------------------------------------------- */
.archive-header {
    padding: 160px 0 60px;
    background: linear-gradient(135deg, var(--primary) 0%, #1e293b 100%);
    color: var(--bg-white);
    text-align: center;
}

.archive-header h1 {
    color: var(--bg-white);
    font-size: 3rem;
    margin-bottom: 16px;
}

.archive-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.blog-archive-section {
    padding: 80px 0;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 60px;
}

.pagination .page-numbers {
    padding: 10px 18px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--primary);
    font-weight: 600;
}

.pagination .page-numbers.current {
    background-color: var(--accent);
    color: var(--bg-white);
    border-color: var(--accent);
}

.pagination .page-numbers:hover:not(.current) {
    background-color: var(--primary);
    color: var(--bg-white);
    border-color: var(--primary);
}

/* -------------------------------------------------------------
   SINGLE POST PAGE
   ------------------------------------------------------------- */
.single-post-header {
    padding: 180px 0 60px;
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.back-blog-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    background: #0f172a;
    border: 1px solid #0f172a;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
    margin-bottom: 24px;
}

.back-blog-btn:hover {
    background-color: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    transform: translateX(-3px);
}

.single-post-header .meta {
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.single-post-header h1 {
    font-size: 3rem;
    max-width: 900px;
    margin-bottom: 24px;
}

.single-post-layout {
    padding: 80px 0;
}

.single-post-container {
    max-width: 780px;
    margin: 0 auto;
}

.single-post-featured-image {
    width: 100%;
    margin: 32px 0 40px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.single-post-featured-image img {
    width: 100%;
    height: 100%;
    aspect-ratio: 21 / 9;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-content p {
    margin-bottom: 28px;
}

.post-content h2,
.post-content h3 {
    margin: 40px 0 20px;
}

.post-content blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 24px;
    font-style: italic;
    font-size: 1.25rem;
    color: var(--primary);
    margin: 32px 0;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

/* -------------------------------------------------------------
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .hero-content p.lead {
        border-left: none;
        padding-left: 0;
    }

    .hero-image-wrapper {
        max-width: 450px;
        margin: 0 auto;
    }

    .trajectory-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .split-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .trajectory-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .site-header .container {
        height: 70px;
    }

    .main-navigation ul {
        gap: 16px;
    }

    .section-title {
        font-size: 2rem;
    }

    .single-post-header h1 {
        font-size: 2.2rem;
    }
}