:root {
    --c-light: #fefefc;
    --c-dark: #1e1e1e;
    --c-primary: #fbd604;
}

* {
    font-family: 'Blinker', serif;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--c-light);
}

header {
    height: 70px;
    width: 100%;
    background-color: var(--c-dark);
    position: fixed;
    top: 0;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    border-bottom: var(--c-primary) 5px solid;
    box-shadow: 0px 7px 7px 7px rgba(0, 0, 0, 0.226);

    >.logo {
        margin-top: 10px;
        margin-left: 25px;

        >img {
            height: 50px;
        }
    }

    >.ctr-toggle-menu {
        height: 100%;
        display: flex;
        align-items: center;
        margin-right: 25px;

        >.toggle-menu {
            color: var(--c-light);
            font-size: 1.4rem;
            cursor: pointer;
        }

        >.toggle-menu:hover {
            color: var(--c-primary);
        }
    }

    nav {
        height: calc(100vh - 80px);
        width: 100%;
        position: fixed;
        z-index: 0;
        margin-top: 75px;
        display: flex;
        flex-direction: column;
        align-items: center;
        background-color: var(--c-dark);
        left: 100%;
        font-size: 1.4rem;
        transition: all 0.5s ease-in-out;
        box-shadow: inset 0px 7px 7px 7px rgba(0, 0, 0, 0.226);
        border-bottom: 5px var(--c-primary) solid;

        >.nav-link {
            margin-top: 25px;
            text-decoration: none;
            color: var(--c-light);
            border-bottom: 2px solid transparent;
            transition: all 0.3s ease-in-out;
        }

        >.nav-link:hover {
            color: var(--c-primary);
            border-color: var(--c-primary);
        }
    }

    >.active {
        left: 0;
    }
}

.ctr-title {
    display: flex;
    align-items: center;
    gap: 25px;
    margin: 0px 25px 75px 25px;
    padding-top: 100px;

    >.text-title {
        text-align: center;
        font-size: 1.8rem;
        padding: 0;
        margin: 0;
        color: var(--c-light);
        white-space: nowrap;

        >.icon-title {
            color: var(--c-primary);
            font-size: 1.5rem;
            margin-right: 10px;
        }
    }

    >.dash-title {
        height: 2px;
        background-color: var(--c-primary);
        width: 100%;
    }
}

main {
    width: 100%;

    >#inicio {
        width: 100%;
        background-color: var(--c-dark);

        >.img-hero {
            height: calc(100vh - 75px);
            width: auto;
            max-width: 100%;
            object-fit: cover;
            filter: brightness(0.5) blur(2px);
        }

        >.ctr-hero {
            width: 80%;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: var(--c-light);

            >h1 {
                font-size: 1.6rem;
                color: var(--c-primary);
            }

            >p {
                font-size: 1.4rem;
            }

            >div {
                display: flex;
                flex-direction: column;
                align-items: start;
                gap: 10px;
                font-size: 1.2rem;

                >a {
                    color: var(--c-light);
                    text-decoration: none;
                    border-bottom: 2px solid transparent;
                    transition: all 0.5s ease-in-out;
                    width: auto;
                    >i {
                        color: var(--c-primary);
                        margin-left: 10px;
                    }
                }

                >a:hover {
                    border-bottom: 2px solid var(--c-primary);
                }
            }
        }
    }

    >#nosotros {
        width: 100%;
        background-color: var(--c-dark);

        >.ctr-card {
            display: flex;
            flex-direction: column;
            gap: 50px;
            align-items: center;

            >.card {
                width: calc(80% - 40px);
                height: 250px;
                border-radius: 10px;
                box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
                padding: 30px 20px 30px 20px;
                display: flex;
                flex-direction: column;
                justify-content: space-between;
                transition: all 0.7s ease-in-out;
                background-color: #202020;

                >.text-card {
                    color: var(--c-light);

                    >span {
                        padding: 0;
                        margin: 0;
                        font-weight: 600;
                        font-size: 1.5rem;
                    }

                    >p {
                        font-size: 1.1rem;
                        font-weight: 400;
                    }
                }

                >.ctr-card-icon {
                    width: 50px;
                    height: 50px;
                    border-radius: 100%;
                    background-color: #2a2a2a;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    margin-left: calc(50% - 25px);

                    >.card-icon {
                        color: rgb(94, 94, 94);
                    }
                }
            }

            >.card:hover {
                transform: scale(1.1);
                box-shadow: rgba(0, 0, 0, 0.07) 0px 1px 2px, rgba(0, 0, 0, 0.07) 0px 2px 4px, rgba(0, 0, 0, 0.07) 0px 4px 8px, rgba(0, 0, 0, 0.07) 0px 8px 16px, rgba(0, 0, 0, 0.07) 0px 16px 32px, rgba(0, 0, 0, 0.07) 0px 32px 64px;

                >.ctr-card-icon {
                    background-color: #2d2600;

                    >.card-icon {
                        color: var(--c-primary);
                    }
                }
            }
        }
    }

    >#trabajos {
        background-color: var(--c-dark);

        >.ctr-custom-radio {
            display: flex;
            justify-content: center;
            align-items: center;

            >.custom-radio {
                display: flex;
                background-color: var(--c-light);
                box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
                overflow-x: auto;
                width: 100%;
                height: 100%;
                border-bottom: 5px solid var(--c-primary);

                >input[type="radio"] {
                    display: none;
                }

                >input[type="radio"]:checked+.radio-label {
                    background-color: var(--c-primary);
                    box-shadow: rgba(0, 0, 0, 0.06) 0px 2px 4px 0px inset;
                }

                >input[type="radio"]:checked+.radio-label .radio-text {
                    color: var(--c-dark);
                }

                >input[type="radio"]:hover+.radio-label {
                    background-color: var(--c-primary);
                }

                >input[type="radio"]:hover+.radio-label .radio-text {
                    color: var(--c-dark);
                }

                >.radio-label {
                    display: flex;
                    align-items: center;
                    padding: 10px 20px;
                    cursor: pointer;
                    height: 40px;
                    transition: background-color 0.3s ease-in-out;

                    >.radio-text {
                        font-size: 1rem;
                        color: var(--dark-color);
                        transition: color 0.3s ease-in-out;
                    }
                }


            }

            /* Personalizar el scrollbar */
            >.custom-radio::-webkit-scrollbar {
                width: 0px;
                /* Ancho del scrollbar vertical */
                height: 0px;
                /* Altura del scrollbar horizontal */
            }
        }

        >.ctr-images {
            background-color: var(--c-light);
            width: calc(100% - 50px);
            display: flex;
            padding: 25px;
            gap: 15px;
            flex-wrap: wrap;

            >img {
                background-color: var(--c-dark);
                padding: 3px;
                height: 250px;
                border-radius: 10px;
                box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
            }

            >a {
                color: var(--dark-color);
                display: flex;
                align-items: center;
                width: 150px;
            }
        }
    }

    >#contacto {
        border-radius: 15px;
        box-shadow: rgba(0, 0, 0, 0.07) 0px 1px 2px, rgba(0, 0, 0, 0.07) 0px 2px 4px, rgba(0, 0, 0, 0.07) 0px 4px 8px, rgba(0, 0, 0, 0.07) 0px 8px 16px, rgba(0, 0, 0, 0.07) 0px 16px 32px, rgba(0, 0, 0, 0.07) 0px 32px 64px;
        margin-top: 100px;
        width: 90%;
        background-color: var(--c-dark);
        margin-left: 5%;
        padding-bottom: 50px;

        >.ctr-title {
            padding-top: 50px;
        }

        >.ctr-form {
            width: 100%;
            display: flex;
            justify-content: center;

            >form {
                width: 90%;
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                grid-template-rows: auto auto auto;
                gap: 25px;

                >.input-field {
                    position: relative;
                    border-bottom: 2px solid var(--c-primary);

                    >input,
                    textarea,
                    select {
                        width: 100%;
                        background: transparent;
                        border: none;
                        outline: none;
                        font-size: 16px;
                        color: var(--c-light);
                        resize: none;
                        /* Evita que el usuario cambie el tamaño */
                        height: 40px;
                        /* Se puede ajustar según el tamaño del textarea */
                        padding: 10px 0;
                        /* Espaciado opcional */
                    }

                    >label {
                        position: absolute;
                        top: 50%;
                        left: 0;
                        transform: translateY(-50%);
                        color: var(--c-light);
                        font-size: 16px;
                        pointer-events: none;
                        transition: 0.15s ease;
                    }

                    >input:focus~label,
                    input:valid~label,
                    select:focus~label,
                    select:valid~label,
                    select:disabled~label,
                    textarea:focus~label,
                    textarea:valid~label {
                        font-size: 0.8rem;
                        top: 10px;
                        transform: translateY(-120%);
                    }

                    >textarea {
                        min-height: 80px;
                    }

                    >select option {
                        background-color: #1e1e1e;
                    }
                }

                >.input-field:nth-child(9) {
                    grid-column: span 2;
                    /* Ocupa las 2 columnas */
                }

                >.input-field:nth-child(1) {
                    grid-column: span 2;
                    /* Ocupa las 2 columnas */
                }

                >.ctr-error-messages {
                    grid-column: span 2;
                    display: grid;
                    color: rgb(245, 46, 46);
                }
                >.send-button {
                    grid-column: span 2;
                    display: flex;
                    justify-content: center;

                    button {
                        box-shadow: #fbd60422 0px 5px 15px;
                        cursor: pointer;
                        height: 40px;
                        background-color: var(--c-primary);
                        width: 180px;
                        border-radius: 100px;
                        color: var(--c-dark);
                        font-size: 24px;
                        font-weight: normal;
                        border: none;
                        transition: transform 0.2s ease-in-out;
                        display: flex;
                        justify-content: space-between;
                        align-items: center;
                        padding: 25px
                    }

                    button:hover {
                        transform: scale(1.1);
                    }
                }

                >.check-field .checkbox-container {
                    position: relative;
                    display: inline-block;
                    cursor: pointer;
                    font-size: 18px;
                    padding-left: 30px;
                    user-select: none;
                    color: var(--c-light);

                    >input[type="checkbox"] {
                        appearance: none;
                    }

                    >.checkmark {
                        position: absolute;
                        left: 8px;
                        top: 4px;
                        font-size: 15px;
                        color: #606060;
                        transition: all 0.3s ease;
                    }

                    >a {
                        color: var(--c-primary)
                    }

                    >a:hover {
                        color: var(--c-light)
                    }

                    >input {
                        border: 2px solid var(--c-primary);
                        height: 20px;
                        width: 20px;
                        border-radius: 3px;
                        position: absolute;
                        left: 0;
                    }

                    >input[type="checkbox"]:checked+.checkmark {
                        color: #fff;
                    }

                    >input:checked {
                        background-color: var(--c-primary);
                    }

                    input[type="checkbox"]:checked+.checkmark i {
                        content: '\f00c';
                    }

                }
            }
        }
    }
}

footer {
    margin-top: 100px;
    background-color: var(--c-dark);
    display: flex;
    flex-direction: column;
    border-top: 5px solid var(--c-primary);
    padding-bottom: 50px;

    >.ctr-footer {
        display: flex;
        flex-direction: column;
        align-items: center;

        >.general {
            margin-top: 50px;
            display: flex;
            flex-direction: column;
            align-items: center;

            >a {
                text-decoration: none;
                color: var(--c-light);
                margin-top: 15px;
            }

            >a:hover {
                color: var(--c-primary);
            }

            >.logo-footer {
                width: 50%;
            }
        }

        >.ctr-contact {
            margin-top: 25px;

            >.contact-card {
                color: var(--c-primary);
                margin-top: 10px;
                border-bottom: 2px solid var(--c-primary);
                padding: 5px;

                >div .contact-item {
                    margin-left: 10px;
                    color: var(--c-light);

                }

                >div i a {
                    color: var(--c-light);
                    margin-left: 10px;
                    text-decoration: none;
                }

                >div i a:hover {
                    color: var(--c-primary);
                }
            }
        }

        >.links {
            margin-top: 25px;
            display: flex;
            flex-direction: column;

            >a {
                color: var(--c-light);
                text-decoration: none;
            }

            >a:hover {
                color: var(--c-primary);
            }
        }
    }

    >span {
        margin-top: 15px;
        text-align: center;
        color: var(--c-light);
    }
}



@media only screen and (min-width: 1024px) {
    header {
        >.ctr-toggle-menu {
            display: none;
        }

        >nav {
            all: unset;
            display: flex;
            gap: 25px;
            height: 100%;
            align-items: center;
            margin-right: 25px;
            font-size: 1.4rem;
        }
    }

    #inicio {
        >.ctr-hero {
            width: 45% !important;
            >h1 {
                font-size: 2rem !important;
            }
            >div {
                margin-top: 50px;
                flex-direction: row !important;
                width: 100%;
                justify-content: space-between;
            }
        }    
    }

    .ctr-card {
        flex-direction: row !important;
        justify-content: center;
        >.card {
            width: 250px !important;
        }
    }
}