/* Reset and base configuration*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    overflow-x: hidden !important;
    height: 100dvh;
}

/* Loading Screen */
#loading {
    position: fixed;
    inset: 0;
    background: #FFFFFF;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 1s ease;
}

.loading-logo {
    max-width: 400px;
    height: auto;
    opacity: 0;
    animation: fadeInZoom 1s ease forwards;
    animation-delay: 0.3s;
}

@keyframes fadeInZoom {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* App Container */
.app {
    opacity: 0;
    transition: opacity 1s ease;
}

.app-ready {
    opacity: 1;
}

.contact-page {
    background: linear-gradient(299.28deg, #FFFFFF -18.25%, #4EDAFF 92.72%);
}

.header-contact {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
}

.logo-header-link {
    display: inline-block;
}

.logo-contact {
    max-width: 250px;
    width: 100%;
    height: auto;
    margin-top: 3rem;
}

.back-home-link {
    margin-bottom: 2rem;
    margin-left: 84px;
    border-radius: 200px;
    border-width: 4px;
    opacity: 1;
    border: 4px solid rgba(161, 235, 255, 1);
    padding: 8px 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.back-home-link a {
    display: block;
    text-decoration: none;
    line-height: 0;
}

.back-home-link img {
    display: block;
    transition: all 0.3s ease;
}

.back-home-link:hover {
    transform: scale(1.1);
    box-shadow: 8px 8px 8px 0px rgba(136, 230, 255, 1);
    background: linear-gradient(299.28deg, #FFFFFF -18.25%, #4EDAFF 92.72%);
}

.back-home-link:hover img {
    filter: brightness(1.1);
}

.contact-main {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 2rem 0;
    margin-top: -5rem;
}

.contact-container {
    width: 100%;
    position: relative;
    z-index: 2;
}

.contact-content {
    border-radius: 20px;
    padding: 40px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

.contact-title {
    font-family: 'Chewy';
    font-size: 2.5rem;
    color: #165566;
    text-align: center;
    margin: 20px auto 30px;
    width: 100%;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    max-width: 519px;
    margin: 0 auto;
    margin-bottom: 12rem;
    padding: 0 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.form-group label {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: #3D95AC;
    font-size: 16px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E3348D;
    border-radius: 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background-color: white;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #4EDAFF;
    outline: none;
}

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

::placeholder {
    color: #E3348D;
    opacity: 0.6;
}

.form-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
    text-align: center;
}

.terms-text {
    font-size: 0.9rem;
    color: #3D95AC;
    font-family: 'Poppins';
    margin: 0;
}

.terms-link {
    color: #E3348D;
    font-weight: 500;
}

.submit-btn {
    background: #E3348D;
    color: #fff;
    font-family: 'Chewy';
    font-size: 16px;
    min-width: 180px;
    width: auto;
    padding: 0 30px;
    height: 44px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 107, 158, 0.3);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 107, 158, 0.4);
}

.mail {
    margin-bottom: -0.3rem;
}

/* Decorative elements */
.decorative-elements {
    position: absolute;
    width: 100%;
    height: calc(100% + 100px);
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
    overflow: visible;
}

.duck-left {
    position: absolute;
    width: 150px;
    left: 0;
    bottom: 30%;
}

.duck-right {
    position: fixed;
    width: 120px;
    bottom: 0;
    left: 0;
    z-index: 1000;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.character-right {
    position: fixed;
    width: 300px;
    right: 30px;
    bottom: 0;
    z-index: 1000;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.about-text-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1001;
}

.about-text-container::before {
    display: none;
}

.about-text {
    width: 564px;
    height: 290px;
    font-weight: 600;
    font-family: 'SF Pro Rounded', sans-serif;
    padding: 8px 16px;
    border-radius: 50%;
    margin-top: 8px;
    letter-spacing: 0.5px;
    line-height: 1.2;
    background: #D3F6FF;
    color: #000000;
    rotate: -3.53deg;
}

.about-title {
    font-family: 'Chewy';
    font-weight: 400;
    font-size: 60px;
    color: #165566;
    margin-bottom: 2rem;
    margin-left: -1rem;
    padding: 4rem 0rem 0rem 0rem;
}

.about-text p {
    font-family: 'Chewy';
    font-weight: 400;
    font-size: 24px;
    color: #165566;
}

.about-text span {
    font-family: 'Chewy';
    font-weight: 400;
    font-size: 25px;
    color: #3D95AC;
}

.follow {
    font-size: 1.2rem;
    font-family: 'Chewy';
    color: #2c5f7c;
    margin: 20px 0 30px 0;
    font-weight: 400;
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 3;
}

/* Social icons */
.social-icons {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
    position: relative;
    z-index: 3;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-icon img {
    width: 24px;
    height: 24px;
    transition: all 0.4s ease;
    z-index: 2;
    position: relative;
}

.social-icon::before {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    top: 4px;
    left: 12px;
    background: rgba(201, 250, 255, 1);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.4s ease;
    border-radius: 50%;
}

.social-icon:hover {
    transform: scale(1.2) !important;
    box-shadow: 8px 8px 8px 0px rgba(136, 230, 255, 1);
    background: linear-gradient(299.28deg, #FFFFFF -18.25%, #4EDAFF 82.72%);
    rotate: -15deg;
}

.social-icon:hover::before {
    opacity: 1;
}

.social-icon:hover img {
    color: #ffffff;
    transform: scale(1.1);
}


/* Responsive styles Contact page - Tablet*/
@media (min-width: 481px) and (max-width: 884px) {
    ::-webkit-scrollbar {
        display: none;
    }

    .back-home-link {
        left: 20px;
        top: 20px;
        position: fixed;
        z-index: 1000;
        margin-top: 0;
        margin-bottom: 0;
    }

    .contact-content {
        padding: 20px 20px;
    }

    .form-footer {
        margin-right: 8.5rem;
    }

    .contact-title {
        font-size: 2rem;
    }

    .duck-left {
        width: 100px;
        left: 0;
    }

    .duck-right {
        width: 120px;
        left: 0;
    }

    .character-right {
        width: 200px;
        right: 2%;
        bottom: 0;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px;
        width: 100%;
    }
}

/* Mobile Styles - Contact page Mobile*/
@media (max-width: 480px) {
    .loading-logo {
        max-width: 250px;
        justify-self: center;
    }

    .logo-contact {
        max-width: 200px;
        width: 100%;
        margin-top: 1rem;
    }

    .contact-content {
        padding: 10px 10px;
    }

    .contact-title {
        font-size: 1.8rem;
        margin-top: 2rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px;
        width: 100%;
    }

    .submit-btn {
        padding: 10px 25px;
        font-size: 1rem;
    }

    .back-home-link {
        left: 8px;
        top: 10px;
        margin-left: -0.2rem;
        position: absolute;
        z-index: 1000;
        margin-top: 0;
        padding: 4px 4px;
    }

    .duck-left {
        width: 70px;
        top: 25%;
    }

    .duck-right {
        display: none;
    }

    .character-right {
        display: none;
    }

    .about-text-container {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        z-index: 3;
        margin-top: -12rem;
    }

    .social-icons {
        margin-bottom: 20px;
        gap: 12px;
    }

    .social-icon {
        width: 50px;
        height: 50px;
    }

    .follow {
        font-weight: 400;
        font-family: 'Chewy', sans-serif;
        font-size: 18px;
        color: #3D95AC;
    }

    ::-webkit-scrollbar {
        display: none;
    }

    .language-switcher {
        position: fixed;
        bottom: 0;
        right: 20px;
        width: 120px;
        height: 60px;
    }
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    background: #E3348D;
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(227, 52, 141, 0.3);
    font-family: 'Chewy', cursive;
    font-size: 16px;
    transform: translate(-50%, -50%) translateY(100px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 9999;
    max-width: 90vw;
    text-align: center;
}

.toast.show {
    transform: translate(-50%, -50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Animaciones de Scroll */
.show-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.show-on-scroll.show {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scroll Bar*/
::-webkit-scrollbar {
    width: 16px;
}

::-webkit-scrollbar-track {
    background: #E8F7FC;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #4EDAFF;
    border-radius: 10px;
    border: 3px solid #E8F7FC;
}

/* Animaciones de scroll para el botón back-home */
.back-home-link.show-on-scroll {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s ease;
}

.back-home-link.show-on-scroll.show {
    opacity: 1;
    transform: translateX(0);
}

::-webkit-scrollbar-thumb:hover {
    background: #36B5E8;
}

/* Language switcher */
.language-switcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 120px;
    height: 60px;
    background-color: #c8f0d4;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.language-switcher.english {
    background-color: #b3d9ff;
}

.flag-container {
    position: absolute;
    width: 48px;
    height: 48px;
    top: 6px;
    left: 6px;
    transition: transform 0.3s ease;
    border-radius: 50%;
    overflow: hidden;
}

.language-switcher.english .flag-container {
    transform: translateX(60px);
}

.flag {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}