/* ==========================================
   ESTILOS ORIGINALES (PC) - NO CAMBIADOS
   ========================================== */

.hideOnPc {
    display: none;
}

#mainGradient {
    background:
        radial-gradient(circle at top left,
            rgba(255, 255, 255, 0.15),
            transparent 40%),

        radial-gradient(circle at 80% 20%,
            rgba(0, 255, 140, 0.18),
            transparent 30%),

        radial-gradient(circle at center,
            rgba(47, 149, 95, 0.12),
            transparent 45%),

        linear-gradient(to bottom,
            #2f955f 0%,
            #1c6d4a 50%,
            #064328 60%,
            #012a18 70%,
            #01180e 80%);
}

#landingSection {
    height: 98vh;
    background: transparent;
}

#landingSection {
    overflow: clip !important;
    /* background:
        radial-gradient(circle at top left,
            rgba(255, 255, 255, 0.15),
            transparent 40%),

        radial-gradient(circle at bottom right,
            rgba(0, 255, 140, 0.2),
            transparent 35%),

        linear-gradient(to top, #0e734e, #2f955f); */
    position: relative;
    width: 100%;
    max-width: 100%;
    contain: layout paint;
}

section,
header {
    max-width: 100%;
    overflow-x: hidden;
}

.clipper {
    overflow: clip;
    width: 100%;
    user-select: none;
    -webkit-user-drag: none;
}

#landingSection>h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) skewX(-15deg);
    transform-origin: center;
    text-shadow: 10px 10px 20px rgba(0, 0, 0, 0.7);
    z-index: 999;
    color: white;
    font-size: 180px;
    white-space: nowrap;
    pointer-events: none;
    width: min-content;
}

.row-loop {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    height: 120px;
    position: relative;
    animation-delay: calc(var(--row) * 0.4s);
    padding: 30px 0;
    margin: -10px 0;
}

.band {
    display: flex;
    width: max-content;
    animation: loop-right 9s linear infinite;
}

.sequence {
    display: flex;
    gap: 10px;
    margin-right: 20px;
}

.sequence img {
    width: 60px;
    height: 60px;
    animation: bounce 0.8s ease infinite alternate;
    animation-delay: calc(var(--i) * 0.1s);
}

@keyframes bounce {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-20px);
    }
}

@keyframes loop-right {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.showOnMobile {
    display: none;
}

#heroSection {
    position: relative;

    min-height: 100vh;

    overflow: hidden;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;

    padding:
        140px 8% 80px;

    /* background:
    radial-gradient(
    circle at top left,
    rgba(255,255,255,0.12),
    transparent 30%),

    radial-gradient(
    circle at bottom right,
    rgba(0,255,140,0.18),
    transparent 35%),

    linear-gradient(
    135deg,
    #06281d,
    #0d5c40,
    #1f7956
    ); */
}

/* =========================
   GRID
========================= */

.hero-grid {
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px,
            transparent 1px),

        linear-gradient(90deg,
            rgba(255, 255, 255, 0.04) 1px,
            transparent 1px);

    background-size: 50px 50px;

    mask-image:
        radial-gradient(circle at center,
            black 20%,
            transparent 85%);

    pointer-events: none;
}

/* =========================
   BLOBS
========================= */

.hero-blob {
    position: absolute;

    border-radius: 50%;

    filter: blur(120px);

    opacity: 0.25;

    pointer-events: none;
}

.blob-1 {
    width: 500px;
    height: 500px;

    /* background:#42ff9c; */

    top: -180px;
    left: -120px;
}

.blob-2 {
    width: 450px;
    height: 450px;

    /* background:#00d9ff; */

    bottom: -180px;
    right: -100px;
}

.blob-3 {
    width: 300px;
    height: 300px;

    background: white;

    top: 40%;
    left: 50%;

    transform: translate(-50%, -50%);
}

/* =========================
   CONTENT
========================= */

.hero-content {
    position: relative;

    z-index: 5;

    width: min(650px, 100%);

    display: flex;
    flex-direction: column;

    gap: 25px;
}

.hero-badge {
    width: max-content;

    padding:
        10px 18px;

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.08);

    border:
        1px solid rgba(255, 255, 255, 0.15);

    color: white;

    font-size: 0.95rem;
    font-weight: 600;

    backdrop-filter: blur(20px);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.15);
}

.hero-content h1 {
    color: white;

    font-size:
        clamp(4rem, 8vw, 7rem);

    line-height: 0.95;

    letter-spacing: -4px;

    font-weight: 800;

    text-shadow:
        0 10px 30px rgba(0, 0, 0, 0.25);
}

.hero-content p {
    color:
        rgba(255, 255, 255, 0.82);

    font-size: 1.2rem;

    line-height: 1.8;

    max-width: 650px;
}

/* =========================
   BUTTONS
========================= */

.hero-buttons {
    display: flex;
    gap: 20px;

    flex-wrap: wrap;

    margin-top: 10px;
}

.hero-secondary-btn {
    background:
        rgba(255, 255, 255, 0.08);

    border:
        1px solid rgba(255, 255, 255, 0.15);

    backdrop-filter: blur(20px);

    color: white;
}

.hero-secondary-btn:hover {
    background: white;
    color: #1f7956;
}

/* =========================
   PREVIEW
========================= */

.hero-preview {
    position: relative;

    z-index: 5;

    width: min(750px, 100%);

    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-dashboard {
    width: 100%;

    animation:
        floatDashboard 6s ease-in-out infinite;
}

/* =========================
   FLOATING CARDS
========================= */

.floating-card {
    position: absolute;

    padding:
        18px 24px;

    border-radius: 24px;

    background:
        rgba(255, 255, 255, 0.12);

    border:
        1px solid rgba(255, 255, 255, 0.15);

    backdrop-filter: blur(20px);

    color: white;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.18);

    animation:
        floatCard 5s ease-in-out infinite;
}

.floating-card span {
    font-size: 0.85rem;

    opacity: 0.75;
}

.floating-card h2 {
    margin-top: 5px;

    font-size: 1.4rem;
}

.card-1 {
    top: 5%;
    left: -5%;
}

.card-2 {
    bottom: 12%;
    left: -10%;

    animation-delay: 1s;
}

.card-3 {
    top: 10%;
    right: -8%;

    animation-delay: 2s;
}

/* =========================
   ANIMATIONS
========================= */

@keyframes floatDashboard {

    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes floatCard {

    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* =========================
   MOBILE
========================= */

@media screen and (max-width:1100px) {

    #heroSection {
        flex-direction: column;

        text-align: center;

        gap: 60px;
    }

    .hero-content {
        align-items: center;
    }

    .hero-buttons {
        justify-content: center;
    }
}

@media screen and (max-width:700px) {

    .hero-content h1 {
        font-size: 4rem;

        letter-spacing: -2px;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .floating-card {
        display: none;
    }
}

#funcSection {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    height: fit-content;
    padding: 20px 0;
    flex-direction: column;
    background: linear-gradient(to bottom,
            #01180e 0%,
            black 50%);
}

#funcSection h1 {
    color: black;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 1400px;
}

/* .feature-card {
    /* background: linear-gradient(#329457, #09ac81); 
    background:
    linear-gradient(
      135deg,
      rgba(255,255,255,0.08),
      rgba(255,255,255,0.03)
    );
    /* border-radius: 15px; 
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    transition: all 0.3s ease;
    cursor: default;
    /* border: 5px solid #329457; 
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
} */

.feature-card {
    position: relative;

    padding: 32px;

    border-radius: 24px;

    background:
        linear-gradient(145deg,
            rgba(190, 225, 208, 0.12),
            rgba(31, 121, 86, 0.08));

    border:
        1px solid rgba(190, 225, 208, 0.15);

    backdrop-filter: blur(12px);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 0.05);

    color: var(--color-claro-2);

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;

    overflow: hidden;
}

.feature-card:hover {
    background: white;
}


.feature-grid:hover .feature-card {
    transform: scale(0.96);
    opacity: 0.9;
}


/* aparece glow */
.grid .item:hover::before {
    opacity: 1;
}

.feature-card::before {
    content: "";

    position: absolute;

    inset: -40%;

    background:
        radial-gradient(circle,
            rgba(50, 148, 87, 0.25),
            transparent 60%);

    opacity: 0;

    transition: opacity 0.3s ease;

    pointer-events: none;
}

.feature-card:hover * {
    color: #329457 !important;
}

.feature-grid .feature-card:hover {
    transform: scale(1.02);
    opacity: 1;

    border-color:
        rgba(190, 225, 208, 0.35);

    background:
        linear-gradient(145deg,
            rgba(190, 225, 208, 0.16),
            rgba(31, 121, 86, 0.16));

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.45),
        0 0 40px rgba(50, 148, 87, 0.18);
}

.feature-card h1 {
    padding: 15px;
    font-weight: 800;
    font-size: 30px;
    color: white !important;
}

.feature-card p {
    padding: 0px 20px 30px;
    text-align: justify;
}

#premiumFeatures {
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(31, 121, 87, 0.8) 50%,
            rgba(12, 83, 58, 1) 80%,
            rgba(12, 83, 58, 1) 100%);

    height: 50%;
    z-index: 10;
    position: absolute;
    width: 100%;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    color: white !important;
    box-shadow: none;
    border: none;
}

#infoSection {
    height: 768px;
    background: linear-gradient(to bottom,
            white 0%,
            white 30%,
            var(--color-principal) 80%);
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: columne;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.carousel {
    margin: 100px auto;
    min-width: 100%;
    display: flex;
    overflow-x: auto;
    gap: 1em;
    flex-direction: row;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
    animation: carousel-spin 10s infinite linear;
    padding-right: 1em;
}

.carousel-card {
    flex: 0 0 8em;
    height: 5em;
    padding: 1em;
    background: var(--color-principal);
    font-size: 3rem;
    border-radius: 0.2em;
    text-align: center;
    align-content: center;
}

@keyframes carousel-spin {
    from {
        translate: 0;
    }

    to {
        translate: -100%;
    }
}

#infoSection div {
    flex-direction: column;
    padding-bottom: 100px;
}

#infoSection div h1 {
    font-size: 70px;
    color: #166548;
}

#infoSection div p {
    color: #257f5d;
}

#infoSection img {
    width: min(800px, 100%);
    height: auto;
    padding-top: 50px;
}

#infoSection,
#funcSection,
#download-mobileSection {
    margin: 0;
}

#download-mobileSection {
    background: linear-gradient(to bottom,
            rgba(12, 83, 58, 1) 0%,
            rgba(12, 83, 58, 1) 20%,
            var(--color-principal) 50%,
            white 80%);
    position: relative;
    top: -1px;
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
    padding: 20px 40px;
}

#download-mobileSection img {
    width: 60%;
    height: auto;
    display: block;
}

#download-mobileSection div {
    padding: 150px 20px;
    align-items: center;
    justify-content: center;
    width: 40%;
}

#download-mobileSection h1 {
    font-size: 70px;
}

#download-mobileSection p,
h1 {
    align-items: left;
    color: white;
}

#download-mobileSection p {
    width: 90%;
}

#feedbackSection {
    height: auto;
    background: linear-gradient(to bottom,
    var(--color-principal),
    black);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.feedback-logo-container {
    position: relative;
    width: 80vw;
    max-width: 400px;
    aspect-ratio: 1 / 1;
}

.feedback-logo {
    width: 100%;
    height: auto;
    display: block;
}

.feedback-eye-button {
    position: absolute;
    top: 46%;
    left: 45%;
    width: 10%;
    aspect-ratio: 1 / 1;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2;
}

#feedbackSection>div:first-child {
    max-width: 500px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

#feedbackSection>div:first-child h1 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 10px;
}

#feedbackSection>div:first-child p {
    color: white;
    font-size: 1rem;
}

/* ==========================================
   MEDIA QUERIES - ARREGLADAS Y ORDENADAS
   ========================================== */

/* TABLETS Y PANTALLAS MEDIANAS */
@media screen and (max-width: 1200px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        width: 90%;
    }
}

/* MÓVILES (PWA PRINCIPAL) */
@media screen and (max-width: 880px) {
    .hideOnMobile {
        display: none !important;
    }

    .showOnMobile {
        color: white;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 40%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 999;
    }

    img.hideOnPc {
        display: inline;
        scale: 1.2;
    }

    .showOnMobile h1 {
        font-size: 80px;
        text-shadow: 10px 10px 20px rgba(0, 0, 0, 0.7);
        transform: skewX(-20deg);
    }

    #infoSection {
        height: auto;
        flex-direction: column;
        padding: 60px 20px;
        text-align: center;
    }

    #infoSection div {
        padding-bottom: 30px;
    }

    #infoSection div h1 {
        font-size: 40px;
    }

    #funcSection {
        height: auto;
        padding: 50px 10px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        /* Una sola columna para que sea fácil de leer en el cel */
        width: 100%;
    }

    #feedbackSection {
        flex-direction: column;
        text-align: center;
    }

    #feedbackSection>div:first-child h1 {
        font-size: 2rem;
    }

    .feedback-eye-button {
        width: 12%;
    }
}

/* MODO HORIZONTAL (LANDSCAPE) */
@media screen and (max-height: 450px) {
    #header-responsive a {
        font-size: 20px;
    }

    #cerrar {
        font-size: 40px;
        top: 15px;
        right: 35px;
    }
}

/* NAVBAR RESPONSIVE */
#menuButton {
    display: none;
}

@media screen and (max-width: 800px) {

    .hideOnMobile {
        display: none !important;
    }


    .nav-list,
    .btn {
        display: none;
    }
}