/* Global Reset & Layout */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body,
html {
    height: 100%;
    width: 100%;
    font-family: "telefonicaregular", sans-serif;
    overflow-x: hidden;
    color: #0a2738;
}

/* Font Definitions */
@font-face {
    font-family: "telefonicabold";
    src: url(/static/media/telefonicaweb-bold-webfont.1770847434036.eot);
    src: url(/static/media/telefonicaweb-bold-webfont.1770847434036.eot?#iefix) format("embedded-opentype"),
        url(/static/media/telefonicaweb-bold-webfont.1770847434036.woff2) format("woff2"),
        url(/static/media/telefonicaweb-bold-webfont.1770847434036.woff) format("woff"),
        url(/static/media/telefonicaweb-bold-webfont.1770847434036.ttf) format("truetype"),
        url(/static/media/telefonicaweb-bold-webfont.1770847434036.svg#telefonicabold) format("svg");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "telefonicaregular";
    src: url(/static/media/telefonicaweb-regular-webfont.1770847434036.eot);
    src: url(/static/media/telefonicaweb-regular-webfont.1770847434036.eot?#iefix) format("embedded-opentype"),
        url(/static/media/telefonicaweb-regular-webfont.1770847434036.woff2) format("woff2"),
        url(/static/media/telefonicaweb-regular-webfont.1770847434036.woff) format("woff"),
        url(/static/media/telefonicaweb-regular-webfont.1770847434036.ttf) format("truetype"),
        url(/static/media/telefonicaweb-regular-webfont.1770847434036.svg#telefonicaregular) format("svg");
    font-weight: 400;
    font-style: normal;
}

/* Main Container to handle full height layout */
#root {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header */
.headerContainer {
    width: 100%;
    z-index: 100;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.headerWeb {
    padding: 10px 40px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 70px;
    border-bottom: 1px solid #eee;
}

.headerWeb img {
    height: 32px;
    width: auto;
}

/* --- Custom Layout System --- */
.mainContent {
    display: flex;
    flex-direction: row;
    height: 100vh;
    /* Full viewport height */
    width: 100%;
    margin: 0;
    padding: 0;
}

.left-panel {
    flex: 1;
    /* Take available space */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: white;
    overflow-y: auto;
    position: relative;
    z-index: 10;
    padding: 20px;
}

.right-panel {
    flex: 1;
    /* Take equal space (50/50) */
    background: url('img/webjam2026.png') no-repeat center center;
    background-size: cover;
    position: relative;
    display: flex;
    /* Ensure it takes height */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .mainContent {
        flex-direction: column;
        height: auto;
    }

    .left-panel {
        width: 100%;
        min-height: 60vh;
        /* Padding top to avoid overlap if header is fixed, but it seems inline */
        padding-top: 10px;
    }

    .right-panel {
        display: none;
        /* Hide banner on mobile if desired, or adjust height */
    }

    /* Mobile Header Card */
    .headerMovil {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        background: white;
        width: 95%;
        margin: 10px auto;
        padding: 15px 20px;
        border-radius: 5px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        /* Soft shadow */
    }

    .headerMovil img.imgMovistarHeader {
        height: 25px;
        width: auto;
    }

    .pagosEpaycoFont {
        font-size: 11px;
        color: #0B2739;
        display: flex;
        align-items: center;
        margin: 0;
        font-family: "telefonicabold", sans-serif;
    }

    .pagosEpayco {
        height: 14px !important;
        margin-left: 5px;
    }
}

/* Tabs */
.tabsContainer {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.tabsContainer button {
    border: none;
    background: #f0f0f0;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease;
    font-family: "telefonicaregular", sans-serif;
}

.buttonMV button {
    background-color: #00A9E0;
    color: white;
    font-family: "telefonicabold", sans-serif;
    /* Bold for active tab */
}

/* Title Styling */
.text-center .fl {
    font-family: "telefonicaregular", sans-serif;
    font-weight: 300;
    font-size: 24px;
    color: #666;
}

.text-center .fb {
    font-family: "telefonicabold", sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #00A9E0;
}

/* Sub-tabs */
.ReactCollapse--content .wc {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    margin-top: 10px;
}

.css-ecp3wi button {
    background-color: #0B2739;
    color: white;
    padding: 8px 30px;
    border-radius: 20px;
    font-family: "telefonicabold", sans-serif;
    border: none;
}

.css-1gruli6 button {
    background-color: white;
    color: #0B2739;
    border: 1px solid #ccc;
    padding: 8px 30px;
    border-radius: 20px;
    font-family: "telefonicaregular", sans-serif;
}

/* Input Fields & Icons */
.css-f4tqbu {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ccc;
    padding-bottom: 8px;
    margin-top: 20px;
    width: 100%;
}

.css-f4tqbu i {
    font-size: 24px;
    color: #0B2739;
    margin-right: 15px;
}

.css-f4tqbu input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 16px;
    color: #0a2738;
    background: transparent;
    font-family: "telefonicaregular", sans-serif;
}

.css-f4tqbu input::placeholder {
    color: #999;
}

/* Buttons */
.btn-v2-home button {
    width: 100%;
    padding: 12px;
    border-radius: 25px;
    background-color: #e6e6e6;
    color: #999;
    font-family: "telefonicabold", sans-serif;
    font-size: 16px;
    border: none;
    cursor: default;
    margin-top: 25px;
}

.btn-v2-home button.active {
    background-color: #019df4;
    color: white;
    cursor: pointer;
}

/* Footer & ePayco Logo */
.displayMovilNone {
    margin-top: 40px;
    text-align: center;
}

.displayMovilNone a {
    color: #00A9E0;
    text-decoration: none;
    font-size: 14px;
    font-family: "telefonicaregular", sans-serif;
}

.displayMovilNone p {
    font-size: 12px;
    color: #666;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagosEpayco {
    height: 20px;
    width: auto;
    margin-left: 8px;
    vertical-align: middle;
}

/* Classes utilities */
.wc,
.col-12 {
    width: 100%;
}

.d-none {
    display: none !important;
}

.d-md-block {
    display: block !important;
}

.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Media Queries */
@media (max-width: 768px) {
    .mainContent {
        flex-direction: column;
        height: auto;
    }

    .mainForm {
        width: 100%;
        height: auto;
        padding: 20px;
    }

    .col-xl-5 {
        display: none;
    }

    .headerWeb {
        display: none;
    }

    .headerMovil {
        display: block;
        padding: 10px;
        text-align: center;
    }

    .headerMovil img {
        height: 28px;
    }
}

@media (min-width: 769px) {
    .headerMovil {
        display: none;
    }
}