:root {
    --light-brown: #f8f4ec;
    --light-yellow: #fefbf0;
    --medium-brown: #e8dfca;
    --dark-brown: #7a6240;
    --accent-brown: #a68a5f;
    --text-color: #2c2416;
    --text-light: #5a523f;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.2);
    --border-radius: clamp(20px, 2vw, 30px);
    --border-radius-small: clamp(10px, 1vw, 15px);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html {
    font-size: clamp(16px, 1.5vw, 20px);
    scroll-behavior: smooth;
}

body {
    font-family: 'Crimson Text', serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--light-brown);
    overflow-x: hidden;
    text-align: justify;
    min-width: 320px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Crimson Text', serif;
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
}

p,
li,
span,
div {
    text-align: justify;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.language-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s ease;
    pointer-events: none;
}

.language-toggle.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.language-toggle.hidden {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 17px 20px;
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--dark-brown);
    border: none;
    border-radius: var(--border-radius);
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 6px 12px var(--shadow);
    backdrop-filter: blur(10px);
    border: 2px solid var(--accent-brown);
    min-width: 120px;
    justify-content: center;
}

.lang-btn:hover {
    background-color: var(--white);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px var(--shadow-hover);
}

/* Flex container ADDED BY PETER */
.lang-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Signup button styling ADDED BY PETER */
.signup-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: var(--dark-brown);
    color: var(--white);
    border-radius: var(--border-radius);
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 12px var(--shadow);
    transition: var(--transition);
    border: 2px solid var(--accent-brown);
}

/* Signup button styling ADDED BY PETER */
.signup-btn:hover {
    background-color: var(--accent-brown);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px var(--shadow-hover);
}

/* Signup button styling ADDED BY PETER */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--light-brown);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid var(--medium-brown);
    border-top-color: var(--accent-brown);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 5;
    display: none;
}

.video-container.loading .video-loading {
    display: block;
}

.video-container.loading .play-button {
    opacity: 0.5;
}

.container {
    width: 100%;
    max-width: min(1400px, 95vw);
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 3rem);
    position: relative;
}

section {
    padding: clamp(3rem, 16vh, 7rem) 0;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

section.animated {
    opacity: 1;
}

section:nth-child(even) {
    background-color: var(--light-yellow);
}

section:nth-child(odd):not(.hero) {
    background-color: var(--light-brown);
}

.hero {
    height: 100vh;
    min-height: 600px;
    max-height: 1200px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    padding: 0;
    opacity: 1;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.8s ease-in-out;
    transform: scale(1.25);
    animation: zoomEffect 25s infinite;
}

.slide.active {
    opacity: 1;
    transform: scale(1.05);
}

@keyframes zoomEffect {
    0% {
        transform: scale(1.25);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1.25);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 clamp(1rem, 4vw, 4rem);
    flex-wrap: wrap;
}

.book-cover {
    width: clamp(350px, 50vw, 385px);
    height: clamp(500px, 80vw, 600px);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    /*border: clamp(4px, 0.8vw, 8px) solid var(--white);*/
    /*transform: perspective(1000px) rotateY(-10deg);*/
    transition: var(--transition);
    position: relative;
    z-index: 3;
    flex-shrink: 0;
    margin: clamp(1rem, 2vw, 2rem);
}

.book-cover:hover {
    transform: perspective(1000px) rotateY(-5deg) scale(1.05);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: min(900px, 50vw);
    padding: clamp(2rem, 4vw, 3rem);
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: var(--border-radius);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 1s ease 0.3s both;
    flex: 1;
    min-width: min(300px, 100%);
}

.hero h1 {
    font-size: clamp(2.5rem, 2vw, 5.2rem);
    margin-bottom: clamp(1rem, 2vh, 1.5rem);
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.7);
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
    animation: fadeInUp 0.8s ease 0.5s both;
}

.hero-subtitle {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2vh, 1.5rem);
    margin-bottom: clamp(1.2rem, 4vh, 3rem);
    animation: fadeInUp 0.8s ease 0.7s both;
}

.hero-subtitle p {
    font-size: clamp(1rem, 1.2vw, 1.6rem);
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
    max-width: min(800px, 100%);
    text-align: justify;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    padding: clamp(0.5rem, 1.5vh, 1.2rem) clamp(1.5rem, 3vw, 3rem);
    background-color: var(--dark-brown);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-size: clamp(1rem, 1.3vw, 1.4rem);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 6px 12px var(--shadow);
    letter-spacing: 0.5px;
    min-width: max-content;
}

.btn:hover {
    background-color: var(--accent-brown);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 20px var(--shadow-hover);
    animation: pulse 1s ease infinite;
}

.content-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(500px, 100%), 1fr));
    gap: clamp(1.5rem, 3vw, 3rem);
    margin-top: 5rem;
}

.content-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: clamp(2rem, 3vw, 3rem) clamp(1.5rem, 2.5vw, 2.5rem);
    text-align: center;
    box-shadow: 0 10px 30px var(--shadow);
    transition: var(--transition);
    border: 2px solid var(--medium-brown);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.content-card:nth-child(1) {
    animation-delay: 0.2s;
}

.content-card:nth-child(2) {
    animation-delay: 0.4s;
}

.content-card:nth-child(3) {
    animation-delay: 0.6s;
}

.content-card:nth-child(4) {
    animation-delay: 0.8s;
}

.content-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 40px var(--shadow-hover);
    border-color: var(--accent-brown);
}

.card-icon {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: var(--accent-brown);
    margin-bottom: clamp(1rem, 2vh, 1.5rem);
    height: clamp(60px, 10vh, 80px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-card h3 {
    font-size: clamp(1.5rem, 2vw, 1.8rem);
    margin-bottom: clamp(1rem, 2vh, 1.5rem);
    color: var(--dark-brown);
    text-align: center;
}

.content-card p {
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: clamp(1.5rem, 3vh, 2rem);
    text-align: center;
}

.content-section {
    display: flex;
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--accent-brown);
}

.content-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.content-section.reverse {
    flex-direction: row-reverse;
}

.content-text,
.content-media {
    flex: 1;
    min-width: 0;
}

.content-text h2 {
    font-size: clamp(1.8rem, 3vw, 3rem);
    margin-bottom: clamp(1.5rem, 3vh, 2rem);
    color: var(--dark-brown);
    position: relative;
    padding-bottom: 1rem;
    animation: fadeInUp 0.6s ease both;
}

.content-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: clamp(50px, 8vw, 80px);
    height: 4px;
    background-color: var(--accent-brown);
    border-radius: 2px;
    animation: widthGrow 0.8s ease 0.3s both;
}

@keyframes widthGrow {
    from {
        width: 0;
    }

    to {
        width: clamp(50px, 8vw, 80px);
    }
}

.content-text p {
    font-size: clamp(1.1rem, 1.5vw, 1.2rem);
    line-height: 1.5;
    color: var(--text-light);
    margin-bottom: clamp(1.2rem, 2vh, 1.8rem);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.content-text p:nth-child(1) {
    animation-delay: 0.2s;
}

.content-text p:nth-child(2) {
    animation-delay: 0.4s;
}

.content-text p:nth-child(3) {
    animation-delay: 0.6s;
}

.video-container {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 15px 35px var(--shadow);
    background-color: var(--medium-brown);
    aspect-ratio: 16/9;
    border: clamp(4px, 0.8vw, 8px) solid var(--white);
    transform: perspective(1000px) rotateY(0deg);
    transition: all 0.5s ease;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.5s both;
    min-width: 0;
}

.video-container:hover {
    transform: perspective(1000px) rotateY(5deg) scale(1.02);
    box-shadow: 0 25px 50px var(--shadow-hover);
}

.video-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: all 0.5s ease;
}

.video-container:hover .video-cover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    z-index: 3;
}

.video-placeholder:hover {
    background-color: transparent;
}

.play-button {
    width: clamp(60px, 10vw, 100px);
    height: clamp(60px, 10vw, 100px);
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-brown);
    font-size: clamp(1.5rem, 3vw, 3rem);
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    z-index: 4;
    animation: float 3s ease-in-out infinite;
}

.video-placeholder:hover .play-button {
    transform: scale(1.15);
    background-color: var(--white);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
    animation: pulse 0.5s ease;
}

.video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4));
    border-radius: var(--border-radius);
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.video-container:hover::before {
    opacity: 0.7;
}

.video-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.video-popup.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.popup-content {
    position: relative;
    width: 95%;
    max-width: min(1400px, 95vw);
    background-color: #000;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.4s ease;
}

.close-popup {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: clamp(40px, 5vw, 50px);
    height: clamp(40px, 5vw, 50px);
    border-radius: 50%;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.close-popup:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg) scale(1.1);
}

.popup-video {
    width: 100%;
    display: block;
    border-radius: var(--border-radius-small);
}

footer {
    background-color: var(--dark-brown);
    color: var(--white);
    padding: clamp(3rem, 6vh, 4rem) 0 clamp(2rem, 4vh, 3rem);
    opacity: 0;
    animation: fadeIn 1s ease 0.3s forwards;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: clamp(2rem, 4vw, 8rem);
    margin-bottom: clamp(1.5rem, 3vh, 2rem);
}

.footer-section {
    flex: 1;
    min-width: min(250px, 100%);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.footer-section:nth-child(1) {
    animation-delay: 0.4s;
}

.footer-section:nth-child(2) {
    animation-delay: 0.5s;
}

.footer-section:nth-child(3) {
    animation-delay: 0.6s;
}

.footer-section h3 {
    font-size: clamp(1.2rem, 1.8vw, 1.5rem);
    margin-bottom: clamp(1rem, 2vh, 1.5rem);
    color: var(--light-yellow);
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: clamp(30px, 5vw, 50px);
    height: 3px;
    background-color: var(--accent-brown);
    border-radius: 2px;
}

.footer-section p,
.footer-section li {
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    line-height: 1.8;
    margin-bottom: clamp(0.8rem, 1.5vh, 1rem);
    color: rgba(255, 255, 255, 0.85);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul a {
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-section li {
    margin-bottom: 0.8rem;
    transform: translateX(0);
    transition: var(--transition);
}

.footer-section li:hover {
    transform: translateX(10px);
}

.footer-section li:hover a {
    color: var(--light-yellow);
}

.footer-bottom {
    text-align: center;
    padding-top: clamp(1.5rem, 3vh, 2rem);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.7);
    opacity: 0;
    animation: fadeIn 0.8s ease 0.8s forwards;
}

.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.scroll-animate.animated {
    opacity: 1;
    transform: translateY(0);
}

@media screen and (max-width: 1425px) {
    .container {
        max-width: min(1300px, 98vw);
        padding: 0 clamp(0.8rem, 2.5vw, 2.5rem);
    }

    .content-cards {
        grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    }

    .hero-overlay {
        flex-wrap: wrap;
        justify-content: center;
        gap: clamp(2rem, 4vh, 3rem);
    }

    .book-cover {
        width: clamp(220px, 20vw, 350px);
        height: clamp(300px, 65vh, 450px);
        order: 2;
    }

    .hero-content {
        max-width: min(800px, 90vw);
        order: 1;
    }
}

@media screen and (max-width: 1220px) {
    html {
        font-size: clamp(14px, 1.8vw, 18px);
    }

    .container {
        max-width: min(1200px, 99vw);
        padding: 0 clamp(0.5rem, 2vw, 2rem);
    }

    .content-section {
        flex-direction: column;
        gap: clamp(2rem, 4vh, 3rem);
    }

    .content-text,
    .content-media {
        width: 100%;
    }

    .hero-overlay {
        flex-direction: column;
        align-items: center;
    }

    .book-cover {
        width: clamp(200px, 20vw, 300px);
        height: clamp(330px, 45vh, 400px);
        margin-bottom: clamp(2rem, 4vh, 3rem);
    }

    .hero-content {
        max-width: min(500px, 95vw);
        max-height: min(350px, 95vh);
    }
}

@media screen and (max-width: 1067px) {
    html {
        font-size: clamp(13px, 2vw, 16px);
    }

    .container {
        max-width: 100vw;
        padding: 0 clamp(0.5rem, 1.5vw, 1.5rem);
    }

    .hero {
        min-height: 500px;
        max-height: 800px;
    }

    .content-cards {
        grid-template-columns: 1fr;
        gap: clamp(1rem, 2vh, 1.5rem);
    }

    .btn {
        padding: clamp(0.7rem, 1.2vh, 0.9rem) clamp(1.5rem, 2.5vw, 2rem);
        font-size: clamp(0.9rem, 1.1vw, 1.1rem);
    }

    .lang-btn {
        min-width: 100px;
        padding: 10px 16px;
    }

    .book-cover {
        width: clamp(180px, 30vw, 200px);
        height: clamp(300px, 40vh, 350px);
    }
}

@media screen and (max-width: 800px) {
    body {
        overflow-x: auto;
    }

    .container {
        padding: 0 1rem;
    }

    section {
        padding: clamp(2rem, 6vh, 4rem) 0;
    }

    .hero-content {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }

    .hero h1 {
        font-size: clamp(2rem, 4vw, 2.5rem);
    }

    .play-button {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    p,
    li,
    span {
        font-size: max(12px, 1.6vw) !important;
        line-height: 1.6 !important;
    }

    h2 {
        font-size: max(1.5rem, 2.5vw) !important;
    }

    h3 {
        font-size: max(1.2rem, 2vw) !important;
    }

    .book-cover {
        width: clamp(150px, 40vw, 200px);
        height: clamp(200px, 35vh, 280px);
        margin: 1rem auto;
    }
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: clamp(1.5rem, 3vh, 2.5rem);
    }

    .footer-section {
        min-width: 100%;
    }

    .language-toggle {
        top: 15px;
        right: 15px;
    }

    .lang-btn {
        padding: 8px 14px;
        font-size: 0.9rem;
        min-width: 90px;
    }

    .hero-overlay {
        padding: 1rem;
    }

    .book-cover {
        display: block !important;
        width: 160px;
        height: 220px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.8rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .content-card {
        padding: 1.5rem 1.2rem;
    }

    .lang-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
        min-width: 80px;
    }

    .book-cover {
        width: 140px;
        height: 190px;
        border-width: 4px;
    }
}

body.zoom-level-high .content-section {
    flex-direction: column;
}

body.zoom-level-high .content-cards {
    grid-template-columns: 1fr;
}

body.zoom-level-high .footer-content {
    flex-direction: column;
}

body.zoom-level-high .book-cover,
body.zoom-level-extreme .book-cover {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#footerPrivacyLink,
#footerTermsLink,
#footerCookieLink {
    text-decoration: none;
    color: var(--light-brown);
}

/* CTA Registration Section Styles */
.cta-registration {
    margin-top: clamp(2rem, 4vh, 3rem);
    margin-bottom: clamp(2rem, 4vh, 3rem);
    padding: clamp(2rem, 4vw, 3.5rem);
    background: linear-gradient(135deg, var(--dark-brown) 0%, #5a4530 50%, var(--accent-brown) 100%);
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.8s forwards;
}

.cta-registration::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: shimmer 8s linear infinite;
}

@keyframes shimmer {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.cta-registration-content {
    position: relative;
    z-index: 2;
}

.cta-registration h3 {
    color: var(--white);
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    margin-bottom: clamp(0.8rem, 1.5vh, 1.2rem);
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-registration p {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    margin-bottom: clamp(1.5rem, 2.5vh, 2rem);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.cta-registration .btn-register {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: clamp(0.8rem, 1.5vh, 1.2rem) clamp(2rem, 4vw, 3.5rem);
    background: linear-gradient(135deg, var(--light-yellow) 0%, var(--white) 100%);
    color: var(--dark-brown);
    border: none;
    border-radius: var(--border-radius);
    font-size: clamp(1rem, 1.4vw, 1.3rem);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-registration .btn-register:hover {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, var(--white) 0%, var(--light-yellow) 100%);
}

.cta-registration .btn-register i {
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.ctaBtn-container {
    text-align: center;
}

.cta-registration .btn-register:hover i {
    transform: translateX(5px);
}

.cta-notice {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
}

/* Video End Overlay Styles */
.video-end-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(122, 98, 64, 0.97) 0%, rgba(90, 69, 48, 0.97) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    z-index: 100;
    padding: 2rem;
    text-align: center;
}

.video-end-overlay.active {
    opacity: 1;
    visibility: visible;
}

.video-end-overlay h4 {
    color: var(--white);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    margin-bottom: clamp(0.5rem, 1vh, 1rem);
    text-align: center;
    animation: fadeInUp 0.5s ease 0.2s both;
}

.video-end-overlay p {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.9rem, 1.3vw, 1.1rem);
    margin-bottom: clamp(1.2rem, 2vh, 1.8rem);
    max-width: 400px;
    text-align: center;
    animation: fadeInUp 0.5s ease 0.3s both;
}

.video-end-overlay .btn-overlay-register {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: clamp(0.7rem, 1.2vh, 1rem) clamp(1.5rem, 3vw, 2.5rem);
    background: var(--white);
    color: var(--dark-brown);
    border: none;
    border-radius: var(--border-radius);
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.5s ease 0.4s both, pulse 2s ease-in-out 1s infinite;
}

.video-end-overlay .btn-overlay-register:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    animation: none;
}

.video-end-overlay .btn-replay {
    margin-top: clamp(0.8rem, 1.5vh, 1.2rem);
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: var(--white);
    padding: clamp(0.5rem, 1vh, 0.7rem) clamp(1.2rem, 2vw, 1.8rem);
    border-radius: var(--border-radius-small);
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    animation: fadeInUp 0.5s ease 0.5s both;
}

.video-end-overlay .btn-replay:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--white);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .cta-registration {
        padding: clamp(1.5rem, 3vw, 2rem);
    }

    .cta-registration h3 {
        font-size: clamp(1.3rem, 4vw, 1.6rem);
    }

    .cta-registration .btn-register {
        padding: 0.8rem 1.8rem;
        font-size: 0.95rem;
    }
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: flex-start;
    /* forces left alignment */
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}


.social-icons a {
    width: 40px;
    height: 40px;
    display: flex;
    text-decoration: none !important;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a i {
    font-size: 1.3rem;
    color: var(--white);
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--light-yellow);
    transform: translateY(-4px);
}

.social-icons a:hover i {
    color: var(--dark-brown);
}

#footerLegalLink {
    text-decoration: none;
    color: inherit;
}

#footerLegalLink:hover {
    text-decoration: underline;
    /* optional, if you want a hover cue */
}

/* Estilos para el botón de Share Memories - ADDED */
.share-memories-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: var(--accent-brown);
    color: var(--white);
    border-radius: var(--border-radius);
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 12px var(--shadow);
    transition: var(--transition);
    border: 2px solid var(--dark-brown);
    cursor: pointer;
    margin-left: 10px;
}

.share-memories-btn:hover {
    background-color: var(--dark-brown);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px var(--shadow-hover);
}

/* Estilos para el modal de Share Memories - ADDED */
.memories-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

.memories-modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--white);
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 900px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.4s ease;
    position: relative;
    scale: 0.95;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--medium-brown);
}

.modal-header h3 {
    color: var(--dark-brown);
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    margin: 0;
}

.close-modal {
    background: transparent;
    border: none;
    color: var(--dark-brown);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    background-color: var(--light-brown);
    transform: rotate(90deg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-brown);
    font-weight: 600;
    font-size: 1.05rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--medium-brown);
    border-radius: var(--border-radius-small);
    font-family: 'Crimson Text', serif;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--light-yellow);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-brown);
    box-shadow: 0 0 0 3px rgba(166, 138, 95, 0.2);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-note {
    font-size: 1rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    font-style: italic;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.btn-submit {
    padding: 0.8rem 2rem;
    background-color: var(--dark-brown);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-submit:hover {
    background-color: var(--accent-brown);
    transform: translateY(-2px);
}

.btn-cancel {
    padding: 0.8rem 1.5rem;
    background-color: transparent;
    color: var(--dark-brown);
    border: 2px solid var(--medium-brown);
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-cancel:hover {
    background-color: var(--light-brown);
    border-color: var(--dark-brown);
}

/* Mensajes de éxito/error - ADDED */
.form-message {
    padding: 0.8rem 1rem;
    border-radius: var(--border-radius-small);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    display: none;
}

.form-message.success {
    background-color: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
    border: 1px solid #4caf50;
    display: block;
}

.form-message.error {
    background-color: rgba(244, 67, 54, 0.1);
    color: #c62828;
    border: 1px solid #f44336;
    display: block;
}

.form-message.info {
    background-color: rgba(33, 150, 243, 0.1);
    color: #1565c0;
    border: 1px solid #2196f3;
    display: block;
}

/* Estilos responsivos para el modal - ADDED */
@media (max-width: 600px) {
    .memories-modal {
        padding: 0.5rem;
    }

    .modal-content {
        padding: 1.5rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-submit,
    .btn-cancel {
        width: 100%;
    }
}

/* Actualización del contenedor de acciones de idioma - ADDED */
.lang-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.shareMemoriesRightNow {
    display: flex;
    flex-direction: row;
    position: absolute;
    bottom: -150px;
    right: 0;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

#shareMemoriesQuestion {
    font-size: 1.6rem;
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.8px;
    line-height: 45px;
}

.share-memories-btn {
    background-color: var(--dark-brown);
    font-family: 'Crimson Text';
    letter-spacing: .5px;
    font-size: 1.2rem;
    min-width: fit-content;
}

.share-memories-btn:hover {
    background-color: var(--accent-brown);
}