@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%;
    background: linear-gradient(119.28deg, #FFFFFF 7.28%, #4EDAFF 118.25%);
}

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

.cloud-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: -1;
    overflow: hidden;
}

.nube {
    position: relative;
    width: 100%;
    z-index: 1;
    pointer-events: none;
    display: block;
}

.main-nav {
    display: flex;
    position: absolute;
    top: 40px;
    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);
}

.logo-header {
    position: absolute;
    top: 60px;
    right: 60px;
    width: 280px;
    transform: rotate(3deg) translateY(-50px);
    z-index: 10;
    display: block;
    opacity: 0;
    transition: opacity 1.4s cubic-bezier(0.25, 1, 0.5, 1),
        transform 1.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.show-header-logo {
    transform: rotate (3deg) translateY(0);
    opacity: 1;
}

.logo-img {
    height: auto;
    pointer-events: none;
}

/* Tablet - Hero section */
@media (min-width: 481px) and (max-width: 884px) {
    .relleno-blanco {
        width: 100%;
        height: 40px;
        background-color: #fff;
    }

    .nube {
        margin-top: 30px;
    }

    .main-nav {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

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

    .logo-header {
        display: none;
    }
}

/* Mobile - Hero section */
@media (max-width: 480px) {
    .logo-header {
        display: none;
    }

    .relleno-blanco {
        height: 50px;
    }

    .nube {
        margin-top: 45px;
    }

    .loading-logo {
        max-width: 250px;
        justify-self: center;
    }
}

.services-page {
    background: linear-gradient(119.28deg, #FFFFFF 7.28%, #4EDAFF 118.25%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Services Page Styles */
.services-main {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: bottom left, bottom right;
    background-size: 180px, 180px;
    padding: 60px;
}

.services-header {
    text-align: center;
    padding: 150px 20px 40px;
    position: relative;
    z-index: 10;
    background-repeat: no-repeat;
    background-position: top left, top right;
    background-size: 200px, 200px;
}

.services-title {
    font-family: "Chewy", sans-serif;
    font-size: 48px;
    color: #4195AC;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.services-title.show {
    opacity: 1;
    transform: translateY(0);
}

.services-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    transition-delay: 0.3s;
}

.services-nav.show {
    opacity: 1;
    transform: translateY(0);
}

.service-nav-btn {
    font-family: "Chewy";
    font-size: 32px;
    font-weight: 400;
    background: none;
    border: none;
    color: #88D0E3;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
}

.service-nav-btn:hover,
.service-nav-btn.active {
    background: none;
    color: #2E9BB8;
    transform: translateY(-2px);
}

.services-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
    padding: 0 20px;
    margin-top: 20px;
}

.service-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    border: none;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
}

.arrow-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-arrow:hover {
    transform: translateY(-50%) scale(1.05);
}

.service-arrow-left {
    left: 50px;
}

.service-arrow-right {
    right: 50px;
}

.service-card {
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    position: absolute;
    width: 100%;
    max-width: 600px;
    pointer-events: none;
}

.service-card.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
    pointer-events: auto;
}

.service-card.prev {
    transform: translateX(-100px);
}

.service-card-title {
    font-family: "Chewy", sans-serif;
    font-size: clamp(60px, 10vw, 110px);
    color: rgba(46, 155, 184, 1);
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 95%;
    text-align: center;
    white-space: nowrap;
    overflow: visible;
    word-wrap: normal;
    max-width: 100%;
    text-overflow: unset;
}

.service-show-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
    cursor: pointer;
}

.service-show-text {
    font-family: 'Chewy', sans-serif;
    font-size: 24px;
    font-weight: 400;
    font-style: normal;
    line-height: 100%;
    letter-spacing: 0%;
    color: #4AABC2;
    margin-bottom: 5px;
}

.service-show-btn {
    background: #FFFFFF;
    border: none;
    width: 80px;
    height: 80px;
    border-radius: 56px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 1;
    text-decoration: none;
    outline: none;
}

/* Óvalo*/
.service-show-btn::before {
    content: "";
    position: absolute;
    width: 14px;
    height: 29px;
    top: 10px;
    left: 12px;
    background: rgba(201, 250, 255, 1);
    border-radius: 50%;
    transform: rotate(30deg);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-show-btn:hover::before {
    opacity: 1;
}

.service-show-btn: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%);
}

.arrow-down-img {
    width: 28px;
    height: 40px;
    transition: transform 0.3s ease;
    color: #4AABC2;
}

.service-show-btn:hover .arrow-down-img {
    filter: brightness(1.1);
}

/* Responsive styles Contact page - Tablet*/
@media (min-width: 481px) and (max-width: 884px) {
    .services-main {
        padding: 40px 20px;
    }

    .services-header {
        padding: 120px 15px 30px;
        background-size: 150px, 150px;
    }

    .services-title {
        font-size: clamp(2.8rem, 8vw, 4.5rem);
        margin-bottom: 25px;
    }

    .services-nav {
        gap: 10px;
        flex-wrap: wrap;
    }

    .service-nav-btn {
        padding: 8px 16px;
        font-size: 26px;
        min-width: auto;
    }

    .services-content {
        padding: 0 15px;
        min-height: 40vh;
    }

    .service-arrow {
        width: 45px;
        height: 45px;
    }

    .service-arrow-left {
        left: 20px;
    }

    .service-arrow-right {
        right: 20px;
    }

    .service-card {
        max-width: 500px;
    }

    .service-card-title {
        font-size: clamp(45px, 8vw, 90px);
        margin-bottom: 25px;
        line-height: 90%;
        overflow: visible;
        word-wrap: normal;
        text-overflow: unset;
        white-space: nowrap;
    }

    .service-show-container {
        gap: 15px;
    }

    .service-show-text {
        font-size: 20px;
    }

    .service-show-btn {
        width: 70px;
        height: 70px;
    }

    .arrow-down-img {
        width: 28px;
        height: 28px;
    }
}

/* Mobile Styles */
@media (max-width: 480px) {
    .services-main {
        padding: 30px 15px;
    }

    .services-header {
        padding: 100px 15px 25px;
        background-size: 120px, 120px;
    }

    .services-title {
        font-size: clamp(2.2rem, 8vw, 3.5rem);
        margin-bottom: 20px;
    }

    .services-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 6px;
        max-width: 100%;
    }

    .service-nav-btn {
        width: auto;
        padding: 6px 10px;
        font-size: 20px;
        text-align: center;
        min-width: 60px;
        border-radius: 15px;
    }

    .services-content {
        padding: 0 10px;
        min-height: 35vh;
        margin-top: 15px;
    }

    .service-arrow {
        width: 40px;
        height: 40px;
    }

    .service-arrow-left {
        left: 5px;
    }

    .service-arrow-right {
        right: 5px;
    }

    .service-card {
        max-width: 350px;
    }

    .service-card-title {
        font-size: clamp(30px, 10vw, 65px);
        margin-bottom: 20px;
        line-height: 85%;
        padding: 0 10px;
        overflow: visible;
        word-wrap: normal;
        text-overflow: unset;
        white-space: nowrap;
    }

    .service-show-container {
        gap: 12px;
        padding: 0 10px;
    }

    .service-show-text {
        font-size: 18px;
    }

    .service-show-btn {
        width: 60px;
        height: 60px;
    }

    .arrow-down-img {
        width: 24px;
        height: 24px;
    }

    /* Improve touch targets for mobile */
    .service-show-container {
        min-height: 120px;
        padding: 15px;
        border-radius: 15px;
        transition: background-color 0.3s ease;
    }

    .service-show-container:active {
        background-color: rgba(74, 171, 194, 0.1);
    }
}

/* Extra Small Mobile Styles */
@media (max-width: 360px) {
    .services-main {
        padding: 20px 10px;
    }

    .services-header {
        padding: 80px 10px 20px;
        background-size: 100px, 100px;
    }

    .services-title {
        font-size: clamp(1.8rem, 10vw, 3rem);
        margin-bottom: 15px;
    }

    .services-nav {
        gap: 4px;
    }

    .service-nav-btn {
        padding: 4px 8px;
        font-size: 11px;
        min-width: 50px;
    }

    .services-content {
        padding: 0 5px;
        min-height: 30vh;
    }

    .service-arrow {
        width: 35px;
        height: 35px;
    }

    .service-card {
        max-width: 300px;
    }

    .service-card-title {
        font-size: clamp(24px, 12vw, 50px);
        margin-bottom: 15px;
        padding: 0 5px;
        overflow: visible;
        word-wrap: normal;
        text-overflow: unset;
        white-space: nowrap;
    }

    .service-show-container {
        gap: 10px;
        padding: 0 5px;
        min-height: 100px;
    }

    .service-show-text {
        font-size: 16px;
    }

    .service-show-btn {
        width: 55px;
        height: 55px;
    }

    .arrow-down-img {
        width: 22px;
        height: 22px;
    }
}

/* Animation for service transitions */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }

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

.service-card.slide-in-right {
    animation: slideInRight 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.service-card.slide-in-left {
    animation: slideInLeft 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Mobile Menu*/
.mobile-menu-btn {
    position: absolute;
    top: 20px;
    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:hover .hamburger-line {
    background: #36B5E8;
}

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

.hamburger-line {
    display: block;
    width: 30px;
    height: 3px;
    background: #36B5E8;
    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);
}

/* Hover de líneas */
.mobile-menu-btn:hover .hamburger-line {
    background: #aeeaff;
}

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

/* Style for cart button*/
.nav-actions {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1200;
}

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

    .main-nav {
        display: none;
    }

    .logo-header {
        right: 16px;
        width: 220px;
    }

    .nav-actions {
        top: 15px;
        right: 15px;
    }

    ::-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;
    }

    .logo-header {
        right: 16px;
        width: 200px;
    }

    .nav-actions {
        top: 10px;
        right: 10px;
    }

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

    .language-switcher {
        display: none;
    }
}

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

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