/*
Theme Name: Manuel Soberanes Díez
Description: Tema personalizado para el blog de Manuel Soberanes Díez - Abogado
Version: 1.0
Author: Tu Nombre
*/

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.7;
    color: #2d3748;
    background-color: #f8fafc;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: #1a3d6c;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background: #1a3d6c;
    color: white;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.4s ease;
    border: none;
    cursor: pointer;
    letter-spacing: 0.8px;
    box-shadow: 0 5px 15px rgba(26, 61, 108, 0.2);
}

.btn:hover {
    background: #0d2640;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(26, 61, 108, 0.3);
}

.btn-gold {
    background: #d4af37;
    color: white;
}

.btn-gold:hover {
    background: #b8972e;
    color: white;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: #1a3d6c;
}

h1 {
    font-size: 3.8rem;
    margin-bottom: 20px;
}

h2 {
    font-size: 2.6rem;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: #d4af37;
    border-radius: 2px;
}

p {
    margin-bottom: 16px;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 26px;
    font-weight: 900;
    color: #1a3d6c;
    font-family: 'Playfair Display', serif;
}

.logo img {
    height: 85px;
    vertical-align: middle;
}

.logo a {
    display: inline-block;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 35px;
}

.nav-links a {
    color: #2d3748;
    font-weight: 700;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #d4af37;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #1a3d6c;
}

/* Main Content */
.main-content {
    margin-top: 120px;
    min-height: 80vh;
}

/* Blog Posts */
.blog-posts {
    max-width: 1200px;
    margin: 0 auto;
}

.post {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    margin-bottom: 40px;
    padding: 35px 30px;
    transition: all 0.4s ease;
}

.post:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.post h2 {
    font-family: 'Playfair Display', serif;
    color: #1a3d6c;
    font-size: 2rem;
    margin-bottom: 18px;
}

.post h2::after {
    display: none;
}

.post h2 a {
    color: #1a3d6c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post h2 a:hover {
    color: #d4af37;
}

.post-meta {
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 12px;
    font-style: italic;
}

.post-content {
    color: #2d3748;
    line-height: 1.7;
}

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

/* Single Post */
.single-post {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    /* padding: 50px 40px; */
    max-width: 1200px;
    /* margin: 0 auto; */
    /* margin-top: 80px; */
}

/* .single-post h1 {
    font-family: 'Playfair Display', serif;
    color: #1a3d6c;
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.single-post h1::after {
    display: none;
}

.single-post .post-meta {
    color: #888;
    font-size: 1rem;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
}

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

.single-post .post-content h1,
.single-post .post-content h2,
.single-post .post-content h3,
.single-post .post-content h4 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.single-post .post-content h2::after,
.single-post .post-content h3::after,
.single-post .post-content h4::after {
    display: none;
}

.single-post .post-content ul,
.single-post .post-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.single-post .post-content blockquote {
    background: #f8fafc;
    border-left: 4px solid #d4af37;
    padding: 20px;
    margin: 20px 0;
    font-style: italic;
}

/* Navigation */
.post-navigation {
    max-width: 900px;
    margin: 40px auto;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.nav-previous,
.nav-next {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.nav-previous:hover,
.nav-next:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.nav-previous a,
.nav-next a {
    color: #1a3d6c;
    font-weight: 600;
    text-decoration: none;
}

.nav-previous a:hover,
.nav-next a:hover {
    color: #d4af37;
}

.nav-next {
    text-align: right;
}

.nav-previous small,
.nav-next small {
    font-size: 0.85rem;
    color: #666;
    font-weight: normal;
}

/* Pagination */
.pagination {
    text-align: center;
    margin: 50px 0;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 12px 18px;
    margin: 0 5px;
    background: white;
    color: #1a3d6c;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #1a3d6c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 61, 108, 0.2);
}

/* Footer */
footer {
    background: #1a1a1a;
    color: #ccc;
    text-align: center;
    padding: 40px 0;
    font-size: 14px;
    margin-top: 80px;
}

footer .social-icons {
    margin: 15px 0;
}

footer .social-icons a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: #333;
    color: white;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin: 0 8px;
    transition: background 0.3s;
}

footer .social-icons a:hover {
    background: #d4af37;
}

/* Page Title */
.page-title {
    font-family: 'Playfair Display', serif;
    color: #1a3d6c;
    font-size: 3rem;
    margin-bottom: 40px;
    text-align: center;
}

.page-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #d4af37;
    border-radius: 2px;
    margin: 20px auto 0;
}

/* Breadcrumbs */
.breadcrumbs {
    max-width: 900px;
    margin: 0 auto 30px;
    padding: 15px 0;
    color: #666;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: #1a3d6c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: #d4af37;
}

/* Back to Blog Button */
.back-to-blog {
    max-width: 900px;
    margin: 0 auto 30px;
    text-align: left;
}

.back-to-blog a {
    display: inline-flex;
    align-items: center;
    color: #1a3d6c;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 10px 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.back-to-blog a:hover {
    color: #d4af37;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.back-to-blog i {
    margin-right: 8px;
}

/* WordPress specific styles */
.wp-caption {
    max-width: 100%;
    margin-bottom: 20px;
}

.wp-caption img {
    max-width: 100%;
    height: auto;
}

.wp-caption-text {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    padding: 10px;
    background: #f8fafc;
}

.alignleft {
    float: left;
    margin: 0 20px 20px 0;
}

.alignright {
    float: right;
    margin: 0 0 20px 20px;
}

.aligncenter {
    display: block;
    margin: 20px auto;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background: white;
        position: absolute;
        top: 115px;
        left: 0;
        width: 100%;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        text-align: center;
        margin: 10px 0;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .page-title {
        font-size: 2.2rem;
    }

    .post {
        padding: 25px 20px;
    }

    .post h2 {
        font-size: 1.6rem;
    }

    /* .single-post {
        padding: 30px 25px;
    } */

    /* .single-post h1 {
        font-size: 2rem;
    } */

    .post-navigation {
        flex-direction: column;
    }

    .nav-next {
        text-align: left;
    }

    .pagination .page-numbers {
        padding: 10px 14px;
        margin: 0 3px;
    }

    .logo img {
        height: 65px;
    }

    .main-content {
        margin-top: 100px;
    }

    .breadcrumbs {
        font-size: 0.8rem;
    }
}

/* CSS con máxima especificidad para posts individuales */
/* Reemplazar las últimas líneas de style.css con este código */

/* Usar especificidad máxima con el ID exacto del post */
body.wp-singular.post-template-default.single.single-post.postid-61.single-format-standard.logged-in.admin-bar .container,
body.single.single-post.postid-61 .container,
body.single .container,
.single .container {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    /* padding: 0 15px !important; */
}

/* Forzar el main-content a usar todo el ancho disponible */
body.wp-singular.post-template-default.single.single-post .main-content,
body.single.single-post .main-content,
body.single .main-content,
.single {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: #f8fafc !important;
}

/* Asegurar que blog-posts use el ancho completo */
body.wp-singular.post-template-default.single.single-post .blog-posts,
body.single.single-post .blog-posts,
body.single .blog-posts,
.single .blog-posts {
    max-width: 1200px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
}

/* Forzar el post individual a usar todo el ancho disponible */
body.wp-singular.post-template-default.single.single-post .post,
body.single.single-post .post,
body.single .post,
.single .post {
    background-color: #fff;
    border-radius: 12px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06) !important;
    margin-bottom: 40px !important;
    padding: 35px 30px !important;
    transition: all 0.4s ease !important;
    max-width: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Breadcrumbs */
body.wp-singular.post-template-default.single.single-post .breadcrumbs,
body.single.single-post .breadcrumbs,
body.single .breadcrumbs,
.single .breadcrumbs {
    max-width: 1200px !important;
    width: 100% !important;
    margin: 0 auto 30px !important;
    padding: 15px 15px !important;
}

/* Back to blog button */
body.wp-singular.post-template-default.single.single-post .back-to-blog,
body.single.single-post .back-to-blog,
body.single .back-to-blog,
.single .back-to-blog {
    max-width: 1200px !important;
    width: 100% !important;
    margin: 0 auto 30px !important;
    padding: 0 15px !important;
}

/* Post navigation */
body.wp-singular.post-template-default.single.single-post .post-navigation,
body.single.single-post .post-navigation,
body.single .post-navigation,
.single .post-navigation {
    max-width: 1200px !important;
    width: 100% !important;
    margin: 40px auto !important;
    padding: 0 15px !important;
    display: flex !important;
    justify-content: space-between !important;
    gap: 20px !important;
}

/* Sobrescribir cualquier regla del tema que pueda estar limitando el ancho */
.single-post,
.single article,
.single .entry-content,
.single .content-area,
.single .site-main,
.single .hentry {
    max-width: none !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 85px !important;
}

/* Responsivo */
@media (max-width: 768px) {
    body.wp-singular.post-template-default.single.single-post .container,
    body.single.single-post .container,
    body.single .container,
    .single .container {
        width: 100% !important;
        padding: 0 15px !important;
    }
    
    body.wp-singular.post-template-default.single.single-post .blog-posts,
    body.single.single-post .blog-posts,
    body.single .blog-posts,
    .single .blog-posts {
        width: 100% !important;
        padding: 0 15px !important;
    }
    
    body.wp-singular.post-template-default.single.single-post .post,
    body.single.single-post .post,
    body.single .post,
    .single .post {
        padding: 25px 20px !important;
    }
    
    body.wp-singular.post-template-default.single.single-post .breadcrumbs,
    body.single.single-post .breadcrumbs,
    body.single .breadcrumbs,
    .single .breadcrumbs {
        width: 100% !important;
        padding: 15px 15px !important;
        font-size: 0.8rem !important;
    }
    
    body.wp-singular.post-template-default.single.single-post .back-to-blog,
    body.single.single-post .back-to-blog,
    body.single .back-to-blog,
    .single .back-to-blog {
        width: 100% !important;
        padding: 0 15px !important;
    }
    
    body.wp-singular.post-template-default.single.single-post .post-navigation,
    body.single.single-post .post-navigation,
    body.single .post-navigation,
    .single .post-navigation {
        width: 100% !important;
        padding: 0 15px !important;
        flex-direction: column !important;
    }
}

/* Fuerza bruta - usar solo si lo anterior no funciona */
* .container {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

.single * {
    max-width: none !important;
}