/* Global Box-Sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* _______ P R O D U C T S _______ */

/* _ CARDS _ */

.products {
    width: 100%;
    /* Cambiado de 100vw a 100% */
    height: fit-content;
    background: rgb(211, 212, 217);
    background: -moz-linear-gradient(285deg, rgba(211, 212, 217, 1) 0%, rgba(247, 247, 248, 1) 38%, rgba(211, 212, 217, 1) 100%);
    background: -webkit-linear-gradient(285deg, rgba(211, 212, 217, 1) 0%, rgba(247, 247, 248, 1) 38%, rgba(211, 212, 217, 1) 100%);
    background: linear-gradient(285deg, rgba(211, 212, 217, 1) 0%, rgba(247, 247, 248, 1) 38%, rgba(211, 212, 217, 1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#d3d4d9", endColorstr="#d3d4d9", GradientType=1);
    min-height: 85vh;
    padding: 40px 20px;
    box-sizing: border-box;
}

.rounded-image {
    border-radius: 23px;
    /* Ajusta este valor según sea necesario */
}

.products .card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.products .card {
    flex: 1 1 250px;
    /* Permitir que las tarjetas se ajusten */
    max-width: 300px;
    /* Establecer un máximo razonable */
    display: flex;
    flex-direction: column;
    height: fit-content;
    border: none;
    background-color: transparent;
    transition: transform 0.3s;
}

.products .card:hover {
    transform: translateY(-5px);
}

.products .card.phi .card-body:hover,
.products .card.comodoro .card-body:hover,
.products .card.cliente .card-body:hover {
    background-color: transparent;
}

.products .card.phi .card-body,
.products .card.comodoro .card-body,
.products .card.cliente .card-body {
    color: black;
}

textarea {
    resize: none;
}

.products .card img {
    object-fit: cover;
    width: 100%;
    /* Asegurar que la imagen no exceda el contenedor */
    height: auto;
}

.products .card-img-top {
    border-radius: 100px;
    box-shadow: 5px 7px 11px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s, box-shadow 0.3s;
}

.products .card-container .card-body {
    text-align: center;
    padding: 15px;
}

.products .card-container .card-title {
    font-family: var(--cabin);
    font-weight: 700;
    letter-spacing: 2px;
}

.products .card-container .card-img-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* _______ C L I E N T E _______ */

#cliente-top {
    height: fit-content;
    min-height: 65vh;
    background-color: var(--dark-gray);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

#cliente-top .cliente-logo-container {
    height: fit-content;
    min-height: 65vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#cliente-top .logo-container {
    width: 100%;
    overflow: hidden;
}

#cliente-top .logo {
    min-width: 250px;
    width: 75%;
}

#cliente-top .cliente-text-container {
    height: fit-content;
    min-height: 65vh;
    overflow: hidden;
    background-image: url('/images/yacht.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

#cliente-top .cliente-container {
    width: 75%;
    background-color: rgba(255, 255, 255, 0.8);
    flex-direction: column;
    border-radius: 15px;
    padding: 20px;
    box-sizing: border-box;
}

#cliente-top .cliente-container h4 {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: var(--montserrat);
    color: rgb(14, 14, 14);
    text-align: center;
    margin: 0 0 20px 0;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.30);
}

#cliente-top .cliente-container .text-container {
    text-align: justify;
    font-weight: 600;
    font-family: var(--montserrat);
    color: rgb(14, 14, 14);
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.30);
}

/* Responsivo para Cliente */
@media only screen and (max-width: 991px) {
    #cliente-top {
        flex-direction: column;
        padding: 20px 10px;
    }

    #cliente-top .cliente-logo-container {
        min-height: 35vh;
    }

    #cliente-top .logo {
        min-width: 150px;
        max-width: 375px;
        width: 85%;
    }

    #cliente-top .cliente-container {
        width: 100%;
        padding: 15px;
    }

    #cliente-top .cliente-container h4 {
        font-size: 2rem;
    }

    #cliente-top .cliente-container .text-container {
        color: var(--dark-gray);
        font-size: 0.9rem;
    }
}

#cliente-bot {
    height: fit-content;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

#cliente-bot h5 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--blue);
    text-align: center;
    margin-bottom: 20px;
}

#cliente-bot .bot-container {
    height: fit-content;
    min-height: 60vh;
    flex-direction: column;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

#cliente-bot .description-container {
    height: fit-content;
    min-height: 40vh;
    flex-direction: column;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

#cliente-bot h6 {
    font-weight: 500;
    font-size: 1.7rem;
    color: black;
    text-align: center;
    font-family: var(--montserrat);
    margin-bottom: 10px;
}

#cliente-bot .text-container p {
    font-family: var(--montserrat);
    font-size: 1rem;
    max-width: 600px;
    text-align: center;
}

#cliente-bot .img-container img {
    width: 100%;
    height: 90%;
    border-radius: 20px;
    object-fit: cover;
    /* Cambiar de flex-end a cover */
}

@media only screen and (max-width: 991px) {
    #cliente-bot h5 {
        font-size: 2rem;
    }

    #cliente-bot h6 {
        font-size: 1.1rem;
        text-align: justify;
    }

    #cliente-bot .text-container p {
        font-size: 0.9rem;
    }

    #cliente-bot .img-container img {
        height: auto;
    }
}

/* _______ P H I _______ */

#phi-top {
    height: fit-content;
    min-height: 65vh;
    background-color: var(--dark-gray);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

#phi-top .phi-logo-container {
    height: fit-content;
    min-height: 65vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#phi-top .logo-container {
    width: 100%;
    overflow: hidden;
}

#phi-top .logo {
    min-width: 250px;
    width: 75%;
}

#phi-top .phi-text-container {
    height: fit-content;
    min-height: 65vh;
    overflow: hidden;
    background-image: url('/images/accounting.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

#phi-top .phi-container {
    width: 75%;
    background-color: rgba(255, 255, 255, 0.8);
    flex-direction: column;
    border-radius: 15px;
    padding: 20px;
    box-sizing: border-box;
}

#phi-top .phi-container h4 {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: var(--montserrat);
    color: rgb(14, 14, 14);
    text-align: center;
    margin: 0 0 20px 0;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.30);
}

#phi-top .phi-container .text-container {
    text-align: justify;
    font-weight: 600;
    font-family: var(--montserrat);
    color: rgb(14, 14, 14);
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.30);
}

/* Responsivo para Phi */
@media only screen and (max-width: 991px) {
    #phi-top {
        flex-direction: column;
        padding: 20px 10px;
    }

    #phi-top .phi-logo-container {
        min-height: 35vh;
    }

    #phi-top .logo {
        min-width: 150px;
        max-width: 375px;
        width: 85%;
    }

    #phi-top .phi-container {
        width: 100%;
        padding: 15px;
    }

    #phi-top .phi-container h4 {
        font-size: 2rem;
    }

    #phi-top .phi-container .text-container {
        color: var(--dark-gray);
        font-size: 0.9rem;
    }
}

#phi-bot {
    height: fit-content;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

#phi-bot h5 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--blue);
    text-align: center;
    margin-bottom: 20px;
}

#phi-bot .bot-container {
    height: fit-content;
    min-height: 60vh;
    flex-direction: column;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

#phi-bot .description-container {
    height: fit-content;
    min-height: 40vh;
    flex-direction: column;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

#phi-bot h6 {
    font-weight: 500;
    font-size: 1.7rem;
    color: black;
    text-align: center;
    font-family: var(--montserrat);
    margin-bottom: 10px;
}

#phi-bot .text-container p {
    font-family: var(--montserrat);
    font-size: 1rem;
    max-width: 600px;
    text-align: center;
}

#phi-bot .img-container img {
    width: 100%;
    height: 80%;
    border-radius: 20px;
    object-fit: cover;
    /* Cambiar de flex-end a cover */
}

@media only screen and (max-width: 991px) {
    #phi-bot h5 {
        font-size: 2rem;
    }

    #phi-bot h6 {
        font-size: 1.1rem;
        text-align: justify;
    }

    #phi-bot .text-container p {
        font-size: 0.9rem;
    }

    #phi-bot .img-container img {
        height: auto;
    }
}

/* _______ C O M O D O R O _______ */

#comodoro-top {
    height: fit-content;
    min-height: 65vh;
    background-color: var(--dark-gray);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

#comodoro-top .comodoro-logo-container {
    height: fit-content;
    min-height: 65vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#comodoro-top .logo-container {
    width: 100%;
    overflow: hidden;
}

#comodoro-top .logo {
    min-width: 250px;
    width: 75%;
}

#comodoro-top .comodoro-text-container {
    height: fit-content;
    min-height: 65vh;
    overflow: hidden;
    background-image: url('/images/port-3.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

#comodoro-top .comodoro-container {
    width: 75%;
    background-color: rgba(255, 255, 255, 0.8);
    flex-direction: column;
    border-radius: 15px;
    padding: 20px;
    box-sizing: border-box;
}

#comodoro-top .comodoro-container h4 {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: var(--montserrat);
    color: rgb(14, 14, 14);
    text-align: center;
    margin: 0 0 20px 0;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.30);
}

#comodoro-top .comodoro-container .text-container {
    text-align: justify;
    font-weight: 600;
    font-family: var(--montserrat);
    color: rgb(14, 14, 14);
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.30);
}

/* Responsivo para Comodoro */
@media only screen and (max-width: 991px) {
    #comodoro-top {
        flex-direction: column;
        padding: 20px 10px;
    }

    #comodoro-top .comodoro-logo-container {
        min-height: 35vh;
    }

    #comodoro-top .logo {
        min-width: 150px;
        max-width: 375px;
        width: 85%;
    }

    #comodoro-top .comodoro-container {
        width: 100%;
        padding: 15px;
    }

    #comodoro-top .comodoro-container h4 {
        font-size: 2rem;
    }

    #comodoro-top .comodoro-container .text-container {
        color: var(--dark-gray);
        font-size: 0.9rem;
    }
}

#comodoro-bot {
    height: fit-content;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

#comodoro-bot h5 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--blue);
    text-align: center;
    margin-bottom: 20px;
}

#comodoro-bot .bot-container {
    height: fit-content;
    min-height: 60vh;
    flex-direction: column;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

#comodoro-bot .description-container {
    height: fit-content;
    min-height: 40vh;
    flex-direction: column;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

#comodoro-bot h6 {
    font-weight: 500;
    font-size: 1.7rem;
    color: black;
    text-align: center;
    font-family: var(--montserrat);
    margin-bottom: 10px;
}

#comodoro-bot .text-container p {
    font-family: var(--montserrat);
    font-size: 1rem;
    max-width: 600px;
    text-align: center;
}

#comodoro-bot .img-container img {
    width: 100%;
    height: 90%;
    border-radius: 20px;
    object-fit: cover;
    /* Cambiar de flex-end a cover */
}

@media only screen and (max-width: 991px) {
    #comodoro-bot h5 {
        font-size: 2rem;
    }

    #comodoro-bot h6 {
        font-size: 1.1rem;
        text-align: justify;
    }

    #comodoro-bot .text-container p {
        font-size: 0.9rem;
    }

    #comodoro-bot .img-container img {
        height: auto;
    }
}

/* _______ A L L   P R O D U C T S _______ */

#all-products {
    background: rgb(211, 212, 217);
    background: -moz-linear-gradient(285deg, rgba(211, 212, 217, 1) 0%, rgba(247, 247, 248, 1) 38%, rgba(211, 212, 217, 1) 100%);
    background: -webkit-linear-gradient(285deg, rgba(211, 212, 217, 1) 0%, rgba(247, 247, 248, 1) 38%, rgba(211, 212, 217, 1) 100%);
    background: linear-gradient(285deg, rgba(211, 212, 217, 1) 0%, rgba(247, 247, 248, 1) 38%, rgba(211, 212, 217, 1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#d3d4d9", endColorstr="#d3d4d9", GradientType=1);
    height: fit-content;
    min-height: 50vh;
    padding: 40px 20px;
    box-sizing: border-box;
}

#all-products .all-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    height: fit-content;
    min-height: 50vh;
}

#all-products .text-container {
    flex-direction: column;
    text-align: start;
    max-width: 600px;
}

#all-products li {
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 10px;
}

#all-products h1 {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--montserrat);
    color: black;
    text-align: center;
    margin-bottom: 20px;
}

#all-products h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--blue);
    text-align: start;
    margin-bottom: 20px;
}

#all-products .img-container img {
    width: auto;
    height: 450px;
    object-fit: contain;
    border-radius: 10px;
    transition: transform 0.3s;
}

#all-products .prod-btn {
    background-color: var(--blue);
    padding: 10px 20px;
    border-radius: 30px;
    transition: transform 0.3s, background-color 0.3s;
    cursor: pointer;
    text-align: center;
    margin-top: 20px;
}

#all-products .prod-btn a,
#all-products .prod-btn h3 {
    color: white;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0;
    display: block;
}

#all-products .prod-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

#all-products span {
    font-weight: 700;
}

/* Responsivo para All Products */
@media only screen and (max-width: 991px) {
    #all-products .all-container {
        flex-direction: column;
        align-items: center;
    }

    #all-products .img-container img {
        height: auto;
        width: 100%;
        /* Asegurar que la imagen no exceda el contenedor */
    }

    #all-products li {
        font-size: 0.9rem;
    }

    #all-products h1 {
        font-size: 1.5rem;
    }

    #all-products h2 {
        font-size: 1.7rem;
        text-align: center;
    }

    #all-products .prod-btn {
        width: 100%;
        padding: 10px 15px;
    }

    #all-products .prod-btn a,
    #all-products .prod-btn h3 {
        font-size: 1.1rem;
    }
}