/*
Theme Name: Sustenlogic
Theme URI: https://sustenlogic.com
Author: Sustenlogic
Author URI: https://sustenlogic.com
Description: Tema personalizado para Sustenlogic
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sustenlogic
*/

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

body {
    font-family: 'Poppins', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

/* ===================================
   Variables CSS
   =================================== */
:root {
    --main-green: #003E53;
    --secondary-green: #6DC24B;
    --hero-gradient: linear-gradient(to right, #002E3E,#1E1E1E);
    --third-green: #002E3E;
    --main-black: #1E1E1E;
    --gray: #6B6B6B;
    --gray-2: #D9D9D9;
    --main-green-30: rgba(0,62,83,0.3);
    --gradient-2: linear-gradient(to right, #6DC24B, #003E53);
    --hover-green: #519A33;
}

/* ===================================
   Tipograf�a Global
   =================================== */
.regular-p,
p {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 27px;
}

h1 {
    font-family: 'Dosis', sans-serif;
    font-size: 60px;
    line-height: 67px;
    font-weight: 800;
}

h2 {
    font-family: 'Dosis', sans-serif;
    font-size: 48px;
    line-height: 52px;
    font-weight: 800;
}

h3 {
    font-family: 'Dosis', sans-serif;
    font-size: 30px;
    line-height: 33px;
    font-weight: 700;
}

h4 {
    font-family: 'Dosis', sans-serif;
    font-size: 24px;
    line-height: 28px;
    font-weight: 700;
}

/* ===================================
   Utilidades
   =================================== */
.text-main-black {
    color: var(--main-black);
}

.text-white {
    color: white !important;
}

.text-secondary-green {
    color: var(--secondary-green);
}

.bg-third-green-rounded {
    background-color: var(--third-green);
    border-radius: 50px;
}

.bg-main-green {
    background-color: var(--main-green) !important;
}

/* ===================================
   Botones
   =================================== */
.btn-cta {
    background-color: var(--secondary-green);
    border: none;
    padding: 20px 40px;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    line-height: 27px;
    font-weight: 700;
    margin-bottom: 72px;
    display: inline-block;
    text-decoration: none;
    color: white;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background-color: var(--hover-green);
    color: white;
    transform: translateY(-2px);
}

.btn-menu-contacto {
    background-color: var(--secondary-green);
    border: none;
    padding: 10px 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-menu-contacto:hover {
    background-color: var(--hover-green);
}

/* ===================================
   Header y Navegaci�n
   =================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar {
    background-color: var(--main-green) !important;
    padding: 15px 0;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.navbar-brand img {
    max-height: 50px;
    transition: all 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    color: white !important;
    padding: 10px 21px !important;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--secondary-green) !important;
}

.nav-link.active {
    font-weight: 700;
    color: var(--secondary-green) !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 21px;
    right: 21px;
    height: 2px;
    background-color: var(--secondary-green);
}

.navbar-toggler {
    border: 0;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg width='23' height='18' viewBox='0 0 23 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 2L21 2' stroke='white' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M2 9L21 9' stroke='white' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M2 16L21 16' stroke='white' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}

.dropdown-menu {
    min-width: 7rem;
    background-color: var(--third-green);
    border: none;
}

.dropdown-item {
    color: white;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--hover-green);
    color: white;
}

/* ===================================
   Blog Posts
   =================================== */
.site-main {
    min-height: calc(100vh - 200px);
}

.blog-post-item {
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.blog-post-item:hover {
    transform: translateY(-5px);
}

.blog-post-item .card {
    border: none;
    overflow: hidden;
}

.blog-post-item .card-img-top {
    transition: transform 0.3s ease;
}

.blog-post-item:hover .card-img-top {
    transform: scale(1.05);
}

.entry-title a {
    color: var(--main-black);
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-title a:hover {
    color: var(--secondary-green);
}

.entry-meta {
    font-size: 14px;
    color: var(--gray);
}

.entry-summary {
    color: var(--main-black);
}

/* Single Post */
.single-post {
    margin-bottom: 3rem;
}

.single-post .entry-header {
    border-bottom: 2px solid var(--gray-2);
}

.single-post .entry-content {
    margin-top: 2rem;
    line-height: 1.8;
}

.single-post .entry-content img {
    border-radius: 10px;
    margin: 2rem 0;
}

.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.single-post .entry-content p {
    margin-bottom: 1.5rem;
}

.single-post .entry-content ul,
.single-post .entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.single-post .entry-content blockquote {
    border-left: 4px solid var(--secondary-green);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--gray);
}

/* Tags */
.tags-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.tags-links a {
    background-color: var(--gray-2);
    color: var(--main-black);
    padding: 5px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.tags-links a:hover {
    background-color: var(--secondary-green);
    color: white;
}

/* Post Navigation */
.post-navigation {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 2px solid var(--gray-2);
    border-bottom: 2px solid var(--gray-2);
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.post-navigation a {
    text-decoration: none;
    color: var(--main-black);
    flex: 1;
}

.post-navigation a:hover .nav-title {
    color: var(--secondary-green);
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.post-navigation .nav-title {
    display: block;
    font-weight: 700;
    transition: color 0.3s ease;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.pagination .page-numbers {
    padding: 10px 15px;
    background-color: var(--gray-2);
    color: var(--main-black);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background-color: var(--secondary-green);
    color: white;
}

/* ===================================
   Footer
   =================================== */
.site-footer {
    margin-top: 5rem;
}

.footer-section {
    padding: 40px 20px;
    background-color: white;
}

.footer-section img {
    transition: transform 0.3s ease;
}

.footer-section a:hover img {
    transform: scale(1.1);
}

.legal-section {
    background-color: var(--main-green);
    padding: 20px;
    text-align: center;
}

.legal-text {
    color: white;
    font-size: 14px;
}

/* ===================================
   P�gina 404
   =================================== */
.error-404 {
    padding: 4rem 0;
}

.error-404 .page-title {
    font-size: 120px !important;
    color: var(--secondary-green);
}

/* ===================================
   Formulario de b�squeda
   =================================== */
.search-form {
    display: flex;
    max-width: 500px;
    margin: 2rem auto;
}

.search-form label {
    flex: 1;
    margin: 0;
}

.search-form .search-field {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid var(--gray-2);
    border-radius: 5px 0 0 5px;
    font-size: 16px;
}

.search-form .search-field:focus {
    outline: none;
    border-color: var(--secondary-green);
}

.search-form .search-submit {
    padding: 12px 30px;
    background-color: var(--secondary-green);
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
}

.search-form .search-submit:hover {
    background-color: var(--hover-green);
}

/* ===================================
   Comentarios
   =================================== */
.comments-area {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--gray-2);
}

.comments-title {
    margin-bottom: 2rem;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f8f8f8;
    border-radius: 10px;
}

.comment-author {
    font-weight: 700;
    color: var(--main-black);
}

.comment-meta {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 1rem;
}

.comment-content p {
    margin-bottom: 0.5rem;
}

.reply {
    margin-top: 1rem;
}

.comment-reply-link {
    color: var(--secondary-green);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.comment-reply-link:hover {
    color: var(--hover-green);
}

.comment-respond {
    margin-top: 3rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--gray-2);
    border-radius: 5px;
    margin-bottom: 1rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--secondary-green);
}

.comment-form .submit {
    padding: 12px 30px;
    background-color: var(--secondary-green);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
}

.comment-form .submit:hover {
    background-color: var(--hover-green);
}

/* ===================================
   RESPONSIVE STYLES
   =================================== */

@media screen and (min-width: 768px) {
    .regular-p, p {
        font-size: 18px;
        line-height: 26px;
    }

    .bg-third-green-rounded {
        border-radius: 100px;
    }

    h1 {
        font-size: 60px;
        line-height: 67px;
    }
}

@media screen and (min-width: 992px) {
    .regular-p, p {
        font-size: 20px;
        line-height: 29px;
    }
}

@media screen and (max-width: 991px) {
    h1 {
        font-size: 48px;
        line-height: 52px;
    }

    h2 {
        font-size: 36px;
        line-height: 40px;
    }

    h3 {
        font-size: 24px;
        line-height: 28px;
    }

    .btn-cta {
        padding: 15px 30px;
        font-size: 18px;
    }

    .navbar-collapse {
        background-color: var(--main-green);
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 10px;
    }
}

@media screen and (max-width: 576px) {
    .error-404 .page-title {
        font-size: 80px !important;
    }
}
