:root {
    --primary: #1E88E5;
    --secondary: #26C6DA;
    --accent: #FFC107;
    --dark: #212121;
    --light: #FAFAFA;
}

* {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* ANIMACIONES SCROLL */
.fade-in {
    opacity: 0;
    transition:
        opacity 1.6s ease-out,
        transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.show {
    opacity: 1;
    transform: translate(0, 0);
}

.delay-1 {
    transition-delay: 0.15s;
}

.delay-2 {
    transition-delay: 0.3s;
}

.delay-3 {
    transition-delay: 0.45s;
}

.delay-4 {
    transition-delay: 0.6s;
}

.fade-up {
    transform: translateY(45px);
}

.fade-left {
    transform: translateX(-60px);
}

.fade-right {
    transform: translateX(60px);
}


body {
    margin: 0;
    background: var(--light);
    color: var(--dark);
}

.site-header {

    position: sticky;
    top: 10px;
    z-index: 1000;

    margin: 0 auto;
    width: calc(100% - 32px);
    max-width: 1200px;

    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.4);

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);

    animation: headerEnter 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;

    transition: box-shadow 0.3s ease, transform 0.3s ease;
}


.site-header.scrolled {
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 65px;
    background: transparent;
}

@keyframes headerEnter {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

.logo-nestlynk {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ÍCONO */
.logo-icon {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(180deg,
            #8ecbff 0%,
            #ffffff 45%,
            #4fd1c5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* FORMA INTERNA (estilo Nest) */
.logo-icon::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 8px;
    border: 3px solid #d6ece4;
    transform: rotate(45deg);
}

/* PUNTOS */
.dot {
    position: absolute;
    background: #1f7a5a;
    border-radius: 50%;
}

.dot.center {
    width: 6px;
    height: 6px;
}

.dot.top {
    width: 7px;
    height: 7px;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
}

.dot.right {
    width: 7px;
    height: 7px;
    right: 6px;
    bottom: 10px;
}

/* TEXTO */
.logo-text {
    font-size: 1.35rem;
    font-weight: 600;
    color: #1ba373;
    letter-spacing: -0.4px;
    white-space: nowrap;
}

.logo-icon {
    width: 34px;
    height: 34px;
}

.logo-text {
    font-size: 1.35rem;
    cursor: pointer;
}

.logo-nestlynk:hover .logo-icon {
    transform: rotate(8deg);
    transition: transform 0.6s ease;
    cursor: pointer;
}

@keyframes spinSlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.logo-icon {
    animation: spinSlow 20s linear infinite;
}

.logoa {
    text-decoration: none;
}

.logo-nestlynk:hover .logo-icon {
    animation-play-state: paused;
}


.nav {
    display: flex;
    align-items: center;
    gap: 1.6rem;
}

.nav-link {
    text-decoration: none;
    color: #212121;
    font-weight: 500;
    position: relative;
    padding-bottom: 6px;
    font-weight: bold;

}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: #1E88E5;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-header {
    background: #FFC107;
    color: #212121;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
}

/* MOBILE */
@media (max-width: 900px) {
    .menu-toggle {
        display: block;
    }

    .nav {
        position: absolute;
        top: 72px;
        right: 0;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
        width: 220px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
        display: none;
    }

    .nav.open {
        display: flex;
    }

    .btn-header {
        width: 100%;
        text-align: center;
    }
}


.btn {
    transition: all .3s ease;
}

.btn:hover {
    transform: scale(1.08);
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}


.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}



nav a {
    margin-left: 1rem;
    text-decoration: none;
}

.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg,
            #1E88E5 0%,
            #26C6DA 100%);
    color: white;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right,
            rgba(255, 255, 255, 0.15),
            transparent 60%);
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: center;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3rem;
    line-height: 1.15;
    margin: 1rem 0;
}

.hero-text h1 span {
    color: #FFC107;
}

.hero-text p {
    font-size: 1.15rem;
    max-width: 520px;
    opacity: 0.95;
}

.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.hero-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

/* BOTONES */
.btn {
    padding: 0.9rem 1.8rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-primary {
    background: #FFC107;
    color: #212121;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-outline {
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    color: white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* VISUAL ABSTRACTO */
.hero-visual {
    position: relative;
    height: 380px;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.75;
}

.orb-1 {
    width: 220px;
    height: 220px;
    background: #FFC107;
    top: 0;
    right: 20%;
}

.orb-2 {
    width: 260px;
    height: 260px;
    background: #26C6DA;
    bottom: 0;
    left: 10%;
}

.orb-3 {
    width: 160px;
    height: 160px;
    background: #1E88E5;
    bottom: 20%;
    right: 0;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text p {
        margin: auto;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-visual {
        display: none;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }
}


.section {
    padding: 4rem 0;
}

.section.dark {
    background: #f1f1f1;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease
}

.btn {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    border-radius: 6px;
    text-decoration: none;
    margin-right: 0.5rem;
}

.primary {
    background: var(--accent);
    color: #000;
    text-decoration: none;

}

.default {
    border: 1px solid white;

    color: white;
}

.footer {
    background: #212121;
    color: #FAFAFA;
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

.footer-content {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #FAFAFA;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    opacity: 1;
    color: #FFC107;
}

/* Mobile */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

.card {
    background: white;
    padding: 1.8rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card p {
    margin-top: 0;
    text-align: justify;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}


.btn.big {
    font-size: 1.1rem;
    padding: 1rem 2rem;
    font-weight: bold;
}

.form {
    max-width: 520px;
    margin-top: 2rem;
}

.form input,
.form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 0.95rem;
}

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

.form-note {
    margin-top: 0.8rem;
    font-size: 0.85rem;
    color: #666;
}

.form button {
    background: #FFC107;
    color: black;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all .4s ease
}

.form-success {
    margin-top: 1rem;
    padding: 0.9rem;
    background: #e6f9f0;
    color: #0f5132;
    border-radius: 8px;
    font-size: 0.9rem;
}

.hidden {
    display: none;
}


.process {
    background: #fff;
    text-align: center;
}

.subtitle {
    color: #555;
    margin-bottom: 3rem;
}

.process-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.step {
    background: white;
    padding: 1.5rem;
    border-radius: 14px;
    width: 220px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.step .number {
    display: inline-block;
    background: var(--primary);
    color: white;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    line-height: 42px;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.arrow {
    font-size: 2rem;
    color: var(--secondary);
    font-weight: bold;
}

.cta-fixed {
    bottom: 20px;
    right: 20px;
    background: #FFC107;
    color: #212121;
    padding: 1rem 1.2rem;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    font-weight: bold;
    margin-top: 2rem;
}

.why-us {
    background: #FAFAFA;
    text-align: center;
}

.why-us .subtitle {
    max-width: 600px;
    margin: 0 auto 3rem;
    color: #555;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.why-card {
    background: white;
    padding: 2rem 1.8rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.icon-circle {
    width: 54px;
    height: 54px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #1E88E5, #26C6DA);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
}

.why-card h3 {
    margin-bottom: 0.6rem;
}

.contact {
    background: #FAFAFA;
}

.contact-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.contact-text {
    max-width: 600px;
}

.contact-actions {
    display: flex;
    gap: 1rem;
}

.btn-whatsapp {
    border: 1px solid rgb(185, 235, 169);
    color: green;
}

.btn-whatsapp:hover {
    background: #1ebe5b;
    color: white;
}

@media (max-width: 768px) {
    .contact-box {
        flex-direction: column;
        text-align: center;
    }
}

.service-card {
    text-align: left;
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1E88E5, #26C6DA);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.case-card {
    position: relative;
}

.case-badge {
    display: inline-block;
    background: #FFC107;
    color: #212121;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    margin-bottom: 0.6rem;
}

.no-scroll {
    overflow: hidden;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.case-card:hover {
    background: white;
}

.case-card {
    background: rgb(238, 237, 237);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);


}

.case-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.case-image {
    overflow: hidden;
    border-radius: 18px;
}

.case-image:hover img {
    transform: scale(1.1);
}

.case-card p {
    margin-top: 0;
    text-align: justify;
}


.case-content {
    padding: 1.5rem;
}

.case-content h3 {
    margin-bottom: 0.5rem;
}

.case-content p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 1.2rem;
}

.btn-small {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

@media (max-width: 900px) {
    .arrow {
        display: none;
    }

    .nav {
        display: none;
        /* ← cerrado por defecto */
    }

    .nav.open {
        display: flex;
        /* ← solo se abre con la clase */
    }
}

@media (max-width: 768px) {
    .logo-icon {
        width: 30px;
        height: 30px;
    }

    .logo-text {
        font-size: 1.2rem;
    }
}