* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-image: url('../img/fondocolores2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
}

.idx-header {
    background-color: #ffffff;
    width: 100%;
}

.idx-header-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px 0;
}

.idx-header-content {
    background-color: #ffffff;
    color: black;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.idx-header-image {
    height: 70px;
    margin-right: 20px;
    display: block;
}

.idx-header-title {
    margin: 0;
    font-size: 36px;
}

.idx-tabs {
    display: flex;
    justify-content: flex-end;
    margin: 2rem 2rem 0 auto;
    max-width: 600px;
    border-bottom: 2px solid #ccc;
    border-radius: 15px;
}

.idx-tab-button {
    flex: 1;
    padding: 15px;
    cursor: pointer;
    text-align: center;
    background-color: #f9f9f9;
    border: none;
    font-weight: bold;
    border-radius: 15px;
    transition: background 0.3s, color 0.3s;
    margin: 0 5px;
}

.idx-tab-button.active {
    background-color: #006e7e;
    color: white;
}

.idx-container {
    display: flex;
    justify-content: flex-end;
    margin: 1rem 2rem 0 auto;
    max-width: 600px;
    width: 100%;
}

.idx-tab-content {
    width: 100%;
    background: transparent;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
    display: none;
}

.idx-tab-content.active {
    display: block;
}

.idx-form-group {
    margin-bottom: 1rem;
}

.idx-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.idx-form-group input,
.idx-form-group select {
    width: 100%;
    padding: 10px;
    border: 5px solid #999;
    border-radius: 15px;
    border: 1.5px solid #000000;
}

.idx-btn {
    width: 100%;
    padding: 12px;
    background-color: #006e7e;
    color: white;
    border: none;
    border-radius: 15px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.idx-btn:hover {
    background-color: #004d56;
}

.idx-password-group {
    position: relative;
}

.idx-password-group input[type="password"],
.idx-password-group input[type="text"] {
    padding-right: 40px;
}

.idx-toggle-password {
    position: absolute;
    right: 10px;
    top: 38px;
    cursor: pointer;
    font-size: 18px;
    user-select: none;
}

@media screen and (max-width: 992px) {
    .idx-header-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .idx-header-image {
        margin: 0 0 10px 0;
    }

    .idx-tabs {
        max-width: 100%;
        margin: 1rem auto;
    }

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

@media screen and (max-width: 600px) {
    .idx-header-title {
        font-size: 28px;
        text-align: center;
    }

    .idx-header-wrapper {
        justify-content: center;
        flex-direction: column;
    }

    .idx-container {
        flex-direction: column;
        align-items: center;
        padding: 0 1rem;
    }

    .idx-tab-content {
        padding: 20px;
        margin-right: 0;
    }

    .idx-tabs {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .idx-tab-button {
        margin: 5px 0;
    }
}

@media screen and (max-width: 400px) {
    .idx-header-title {
        font-size: 22px;
    }
}
