/*
Theme Name: Core Theme
Description: A modern Full Site Editing (FSE) theme built with block templates
Requires at least: 5.9
Tested up to: 6.4
Requires PHP: 7.4
Version: 1.0.0
Author: Your Name
Author URI: https://example.com
Theme URI: https://example.com/core-theme
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: core-theme
Tags: full-site-editing, block-templates, block-styles, wide-blocks, editor-style
*/

/* ============================================
   Reset and Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #374F59;
    background-color: #fff;
}

/* ============================================
   Block Editor Styles
   ============================================ */
.wp-block {
    max-width: 1200px;
}

.wp-block[data-align="wide"] {
    max-width: 1400px;
}

.wp-block[data-align="full"] {
    max-width: none;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #374F59;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: #374F59;
}

/* ============================================
   Links
   ============================================ */
a {
    color: #41ADCD;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #B7272F;
    text-decoration: underline;
}

/* ============================================
   Buttons
   ============================================ */
.wp-block-button__link {
    background-color: #B7272F !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 0.75rem 1.5rem !important;
    display: inline-block !important;
    transition: all 0.2s ease !important;
    color: #fff !important;
    cursor: pointer !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    text-align: center !important;
    text-decoration: none !important;
    box-shadow: 2px 2px 10px 1px rgba(0, 0, 0, 0.2) !important;
}

.wp-block-button__link:hover {
    background-color: #FFC00A;
    color: #374F59;
    text-decoration: none;
}

.wp-block-button__link:focus {
    outline: 2px solid #41ADCD;
    outline-offset: 2px;
}

.wp-block-button{
    display: block;
    margin: auto;
    text-align: center;
}

/* ============================================
   Navigation
   ============================================ */
.wp-block-navigation {
    background-color: #f8f9fa;
    padding: 1rem 0;
}

.wp-block-navigation a {
    color: #374F59;
    text-decoration: none;
}

.wp-block-navigation a:hover {
    color: #41ADCD;
}

.wp-block-navigation a:focus {
    outline: 2px solid #41ADCD;
    outline-offset: 2px;
}

.wp-block-navigation-item__label {
    font-size: 1.1em;
}

/* ============================================
   Footer
   ============================================ */
.wp-block-template-part {
    background-color: #f8f9fa;
}

footer .wp-block-navigation {
    background-color: transparent !important;
    padding: 0 !important; 
}

footer .wp-block-navigation-item__label {
    font-size: 1em !important;
    color: #F2F2F2 !important;
    font-weight: 300 !important;
}

/* ============================================
   Comments
   ============================================ */
.wp-block-comments {
    margin-top: 3rem;
}

.wp-block-comment-template {
    margin-bottom: 2rem;
}

.wp-block-comment {
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* ============================================
   Query Blocks
   ============================================ */
.wp-block-query {
    margin-bottom: 2rem;
}

.wp-block-post-template {
    gap: 2rem;
}

.wp-block-post {
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wp-block-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Pagination
   ============================================ */
.wp-block-query-pagination {
    margin-top: 2rem;
}

.wp-block-query-pagination-numbers {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.wp-block-query-pagination-numbers .page-numbers {
    padding: 0.5rem 1rem;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    text-decoration: none;
    color: #374F59;
    transition: all 0.2s ease;
}

.wp-block-query-pagination-numbers .page-numbers:hover,
.wp-block-query-pagination-numbers .page-numbers.current {
    background-color: #B7272F;
    color: #fff;
    border-color: #B7272F;
}

/* ============================================
   Social Links
   ============================================ */
.wp-block-social-links {
    display: flex;
    gap: 1rem;
    list-style: none;
}

.wp-block-social-links .wp-block-social-link {
    margin: 0;
}

.wp-block-social-links .wp-block-social-link a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #41ADCD;
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s ease;
}

.wp-block-social-links .wp-block-social-link a:hover {
    background-color: #B7272F;
    transform: translateY(-2px);
}

/* ============================================
   Search
   ============================================ */
.wp-block-search {
    display: flex;
    gap: 0.5rem;
}

.wp-block-search__input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: 1rem;
}

.wp-block-search__button {
    padding: 0.75rem 1.5rem;
    background-color: #B7272F;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wp-block-search__button:hover {
    background-color: #FFC00A;
    color: #374F59;
}

.wp-block-search__button:focus {
    outline: 2px solid #41ADCD;
    outline-offset: 2px;
}

/* ============================================
   Code Blocks
   ============================================ */
.wp-block-code {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 1rem;
    font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
    overflow-x: auto;
}

/* ============================================
   Quote Blocks
   ============================================ */
.wp-block-quote {
    border-left: 4px solid #41ADCD;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
}

.wp-block-quote cite {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6c757d;
}

/* ============================================
   Table Blocks
   ============================================ */
.wp-block-table {
    border-collapse: collapse;
    width: 100%;
    margin: 1.5rem 0;
}

.wp-block-table th,
.wp-block-table td {
    border: 1px solid #e9ecef;
    padding: 0.75rem;
    text-align: left;
}

.wp-block-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* ============================================
   Image Blocks
   ============================================ */
.wp-block-image {
    margin: 1.5rem 0;
}

.wp-block-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.wp-block-image figcaption {
    text-align: center;
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* ============================================
   Gallery Blocks
   ============================================ */
.wp-block-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.wp-block-gallery .wp-block-image {
    margin: 0;
}

/* ============================================
   Card Pattern Styles
   ============================================ */
/* Moved to: patterns/card-modern/card-modern-style.css */

/* ============================================
   Third-party Plugin Styles
   ============================================ */
.root-eb-wrapper-0jdeg h2 {
    color: #B7272F !important;
}

.root-eb-wrapper-0jdeg img {
    max-width: 220px;
}

.root-eb-wrapper-0jdeg p {
    color: #374F59 !important;
    font-size: 1.1em;
    font-weight: 400;
}

.root-eb-wrapper-0jdeg a {
    background-color: #B7272F !important;
    max-width: 120px;
    margin: auto !important;
    margin-bottom: 25px !important;
    display: block;
}

.eb-advance-heading-wrapper .eb-ah-title>* {
    color: #374F59 !important;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .wp-block {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .wp-block-post-template {
        grid-template-columns: 1fr;
    }
    
    .wp-block-gallery {
        grid-template-columns: 1fr;
    }
    
    .wp-block-search {
        flex-direction: column;
    }
}

/* ============================================
   Accessibility
   ============================================ */
.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;
}

.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;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

footer p{
    color: #f2f2f2 !important;
}

.wp-container-core-group-is-layout-a151063b{
    border-radius: 4px !important;
}

.wp-block-buttons>.wp-block-button.has-custom-width .wp-block-button__link{
    max-width: 140px;
}

/* ============================================
   Page Banner Hero (igual que single-servicios)
   ============================================ */
.core-page-banner {
    position: relative;
    width: 100%;
    min-height: 60vh;
    max-height: 600px;
    overflow: hidden;
}

.core-page-banner .wp-block-cover {
    position: relative;
    min-height: 60vh;
    max-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.core-page-banner .wp-block-cover__background {
    background: linear-gradient(135deg, rgba(183, 39, 47, 0.85) 0%, rgba(55, 79, 89, 0.75) 100%) !important;
}

.core-page-banner-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.core-page-banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.core-page-banner-title {
    color: #FFFFFF !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.core-page-banner-description {
    color: #FFFFFF !important;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.core-page-banner .wp-block-cover__inner-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
}

@media (max-width: 768px) {
    .core-page-banner {
        min-height: 50vh;
    }
    
    .core-page-banner .wp-block-cover {
        min-height: 50vh;
    }
}

@media (max-width: 480px) {
    .core-page-banner {
        min-height: 40vh;
    }
    
    .core-page-banner .wp-block-cover {
        min-height: 40vh;
    }
}