* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: url('../img/fondo\ \(1\).png') no-repeat center center fixed;
    background-size: cover;
    color: #fff;
}

.hero {
    min-height: 100vh;
    padding: 40px 80px;
    display: flex;
    flex-direction: column;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.brand a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    font-size: 30px;
}

.brand img {
    height: 80px;
}

.social-icons a {
    margin-left: 14px;
    font-size: 30px;
    cursor: pointer;
    color: white;
    transition: transform 0.3s ease, color 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover,
.social-icons a:focus,
.social-icons a:active {
    transform: scale(1.2);
    color: #ffd34d;
}

.hero-container {
    max-width: 1400px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.hero-left {
    display: flex;
    flex-direction: column;
}

.hero-title {
    font-size: 52px;
    line-height: 1.1;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
}

.hero-title span {
    color: #ffeb3b;
    display: inline-block;
    animation: saltoZoom 1.5s ease-in-out infinite;
}

@keyframes saltoZoom {
    0% {
        transform: translateY(0) scale(1);
    }
    30% {
        transform: translateY(-12px) scale(1.15);
    }
    50% {
        transform: translateY(0) scale(0.95);
    }
    70% {
        transform: translateY(-6px) scale(1.05);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 768px) {
    .hero-title span {
        animation-duration: 2s; /* más suave */
    }

    @keyframes saltoZoom {
        0% {
            transform: translateY(0) scale(1);
        }
        30% {
            transform: translateY(-8px) scale(1.1);
        }
        50% {
            transform: translateY(0) scale(0.97);
        }
        70% {
            transform: translateY(-4px) scale(1.05);
        }
        100% {
            transform: translateY(0) scale(1);
        }
    }
}

@media (max-width: 480px) {
    .hero-title span {
        animation-duration: 2.3s;
    }
}

.hero-description {
    max-width: 520px;
    font-size: 16px;
    line-height: 1.6;
    color: #fff1ea;
    margin-bottom: 25px;
    text-align: justify;
}

.btn-primary,
.btn-secondary {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    border-radius: 30px;
    padding: 12px 24px;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.4s ease;
    max-width: 300px;
}

.btn-primary {
    background: #fff;
    color: #006494;
}

.btn-secondary {
    background: #fff;
    color: #006494;
}

.btn-primary::before,
.btn-secondary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    transition: left 0.4s ease;
    z-index: 0;
    border-radius: inherit;
}

.btn-primary > *,
.btn-secondary > * {
    position: relative;
    z-index: 1;
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
    left: 0;
}

.btn-primary:hover {
    color: #004a85;
}

.btn-secondary:hover {
    color: #004a85;
}

.arrow {
    background: #0077b6;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: background 0.4s ease;
    z-index: 1;
}

.btn-primary:hover .arrow,
.btn-secondary:hover .arrow {
    background: #ffd34d;
    color: #004a85;
}

.divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin-bottom: 30px;
}

.buy-title {
    font-size: 15px;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.buy-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 25px;
}

.buy-block {
    background: rgba(255 255 255 / 0.15);
    padding: 25px 25px 30px;
    border-radius: 15px;
    position: relative;
}

.buy-block p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.buy-block .logos {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 10px;
}

.buy-block .logos a img {
    height: 42px;
    transition: transform 0.3s ease;
}

.buy-block .logos a:hover img {
    transform: scale(1.1);
}

.buy-block .tag {
    position: absolute;
    top: -15px;
    left: 20px;
    background: #fff;
    color: #0077b6;
    font-weight: 700;
    font-size: 13px;
    padding: 4px 14px;
    border-radius: 20px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    user-select: none;
}

.encuentra-texto {
    margin-top: 40px;
    font-weight: 700;
    font-size: 18px;
}

.advertencia {
    color: #ffea00;
    font-weight: 700;
    font-size: 14px;
    margin-top: 5px;
}

.hero-right {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.product-main {
    width: 400%; 
    max-width: 750px; 
    height: auto;
    transition: transform 0.3s ease-in-out; 
    display: block;
    margin: 0 auto; 
    margin-bottom: -250px;
}

.product-main:hover {
    transform: scale(1.1); 
}

.product-main:hover {
    transform: scale(1.1) translateY(-5px); 
}


@media (max-width: 480px) {
    .product-main {
        width: 220px;
        margin-bottom: 15px; 
    }

    .product-secondary {
        width: 120px;
        bottom: 20px;
        right: -10px;
        transform: rotate(5deg);
    }
}

@media (hover: none) and (pointer: coarse) {
    .social-icons a:active {
        transform: scale(1.2);
        color: #ffd34d;
        transition: transform 0.2s ease, color 0.2s ease;
    }

    .btn-primary:active,
    .btn-secondary:active {
        box-shadow: 0 0 15px #ffd34d;
        transition: box-shadow 0.2s ease;
    }
}

/* MÓVILES */
@media (max-width: 480px) {

    .hero {
        padding: 20px 15px;
    }

    .hero-container {
        display: flex;
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }

    .hero-left {
        text-align: center;
    }

    .hero-title {
        font-size: 24px;       
        line-height: 1.3;     
        text-align: center;   
    }

    .hero-description {
        font-size: 14px;
        line-height: 1.5;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 12px 0;
        font-size: 14px;
        border-radius: 30px;
        max-width: none;
    }

    .arrow {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }

    .buy-options {
        display: flex;
        flex-direction: column;
        gap: 25px;
        width: 100%;
    }

    .buy-block p {
        font-size: 13px;
        text-align: center;
    }

    .logos {
        justify-content: center;
        display: flex;
        gap: 10px;
        margin-bottom: 10px;
    }

    .logos a img {
        height: 36px;
    }

    .hero-right {
        position: relative;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .product-main {
        width: 340px;
    }

    .product-secondary {
        width: 120px;
        margin-left: auto;
        transform: rotate(10deg);
        margin-bottom: 15%;
    }

    .top-bar {
        flex-direction: column;
        gap: 15px;
    }

    .brand {
        font-size: 14px;
    }
    /*Logo Cuanda*/
    .brand img {
        height: 50px;
    }

    .social-icons a {
        font-size: 30px;
        margin-left: 10px;
    }

    .encuentra-texto {
        margin-top: 30px;
        font-size: 16px;
    }

    .advertencia {
        font-size: 13px;
        margin-top: 3px;
    }
}

.logos-prod img {
    width: 80px;
    height: auto;
    transition: transform 0.3s ease-in-out;
}

.logos-prod a:hover img {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .logos-prod img {
        width: 60px; 
    }

    .hero-title img.logo-45 {
        width: 40px; 
    }
}

@media (max-width: 480px) {
    .logos-prod img {
        width: 40px; 
        gap: 15px;
    }

    .hero-title img.logo-45 {
        width: 40px; 
    }

    .hero-title {
        text-align: center;
        font-size: 20px; 
        line-height: 1.4;
    }

    .logos-prod {
        display: flex;
        justify-content: space-around;
        flex-wrap: wrap;
    }

    .social-icons {
        display: flex;
        justify-content: center; 
        gap: 15px; 
    }
}

.hero-title img.logo-45 {
    width: 100px;
    height: auto;
    margin-left: 10px;
    margin-right: 10px;
    vertical-align: middle;
}

.frutas-foother {
    height: inherit;
    align-items: center;
    text-align: center;
    justify-content: center;
    display: flex;
    flex-wrap: nowrap;
}

.frutas-foother img {
    height: 4vw;
    transition: .1s ease-in-out;
}

.frutas-foother img:hover {
    transform: scale(1.3);
}

.frutas-foother a {
    width: calc(100% / 23);
}

.footer {
    background-color: #065da6;
}

.footer .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.footer a {
    color: #ffffff;
    font-size: 0.9em;
    text-decoration: none;
    transition: 3ms;
}

footer a:hover {
    color: #12e115;
}

footer p {
    margin: 0;
    align-items: center;
}

.tico-tico {
    height: 300px;
    align-items: center;
    margin-top: -50%; 
    display: block; 
    margin-left: auto; 
    margin-right: auto; 
    animation: move 2s infinite; 
}

@media (max-width: 768px) {
    .tico-tico {
        height: 130px;
        margin-top: 10%;  
    }
}

@media (max-width: 480px) {
    .tico-tico {
        height: 110px;
        margin-top: 10%;
    }
}
