@font-face {
    font-family: 'SF Pro Rounded';
    src: url('../fonts/sf-pro-rounded.ttf') format('truetype');
}

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

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

/* 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;
}

/* Header */
.header {
    position: relative;
    overflow: visible;
    padding-top: 0;
    z-index: 1000;
}

.cloud-container {
    position: relative;
    width: 120%;
    overflow: hidden;
    z-index: -1;
    right: 2%;
}

.nube {
    position: relative;
    width: 100%;
    margin-top: -25px;
    overflow: hidden;
    z-index: 1;
}

.main-nav {
    display: flex;
    position: absolute;
    top: 30px;
    margin-left: 40px;
    z-index: 999;
    gap: 15px;
}

.nav-item {
    font-family: 'Chewy', cursive;
    color: #4EDAFF;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    background: #ffffff;
    padding: 12px 25px;
    border-radius: 25px;
    border: 2px solid #dbdbdb9e;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    opacity: 0;
    transform: translateY(-20px);
    margin-right: 15px;
}

.nav-item:hover {
    color: #ffffff;
    background: #4EDAFF;
    border: 2px solid #dbdbdb9e;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.hero img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.hero img:hover {
    transform: scale(1.02);
}

/* Characters Gallery */
.characters-gallery {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.character-item {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.character-item:hover {
    transform: translateY(-15px) scale(1.02);
}

.character-img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.4s ease;
    border-radius: 20px;
}

/* services bottom section */
.services-bottom {
    text-align: center;
    width: 100%;
    left: 0;
    right: 0;
}

.contenido {
    position: relative;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

.other-services {
    font-family: 'Chewy', sans-serif;
    font-size: 48px;
    font-weight: 400;
    color: #4195AC;
    margin: 4rem 0 2rem;
}

.services-menu {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.services-menu a {
    font-family: 'Chewy', sans-serif;
    font-size: 24px;
    color: #88D0E3;
    text-decoration: none;
}

.services-menu a.active {
    font-weight: bold;
    color: #2E9BB8;
}

.services-menu a:hover {
    font-weight: bold;
    color: #2E9BB8;
}

.follow {
    margin-bottom: 2rem;
    font-weight: 400;
    font-family: 'Chewy', sans-serif;
    font-size: 20px;
    color: #3D95AC;
}

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

.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 92.72%);
    rotate: -15deg;
}

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

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

.services-bottom-copy {
    font-family: 'SF Pro Rounded';
    font-size: 18px;
    font-weight: 400;
    color: #2E9BB8;
}

/* Tablet Styles* */
@media (min-width: 481px) and (max-width: 884px) {
    .main-nav {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .nav-item {
        font-size: 18px;
        padding: 10px 20px;
    }

    /* services bottom section - Tablet*/
    /* Social Icons*/
    .social-icons {
        gap: 15px;
    }

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

    .social-icon img {
        width: 22px;
        height: 22px;
    }

    /* Character decoration- services bottom*/
    .character-right {
        width: 200px;
        right: 2%;
        bottom: 0;
    }

    /* Characters Gallery - Tablet */
    .characters-gallery {
        gap: 30px;
        padding: 40px 20px;
        max-width: 90%;
    }

    .character-item {
        border-radius: 15px;
    }

    .character-img {
        border-radius: 15px;
    }

    /* Hero Section - Tablet */
    .hero {
        padding: 30px 15px;
    }

    .hero img {
        max-width: 90%;
    }
}

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

    /* services bottom section */
    .services-bottom {
        text-align: center;
    }

    .contenido {
        position: relative;
        max-width: 900px;
        margin: 0 auto;
        padding: 2rem;
    }

    /* Other Services */
    .other-services {
        font-family: 'Chewy', sans-serif;
        font-size: 28px;
        font-weight: 400;
        color: #4195AC;
        margin: 3rem 0 1rem;
    }

    /* Services Menu */
    .services-menu {
        display: flex;
        justify-content: center;
        gap: 1.5rem;
        flex-wrap: wrap;
        margin-bottom: 2rem;
    }

    .services-menu a {
        font-family: 'Chewy', sans-serif;
        font-size: 20px;
        color: #5AC1DD;
        text-decoration: none;
    }

    .services-menu a.active {
        font-weight: bold;
        color: #165566;
    }

    .services-menu a:hover {
        font-weight: bold;
        color: #165566;
    }

    /* Follow */
    .follow {
        margin-bottom: 1rem;
        font-weight: 400;
        font-family: 'Chewy', sans-serif;
        font-size: 16px;
        color: #3D95AC;
    }

    /* Social Media*/
    .social-icons {
        gap: 12px;
    }

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

    .social-icon img {
        width: 20px;
        height: 20px;
    }

    /* Character decoration- services bottom*/
    .character-right {
        display: none;
    }

    /* Characters Gallery - Mobile */
    .characters-gallery {
        gap: 25px;
        padding: 30px 15px;
        max-width: 95%;
    }

    .character-item {
        border-radius: 15px;
    }

    .character-item:hover {
        transform: translateY(-10px) scale(1.01);
    }

    .character-img {
        border-radius: 15px;
    }

    /* Hero Section - Mobile */
    .hero {
        padding: 20px 10px;
    }

    .hero img {
        max-width: 95%;
        border-radius: 15px;
    }

}

/* Bottom Cloud */
.bottom-cloud {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.cloud-bottom {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: -0.5rem;
}

/* Language switcher Mobile */
.language-switcher-mobile {
    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: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

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

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

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

/* 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%;
}

/* Additional Mobile Styles */
@media (max-width: 480px) {
    .cloud-container {
        width: 110%;
        right: 1%;
    }

    .nube {
        margin-top: -0.1rem;
    }
}

/* Mobile Menu*/
.mobile-menu-btn {
    position: absolute;
    top: 10px;
    left: 20px;
    width: 30px;
    height: 24px;
    border: none;
    background: transparent;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1100;
    padding: 0;
}

.mobile-menu-btn:active {
    transform: scale(0.95);
}

.hamburger-line {
    display: block;
    width: 30px;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease, background 0.2s ease;
    transform-origin: center;
}

.hamburger-line+.hamburger-line {
    margin-top: 6px;
}

/* Animación a X*/
.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Overlay container */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    visibility: hidden;
    opacity: 0;
    z-index: 1500;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mobile-nav-overlay.open {
    visibility: visible;
    opacity: 1;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Sliding panel */
.mobile-nav {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(85%, 340px);
    background: linear-gradient(145deg, #ffffff 0%, #f8fffe 100%);
    border-left: 1px solid rgba(66, 196, 245, 0.1);
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.15);
}

.mobile-nav-overlay.open .mobile-nav {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 20px;
    background: linear-gradient(135deg, rgba(66, 196, 245, 0.05) 0%, transparent 100%);
    border-bottom: 1px solid rgba(66, 196, 245, 0.1);
}

.mobile-nav-logo {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(66, 196, 245, 0.2));
}

.mobile-close-btn {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    color: #666;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 16px;
}

.mobile-close-btn:hover {
    background: linear-gradient(135deg, #42C4F5 0%, #36B5E8 100%);
    color: white;
    transform: rotate(90deg) scale(1.1);
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.mobile-nav-item {
    display: block;
    font-family: 'Chewy', cursive;
    font-size: 20px;
    color: #4EDAFF;
    text-decoration: none;
    padding: 16px 20px;
    border-radius: 16px;
    background: #ffffff;
    border: 2px solid #dbdbdb9e;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateX(20px);
}

.mobile-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(66, 196, 245, 0.1), transparent);
    transition: left 0.6s ease;
}

.mobile-nav-item:hover::before {
    left: 100%;
}

.mobile-nav-item:hover {
    background: linear-gradient(135deg, #42C4F5 0%, #36B5E8 100%);
    color: white;
    transform: translateX(4px) scale(1.02);
    border-color: #42C4F5;
    box-shadow: 0 8px 25px rgba(66, 196, 245, 0.3);
}

.mobile-nav-overlay.open .mobile-nav-item {
    opacity: 1;
    transform: translateX(0);
}

.mobile-nav-overlay.open .mobile-nav-item:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-nav-overlay.open .mobile-nav-item:nth-child(2) {
    transition-delay: 0.15s;
}

.mobile-nav-overlay.open .mobile-nav-item:nth-child(3) {
    transition-delay: 0.2s;
}

.mobile-nav-overlay.open .mobile-nav-item:nth-child(4) {
    transition-delay: 0.25s;
}

.mobile-nav-text {
    font-weight: 600;
    color: #666;
    margin-bottom: 16px;
    font-size: 14px;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
    transition-delay: 0.3s;
}

/* Responsive styles Mobile Menu - Tablet*/
@media (min-width: 481px) and (max-width: 884px) {
    .mobile-menu-btn {
        display: flex;
    }

    .main-nav {
        display: none;
    }

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

    .language-switcher {
        display: none;
    }
}

/* Responsive styles Mobile Menu - Mobile*/
@media (max-width: 480px) {
    .mobile-menu-btn {
        display: flex;
    }

    .main-nav {
        display: none;
    }

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

    .language-switcher {
        display: none;
    }
}

/* 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;
}

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