/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #0693e3; /* vivid-cyan-blue */
    --secondary-color: #6c757d; /* gray */
    --text-color: #333333;
    --background-color: #FFFFFF;
    --light-gray-color: #f4f4f4;
    --white-color: #FFFFFF;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    font-weight: 300;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 0 2rem;
}

h1, h2, h3, h4 {
    font-weight: 700; /* Bolder */
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1); /* Subtle shadow */
}

h1 { font-size: 2.3rem; } /* Adjusted size */
h2 { font-size: 2.2rem; text-align: center; margin-bottom: 2rem;} /* Adjusted size */
h3 { font-size: 1.6rem; } /* Adjusted size */
h4 { font-size: 1.25rem; } /* Adjusted size */

p {
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #0579b8;
}

/* Header */
.main-header {
    background-color: var(--white-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header .logo img {
    height: 50px;
}

.main-nav ul {
    display: flex;
}

.main-nav ul li {
    margin-left: 2rem;
}

.main-nav ul li a {
    color: var(--text-color);
    font-weight: 600;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.main-nav ul li a:hover {
    border-color: var(--primary-color);
}

.hamburger-menu {
    display: none;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero-text {
    flex: 1;
}

.hero h1 {
    font-size: 2.4rem;
    line-height: 1.2;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    border-radius: 10px;
}

/* About Us Section */
.about-us {
    padding: 4rem 0;
    background-color: var(--light-gray-color);
}

.about-us .container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.about-us-image {
    flex: 1;
}

.about-us-image img {
    border-radius: 10px;
}

.about-us-text {
    flex: 1;
}

.about-us-text p {
    text-align: justify;
}

/* Services Section */
.services {
    padding: 4rem 0;
    background-color: var(--light-gray-color);
}

.subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

/* This is the container for the single card in the "Services" section */
.services .service-cards {
    display: flex;
    justify-content: center;
    max-width: 500px; 
    margin: auto; 
}

/* This is the container for the four cards in the "Valores" section */
.icon-features .service-cards {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.card {
    background-color: var(--white-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 1.5rem; /* Reduced padding */
    text-align: center;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    flex: 1; /* Add flex: 1 to make cards equal width */
}

.card h4 {
    min-height: 2.5em; 
}

.card p {
    flex-grow: 1;
    font-size: 0.9rem; /* Smaller text */
}

.card img {
    margin-bottom: 1rem;
    border-radius: 10px; /* Adjusted for non-circular images */
}

/* Icon Features Section */
.icon-features {
    padding: 4rem 0;
    background-color: #0E7532; /* Dark green background */
}

.icon-features h2,
.icon-features .subtitle {
    color: var(--white-color);
}

.icon-features .service-cards {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.feature-icon {
    width: 100px;
    height: 80px; /* Reduced height */
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1rem auto;
}

.feature-icon svg {
    width: 50px; /* Smaller icon */
    height: 50px; /* Smaller icon */
    fill: #4B9CD3; /* Carolina Blue */
}

/* Footer */
.main-footer {
    background-color: #0E7532;
    color: var(--white-color);
    padding-top: 3rem;
}

.main-footer .container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-column {
    flex: 1;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.subscribe-form {
    display: flex;
    margin-top: 1rem;
}

.subscribe-form input {
    flex-grow: 1;
    padding: 0.5rem;
    border: none;
    border-radius: 5px 0 0 5px;
}

.subscribe-form button {
    border-radius: 0 5px 5px 0;
}

.footer-bottom {
    text-align: center;
    padding: 1rem 0;
    border-top: 1px solid #555;
}

/* Social Icons */
.social-icons {
    margin-top: 1rem;
}

.social-icon {
    display: inline-block;
    margin-right: 1rem;
    width: 30px;
    height: 30px;
}

.social-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--white-color);
    transition: fill 0.3s ease;
}

.social-icon:hover svg {
    fill: var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .main-header .container {
        justify-content: space-between;
    }

    .main-nav {
        position: absolute;
        top: 65px;
        left: 0;
        background: var(--white-color);
        width: 100%;
        padding: 1rem 0;
        display: none;
        flex-direction: column;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .main-nav.nav-active {
        display: flex;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }

    .main-nav ul li {
        margin: 1rem 0;
    }

    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
    }

    .hamburger-menu span {
        width: 100%;
        height: 3px;
        background-color: var(--text-color);
        border-radius: 2px;
        transition: all 0.3s ease-in-out;
    }
    
    .hamburger-menu.is-active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger-menu.is-active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.is-active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero .container,
    .about-us .container,
    .service-cards,
    .main-footer .container {
        flex-direction: column;
        text-align: center;
        align-items: center; /* Add this for horizontal centering in column mode */
    }

    .hero-image {
        margin-top: 2rem;
    }

    .about-us .container {
        flex-direction: column-reverse;
    }

    .icon-features .container {
        grid-template-columns: repeat(2, 1fr);
    }

    .tabs-container {
        max-width: 100%;
    }

    .tab-button {
        flex-basis: 50%;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .icon-features .container {
        grid-template-columns: 1fr;
    }

    .tab-button {
        flex-basis: 100%;
    }
}