/* General Styles */
@keyframes changeBackgroundColor {
    0% { background-color: #f0ebd8; }
    50% { background-color: #fff8e1; }
    100% { background-color: #f0ebd8; }
}

body {
    font-family: "Montserrath";
    margin: 0;
    padding: 0;
    color: #333;
    background: linear-gradient(rgba(255, 254, 252, 0.5), rgba(255, 255, 255, 1)), /* Color overlay */
    url('../IMG/spikes.png') repeat;
    animation: changeBackgroundColor 3s infinite;
    box-sizing: border-box;
    overflow-x: hidden; 
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: #ededed;
    width: 100%; 
    box-sizing: border-box; 
}

header .logo {
    max-width: 152px;
    margin-left: 20px;
}

main {
    padding: 1rem;
    width: 100%; 
    box-sizing: border-box; 
}

footer {
    background: #1D2D44;
    color: #F0EBD8;
    text-align: center;
    padding: 1rem;
}

section {
    padding: 2rem 0;
    margin-bottom: 200px !important;
}

h1, h2, h3 {
    margin: 0.5rem 0;
    text-transform: uppercase;
    word-break: keep-all !important;
}

h1 {
    font-size: 2.5rem;
    color: #3E5C76;
}

h2 {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #d5c5c8, #9da3a4, #604d53, #db7f8e, #ffdbda);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 30px;
}

h2:hover {
    transform: translateY(-5px);
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1D2D44;
    margin: 0;
    margin-bottom: 20px;
}

p {
    line-height: 1.6;
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* Hero Section */
#hero {
    position: relative;
    color: #1D2D44;
    text-align: center;
    background-image: url('../IMG/4.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: bold;
}

.hero-content p {
    font-size: 1.25rem;
}

/* Carousel */
.hero-content h1 {
    font-size: 3rem;
    font-weight: bold;
}

.hero-content p {
    font-size: 1.25rem;
}

/* Carousel */

.carousel-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.project-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    
}

.project {
    width: 48%; 
    margin-bottom: 2rem; 
    text-align: center; 
    padding-bottom: 80px;
}

.portfolio-title{
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
}

.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}




.fixed-size {
    height: 70vh; 
    object-fit: cover; 
}


@media (max-width: 768px) {
    .project {
        width: 100%; 
    }
}

/* About Us Section */
#about_us {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
    background-color: transparent;
}

#values {
    padding: 40px 0;
    width: 90% !important;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.card {
    width: 400px;
    height: 600px;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: transform 0.3s ease-in-out;
    margin: 40px;
    box-shadow: 20px 20px 20px rgba(0, 0, 0, 0.1);

}

.grid-container > .card:nth-child(1) {
    order: 2;
}

.grid-container > .card:nth-child(2) {
    order: 1;
}

.card:hover {
    transform: scale(1.05);
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    
}

.card.text {
    background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 1)), /* Color overlay */;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    text-align: center;
    margin: 40px;
    box-shadow: 20px 20px 20px rgba(0, 0, 0, 0.1);

}

.card.text h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.card.text p {
    font-size: 14px;
    color: #666;
    text-align: justify;
}

.card.text ul {
    padding: 0;
    list-style: none;
    font-size: 14px;
    color: #666;
    text-align: justify;
}

.card.text ul li {
    margin-bottom: 10px;
}

/* Values Section */
#values {
    padding: 40px 0;
    width: 80%;
}

#values .grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

#values .card {
    width: 100%;
    height: 220px;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: transform 0.3s ease-in-out;
    text-align: center;
}

#values .card:hover {
    transform: scale(1.05);
}

#values .card h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
    display: flex;
    justify-content: flex-start; /* Alineamos el texto al inicio */
    align-items: center; /* Alineamos verticalmente el texto y el ícono */
}

#values .card h3 i {
    font-size: 24px; /* Tamaño del ícono */
    color: #3E5C76; /* Color del ícono */
    margin-left: 10px; /* Espacio entre el texto y el ícono */
}

#values .card p {
    font-size: 14px;
    color: #666;
    text-align: justify;
}

/* FAQ Section */
#faq {
    padding: 2rem;
    background-color: transparent;
    width: 70%;
}

#faq .accordion-item {
    color: #524E40;
    margin-bottom: 1rem;
    border: none;
    border-top: #1D2D44 2px solid;
    border-radius: 0 10px 0 0;
}

#faq .accordion-button {
    color: #524E40;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 20px;
    outline: none;
    box-shadow: none;
}

#faq .accordion-button.collapsed {
    background: transparent;
    padding-left: 20px;
}

#faq .accordion-button:not(.collapsed) {
    background-color: #3E5C76;
    color: #ededed;
    border-radius: 0 10px 10px 0px;
}

#faq .accordion-body {
    font-size: 1.15rem;
    line-height: 1.6;
}

/* Contact Form */
.contact-container {
    display: flex;
    max-width: 95vw;
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.left {
    position: relative;
    background-image: url('../IMG/3.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 40px;
    width: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 1; 
}

.left h2 {
    color: green !important;
    position: relative;
    z-index: 2; 
}

.right {
    padding: 40px;
    width: 70%;
}

input, textarea, select{
    width: 100%;
    box-sizing: border-box;
    margin: auto;
    margin-top: 15px;
    padding: 6px 12px;
    border: none;
    border-left: 2.5px solid #1D2D44;
    background-color: transparent;
    border-radius: 4px;
    color: #524E40;
    box-shadow: 0 0 1px #524E4055;
    font-size: 1.1rem;
}

option{
    background-color: transparent;
    color: #524E40;
    border: none;
    border-radius: 4px;
    box-shadow: 0 0 1px #524E4055;
}

input:focus, textarea:focus, select:focus{
    outline: none;
    border-left: 2px solid #1D2D44;
}
textarea{
    min-width: 100%;
    resize: none;
    min-height: 100px;
    max-height: 200px;
    
}

form{
    background-color: transparent;
    padding: 20px 20px;
    margin: auto;
    margin-top: 50px;
    border-radius: 8px;
}

label{
    font-size: 1.1rem;
    color: #524E40;
    font-weight: 700;
}

.form-input {
    padding: 10px 20px;
}

.buttom-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.buttom {
    margin: auto;
    padding: 12px 25px;
    font-size: 16px;
    background-color: #748CAB;
    color: white;
    border: 2px solid #748CAB;
    border-radius: 20px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    font-weight: bold;
    width: 80%;
    text-transform: uppercase;
    transition: all 0.4s ease;
}

.buttom::after {
    content: "";
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.6);
    transform: skewY(-30deg);
    transition: all 0.5s ease;
}

.buttom:hover::after {
    top: 100%;
}

.buttom:hover {
    background-color: #1D2D44;
    border-color: #1D2D44;
}

/* Navbar */
nav {
    background-color: #ededed;
}

.navbar-brand img {
    max-height: 60px;
}

.navbar-nav .nav-link {
    font-size: 1.1rem;
    margin: 0 10px;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
    color: #1D2D44;
}

.top-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; 
    box-sizing: border-box; 
    overflow-x: hidden; 
    background: #1D2D44;
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 90px;
}

.top-navbar .brand {
    flex: 1;
    box-sizing: border-box;
}

.top-navbar ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 2;
    justify-content: end;
}

.top-navbar ul li {
    margin: 0;
}

.top-navbar ul li a {
    text-decoration: none;
    color: #333;
    padding: 0.5rem 1rem;
}

.top-navbar ul {
    display: flex;
    list-style: none;
    margin-right: 20px;
}

.top-navbar ul li {
    position: relative;
    margin: 0 20px;
}

.top-navbar ul li a {
    text-decoration: none;
    color: #F0EBD8;
    font-size: 1.3rem;
    font-weight: 600;
    padding: 5px;
}

.top-navbar ul li .rect {
    position: absolute;
    width: 0%;
    height: 2px;
    background: #748CAB;
    left: 0;
    bottom: 0;
    transition: width 0.3s ease;
}

.top-navbar ul li:hover .rect {
    width: 100%;
}

.navbar-toggler {
    display: none;
    cursor: pointer;
    margin-right: 20px;
}

.navbar-toggler div {
    width: 30px;
    height: 4px;
    background-color: white;
    margin: 6px 0;
    transition: 0.4s;
}

.overlay-dropdown {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;
    transition: opacity 0.3s ease-in-out;
}

.overlay-dropdown.active {
    display: flex;
}

.overlay-dropdown ul {
    list-style: none;
    padding: 0;
    text-align: center;
}


.overlay-dropdown ul li {
    margin: 20px 0;
}

.overlay-dropdown ul li a {
    text-decoration: none;
    color: #f0ebd8;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.overlay-dropdown ul li a:hover {
    color: #db7f8e;
}

.overlay-dropdown .logo {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {

    .fixed-size {
        height: 55vh; 
        object-fit: cover; 
    }

    .grid-container {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }



    .card {
        margin: auto 0;
    }

    .card.text {
        margin: auto 0;
    }

    .grid-container > .card:nth-child(1) {
        order: 1;
    }
    
    .grid-container > .card:nth-child(2) {
        order: 2;
    }

    #values .grid-container {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }

    h1{
        text-align: center;
    }

    .portfolio-title{
        font-size: 2.5rem;
    }

    h2{
        text-align: center;
        font-weight: 600;
        font-size: 2rem;
    }

    div.card.text h3{
        text-align: center;
        font-size: 1.5rem;
        word-break: keep-all !important; 
    }

    #about_us {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #about_us .wrap {
        transform: none !important;
        cursor: default;
    }

    #about_us .container {
        transform: none !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .hero-content h1 {
        font-size: 1.5rem;
        font-weight: bold;
    }

    .top-navbar {
        padding: 10px 0;
        width: 100vw;
        box-sizing: border-box;
    }

    .top-navbar ul {
        display: none;
        flex-direction: column;
        width: 100%;
        box-sizing: border-box;
        padding: 10px;
    }

    .top-navbar .logo img {
        display: none; 
    }
    .navbar-toggler {
        display: block;
    }

    .right {
        width: 100%;
        padding: 5px;
        box-sizing: border-box; 
    }

    .left {
        display: none;
    }

    .faq, .card {
        width: 100%; 
        margin: 0 auto;
        box-sizing: border-box; 
    }

    #faq {
        width: 100%; 
        margin: 5px auto;
        box-sizing: border-box; 
    }

    .form-input {
        width: 100%; 
        box-sizing: border-box; 
    }

    input, textarea, select {
        width: 100%; 
        box-sizing: border-box; 
    }

    
    img, video {
        max-width: 100%;
        height: auto;
    }

    .flex-container {
        display: flex;
        flex-wrap: wrap;
    }

    .flex-item {
        flex: 1 1 100%;
        box-sizing: border-box;
    }

    header .logo {
        max-width: 150px;
    }
}

.left img {
    max-width: 100%;
}
