body {
    font-family: Questrial, Arial, sans-serif;
    background: radial-gradient(50% 50% at 50% 50%, #2c1e4abd 0%, rgba(44, 30, 74, 1) 100%);
    color: white;
}

header {
    background-color: rgba(44, 30, 74, 0.6);
    backdrop-filter: blur(20px);
}

header h1, header h1 a {
    text-decoration: none;
    color: inherit;
    font-size: 1.5rem;
    line-height: 1;
    margin-bottom: 0;
    margin-right: 1em;
    font-weight: lighter;
}

section {
    padding: 50px 0;
}

section:last-of-type {
    border-bottom: none;
}

.nav-link {
    cursor: pointer;
}

.nav-item .nav-link {
    transition: background-color 0.3s ease, border-radius 0.3s ease; /* Smooth transition */
    padding: 0.5rem 1rem; /* Add padding for better spacing */
    border-radius: 4px; /* Default state */
}

.nav-item .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly darker background */
    border-radius: 15px; /* Rounded background on hover */
}

#main-nav .contactanos-btn {
    background-color: #3c84ac;
    border-color: #2f536e;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

#main-nav .contactanos-btn:hover {
    background-color: #339af0; /* Lighter shade of blue */
    color: white; /* Keep the text color white */
}

/* General */
.w-33 {
    flex: 0 0 33%; /* Image takes up 1/3 of the width */
}

.w-67 {
    flex: 1; /* Text takes up the remaining space */
}

@media (max-width: 768px) {
    .d-flex {
        flex-direction: column; /* Stack image and text vertically */
        text-align: center; /* Center-align text on smaller screens */
    }

    .w-33, .w-67 {
        flex: 1 1 100%; /* Full width for both */
    }

    .ms-4 {
        margin-left: 0; /* Remove margin on smaller screens */
    }
}

/* Sections */

#inicio {
    min-height: 80vh; /* Full-screen height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 0;
    margin: 0;
}

#inicio h1 {
    font-size: 5rem; /* Large, bold text */
    margin-bottom: 1rem;
}

header small {
    color: #bbb;
    letter-spacing: 1px;
    text-align: left;
}

@media (max-height: 650px) {
    #inicio h1 {
        font-size: 3rem; /* Large, bold text */
    }

    img {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 576px) {
    #inicio h1 {
        font-size: 3rem; /* Large, bold text */
        margin-bottom: 1rem;
    }
}


#inicio p {
    font-size: 1.4rem; /* Subtitle size */
    color: #ccc;
}

#inicio h1{
    max-width: 850px; /* Limit the width */
    width: 100%; /* Ensures it adapts on smaller screens */
    margin: 0 auto; /* Center alignment */
}

#inicio p {
    max-width: 650px; /* Limit the width */
    width: 100%; /* Ensures it adapts on smaller screens */
    margin: 0 auto; /* Center alignment */
}

#inicio a {
    background-color: #3c84ac;
    border-color: #2f536e;
    margin-top: 1em;
    margin-bottom: 1em;
}

#inicio a:hover {
    background-color: #339af0; /* Lighter shade of blue */
    color: white; /* Keep the text color white */
}

/* Sobre nosotros */
#sobre-nosotros .container {
    display: flex;
    flex-direction: column; /* Stack title first, then flex content */
    gap: 1.5rem; /* Space between title and the flex row */
}

#sobre-nosotros .d-flex {
    display: flex;
    flex-direction: row; /* Image and text side by side */
    gap: 2rem; /* Space between image and paragraph */
}

#sobre-nosotros img {
    max-width: 100%;
    height: auto;
    border-radius: 10px; /* Rounded corners for modern look */
    opacity: 0.8;
}

#sobre-nosotros h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

#sobre-nosotros p {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #ccc;
}

/* Quienes somos */
/* Sobre nosotros */
#quienes-somos .container {
    display: flex;
    flex-direction: column; /* Stack title first, then flex content */
    gap: 1.5rem; /* Space between title and the flex row */
}

#quienes-somos .d-flex {
    display: flex;
    flex-direction: row; /* Image and text side by side */
    gap: 2rem; /* Space between image and paragraph */
}

.grow-on-scroll {
    transform: scale(0.7); /* Start hidden (shrunk) */
    opacity: 0; /* Start fully transparent */
    transition: transform 0.4s ease-out, opacity 0.4s ease-out; /* Smooth animation */
}

.grow-on-scroll.in-view {
    transform: scale(1); /* Grow to full size */
    opacity: 1; /* Fade in */
}

#founder p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
}

#quienes-somos img {
    max-width: 100%;
    height: auto;
    border-radius: 10px; /* Rounded corners for modern look */
    opacity: 0.8;
}

#quienes-somos h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

#quienes-somos p {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #ccc;
}

/* Servicios */
#servicios h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

#servicios p {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #ccc;
}


/* Card container */
#servicios .d-flex {
    gap: 1rem; /* Space between cards */
    justify-content: space-between; /* Evenly distribute cards */
}

#servicios .card {
    background-color: rgba(0, 0, 0, 0.2);
    flex: 1 1 calc(20% - 1rem); /* Five cards evenly distributed */
    max-width: calc(20% - 1rem); /* Ensure consistent sizing */
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add shadow */
    border-radius: 10px; /* Rounded corners */
    overflow: hidden;
}

#servicios .card-title {
    color: white;
}

#servicios .card-body {
    padding: 1rem;
    min-height: 25em;
}

#servicios .card-text {
    text-align: left;
    font-size: 1rem;
}

#servicios .card-footer {
    border-top: none;
    padding: 0.5rem;
}

#servicios .card img {
    max-height: 50px;
    width: auto;
    margin: 0 auto;
    display: block;
}

/* Responsive behavior for smaller screens */
@media (max-width: 1400px) {
    #servicios .card-body {
        min-height: 29em;
    }

    #servicios .card-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 1200px) {
    #servicios .card {
        flex: 1 1 calc(50% - 1rem); /* Two cards per row on smaller screens */
        max-width: calc(50% - 1rem);
    }
    #servicios .card-body {
        min-height: 13em;
    }
}

@media (max-width: 992px) {
    #servicios .card {
        flex: 1 1 calc(50% - 1rem); /* Two cards per row on smaller screens */
        max-width: calc(50% - 1rem);
    }

    #servicios .card-body {
        min-height: 15em;
    }
}

@media (max-width: 768px) {
    #servicios .card {
        flex: 1 1 100%; /* Single card per row on extra small screens */
        max-width: 100%;
    }

    #servicios .card-body {
        min-height: 0em;
    }
}

/* Como hacemos */
#como-lo-hacemos h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

#como-lo-hacemos p {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #ccc;
}


/* Card container */
#como-lo-hacemos .d-flex {
    gap: 1rem;
    justify-content: space-between;
}

#como-lo-hacemos .card {
    background-color: rgba(0, 0, 0, 0.2);
    flex: 1 1 calc(25% - 1rem);
    max-width: calc(25% - 1rem);
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

#como-lo-hacemos .card-title {
    color: white;
}

#como-lo-hacemos .card-body {
    padding: 1rem;
    min-height: 22em;
}

#como-lo-hacemos .card-text {
    text-align: left;
    font-size: 1rem;
}

#como-lo-hacemos .card-footer {
    border-top: none;
    padding: 0.5rem;
}

#como-lo-hacemos .card img {
    max-height: 50px;
    width: auto;
    margin: 0 auto;
    display: block;
}

/* Responsive behavior for smaller screens */
@media (max-width: 1400px) {
    #como-lo-hacemos .card-body {
        min-height: 22em;
    }
}

@media (max-width: 1200px) {
    #como-lo-hacemos .card {
        flex: 1 1 calc(50% - 1rem); /* Two cards per row on smaller screens */
        max-width: calc(50% - 1rem);
    }
    #como-lo-hacemos .card-body {
        min-height: 18em;
    }
}

@media (max-width: 992px) {
    #como-lo-hacemos .card {
        flex: 1 1 calc(50% - 1rem); /* Two cards per row on smaller screens */
        max-width: calc(50% - 1rem);
    }

    #como-lo-hacemos .card-body {
        min-height: 20em;
    }
}

@media (max-width: 768px) {
    #como-lo-hacemos .card {
        flex: 1 1 100%; /* Single card per row on extra small screens */
        max-width: 100%;
    }

    #como-lo-hacemos .card-body {
        min-height: 0em;
    }
}

/* Contactanos */
#contactanos h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

#contactanos p {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #ccc;
}

.contact-options ul {
    padding: 0;
    margin: 0;
}

.contact-options li {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    color: white;
}

.contact-options li i {
    font-size: 1.5rem;
    color: white;
    margin-right: 0.5rem;
}

.contact-options a {
    color: white;
}

.contact-options a:hover {
    text-decoration: underline;
}

.qr-code {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Footer */
footer {
    color: white;
    padding: 1rem 0;
    margin: 0
}

footer a {
    text-decoration: none;
}

footer .social-icons a {
    color: white;
    transition: color 0.3s ease;
}

footer .social-icons a:hover {
    color: #cccccc;
}

footer img {
    border-radius: 50%;
}