/*
Theme Name: Agencia Chucao
Theme URI: https://agenciachucao.cl
Author: Fabián Núñez
Author URI: https://agenciachucao.cl
Description: Tema personalizado basado en HTML/CSS para Agencia Chucao
Version: 1.0
Tags: custom, responsive, simple
Text Domain: chucao
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --color-primary: #CC4B3A;
    --color-secondary: #002A44;
    --color-accent: #586C52;
    --color-background: #FFFBF4;
    --font-sans: 'Montserrat', Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

body {
    font-family: var(--font-sans);
    background: var(--color-background);
    color: #333;
    line-height: 1.6;
}

header {
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header.max-width {
    margin-top: 1rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.logo img {
    display: block;
    height: 5em;
}

.logo span {
    font: 800 2.5rem/1 'Montserrat', sans-serif;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.logo a {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.logo a span {
    display: inline-block;
    gap: 0.5rem;
}

.logo a .stack {
    display: block;
    font-weight: inherit;
    line-height: 1.1;
    color: inherit;
    text-decoration: none;
}

.logo a:hover,
.logo a:focus {
    text-decoration: none;
    color: inherit;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.stack {
    display: block;
}

.max-width {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

#navbar a {
    margin-left: 1rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: bold;
}

.hero {
    display: flex;
    flex-direction: column-reverse;
    margin-top: 2rem;
    align-items: stretch;
}

@media(min-width: 768px) {
    .hero {
        flex-direction: row;
    }
}

.hero-text {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-text h1 {
    font-size: 4rem;
    color: var(--color-primary);
    line-height: 1.2;
}

.hero-text button {
    width: 100%;
    max-width: 300px;
    padding: .75rem 1rem;
    border: 2px solid var(--color-primary);
    background: transparent;
    color: var(--color-primary);
    font-size: 1rem;
    font-weight: 600;
    margin: 1.5em 0 2em 0;
    text-transform: uppercase;
	border-radius: 0.5rem;
}

.subtitulo {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.subtitulo p {
    padding-top: 1rem;
    margin-bottom: 0;
}

.light-font {
    font-weight: 300;
}

.bold-font {
    font-weight: 800;
}

.hero-img {
    flex: 1;
    overflow: hidden;
	box-shadow: 0 4px 10px rgba(0 , 0 , 0 , 0.1);
	border-radius: 0.5rem;
}

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

section {
    padding: 4rem 0;
    color: var(--color-primary);
}

.bg-secondary {
    background: var(--color-secondary);
    color: #fff;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

section p {
    margin-bottom: 1.5rem;
}

section h3 {
    font-size: 1.5rem;
    font-weight: 800;
}

.three-col {
    display: grid;
    gap: 2rem;
}

ul.services.three-col {
    gap: 0.5rem 2rem;
}

#metodo .three-col p,
#definicion .three-col p {
    margin-bottom: 0;
}

@media(min-width: 768px) {
    .three-col {
        grid-template-columns: repeat(3, 1fr);
    }
}

.subtitulo {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.text-center {
    text-align: center;
}

.services li {
    margin-bottom: .5rem;
    list-style: none;
}

.services li:last-child {
    margin-bottom: 0;
}

footer {
    background: var(--color-accent);
    color: #fff;
    padding: 2rem 0;
}

#contacto .max-width {
	display: block;
    justify-content: space-between;
}

.footer-info {
    min-width: 250px;
}

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-info p,
.footer-info a,
{
margin-bottom: .5rem;
display: flex;
color: #fff;
text-decoration: none;
}

.footer-info .stack {
    margin-bottom: 2em;
}

.social {
    display: block;
    color: #fff;
    text-decoration: none;
    line-height: 3rem;
}

.social a,
.social a:hover,
.social a:visited {
    text-decoration: none;
    color: inherit;
}

.footer-form {
    flex: 1;
    width: 30%;
    height: auto;
    display: block;
    padding-top: 0;
}

.social i {
    font-size: 2.5em;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 3rem;
    cursor: pointer;
    color: var(--color-primary);
}

@media(max-width: 768px) {
    header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        margin-top: 2rem;
        position: relative;
    }

    .logo {
        flex: 1;
    }

    .logo img {
        height: 4em;
    }

    .logo span {
        font-size: 1.8rem;
    }

    nav {
        display: none;
        flex-direction: column;
        width: 100vw;
        max-width: none;
        text-align: center;
        background: var(--color-background);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 1rem 0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    #navbar a {
        margin: 0.5rem 0;
    }


    article nav {
        display: block;
    }

    article nav.breadcrumbs {
        position: static;
        box-shadow: none;
        padding: 0;
    }

    nav.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .hero {
        flex-direction: column;
    }

    .hero-img {
        display: block;
    }

    .hero-text {
        align-items: center;
    }

    .hero-text button {
        display: block;
        font-size: 1.2rem;
        padding: 1rem 2rem;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .three-col {
        grid-template-columns: 1fr;
    }

    .footer-info .footer-form {
        flex: 1 1 70%;
        margin-bottom: 1rem;
    }
	
	.social {
		text-align: center;
	}
}

.container.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.content-body {
    margin-top: 1.5rem;
    line-height: 1.7;
}

.content-figure {
    float: left;
    width: 40%;
    margin: 0 1.5rem 1.5rem 0;
}

.content-figure img {
    width: 100%;
    height: auto;
    display: block;
}

.content-figure figcaption {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

.cta-section {
    clear: both;
    background: var(--color-primary);
    color: #fff;
    text-align: center;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-top: 2rem;
}

.cta-section .btn {
    background: #fff;
    color: var(--color-primary);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 0.25rem;
    display: inline-block;
    margin-top: 0.5rem;
}

.page-footer {
    font-size: 0.9rem;
    color: #999;
    text-align: center;
    margin-top: 2rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

article .page-footer {
    background: transparent;
}

@media screen and (max-width: 768px) {
    article.container.page-content .content-figure {
        float: none !important;
        width: 100% !important;
        margin: 0 0 1.5rem 0 !important;
    }

    article.container.page-content {
        padding: 1rem !important;
    }

    .cta-section {
        padding: 1rem !important;
    }
}

.cta-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.cta-section .btn {
    transition: all 0.2s ease;
}

article.container.page-content .section-title,
article.container.page-content h2 {
    font-weight: 600;
}

/* Content Rules */

.page-content .content-body h2,
.page-content .content-body h3 {
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.page-content .content-body p {
    margin-bottom: 1rem;
}

.page-content .content-body ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.page-content .content-body ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.page-content .content-body blockquote {
    border-left: 4px solid #ccc;
    padding-left: 1rem;
    margin: 2rem 0;
    font-style: italic;
    color: #555;
}

.page-content .content-body .wp-block-pullquote {
    border-left: 4px solid var(--color-primary);
    padding-left: 1rem;
    margin: 2rem 0;
    font-size: 1.1rem;
    font-style: italic;
    color: #333;
	border-bottom: 0;
	border-top: 0;
}

.page-content .content-body .wp-block-pullquote cite {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-style: normal;
    color: #666;
}

.page-content .content-body a {
    color: var(--color-primary);
    text-decoration: underline;
}

.page-content .content-body a:hover {
    text-decoration: none;
}

/* Imágenes dentro de contenido */
.page-content .content-body img {
    max-width: 100%;
    height: auto;
	margin: 0 0 1rem 0;
	box-shadow: 0 4px 10px rgba(0 , 0 , 0 , 0.1);
	border-radius: 0.5rem;
}

.page-header .page-title {
    font-size: 2.5rem !important;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-align: left;
    padding-left: 0;
}

.page-content .content-body h2 {
    font-size: 1.75rem !important;
    line-height: 1.3;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    text-align: left;
}

.page-content .content-body h3 {
    text-align: left;
}

article.container.page-content .page-header {
    width: 100%;
    max-width: inherit;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-header .page-title {
    margin: 0;
    padding: 0;
    text-align: left;
}

article.container.page-content .wp-block-pullquote {
    padding: 0 0 0 1em;
}

.page-content .content-body blockquote {
    border: 0;
    text-align: left;
}

section.blog-section {
	padding: 0;
}

.blog-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1.5rem;
}

.blog-card {
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.05);
}

.blog-card .card-image img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-card .card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card .card-title,
.blog-card .card-title a {
    font-size: 1.5rem;
    line-height: 1.3;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
    line-height: 1.3;
    text-decoration: none;
}

.blog-card time {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1rem;
}

.blog-card .card-excerpt {
    flex: 1;
    margin-bottom: 1rem;
    color: #555;
    line-height: 1.6;
    font-weight: normal;
}

.blog-cta {
    text-align: center;
    margin-top: 2.5rem;
}

.blog-cta .btn.btn-primary {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    background: var(--color-primary);
    color: #fff;
    border-radius: 0.25rem;
    text-decoration: none;
    transition: background 0.2s ease;
}

.blog-cta .btn.btn-primary:hover {
    background: #444;
}

@media screen and (max-width: 768px) {
    .blog-list {
        grid-template-columns: 1fr;
    }
}

.content-figure.image-full {
    margin: 2rem 0;
}

.content-figure.image-full img {
    width: 100%;
    height: auto;
}

.page-header .page-author {
    font-size: 1rem;
    color: #666;
    margin-top: 0.5rem;
    display: block;
    margin-top: 0.5rem;
}

.cta-section .btn.btn-secondary {
    background: var(--color-secondary);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    display: inline-block;
    transition: background 0.2s ease;
}

.cta-section .btn.btn-secondary:hover {
    background: #444;
}

.page-footer {
    border-top: 1px solid #eee;
    margin-top: 2rem;
    padding-top: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.page-footer p {
    margin: 0.5rem 0;
}

@media screen and (max-width: 768px) {
    .content-figure.image-full {
        margin: 1.5rem 0;
    }

    .cta-section {
        text-align: center;
    }
}

.post-categories {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.post-categories .category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    color: #fff;
    background: var(--color-primary);
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.post-categories .tag-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.80rem;
    color: #fff;
    background: var(--color-secondary);
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.post-categories-header {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
}

.post-categories {
    margin-top: 0.5rem;
}

.post-categories-container {
    display: grid;
    grid-template-columns: max-content 1fr;
    column-gap: 1rem;
    align-items: center;
}

.category-badge:hover,
.tag-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
}

.blog-list .blog-card {
    flex-direction: row;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.blog-list .blog-card .card-image {
    flex: 0 0 25%;
    max-width: 25%;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
}

.blog-list .blog-card .card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.blog-list .blog-card .card-body {
    flex: 1 1 75%;
/*    padding: 2rem;     */
}

@media screen and (max-width: 768px) {
    .blog-list .blog-card {
        flex-direction: column;
    }

    .blog-list .blog-card .card-image,
    .blog-list .blog-card .card-body {
        max-width: 100%;
        flex: none;
    }
}

@media screen and (max-width: 768px) {
    .blog-card .card-title {
        font-size: 1.25rem;
    }
}

.blog-card .btn.btn-secondary {
    margin-top: auto;
}

.breadcrumbs {
    font-size: 0.9rem;
    margin: 1rem 0;
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.breadcrumbs li+li::before {
    content: "›";
    margin: 0 0.5rem;
    color: #666;
}

.breadcrumbs a {
    color: var(--color-primary);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs li:last-child a,
.breadcrumbs li:last-child {
    color: #999;
    pointer-events: none;
    cursor: default;
    text-decoration: none;
}

.btn.cta-section {
    background-color: var(--color-primary);
    color: var(--color-background);
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
    margin: 1rem auto;
}

.btn.cta-section:hover,
.btn.cta-section:focus {
    background-color: #b84232;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    outline: none;
}

.wp-block-separator {
  border: none;
  border-top: 1px solid;
  width: 100px;
  margin: 2rem auto;
  opacity: 0.3;
}

@media (max-width: 600px) {
    .btn.cta-section {
        width: 100%;
        max-width: 320px;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.wp-block-rank-math-toc-block > nav {
	position: static;
	text-align: left;
	width: 100%;

}

.wp-block-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  border: 1px solid;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  margin: 2rem 0;
}

.wp-block-table th {
  padding: 1rem;
  text-align: center;
  font-weight: bold;
  font-size: 1rem;
  border-bottom: 1px solid;
  background-color: color-mix(in srgb, var(--color-primary) 10%, transparent);
}

.wp-block-table td {
  padding: 1rem;
  text-align: center;
  font-size: 1rem;
  border-bottom: 1px solid;
}

.wp-element-caption {
	font-style: italic;
	margin-top: 0;
}