/* ===== TIPOGRAFÍA ===== */
body {
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    tab-size: 4;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-dark);
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.8;
}


/* ===== HEADER ===== */
header {
    background: white;
    border-bottom: 1px solid #e5e5e5;
    top: 0;
    z-index: 100;
}

.site-logo img,
.custom-logo {
    height: 60px;
    width: auto;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

header logo {
    height: 56px;
    width: 160px;
}


nav a {
    color: #374151;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #6DBE45;
}

nav a.active {
    color: #6DBE45;
    font-weight: 600;
}

/* ===== GRADIENTES ===== */
.gradient-primary {
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
}

.gradient-light {
    background: linear-gradient(to bottom right, white, #f9fafb);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .section-padding {
        padding: 2rem;
    }
}


:root {
    --tpl-green: #6DBE45;
    --tpl-green-dark: #4A9E2A;
    --tpl-gray-900: #111827;
    --tpl-gray-700: #374151;
    --tpl-gray-600: #4B5563;
    --tpl-gray-500: #6B7280;
    --tpl-gray-300: #D1D5DB;
    --tpl-gray-200: #E5E7EB;
    --tpl-gray-50: #F9FAFB;
    --tpl-white: #ffffff;
    --tpl-radius-lg: 12px;
    --tpl-radius-xl: 16px;
    --tpl-radius-2xl: 24px;
    --tpl-shadow-lg: 0 10px 25px rgba(0, 0, 0, .10);
    --tpl-shadow-xl: 0 16px 40px rgba(0, 0, 0, .14);
    --tpl-font: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.tpl-wrap {
    font-family: var(--tpl-font);
    width: 100%;
    color: var(--tpl-gray-900);
}

.tpl-container {
    width: 100%;
    max-width: 1120px;
    /* ~ max-w-7xl */
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

@media (min-width: 640px) {
    .tpl-container {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (min-width: 1024px) {
    .tpl-container {
        padding-left: 32px;
        padding-right: 32px;
    }

    .site-navigation-toggle-holder {
        display: none !important;
    }

    .site-navigation-dropdown {
        display: none !important;
    }

    .site-navigation {
        display: flex !important;
    }
}

.tpl-hero {
    color: #fff;
    padding: 80px 0;
    background: linear-gradient(135deg, var(--tpl-green), var(--tpl-green-dark));
}

.tpl-hero h1 {
    font-size: clamp(2.25rem, 4vw, 3.75rem);
    line-height: 1.05;
    margin: 0 0 16px;
    font-weight: 800;
    text-align: center;
}

.tpl-hero p {
    font-size: clamp(1.125rem, 2.2vw, 1.5rem);
    opacity: .92;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.tpl-section {
    padding: 72px 0;
}

.tpl-section.bg-white {
    background: #fff;
}

.tpl-section.bg-gray-50 {
    background: var(--tpl-gray-50);
}

.tpl-section.bg-gray-900 {
    background: #111827;
    color: #fff;
}

.tpl-section.bg-green {
    background: var(--tpl-green);
    color: #fff;
}

.tpl-h2 {
    font-size: clamp(1.75rem, 2.6vw, 2.25rem);
    margin: 0 0 12px;
    font-weight: 800;
}

.tpl-lead {
    color: var(--tpl-gray-600);
    font-size: 1.125rem;
    line-height: 1.6;
}

.tpl-center {
    text-align: center;
}

.tpl-muted {
    color: var(--tpl-gray-600);
}

.tpl-grid {
    display: grid;
    gap: 24px;
}

.tpl-grid-2 {
    grid-template-columns: 1fr;
}

.tpl-grid-3 {
    grid-template-columns: 1fr;
}

.tpl-grid-4 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .tpl-grid-2 {
        grid-template-columns: 1fr 1fr;
    }

    .tpl-grid-3 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .tpl-grid-3 {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .tpl-grid-4 {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

.tpl-card {
    background: #fff;
    border: 1px solid var(--tpl-gray-200);
    border-radius: var(--tpl-radius-xl);
    padding: 24px;
    transition: box-shadow .25s ease, transform .25s ease;
}

.tpl-card:hover {
    box-shadow: var(--tpl-shadow-xl);
    transform: translateY(-2px);
}

.tpl-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: .875rem;
}

.tpl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--tpl-green);
    color: #fff !important;
    text-decoration: none !important;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1.05rem;
    transition: background .2s ease, transform .2s ease;
    box-shadow: var(--tpl-shadow-lg);
    border: none;
    cursor: pointer;
}

.tpl-btn:hover {
    background: var(--tpl-green-dark);
    transform: translateY(-1px);
}

.tpl-btn.block {
    width: 100%;
}

.tpl-iconbox {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.tpl-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(109, 190, 69, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.tpl-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: var(--tpl-green);
    stroke-width: 2;
}

.tpl-form {
    background: var(--tpl-gray-50);
    border: 1px solid var(--tpl-gray-200);
    border-radius: var(--tpl-radius-2xl);
    padding: 32px;
}

.tpl-field label {
    display: block;
    font-weight: 800;
    font-size: .9rem;
    color: var(--tpl-gray-700);
    margin-bottom: 8px;
}

.tpl-field input,
.tpl-field select,
.tpl-field textarea {
    width: 100%;
    border: 1px solid var(--tpl-gray-300);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 1rem;
    outline: none;
    background: #fff;
}

.tpl-field input:focus,
.tpl-field select:focus,
.tpl-field textarea:focus {
    border-color: transparent;
    box-shadow: 0 0 0 3px rgba(109, 190, 69, .35);
}

.tpl-field textarea {
    resize: none;
}

.tpl-note {
    font-size: .9rem;
    color: var(--tpl-gray-500);
    margin-top: 14px;
    text-align: center;
}

.tpl-hero-media {
    display: block !important;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: var(--tpl-green);
    box-shadow: var(--tpl-shadow-xl);
    aspect-ratio: 16/10;
    min-height: 280px;
}

.tpl-hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Helpers */
.tpl-mb-12 {
    margin-bottom: 48px;
}

.tpl-mb-8 {
    margin-bottom: 32px;
}

.tpl-mb-6 {
    margin-bottom: 24px;
}

.tpl-mb-4 {
    margin-bottom: 16px;
}

.tpl-white {
    color: #fff;
}

.tpl-gray-300 {
    color: #D1D5DB;
}


.tpl-about {
    max-width: 920px;
    /* ~ max-w-5xl */
    margin: 0 auto;
}

.tpl-panel {
    background: #fff;
    border-radius: var(--tpl-radius-2xl);
    padding: 32px;
    box-shadow: var(--tpl-shadow-lg);
}

.tpl-badge-circle {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background: var(--tpl-green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.tpl-badge-circle svg {
    width: 32px;
    height: 32px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
}

.tpl-values-grid .tpl-value {
    text-align: center;
}

.tpl-values-grid .tpl-value .tpl-value-ico {
    width: 80px;
    height: 80px;
    border-radius: 999px;
    background: rgba(109, 190, 69, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.tpl-values-grid .tpl-value .tpl-value-ico svg {
    width: 40px;
    height: 40px;
    stroke: var(--tpl-green);
    fill: none;
    stroke-width: 2;
}

.tpl-stat {
    background: #fff;
    border-radius: var(--tpl-radius-xl);
    padding: 32px;
    text-align: center;
    box-shadow: var(--tpl-shadow-lg);
}

.tpl-stat .num {
    font-size: 3rem;
    font-weight: 900;
    color: var(--tpl-green);
    line-height: 1;
    margin-bottom: 8px;
}

.tpl-stat .label {
    color: var(--tpl-gray-600);
    font-weight: 800;
    margin-bottom: 10px;
}

.tpl-stat .sub {
    color: var(--tpl-gray-500);
    font-size: .95rem;
    line-height: 1.5;
}

.tpl-cta {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.tpl-cta h2 {
    color: #fff;
    margin: 0 0 14px;
    font-size: clamp(1.9rem, 2.8vw, 2.4rem);
    font-weight: 900;
}

.tpl-cta p {
    color: #D1D5DB;
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 0 0 22px;
}

/* CARRUSEL*/
.tpl-hero-carousel {
    --carousel-duration: 0.8s;
    --carousel-delay: 5000ms;
}

.tpl-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.tpl-carousel-slides {
    display: flex;
    transition: transform .8s ease-in-out;
    width: 100%;
}

.tpl-carousel-slide {
    width: 100%;
    min-width: 100%;
    box-sizing: border-box;
    padding: 72px 0;
}

@media (max-width: 768px) {
    .tpl-carousel-slide {
        padding: 60px 0;
    }
}

.tpl-carousel-slide h1 {
    word-break: normal;
    overflow-wrap: break-word;
}

.tpl-carousel-slide p {
    max-width: 650px;
}

.tpl-carousel-slide .tpl-grid {
    align-items: center;
}

.tpl-carousel-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

@media (min-width: 768px) {
    .tpl-carousel-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* TEXT CONTENT */
.tpl-carousel-text h1 {
    font-size: clamp(2.25rem, 4vw, 3.75rem);
    font-weight: 800;
    color: var(--tpl-gray-900);
    line-height: 1.05;
    margin: 0 0 24px 0;
}

.tpl-carousel-text p {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--tpl-gray-600);
    margin: 0 0 32px 0;
    line-height: 1.6;
}

/* IMAGE CONTAINER */
.tpl-carousel-image {
    display: none;
}

@media (min-width: 768px) {
    .tpl-carousel-image {
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

.tpl-image-container {
    position: relative;
    width: 100%;
    height: 380px;
    border-radius: var(--tpl-radius-2xl);
    box-shadow: var(--tpl-shadow-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tpl-image-container.gradient-1 {
    background: linear-gradient(135deg, var(--tpl-green) 0%, var(--tpl-green-dark) 100%);
}

.tpl-image-container.gradient-2 {
    background: linear-gradient(135deg, var(--tpl-green-dark) 0%, var(--tpl-green) 100%);
}

.tpl-icon {
    position: absolute;
}

.tpl-icon-main {
    width: 192px;
    height: 192px;
    opacity: 1;
}

.tpl-icon-tl {
    top: 32px;
    left: 32px;
    width: 128px;
    height: 128px;
    opacity: 0.2;
}

.tpl-icon-tr {
    top: 32px;
    right: 32px;
    width: 128px;
    height: 128px;
    opacity: 0.2;
}

.tpl-icon-bl {
    bottom: 32px;
    left: 32px;
    width: 96px;
    height: 96px;
    opacity: 0.2;
}

.tpl-icon-br {
    bottom: 32px;
    right: 32px;
    width: 96px;
    height: 96px;
    opacity: 0.2;
}

.tpl-carousel-svg {
    width: 100%;
    height: 100%;
    color: white;
    stroke: white;
    fill: none;
}

/* CAROUSEL CONTROLS */
.tpl-carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 24px 16px 40px;
}

.tpl-carousel-dot {
    width: 12px;
    height: 12px;
    min-width: 12px;
    min-height: 12px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: #d1d5db;
    transition: .3s;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
}


.tpl-carousel-dot.active {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    background: #1f2937;
}

.tpl-carousel-dot:hover {
    background-color: var(--tpl-gray-500);
}

/* TABLET */
@media (max-width:991px) {

    .tpl-carousel-slide {
        padding: 40px 0;
    }

    .tpl-carousel-slide .tpl-grid {
        gap: 32px !important;
    }

    .tpl-carousel-slide h1 {
        font-size: clamp(2rem, 5vw, 3rem) !important;
        text-align: center;
    }

    .tpl-carousel-slide p {
        text-align: center;
    }

    .tpl-carousel-slide .tpl-btn {
        display: flex;
        justify-content: center;
        width: max-content;
        margin: auto;
    }

    .tpl-hero-media {
        aspect-ratio: 16/9;
        min-height: 240px;
    }
}

/* MOVIL */
@media (max-width:767px) {

    .tpl-carousel-slide {
        padding: 32px 0;
    }

    .tpl-carousel-slide h1 {
        font-size: clamp(1.8rem, 8vw, 2.4rem) !important;
        text-align: center;
        margin-bottom: 12px !important;
    }

    .tpl-carousel-slide p {
        text-align: center;
        font-size: 1rem;
    }

    .tpl-carousel-slide .tpl-btn {
        margin: auto;
    }

    .tpl-hero-media {
        aspect-ratio: 16/9;
        min-height: 200px;
        margin-top: 20px;
    }

    .tpl-carousel-controls {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        padding: 16px 0 24px;
        flex-wrap: nowrap;
    }

    .tpl-carousel-controls button {
        width: 10px !important;
        max-width: 10px !important;
        min-width: 10px !important;

        height: 10px !important;
        max-height: 10px !important;
        min-height: 10px !important;

        display: inline-block !important;
        flex: 0 0 10px !important;

        padding: 0 !important;
        margin: 0 !important;

        border-radius: 50% !important;
    }

    .tpl-carousel-controls button.active {
        width: 10px !important;
        height: 10px !important;
        transform: scale(1.3);
    }
}

/*===SINGLE POST=== */
.tpl-post-hero {
    background: linear-gradient(135deg,
            var(--tpl-green),
            var(--tpl-green-dark));

    padding: 30px 0 50px;
    display: block;
}

.tpl-post-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.tpl-post-image {
    aspect-ratio: 4/3;
}

.tpl-post-image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 24px;
    display: block;
    box-shadow: var(--tpl-shadow-xl);
}

.tpl-post-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.tpl-post-info h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    font-weight: 800;
    margin: 0;
    color: var(--tpl-gray-900);
}

.tpl-breadcrumb {
    font-style: italic;
    position: absolute;
    top: 150px;
    left: 10%;
    z-index: 5;
    color: #fff;
    font-size: .95rem;
}

.tpl-breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.tpl-breadcrumb span {
    margin: 0 6px;
}

.tpl-post-category {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.tpl-post-category a {
    background: #fff;
    color: var(--tpl-green);
    font-weight: 600;
    text-decoration: none;
    padding: 10px 10px;
    border-radius: 999px;
}

.tpl-post-placeholder {
    width: 100%;
    min-height: 420px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #6DBE45;
    border-radius: 24px;
}

.tpl-post-placeholder i {
    font-size: 120px;
    color: #fff;
    opacity: .9;
}

.tpl-post-hero h1 {
    max-width: 900px;
    margin: 0 auto 20px;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    font-weight: 800;
}

.tpl-post-hero .tpl-container {
    max-width: 1600px;
}

.tpl-post-meta {
    font-style: italic;
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
    color: white;
}

.tpl-post-excerpt {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--tpl-gray-600);
}

.tpl-post-cover {
    margin-top: -40px;
    margin-bottom: 60px;
}


.tpl-post-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.9;
    color: var(--tpl-gray-700);
}

.tpl-post-content h2,
.tpl-post-content h3 {
    margin-top: 50px;
    margin-bottom: 20px;
    font-weight: 800;
    color: var(--tpl-gray-900);
}

.tpl-post-content img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 35px 0;
}

.tpl-post-content ul,
.tpl-post-content ol {
    padding-left: 25px;
}

.tpl-post-content blockquote {
    border-left: 4px solid var(--tpl-green);
    padding-left: 20px;
    margin: 35px 0;
    font-style: italic;
}

.tpl-panel img {
    width: 100%;
    border-radius: 12px;
}

.tpl-panel h3 a {
    text-decoration: none;
    color: var(--tpl-gray-900);
}

.tpl-panel h3 a:hover {
    color: var(--tpl-green);
}

/* diseño noticias */
@media (max-width: 768px) {
    section {
        padding: 32px 16px !important;
    }

    h2 {
        font-size: 28px !important;
    }

    h3 {
        font-size: 18px !important;
    }

    p {
        font-size: 16px !important;
    }

    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    .tpl-post-hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .tpl-post-image {
        position: relative;
    }

    .tpl-post-info {
        text-align: center;
    }

    .tpl-post-meta {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 20px !important;
    }

    p {
        font-size: 14px !important;
    }

    button,
    input {
        width: 100% !important;
    }
}

/* Solo noticias relacionadas */
.tpl-related-card{
    display:flex;
    flex-direction:column;
}

.tpl-related-card .tpl-related-thumb{
    height:260px;
    overflow:hidden;
    border-radius:20px;
    margin-bottom:24px;
    background:#6DBE45;

    display:flex;
    align-items:center;
    justify-content:center;
}

.tpl-related-card .tpl-related-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.tpl-related-card .tpl-related-thumb i{
    font-size:5rem;
    color:#fff;
}

.tpl-related-card h3{
    margin-top:0;
    margin-bottom:12px;
}

/* ===================================
   LOADER TREEPOWER
=================================== */

#tpl-loader {
    position: fixed;
    inset: 0;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    transition:
        opacity .5s ease,
        visibility .5s ease;
}

#tpl-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

#tpl-loader::before {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(109, 190, 69, .18);
    filter: blur(40px);
    animation: tplGlow 2s ease-in-out infinite;
}

.tpl-loader-logo {
    width: 360px;
    max-width: 80vw;
    position: relative;
    z-index: 2;
    animation: tplPulse 1.8s ease-in-out infinite;
}

@keyframes tplPulse {
    0% {
        opacity: .35;
        transform: scale(.95);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: .35;
        transform: scale(.95);
    }
}

@keyframes tplGlow {

    0%,
    100% {
        opacity: .3;
        transform: scale(.8);
    }

    50% {
        opacity: .8;
        transform: scale(1.2);
    }
}

/* Hover */
.site-navigation a:hover {
    color: #6DBE45 !important;
}

/* Página actual */
.site-navigation .current-menu-item>a,
.site-navigation .current_page_item>a,
.site-navigation .current-menu-parent>a,
.site-navigation .current-page-ancestor>a {
    color: #6DBE45 !important;
    font-weight: 600;
}

.tpl-footer-credit{
    display:block;
    margin-top:6px;
    font-size:.875rem;
    opacity:.75;
}