@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;500;700&family=Sansita+Swashed:wght@700&display=swap');

:root {
    --color-primary: #614385;
    --color-accent: #aa076b;
    --color-dark: #051635;
    --color-light: #dd9cc4;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.25);
    --radius-sm: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: 0.3s ease;

    /* Typography: Montserrat for body, Sansita Swashed for display headings */
    --font-display: 'Sansita Swashed', cursive;
    --font-body: 'Montserrat', sans-serif;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --heading-sm: clamp(1.5rem, 4vw, 2rem);
    --heading-md: clamp(2rem, 5vw, 2.75rem);
    --heading-lg: clamp(2.5rem, 6vw, 3.5rem);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100vw;
}

/* LOGIN MODAL */
#loginCheckbox {
    display: none;
}

.loginClose {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 28px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}

.loginClose:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.loginBlack {
    opacity: 0;
    visibility: hidden;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 100;
    position: fixed;
    inset: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loginContent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background-color: #fff;
    box-shadow: var(--shadow-card);
    width: 380px;
    max-width: 95vw;
    min-height: 420px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

#loginCheckbox:checked ~ .loginBlack {
    opacity: 1;
    visibility: visible;
}

#loginCheckbox:checked ~ .loginBlack .loginContent {
    transform: translate(-50%, -50%) scale(1);
}

.loginHeader {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    height: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: 600;
}

.loginHeader h2 {
    font-family: var(--font-body);
    font-size: var(--text-2xl);
    font-weight: 600;
}

.loginForm {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 36px 24px 24px;
    flex: 1;
}

.loginUserName {
    padding: 20px;
    display: flex;
}

.loginUserName i {
    background-color: #614385;
    color: white;
    padding: 15px 16px 15px 15px;
    border-radius: 5px;
    margin-right: -5px;
}

#userName {
    background-color: rgb(236, 236, 236);
    border: 1px solid #614385;
    width: 200px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    padding: 10px;
    outline: none;
    transition: background-color 0.5s;
}

#userName:focus {
    background-color: rgb(252, 255, 224);
}

.loginUserPassword {
    padding: 20px;
    display: flex;
}

.loginUserPassword i {
    background-color: #614385;
    color: white;
    padding: 15px 16px 15px 15px;
    border-radius: 5px;
    margin-right: -5px;
}

#userPassword {
    background-color: rgb(236, 236, 236);
    border: 1px solid #614385;
    width: 200px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    padding: 10px;
    outline: none;
    transition: background-color 0.5s;
}

#userPassword:focus {
    background-color: rgb(252, 255, 224);
}

.loginUserSubmit {
    padding: 10px;
    width: 240px;
    border-radius: 5px;
    border: 0px;
    cursor: pointer;
    background-color: #614385;
    color: white;
    margin-top: 15px;
    transition: background-color 0.5s;
}

.loginUserSubmit:hover {
    background-color: #412366;
}

.loginUserResetPassword {
    margin-top: 20px;
    text-decoration: none;
    color: rgb(37, 37, 37);
}

.loginUserResetPassword:hover {
    color: rgb(59, 59, 59);
}

.loginFooter {
    background: linear-gradient(135deg, var(--color-primary) 0%, #4d3070 100%);
    height: 56px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 0;
    left: 0;
}

.loginFooter a {
    text-decoration: none;
    color: white;
}

.loginFooter a:hover {
    color: rgb(209, 209, 209);
}

/* HEADER */
.page-header {
    background: linear-gradient(90deg, var(--color-primary) 0%, #5a3d7a 50%, var(--color-primary) 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    box-shadow: var(--shadow-soft);
    z-index: 50;
    backdrop-filter: blur(10px);
}

.page-header__logobox {
    padding: 10px 0 20px clamp(1rem, 4vw, 3rem);
}

.page-header__logolink {
    text-decoration: none;
}

.page-header__logotitle {
    font-family: var(--font-display);
    color: #ffffff;
    text-shadow: 3px 3px 3px rgba(161, 0, 108, 1);
    font-size: var(--heading-sm);
}

.page-header__logotitle:hover {
    animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

.page-header__navbox {
    padding: 5px;
    display: flex;
}

.page-header__navlist {
    display: flex;
}

.page-header__navitem {
    list-style: none;
    padding: 10px;
}

.page-header__navlink {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.95);
    font-size: var(--text-lg);
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    position: relative;
    transition: color var(--transition);
}

.page-header__navlink::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    border-radius: 2px;
    transition: transform var(--transition);
}

.page-header__navlink:hover {
    color: #fff;
}

.page-header__navlink:hover::after {
    transform: scaleX(1);
}

.page-header__buttonlogin {
    text-decoration: none;
    color: #fff;
    font-size: var(--text-lg);
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.9);
    background: var(--color-accent);
    padding: 0 20px 0 18px;
    margin-right: 50px;
    margin-left: 30px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 2px 12px rgba(170, 7, 107, 0.3);
}

.fa-user-circle-size {
    font-size: 40px;
    margin-right: -1px;
    margin-left: 10px;
}

.page-header__buttonlogin span {
    position: relative;
    transition: 0.5s;
}

.page-header__buttonlogin span:after {
    content: '\00bb';
    position: absolute;
    opacity: 0;
    top: 0;
    right: -20px;
    transition: 0.5s;
}

.page-header__buttonlogin:hover span {
    padding-right: 25px;
}

.page-header__buttonlogin:hover span:after {
    opacity: 1;
    right: 0;
}

.page-header__buttonlogin:hover {
    box-shadow: 0 4px 20px rgba(170, 7, 107, 0.5);
    background: #c21889;
    transform: translateY(-1px);
    border-color: #fff;
}

/* MOBILE SIDEBAR */
.page-sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 2;
    top: 0;
    left: 0;
    background-color: rgb(66, 1, 66);
    background: linear-gradient(90deg, rgba(98,6,95,1) 0%, rgba(98,6,95,1) 0%, rgba(78,6,98,1) 100%);
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
}

.page-sidebar a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: var(--text-xl);
    color: rgb(148, 148, 148);
    display: block;
    transition: 0.3s;
}

.page-sidebar a:hover {
    color: #ffffff;
}

.page-sidebar .page-sidebar__closebuttom {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}

.page-header__sidebar-openbuttom {
    font-size: var(--text-lg);
    cursor: pointer;
    background-color: rgb(161, 0, 108);
    border: 3px solid rgb(255, 255, 255);
    border-radius: 100px;
    color: white;
    padding: 10px 15px;
    margin-right: 50px;
    display: none;
}

.page-header__sidebar-openbuttom:hover {
    box-shadow: -2px 3px 12px -2px rgba(0,0,0,0.6);
    background-color: rgb(194, 24, 137);
}

@media only screen and (max-height: 450px) {
    .page-sidebar {
        padding-top: 15px;
    }
    .page-sidebar a {
        font-size: 18px;
    }
}

/* RESPONSIVE HEADER */
@media only screen and (max-width: 1000px) {
    .page-header__navlist {
        display: none;
    }
    .page-header__buttonlogin {
        display: none;
    }
    .page-header__sidebar-openbuttom {
        display: inline;
    }
}

@media only screen and (max-width: 450px) {
    .page-header__logobox {
        padding: 10px 0px 20px 20px;
    }
    .page-header__sidebar-openbuttom {
        margin-right: 20px;
    }
}

@media only screen and (max-width: 375px) {
    .page-header__logobox {
        padding: 10px 0px 20px 5px;
    }
    .page-header__sidebar-openbuttom {
        margin-right: 0px;
    }
}

/* FOOTER (from seccion5) */
.footer {
    background: linear-gradient(135deg, var(--color-accent) 0%, #8a0660 100%);
    color: #fff;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px clamp(1.25rem, 5vw, 3rem) 30px;
    position: relative;
    width: 100%;
    overflow-x: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.footer p {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--text-base);
}

.footer__info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.footer__email {
    border-radius: 50px;
    width: 220px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 0 20px;
    font-size: var(--text-base);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: border-color var(--transition), background var(--transition);
}

.footer__email::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.footer__email:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.15);
}

.footer__boton {
    border-radius: 50px;
    margin-left: -40px;
    height: 44px;
    width: 110px;
    background: var(--color-primary);
    color: white;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all var(--transition);
}

.footer__boton:hover {
    background: #fff;
    color: var(--color-accent);
    transform: translateY(-1px);
}

.footer__copyright {
    text-align: center;
    padding-bottom: 20px;
}

@media screen and (max-width: 960px) {
    .footer__info {
        flex-direction: column;
        gap: 20px;
    }
    .footer__boton {
        margin-left: 0;
        margin-top: 0;
        width: 220px;
    }
    .footer__email::placeholder {
        text-align: center;
    }
}

/* CONTAINER (for seccion5) */
.container {
    padding: 0 clamp(1.25rem, 5vw, 3.125rem);
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

main {
    overflow-x: hidden;
    max-width: 100%;
}

/* Section transitions */
main > section {
    position: relative;
}

main > section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    pointer-events: none;
}

main > section:last-of-type::after {
    display: none;
}
