/*
Theme Name: Agencia MILO
Theme URI: https://agenciamilo.click
Author: Agencia MILO
Description: Tema One-Page moderno con integración de IA para agencias de marketing digital.
Version: 1.0
Text Domain: agenciamilo
*/

/* ===================================
   WordPress Core Support
   =================================== */

.alignwide { 
    margin-left: -80px; 
    margin-right: -80px; 
    max-width: 1200px; 
}

.alignfull { 
    margin-left: calc( -100vw / 2 + 100% / 2 ); 
    margin-right: calc( -100vw / 2 + 100% / 2 ); 
    max-width: 100vw; 
    width: 100vw; 
}

.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* ===================================
   WordPress Gallery
   =================================== */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5em;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
}

.gallery-caption {
    padding: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

/* ===================================
   Navigation & Pagination
   =================================== */

.post-navigation,
.posts-navigation {
    margin: 2rem 0;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-subtitle {
    display: block;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.25rem;
}

.nav-title {
    color: white;
    font-weight: 600;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
}

.page-numbers:hover,
.page-numbers.current {
    background: rgba(79, 70, 229, 0.2);
    border-color: rgba(79, 70, 229, 0.5);
    color: white;
}

/* ===================================
   WordPress Blocks (Gutenberg)
   =================================== */

.wp-block-image img {
    border-radius: 0.75rem;
    max-width: 100%;
    height: auto;
}

.wp-block-quote {
    border-left: 4px solid #4f46e5;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
}

.wp-block-pullquote {
    border-top: 4px solid #4f46e5;
    border-bottom: 4px solid #4f46e5;
    padding: 2rem 0;
    text-align: center;
}

.wp-block-code,
.wp-block-preformatted {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    color: #10b981;
}

.wp-block-table {
    width: 100%;
    border-collapse: collapse;
}

.wp-block-table td,
.wp-block-table th {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem;
}

.wp-block-table th {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
}

/* ===================================
   Comments
   =================================== */

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list .children {
    list-style: none;
    padding-left: 2rem;
    margin-top: 1rem;
}

.comment-reply-link {
    font-size: 0.875rem;
    cursor: pointer;
}

.comment-respond {
    margin-top: 2rem;
}

/* ===================================
   Widgets
   =================================== */

.widget {
    margin-bottom: 2rem;
}

.widget-title {
    margin-bottom: 1rem;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.widget a:hover {
    color: white;
}

/* ===================================
   Accessibility
   =================================== */

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #020617;
    display: block;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ===================================
   Custom Logo
   =================================== */

.custom-logo-link {
    display: inline-block;
}

.custom-logo {
    max-height: 2.5rem;
    width: auto;
}

/* ===================================
   Sticky Posts
   =================================== */

.sticky {
    position: relative;
}

.sticky::before {
    content: "📌";
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
}

/* ===================================
   Responsive Embeds
   =================================== */

.wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}

.wp-block-embed__wrapper iframe,
.wp-block-embed__wrapper object,
.wp-block-embed__wrapper embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0.75rem;
}

/* ===================================
   Print Styles
   =================================== */

@media print {
    body {
        background: white;
        color: black;
    }
    
    .navbar,
    footer,
    .comment-respond,
    .post-navigation {
        display: none;
    }
}
