/* #region General */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #A7A354;
    --secondary-color: #E89A40;
    --accent-color: #6C634C;
    --text-dark: #211F11;
    --text-light: #E8DDCC;
    --bg-light: #E8DDCC;
    --bg-dark: #BD612A;
}

body {
    font-family: 'Segoe UI';
    line-height: 1.6;
    color: var(--text-dark);
}

/* #endregion */

/* #region Header */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color));
    color: var(--text-light);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo svg {
    height: 45px;
    width: auto;
    transition: transform 0.3s;
}

.logo:hover svg {
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
    color: var(--text-light);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    font-size: 1.3rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    border-radius: 3px;
    transition: 0.3s;
}

/* #endregion */

/* #region Hero Section */
.hero {
    margin-top: 50px;
    background: linear-gradient(135deg, rgba(232, 221, 204, 0.9), rgba(167, 163, 84, 0.8)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%2395d5b2" width="1200" height="600"/><path fill="%2352b788" d="M0 300L50 280C100 260 200 220 300 200C400 180 500 180 600 200C700 220 800 260 900 280C1000 300 1100 300 1150 300L1200 300L1200 600L1150 600C1100 600 1000 600 900 600C800 600 700 600 600 600C500 600 400 600 300 600C200 600 100 600 50 600L0 600Z"/></svg>');
    background-size: cover;
    background-position: center;
    color: var(--text-dark);
    padding: 2rem 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: center;
    height: 100vh;
}

.hero .container {
    max-width: 600px;
    text-align: center;
}

.hero-image {
    position: relative;
    height: 75%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    width: 80%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    opacity: 0.6;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s, transform 0.3s;
}

.hero-image:hover img {
    opacity: 0.75;
    transform: scale(1.02);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInDown 1s;
}

.hero p {
    font-size: 2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s;
}

.hero svg {
    height: 200px;
    width: auto;
    transition: transform 0.3s;
}

.hero:hover svg {
    transform: scale(1.05);
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--bg-dark);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeInUp 1.2s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* #endregion */

/* #region About Section */
.about {
    color: var(--text-dark);
    padding: 2rem 1rem;
}

.about .title {
    margin-top: 50px;
    text-align: center;
    font-size: 1.3rem;
}

.about .title h1 {
    font-weight: 800;
}

.about .container {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
}

.about .columna {
    flex: 1;
    padding: 20px;
}

.about .container .columna .container p {
    margin-bottom: 2rem;
    font-size: 1.3rem;
    text-align: justify;
}

.about-image {
    position: relative;
    height: 50%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image img {
    width: 70%;
    height: 100%;
    border-radius: 15px;
    box-shadow: 20px 20px #A7A354;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: -8rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    background-color: var(--bg-light);
    border-radius: 10px;
}

.feature-icon {
    font-size: 3rem;
}

/* #endregion */

/* #region Hero2 Section */
.hero2 {
    position: relative;
    width: 100%;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/img4.jpeg');
    background-size: cover;
    background-position: center;
    opacity: 0.5;
}

.logo2-container {
    position: relative;
    text-align: center;
    padding: 2rem;
}

.hero2 svg {
    height: 250px;
    width: auto;
    transition: transform 0.3s;
}

.hero2:hover svg {
    transform: scale(1.05);
}

/* #endregion */

/* #region Products Section */
.products {
    padding: 5rem 2rem;
    background: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-img {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.product-info p {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* #endregion */

/* #region Blog Section */
.blog {
    padding: 5rem 2rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.blog-img {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-content {
    padding: 1.5rem;
}

.blog-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.blog-content p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.btn-read-more {
    background: transparent;
    color: var(--secondary-color);
    border: none;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.3s;
    padding: 0;
}

.btn-read-more:hover {
    color: var(--primary-color);
}

/* #endregion */

/* #region Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2.5rem;
    border-radius: 15px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideDown 0.3s;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--primary-color);
}

#modalTitle {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
}

#modalBody {
    line-height: 1.8;
    color: #333;
}

#modalBody p {
    margin-bottom: 1rem;
}

#modalBody h4 {
    color: var(--secondary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

/* #endregion */

/* #region Hero3 Section */

.hero3 {
    background-color: #E8DDCC;
    color: var(--text-dark);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: center;
    height: 40vh;
}

.hero3 .container {
    max-width: 800px;
    text-align: center;
}

.hero3 h1 {
    font-style: oblique;
}

.hero3-image {
    position: relative;
    height: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero3-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* #endregion */

/* #region Contact Section */
.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, rgba(232, 221, 204, 0.9), rgba(167, 163, 84, 0.8)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%2395d5b2" width="1200" height="600"/><path fill="%2352b788" d="M0 300L50 280C100 260 200 220 300 200C400 180 500 180 600 200C700 220 800 260 900 280C1000 300 1100 300 1150 300L1200 300L1200 600L1150 600C1100 600 1000 600 900 600C800 600 700 600 600 600C500 600 400 600 300 600C200 600 100 600 50 600L0 600Z"/></svg>');
    background-size: cover;
    color: var(--text-dark);
}

.contact .container1 {
    max-width: 600px;
    text-align: center;
}

.contact .container2 {
    max-width: 600px;
}

.contact-image {
    position: relative;
    height: 75%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-image img {
    width: 80%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    opacity: 0.6;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s, transform 0.3s;
}

.contact p {
    font-size: 2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s;
    
}

.contact svg {
    height: 200px;
    width: auto;
    transition: transform 0.3s;
}

.contact a:hover svg {
    transform: scale(1.05);
}

.contact-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    background: var(--bg-dark);
    color: var(--text-light);
    border: none;
    padding: 1rem 3rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s;
}

.btn-submit:hover {
    transform: scale(1.05);
}

.ig{
    color: white;
}
/* #endregion */

/* #region Footer */
footer {
    background: var(--text-dark);
    color: var(--text-light);
    text-align: center;
    padding: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent-color);
}

/* #endregion */

/* #region Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* #endregion */

/* #region Responsive */
@media (max-width: 1332px) {
    .features {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr))
    }
}

@media (max-width: 1248px) {
    .features {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr))
    }
}

@media (max-width: 1168px) {
    .features {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr))
    }
}

@media (max-width: 1132px) {
    .features {
        margin-top: -6rem;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr))
    }
}

@media (max-width: 1020px) {
    .features {
        margin-top: -2rem;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr))
    }
}

@media (max-width: 860px) {
    .features {
        margin-top: 3rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: var(--primary-color);
        padding: 2rem;
        gap: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: 0.3s;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero3 h1 {
        font-size: 2.2rem;
        margin-left: 1rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 5rem 2rem 4rem;
    }

    .hero .container {
        text-align: center;
        max-width: 100%;
    }
    
    .hero3 .container {
        text-align: center;
        max-width: 100%;
    }

    .hero-image {
        min-height: 170px;
    }

    .hero3-image {
        min-height: 170px;
    }

    .section-title {
        font-size: 2rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 10% auto;
        padding: 2rem;
        width: 95%;
    }

    .about .container {
        flex-direction: column;
        margin-top: 0;
    }

    .about .columna {
        width: 100%;
    }

    .logo2 {
        max-width: 280px;
    }

    .features {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr))
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .contact {
        grid-template-columns: 1fr;
        padding: 5rem 2rem 4rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero3 h1 {
        font-size: 1.8rem;
        margin-left: 1rem;
    }

    nav {
        padding: 0 1rem;
    }

    .logo svg {
        height: 38px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .products,
    .about,
    .contact {
        padding: 3rem 1rem;
    }

    .logo2 {
        max-width: 200px;
    }
}

/* #endregion */

/* #region Blog Slider */
.blog-slider {
    width: 95%;
    position: relative;
    max-width: 800px;
    margin: auto;
    background: #E8DDCC;
    box-shadow: 0px 14px 80px rgba(34, 35, 58, 0.2);
    padding: 25px;
    border-radius: 25px;
    height: 400px;
    transition: all 0.3s;
}

@media screen and (max-width: 992px) {
    .blog-slider {
        max-width: 680px;
        height: 400px;
    }
}

@media screen and (max-width: 768px) {
    .blog-slider {
        min-height: 500px;
        height: auto;
        margin: 180px auto;
    }
}

@media screen and (max-height: 500px) and (min-width: 992px) {
    .blog-slider {
        height: 350px;
    }
}

.blog-slider-item {
    display: flex;
    align-items: center;
}

@media screen and (max-width: 768px) {
    .blog-slider-item {
        flex-direction: column;
    }
}

.blog-slider-item.swiper-slide-active .blog-slider-img img {
    opacity: 1;
    transition-delay: 0.3s;
}

.blog-slider-item.swiper-slide-active .blog-slider-content>* {
    opacity: 1;
    transform: none;
}

.blog-slider-item.swiper-slide-active .blog-slider-content>*:nth-child(1) {
    transition-delay: 0.3s;
}

.blog-slider-item.swiper-slide-active .blog-slider-content>*:nth-child(2) {
    transition-delay: 0.4s;
}

.blog-slider-item.swiper-slide-active .blog-slider-content>*:nth-child(3) {
    transition-delay: 0.5s;
}

.blog-slider-img {
    width: 300px;
    flex-shrink: 0;
    height: 300px;
    background-image: linear-gradient(147deg, var(--primary-color) 0%, var(--secondary-color) 74%);
    box-shadow: 4px 13px 30px 1px rgba(232, 154, 64, 0.2);
    border-radius: 20px;
    transform: translateX(-80px);
    overflow: hidden;
}

.blog-slider-img:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    opacity: 0.8;
}

.blog-slider-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    border-radius: 20px;
    transition: all 0.3s;
}

@media screen and (max-width: 768px) {
    .blog-slider-img {
        transform: translateY(-50%);
        width: 90%;
    }
}

@media screen and (max-width: 576px) {
    .blog-slider-img {
        width: 95%;
    }
}

@media screen and (max-height: 500px) and (min-width: 992px) {
    .blog-slider-img {
        height: 270px;
    }
}

.blog-slider-content {
    padding-right: 25px;
}

@media screen and (max-width: 768px) {
    .blog-slider-content {
        margin-top: -80px;
        text-align: center;
        padding: 0 30px;
    }
}

@media screen and (max-width: 576px) {
    .blog-slider-content {
        padding: 0;
    }
}

.blog-slider-content>* {
    opacity: 0;
    transform: translateY(25px);
    transition: all 0.4s;
}

.blog-slider-date {
    color: #BD612A;
    margin-bottom: 15px;
    display: block;
    font-weight: 700;
}

.blog-slider-title {
    font-size: 24px;
    font-weight: 800;
    color: #211F11;
    margin-bottom: 20px;
}

.blog-slider-text {
    color: #211F11;
    margin-bottom: 30px;
    line-height: 1.5em;
    font-weight: 500;
}

.blog-slider-button {
    /*
    background-image: linear-gradient(147deg, #fe8a39 0%, #fd3838 74%);
    color: #fff;
    box-shadow: 0px 14px 80px rgba(252, 56, 56, 0.4);
    font-weight: 500;
    */
    display: inline-flex;
    background: var(--bg-dark);
    color: var(--text-light);
    font-weight: bold;
    text-decoration: none;
    justify-content: center;
    text-align: center;
    padding: 15px 35px;
    border-radius: 50px;
    letter-spacing: 1px;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeInUp 1.2s;
}


@media screen and (max-width: 576px) {
    .blog-slider-button {
        width: 100%;
    }
}

.blog-slider .swiper-container-horizontal>.swiper-pagination-bullets,
.blog-slider .swiper-pagination-custom,
.blog-slider .swiper-pagination-fraction {
    bottom: 10px;
    left: 0;
    width: 100%;
}

.blog-slider-pagination {
    position: absolute;
    z-index: 21;
    right: 20px;
    width: 11px !important;
    text-align: center;
    left: auto !important;
    top: 50%;
    bottom: auto !important;
    transform: translateY(-50%);
}

@media screen and (max-width: 768px) {
    .blog-slider-pagination {
        transform: translateX(-50%);
        left: 50% !important;
        top: 205px;
        width: 100% !important;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

.blog-slider-pagination.swiper-pagination-bullets .swiper-pagination-bullet {
    margin: 8px 0;
}

@media screen and (max-width: 768px) {
    .blog-slider-pagination.swiper-pagination-bullets .swiper-pagination-bullet {
        margin: 0 5px;
    }
}

.blog-slider-pagination .swiper-pagination-bullet {
    width: 11px;
    height: 11px;
    display: block;
    border-radius: 10px;
    background: #062744;
    opacity: 0.2;
    transition: all 0.3s;
}

.blog-slider-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    background: #BD612A;
    height: 30px;
    box-shadow: 0px 0px 20px rgba(252, 56, 56, 0.3);
}

@media screen and (max-width: 768px) {
    .blog-slider-pagination .swiper-pagination-bullet-active {
        height: 11px;
        width: 30px;
    }
}

/* #endregion */