html {
    scroll-behavior: smooth;
}

html,
body {
    overflow-x: hidden;
}

:root {
    --color-1: #FEA024;
    --color-2: #868954;
    --color-3: #333;
    --creamy-white: #f5f3e5;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: var(--color-2);
    color: var(--color-3);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    margin: 20px auto;
    padding: 20px;
    background-color: var(--color-3);
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.logo {
    width: 50px;
    height: auto;
    margin-right: 4rem;
}

nav ul {
    display: flex;
    justify-content: center;
    flex-grow: 1;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

nav ul a {
    text-decoration: none;
    color: #fff;
    font-weight: normal;
    font-size: 1rem;
    margin: 0 5rem;
}

#menu-toggle {
    display: none;
}

.responsive-nav {
    display: none;
}

hr {
    border: 0;
    height: 2px;
    background-color: var(--color-2);
    margin-top: 2rem;
}

.title-div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.title-div h1 {
    margin-bottom: 0;
}

.subtitle {
    color: var(--color-1);
    font-family: 'Dancing Script', cursive;
}

.title-div .subtitle {
    margin-top: 0;
    margin-bottom: 2rem;
    font-size: 2rem;
    letter-spacing: 0.2rem;
}

h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    color: var(--color-3);
    letter-spacing: 0.15rem;
}

h2 {
    font-family: 'Dancing Script', cursive;
    color: var(--color-3);
    font-size: 2.8rem;
    text-align: center;
    margin-top: 2rem;
}

h3 {
    font-family: 'Poppins', sans-serif;
    color: var(--color-3);
    font-size: 1.6rem;
    text-align: center;
    margin-top: 0;
    margin-bottom: 0;
}

.h3-container {
    display: flex;
    flex-direction: column;
    padding: 20px;
    margin: 0 10rem 0 10rem;
    text-align: center;
    background-color: var(--creamy-white);
    opacity: 0.85;
    border-radius: 0;
}

.h3-container p {
    font-size: 1.2rem;
    color: black;
}

h4 {
    font-family: 'Poppins', sans-serif;
    color: var(--color-3);
    font-size: 1.5rem;
    margin-top: 3rem;
    text-align: center;
}

main {
    width: 90%;
    margin: 20px auto;
    padding: 20px;
    background-image: url('../img/wallpapper.png');
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 0.9;
}

button {
    border-radius: 20px;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.1);
    /* Sombra en botones */
}

section {
    margin-bottom: 3rem;
    margin-top: 2rem;
}

p {
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 10px;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

.plan-description {
    font-size: 1.20rem;
    letter-spacing: 0.03rem;
}

.card {
    padding: 20px;
    margin: 0 10rem 0 10rem;
    height: auto;
    border-radius: 10px;
    text-align: center;
}

.card.color-1 {
    background-color: var(--color-1);
}

.card.color-2 {
    background-color: var(--color-2);
}

.card button {
    background-color: var(--color-3);
    color: #fff;
    font-size: 1em;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.card.color-1 button:hover {
    background-color: var(--color-2);
}

.card.color-2 button:hover {
    background-color: var(--color-1);
}

footer {
    background-color: var(--color-3);
    color: #fff;
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
}

footer b {
    font-size: 1.3rem;
}

footer p {
    font-size: 0.9em;
    margin-top: 10px;
}

.redes-sociales {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.redes-sociales a {
    font-size: 2.5rem;
    color: var(--color-1);
    margin: 2rem;
    text-decoration: none;
    transition: 0.3s;
}

.redes-sociales a:hover {
    color: var(--color-2);
}

.logo-footer {
    width: 3rem;
    height: 3rem;
}

.info-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.logo-texto {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

.correo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1em;
}

.correo i {
    font-size: 1.1rem;
}

.correo-send {
    color: inherit;
    text-decoration: none;
}

.correo-send a {
    color: var(--color-1);
}

/* POUP */

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.popup-container {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.popup-content {
    position: relative;
    width: 100%;
    max-width: 400px;
    padding: 25px;
    background: var(--creamy-white);
    border-radius: 15px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    margin: 0 auto;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: var(--color-3);
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--color-1);
}

.file-selected {
    color: green;
    font-weight: bold;
    cursor: pointer;
}

.popup-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--color-3);
}

.popup-content-input {
    width: 80%;
    padding: 10px;
    font-size: 1rem;
    border: 2px solid var(--color-2);
    border-radius: 8px;
    outline: none;
    transition: 0.3s;
    box-sizing: border-box;
}

.popup-content select {
    width: 80%;
    padding: 10px;
    font-size: 1rem;
    border: 2px solid var(--color-2);
    border-radius: 8px;
    outline: none;
    transition: 0.3s;
    box-sizing: border-box;
}

.popup-content input:focus,
.popup-content select:focus {
    border-color: var(--color-1);
    box-shadow: 0px 0px 5px rgba(254, 160, 36, 0.5);
}

.popup-content p {
    font-size: 0.85rem;
    margin: 6px 0;
}

.popup-content p span {
    font-weight: bold;
}

.popup-content-button {
    width: 100%;
    padding: 12px;
    font-size: 1.3rem;
    font-weight: bold;
    background: var(--color-1);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.3s;
    letter-spacing: 0.1rem;
}

.popup-content-button:hover {
    background: var(--color-2);
}

.popup-content .custom-file-label {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 1.5rem;
    margin-bottom: 0.1em;
    background-color: var(--color-2);
    color: white;
    width: 50%;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    font-size: 0.8rem;
    letter-spacing: 0.05rem;
}

.popup-content .custom-file-label:hover {
    background-color: var(--color-1);
}

.fileSpan {
    padding: 0 0.2rem 0.2rem 0.2rem;
    font-size: 0.7rem;
    margin-bottom: 1rem;
    text-align: center;
    display: inline-block;
}

/* CBU */

.cbuContainer {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.copy-button {
    padding: 0;
    background-color: transparent;
    margin-top: 0;
    border: none;
    font-size: 1rem;
}

.copy-button:hover {
    background-color: #e0e0e0;
    border-radius: 4px;
}

.span-value {
    color: var(--color-1);
}

/* PHONE */

.phone-container {
    width: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 0 auto;
}

.phone-container input,
.phone-container select {
    flex: 1;
    min-width: 40%;
    max-width: 50%;
    font-size: 0.8rem;
    border: 2px solid var(--color-2);
    border-radius: 8px;
    outline: none;
    transition: 0.3s;
}

/* CHECKBOX */

.checkbox-container {
    gap: 6px;
    margin-bottom: 1rem;
}

.label-checkbox {
    margin: 0;
    font-size: 0.85rem;
    letter-spacing: 0.05rem;
    width: 66%;
    color: var(--color-2);
}

.foreign-checkbox {
    appearance: none;
    width: 1rem;
    height: 1rem;
    padding: 0;
    margin: 0;
    margin-left: 1rem;
    border: 1px solid var(--color-2);
    border-radius: 4px;
    background: transparent;
    font-size: 1rem;
    align-items: end;
    transform: scale(1.6);
}

.foreign-checkbox:checked {
    background-color: transparent;
}

.foreign-checkbox:checked::after {
    content: '✔';
    font-size: 0.8rem;
    color: var(--color-1);
    position: absolute;
    top: -2px;
    left: 3px;
    font-weight: bold;
}

/* QUIEN SOY IMAGE */

.profile-container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    margin: 1rem auto;
    box-sizing: border-box;
}

.profile-img {
    width: 50%;
    object-fit: cover;
    border: none !important;
    background-color: transparent !important;
}

.profile-container p {
    margin-left: 5rem;
}

.text-container {
    width: 50%;
    text-align: left;
}

.text-container p {
    font-size: 1.5rem;
    color: #333;
}

/* OK CHECKBOX */

.ok-checkbox {
  transform: scale(1.6);
  cursor: pointer;
  display: inline-block;
  margin: 0 auto;
}

td[data-label="Reservado SI/NO"] {
  text-align: center;
  vertical-align: middle;
}

/* RESPONSIVE */

@media (max-width: 1100px) {

    main,
    card {
        padding: 10px;
    }

    h1 {
        font-size: 2rem;
        letter-spacing: 0;
    }

    .subtitle {
        font-size: 1.7rem;
    }

    .text-container {
        width: 50%;
        background-color: var(--creamy-white);
        opacity: 0.85;
        border-radius: 0;
    }

    .h3-container {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .h3-container p {
        font-size: 1rem;
    }

    .profile-img {
        width: 50%;
    }

    .profile-container {
        margin: 0;
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }

    .profile-container p {
        margin: 0;
        font-size: 1rem;
        text-align: center;
    }

    .card {
        padding: 0;
        margin: 0;
    }

    .card p {
        font-size: 1.2rem;
        text-align: center;
    }

    .card button {
        font-size: 0.8rem;
        margin-top: 0;
        margin-bottom: 1rem;
    }

    .plan-description {
        padding: 0.75rem;
    }

    nav {
        display: none;
    }

    .logo {
        margin-left: 3rem;
        height: 45px;
    }

    .menu-icon {
        font-size: 45px;
        color: var(--color-1);
        cursor: pointer;
        margin-right: 3rem;
        margin-bottom: 0.35rem;
    }

    .responsive-nav {
        position: relative;
        background-color: var(--color-3);
        display: flex;
        margin: 0 auto;
        margin-top: 10px;
        padding: 10px;
        width: 70%;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
        border-radius: 10px;
        align-items: center;
        justify-content: space-between;
    }

    .responsive-nav .logo {
        height: 50px;
        width: auto;
    }

    .responsive-menu {
        display: none;
        flex-direction: column;
        background-color: var(--color-3);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin-top: 5px;
        border-radius: 10px;
        transition: max-height 0.5s ease-out;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        z-index: 1000;
    }

    .responsive-menu li {
        padding: 10px;
        margin-right: 2rem;
        margin-bottom: 10px;
        text-align: center;
        font-size: 1rem;
    }

    .responsive-menu a {
        color: var(--creamy-white);
        font-size: 1rem;
        font-weight: bold;
        letter-spacing: 0.10rem;
        text-decoration: none;
        transition: background-color 0.3s, transform 0.2s;
    }
    
    .responsive-menu a:hover {
        background-color: var(--color-1);
        transform: scale(1.05);
    }

    #menu-toggle:checked+.logo+.menu-icon+.responsive-menu {
        display: flex;
    }
}


@media (max-width: 600px) {
    .responsive-menu a {
        font-size: 0.65rem;
    }

    .responsive-menu li {
        padding: 10px;
        margin-right: 2rem;
        margin-bottom: 10px;
        text-align: center;
        font-size: 0.65rem;
    }

    .responsive-nav {
        max-height: 45px;
    }

    .responsive-nav .logo {
        max-height: 45px;
        width: auto;
        margin-top: 0.2rem;
    }

    nav {
        display: none;
    }

    .title-div {
        margin-top: 1.5rem;
    }

    main,
    card {
        padding: 10px;
    }

    h1 {
        font-size: 2rem;
        letter-spacing: 0;
    }

    h2 {
        font-size: 1.6rem;
    }

    .subtitle {
        font-size: 1.7rem;
    }

    .logo {
        margin-bottom: 0.5rem;
    }

    .profile-img {
        width: 50%;
    }

    .profile-container {
        margin: 0;
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }

    .profile-container p {
        margin: 0;
        font-size: 0.65rem;
        text-align: center;
    }

    .text-container {
        width: 50%;
    }

    .h3-container {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .h3-container p {
        font-size: 1rem;
    }

    .card {
        padding: 0;
        margin: 0;
    }

    .card p {
        font-size: 1rem;
        text-align: center;
    }

    .card button {
        font-size: 0.8rem;
        margin-top: 0;
        margin-bottom: 1rem;
    }

    .plan-description {
        padding: 0.5rem;
    }

    .logo-footer {
        width: 2.5rem;
        height: 2.5rem;
    }

    .logo-texto {
        font-size: 0.9rem;
    }

    .popup {
        width: 100%;
        margin: 0 auto;
    }

    .popup-container {
        position: relative;
        align-items: center;
        width: 100%;
        margin: 0 auto;
    }

    .popup-content {
        width: 100%;
        margin: 0 auto;
        text-align: center;
        font-family: 'Poppins', sans-serif;
        overflow: scroll;
        max-height: 90vh;
    }

    .menu-icon {
        font-size: 35px;
        color: var(--color-1);
        cursor: pointer;
        margin-right: 3rem;
        margin-bottom: 0.35rem;
    }
}

@media (max-width: 450px) {

    .responsive-menu a {
        font-size: 0.65rem;
    }

    .responsive-menu li {
        padding: 10px;
        margin-right: 2rem;
        margin-bottom: 10px;
        text-align: center;
        font-size: 0.65rem;
    }

    .logo {
        font-size: 30px;
    }

    .title-div {
        margin-top: 1.5rem;
    }

    .card,
    main {
        padding: 10px;
        max-width: 400px;
    }

    h1 {
        font-size: 1.4rem;
        letter-spacing: 0;
    }

    h2 {
        font-size: 1.6rem;
    }

    .subtitle {
        font-size: 1.25rem;
    }

    nav {
        display: none;
        flex-direction: column;
        padding: 10px;
        margin: 10px;
        font-size: 0.5rem;
    }

    .profile-img {
        width: 50%;
    }

    .profile-container {
        margin: 0;
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }

    .profile-container p {
        margin: 0;
        font-size: 0.65rem;
        text-align: center;
    }

    .text-container {
        width: 50%;
    }

    .h3-container {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .h3-container p {
        font-size: 1rem;
    }

    .card {
        padding: 0;
        margin: 0;
    }

    .card p {
        font-size: 1rem;
        text-align: center;
    }

    .card button {
        font-size: 0.8rem;
        margin-top: 0;
        margin-bottom: 1rem;
    }

    .plan-description {
        padding: 0.5rem;
    }

    .logo-footer {
        width: 2rem;
        height: 2rem;
    }

    .logo-texto {
        font-size: 0.7rem;
        gap: 5px;
    }

    .popup {
        background-color: rgba(0, 0, 0, 0.5);
        width: 100%;
    }

    .popup-container {
        position: relative;
        align-items: center;
        width: 100%;
        max-width: 350px;
    }

    .popup-content {
        width: 100%;
        text-align: center;
        font-family: 'Poppins', sans-serif;
        padding: 1rem;
        overflow: scroll;
        max-height: 90vh;
    }

    .label-checkbox {
        font-size: 0.7rem;
    }
}