/* variables */
:root {
    --color-blue-1: #0963AD;
    --color-red-1: #E73C46;
    --font-size-xs: 10px;
    --font-size-sm: 12px;
    --font-size-md: 14px;
    --font-size-lg: 18px;
    --font-size-xl: 24px;
    --font-size-xxl: 36px;
    --font-size-d1: 38px;
    --max-width: 1280px;
}

/* reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    color: inherit;
    text-decoration: none;
    outline: none;
}

li {
    list-style: none;
}

body {
    font-size: var(--font-size-md);
    font-family: 'Poppins', sans-serif;
    background-color: #F1F5FB;
}

.list-dot {
    list-style: disc;
    margin-left: 1rem;
}

.table-inner {
    width: 100%;
    max-width: 320px;
    overflow-x: scroll;
}

@media screen and (min-width: 700px) {
    .table-inner {
        max-width: 600px;
    }
}

@media screen and (min-width: 1280px) {
    .table-inner {
        overflow-x: auto;
        max-width: 100%;
    }
}

.table-minimal {
    border-collapse: collapse;
}

    .table-minimal td, .table-minimal th {
        border: 1px solid black;
        padding: .5rem;
    }
/* header */

.main-header {
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: white;
}

.header-inner {
    margin-inline: auto;
    max-width: var(--max-width);
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.header-logos {
    display: flex;
    gap: 1rem;
}

.header-logo {
    display: block;
    height: 80px;
}

.header-logo-ipsos {
    display: none;
    width: 30px;
}

    .header-logo-ipsos img {
        display: block;
        width: 100%;
    }
/* nav */
.header-nav {
    position: relative;
}

.btn-menu-nav {
    display: block;
    width: 24px;
    height: 24px;
    border: none;
    background-color: transparent;
}

    .btn-menu-nav path {
        stroke: var(--color-blue-1);
    }

.nav-list {
    display: flex;
    position: fixed;
    flex-direction: column;
    right: 0;
    top: 0;
    z-index: 10;
    align-items: center;
    justify-content: center;
    transform-origin: right;
    transition: transform .3s;
    transform: translateX(1000px);
    width: 0;
    gap: 1rem;
    box-shadow: 1px 0 8px 2px rgba(0,0,0,.2);
}


.nav-link {
    display: flex;
    min-width: 120px;
    align-items: center;
    justify-content: center;
    height: 60px;
    padding: 1rem;
    color: var(--color-blue-1);
    font-weight: 700;
    transition: all .3s;
    border-radius: 4px;
}

.nav-list.active {
    display: flex;
    width: 300px;
    padding-block: 1rem;
    padding-inline: 2rem;
    height: 100%;
    background-color: white;
    align-items: flex-start;
    justify-content: flex-start;
    transform: translateX(0);
}

    .nav-list.active .nav-link {
        justify-content: flex-start;
    }

.nav-link:hover {
    background-color: #6BCCD6;
}


.nav-list.active .nav-link:hover {
    background-color: transparent;
}

@media screen and (min-width: 1280px) {
    .header-inner {
        grid-template-columns: auto 1fr auto;
    }

    .btn-menu-nav {
        display: none;
    }

    .nav-list, .nav-list.active {
        position: relative;
        width: 100%;
        transform: translateX(0);
        display: flex;
        box-shadow: none;
        flex-direction: row;
    }

    .header-logo-ipsos {
        display: block;
    }
}

/* content */

.main-content {
    max-width: var(--max-width);
    margin-inline: auto;
    display: grid;
    gap: 1rem;
    padding-top: 2rem;
}

.site-section {
    min-height: 700px;
    background-color: #F4F7FC;
    padding-inline: .5rem;
    padding-top: 2rem;
    padding-bottom: 5rem;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: grid;
    align-items: center;
    gap: 2rem;
    position: relative;
}

@media screen and (min-width: 520px) {
    .site-section {
        padding-inline: 1rem;
    }
}

.section-indicator {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(-80px);
}

.section-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    align-self: end;
    padding-bottom: 2rem;
}

.section-subtitle {
    font-size: var(--font-size-md);
    font-weight: 700;
    align-self: end;
    padding-bottom: 2rem;
}

.section-text {
    font-size: var(--font-size-md);
    /* max-width: 50ch; */
    line-height: 20px;
    align-self: start;
}

.site-section-header {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.507);
    padding-block: 1rem;
}

    .site-section-header .section-title {
        text-align: center;
        font-size: var(--font-size-lg);
        align-self: start;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .site-section-header .section-text {
        text-align: center;
        width: 100%;
        margin: auto;
    }

/* .section-image{
    display: block;
    height: 450px;
} */

.site-section {
    background-color: #efefef;
}


/* search */

.form-search {
    max-width: 480px;
    display: flex;
    gap: .5rem;
    margin-top: 1rem;
}

.input-search {
    flex-grow: 1;
    padding: .5rem;
    border: 1px solid rgb(207, 207, 207);
    border-radius: 4px;
    outline: none;
}

    .input-search:focus {
        border: 1px solid #5d83ea;
    }

.btn {
    padding-inline: 1rem;
    padding-block: .5rem;
    border-radius: 4px;
}

.btn-primary {
    background-color: #3462E6;
    border: none;
    color: white;
}

    .btn-primary:hover {
        background-color: #2147b0;
    }

/* drop list */

.drop-list-btn {
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    padding: .5rem;
    border: none;
    border-bottom: 1px solid rgb(218, 218, 218);
    background-color: rgba(255, 255, 255, 0.6);
}

    .drop-list-btn:hover {
        background-color: rgba(255, 255, 255, 0.696);
    }

.btn-icon {
    fill: #3462E6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-text {
    text-align: left;
    font-weight: 700;
    font-size: var(--font-size-md);
}

@media screen and (min-width: 1024px) {
    .btn-text {
        font-size: var(--font-size-lg);
    }

    .site-section-header .section-title {
        font-size: var(--font-size-xl);
    }

    .section-title {
        font-size: var(--font-size-xl);
    }

    .section-text {
        font-size: var(--font-size-lg);
    }
}

.drop-list-contet {
    background-color: rgba(255, 255, 255, 0.6);
    opacity: 0;
    transform: scaleY(0);
    transition: transform .3s;
    transform-origin: top;
    height: 0;
}

.active .drop-list-contet {
    height: auto;
    opacity: 1;
    transform: scaleY(1);
    padding-inline: 3rem;
    padding-block: 1rem;
}

/* cards enc */

.site-section-twin {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: "item1"
        "item2";
    justify-content: start;
    gap: 2rem;
}

.twin-item {
    display: grid;
    gap: 3rem;
    width: 100%;
    justify-content: center;
    order: 1;
}

    .twin-item:first-child {
        grid-area: item1;
    }

    .twin-item:last-child {
        grid-area: item2;
    }



.twin-item-img {
    display: block;
    width: 100%;
}

.twin-item:first-child {
    justify-self: center;
}

@media screen and (min-width: 1024px) {
    .site-section-twin {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: "item1 item2"
    }

    .site-section:nth-of-type(even) .twin-item:first-child {
        grid-area: item2;
    }

    .site-section:nth-of-type(even) .twin-item:last-child {
        grid-area: item1;
    }

    .twin-item > img {
        width: 100%;
    }
}

.enc-card {
    width: 300px;
    display: grid;
    /* background-color: white; */
    justify-items: center;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 2px 0 4px 2px rgba(0,0,0,.4);
    background: linear-gradient(200deg, white 40%, #3462E6 40%);
    min-height: 480px;
    justify-self: center;
}

    .enc-card.empty {
        background: linear-gradient(200deg, white 75%, rgb(241, 41, 41) 75.5%);
    }

        .enc-card.empty::after {
            content: "No existe un encuestador para la busqueda actual";
            color: rgb(196, 196, 196);
            display: flex;
            justify-content: center;
            text-align: center;
            align-items: center;
        }

    .enc-card img {
        max-width: 100%;
        max-height: 250px;
    }



.enc-card-avatar {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.enc-card-name, .enc-card-rut {
    text-transform: uppercase;
    font-size: var(--font-size-lg);
    color: white;
    justify-self: start;
    padding-top: 1rem;
}

.enc-card-role {
    color: rgb(232, 232, 232);
    justify-self: start;
    font-size: var(--font-size-sm);
}


.enc-card-logo {
    width: 80%;
    padding: .25rem;
    /* border: 1px solid rgb(217, 217, 217); */
    border-radius: 4px;
}

/* contact */

.cards-container {
    display: grid;
    gap: 1rem;
}

    .cards-container > * {
        flex-shrink: 1;
        flex-grow: 1;
        width: 100%;
    }

.contact-card {
    background-color: white;
    padding: 2rem;
    border-radius: 4px;
}

.contact-card-header {
    padding-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.contact-avatar {
    width: 34px;
    display: block;
    border-radius: 2rem;
}


.contact-name {
    flex-grow: 1;
}

.contact-text {
    display: block;
    padding-bottom: .5rem;
    font-size: var(--font-size-md);
}

.contact-link {
    color: #2147b0;
}

.news-link {
    display: inline-flex;
    margin-bottom: .5rem;
    font-weight: 600;
}

    .news-link:hover {
        text-decoration: underline;
    }

.section-video {
    width: 100%;
    border-radius: 8px;
}

.card-chart {
    display: grid;
    gap: 1rem;
    justify-content: center;
}

.drop-list-contet p {
    padding-bottom: 1rem;
}

.drop-list-contet h3 {
    padding-bottom: 1rem;
    text-align: center;
    font-weight: 400;
}

.drop-list-contet h4 {
    font-weight: 400;
}

.card-chart-image {
    width: 100%;
}

.card-chart-ref {
    justify-self: right;
}

.text-center {
    text-align: center;
}

.section-text-accent {
    font-size: var(--font-size-lg);
    font-weight: 700;
    padding-top: 1rem;
}

.hover-img {
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
}

    .hover-img img {
        transition: all .3s;
        transition-timing-function: ease-in-out;
    }

    .hover-img:hover img {
        transform: scale(1.2);
    }

.order-link-list li {
    list-style: revert;
    margin: revert;
    padding: revert;
    margin-left: 1rem;
    padding-left: .25rem;
}

    .order-link-list li:not(:first-child) {
        padding-top: .5rem;
    }

.align-self-top {
    align-self: start;
}

.link {
    color: var(--color-blue-1);
}

.order-link-list {
    width: 100%;
    overflow: hidden;
    max-height: 500px;
    overflow-y: auto;
    padding-inline: 1rem;
}

.letter-item img {
    display: block;
    width: 100%;
}

.letters-section {
    display: grid;
    grid-template-columns: 1fr;
    justify-items:center;
    gap: 2rem;
}

.letter-item embed {
    width: 100%;
    aspect-ratio: 1/1.5;
}
.letter-item{
    max-width: 400px;
}
.letter-item img {
    display: block;
    width: 100%;
}

.difusion-image{
    max-width: 100%;
}

/* General Styles */
.page-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: center;
}

/* Form Styles */
.form-container {
    margin-bottom: 2rem;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1rem;
}

.form-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

/* Table Styles */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}

    .table th, .table td {
        border: 1px solid #ddd;
        padding: 0.75rem;
        text-align: left;
    }

    .table th {
        background-color: #f4f4f4;
        font-weight: bold;
    }

.table-img {
    width: 50px;
    height: auto;
    border-radius: 4px;
}

.search-form {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

    .search-form .form-group {
        flex: 1;
        min-width: 200px;
    }

    .search-form .btn {
        align-self: flex-end;
    }

/* Login Page Styles */
.login-container {
    max-width: 400px;
    margin: 3rem auto;
    padding: 2rem 2.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.login-container h1 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 700;
}

.login-container form {
    width: 100%;
}

.login-container .form-floating {
    margin-bottom: 1.25rem;
}

.login-container .btn-primary {
    width: 100%;
    margin-top: 1rem;
}

.login-container .checkbox {
    margin-bottom: 1rem;
}

.login-container .text-danger {
    font-size: 0.95rem;
}

.login-container .form-label {
    font-weight: 500;
}

.login-container .links {
    margin-top: 1.5rem;
    text-align: center;
}

.login-container .links p {
    margin-bottom: 0.5rem;
}

@media (max-width: 600px) {
    .login-container {
        padding: 1rem;
    }
}

/* Opcional: Ajusta el contenedor de login en el layout de Bootstrap */
.row > .col-md-4, .row > .col-md-6 {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.btn:disabled{
    opacity: .3;
    filter: saturate(0);
    pointer-events: none;
}