:root {
    --ink: #14223c;
    --ink-soft: #3a4d6c;
    --mint: #a7d2ff;
    --ocean: #1b4fa6;
    --sun: #e0565b;
    --cream: #f5f6fb;
    --pearl: #ffffff;
    --shadow: 0 24px 60px rgba(15, 42, 42, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--ink);
    background: var(--cream);
}

.page {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 10%, rgba(167, 210, 255, 0.25), transparent 55%),
        radial-gradient(circle at 80% 0%, rgba(224, 86, 91, 0.2), transparent 50%),
        linear-gradient(180deg, #f7f8fc 0%, #eef1f7 100%);
    padding-top: 110px;
}

#inicio {
    padding-top: 49px;
}

.header-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 110px;
    background: #f5f6fb;
    z-index: 8;
    transition: height 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.page::before {
    content: '';
    position: absolute;
    inset: -40% -10% auto -10%;
    height: 420px;
    background: repeating-linear-gradient(
        120deg,
        rgba(15, 42, 42, 0.05) 0px,
        rgba(15, 42, 42, 0.05) 1px,
        transparent 1px,
        transparent 20px
    );
    opacity: 0.4;
    pointer-events: none;
}

.container {
    width: min(1180px, 92vw);
    margin: 0 auto;
}

.nav {
    position: fixed;
    top: 34px;
    left: 0;
    right: 0;
    z-index: 10;
    backdrop-filter: blur(12px);
    background: rgba(245, 246, 251, 0.92);
    border-bottom: 1px solid rgba(20, 34, 60, 0.08);
    transition: top 0.8s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
    color: var(--ink);
}

.brand__logo {
    width: auto;
    height: 48px;
    object-fit: contain;
}

.whatsapp-float {

    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    z-index: 999;

    padding: 8px;

    border-radius: 50%;
    background: #ffffff;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);

    display: flex;
    justify-content: center;
    align-items: center;

    transition: 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}


@media (min-width: 992px) {
    .brand__logo {
        height: 80px;
    }
}

.brand__mark {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    background: linear-gradient(135deg, var(--ocean), var(--mint));
    box-shadow: 0 0 0 4px rgba(127, 209, 194, 0.25);
}

.brand--small {
    font-weight: 700;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav__links a {
    text-decoration: none;
    color: var(--ink);
    font-weight: 500;
}

.nav__check,
.nav__toggle {
    display: none;
}

.hero-carousel .item {
    height: 50vh;
    min-height: 320px;
    display: flex;
    align-items: center;
    background: #f4f6fb;
}

.hero-carousel .item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.products-carousel {
    margin-top: 10px;
}

.products-carousel .products-page {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.products-carousel .products-page img {
    width: 100%;
    height: 374px;
    object-fit: contain;
    background: #f2f4fa;
    border-radius: 14px;
    padding: 24px;
}

.products-page-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.products-page-grid img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background: #f2f4fa;
    border-radius: 16px;
    padding: 14px;
}

/*
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 11;
    background: #1b2b4a;
    color: #f5f6fb;
    font-size: 0.78rem;
    transition: transform 0.25s ease, opacity 0.25s ease, max-height 0.25s ease;
}
    */

    .topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 11;

    background: #7a5cff;


    color: #f5f6fb;
    font-size: 0.78rem;
    transition: transform 0.25s ease, opacity 0.25s ease, max-height 0.25s ease;
}


.topbar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    gap: 16px;
}

.topbar__group {
    display: inline-flex;
    gap: 18px;
    flex-wrap: wrap;
}

.topbar__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.topbar__item .bi {
    font-size: 0.9rem;
}

.topbar a {
    color: #f5f6fb;
    text-decoration: none;
    opacity: 0.9;
}

.topbar a:hover {
    opacity: 1;
}

body.is-scrolled .topbar {
    transform: translateY(-100%);
    opacity: 0;
    max-height: 0;
    pointer-events: none;
}

body.is-scrolled .nav {
    top: 0;
    box-shadow: 0 12px 24px rgba(20, 34, 60, 0.12);
    transform: translateY(0);
}

body .nav {
    transform: translateY(6px);
}

body.is-scrolled .page {
    padding-top: 76px;
}

body.is-scrolled #inicio {
    padding-top: 98px;
}

body.is-scrolled .header-backdrop {
    height: 76px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.72rem;
    color: var(--ocean);
    font-weight: 600;
}

h1,
h2,
h3 {
    font-family: 'Fraunces', serif;
    margin: 16px 0;
}

h1 {
    font-size: clamp(2.6rem, 4vw, 3.6rem);
    line-height: 1.1;
}

h2 {
    font-size: clamp(2rem, 3vw, 2.6rem);
}

h3 {
    font-size: 1.25rem;
}

.lead,
.section__lead {
    font-size: 1.05rem;
    color: var(--ink-soft);
    max-width: 520px;
}


.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 26px;
    border-radius: 999px;
    border: none;
    background: var(--ocean);
    color: var(--pearl);
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.btn--light {
    background: var(--pearl);
    color: var(--ink);
    box-shadow: 0 12px 24px rgba(15, 42, 42, 0.12);
}

.btn--ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid rgba(20, 34, 60, 0.2);
    box-shadow: none;
}

.section {
    padding: 80px 0;
}

.section--alt {
    background: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(15, 42, 42, 0.06);
    border-bottom: 1px solid rgba(15, 42, 42, 0.06);
}

.section__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 36px;
    align-items: start;
}

.pillars {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

.pillar {
    padding: 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(15, 42, 42, 0.08);
    box-shadow: 0 16px 30px rgba(15, 42, 42, 0.08);
    animation: float-in 0.8s ease both;
}

.pillar:nth-child(2) {
    animation-delay: 0.1s;
}

.pillar:nth-child(3) {
    animation-delay: 0.2s;
}

.feature-card {
    background: linear-gradient(160deg, rgba(27, 79, 166, 0.92), rgba(224, 86, 91, 0.9));
    color: #f5fffe;
    padding: 32px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.feature-card ul {
    padding-left: 18px;
    margin: 18px 0 26px;
}

.section__head {
    max-width: 620px;
    margin-bottom: 36px;
}

.cards,
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.card,
.product-card {
    padding: 24px;
    border-radius: 18px;
    background: var(--pearl);
    border: 1px solid rgba(15, 42, 42, 0.08);
    box-shadow: 0 16px 32px rgba(15, 42, 42, 0.08);
    animation: float-in 0.8s ease both;
}

.product-card img {
    width: 100%;
    height: 170px;
    object-fit: contain;
    background: #f2f4fa;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 14px;
}

.product-card h3 {
    margin: 8px 0 6px;
}

.card:nth-child(2) {
    animation-delay: 0.05s;
}

.card:nth-child(3) {
    animation-delay: 0.1s;
}

.card:nth-child(4) {
    animation-delay: 0.15s;
}

.card:nth-child(5) {
    animation-delay: 0.2s;
}

.card:nth-child(6) {
    animation-delay: 0.25s;
}

.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact__title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #7a5cff;
    font-weight: 600;
}

.contact__details {
    display: grid;
    gap: 24px;
    margin-top: 16px;
}

.contact__block {
    display: grid;
    gap: 6px;
    color: #444;
}

.contact__schedule {
    font-size: 0.9rem;
    color: #777;
}

.contact__social {
    display: flex;
    gap: 14px;
    margin-top: 10px;
}

.contact__social a {
    display: flex;
    align-items: center;
    gap: 8px;

    text-decoration: none;
    padding: 10px 16px;

    border-radius: 10px;
    background: #f3f4ff;

    color: #7a5cff;
    font-weight: 500;

    transition: 0.25s;
}

.contact__social a:hover {
    background: #7a5cff;
    color: white;
    transform: translateY(-2px);
}

.contact__social i {
    font-size: 1.2rem;
}


/*
.contact__details span {
    display: block;
    font-size: 0.85rem;
    color: var(--ink-soft);
}

.contact__details strong {
    font-size: 1.05rem;
}


.contact__info h2 {
    font-size: 2.3rem;
    margin-bottom: 12px;
}

.contact__details strong {
    font-size: 1.1rem;
    color: #222;
}

.contact__details span {
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #888;
}

*/

.contact__form {
    display: grid;
    gap: 18px;
    padding: 34px;
    border-radius: 24px;
    background: #fff;

    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
}


.contact__form label {
    display: grid;
    gap: 6px;
    font-weight: 500;
    color: #555;
    font-size: 0.9rem;
}


.contact__form input,
.contact__form textarea {
    border-radius: 14px;
    border: 1px solid #e4e6ef;
    padding: 14px 16px;
    font: inherit;
    background: #f7f8fc;

    transition: 0.25s ease;
}

.contact__form input:focus,
.contact__form textarea:focus {
    outline: none;
    border-color: #7a5cff;
    background: white;

    box-shadow: 0 0 0 3px rgba(122,92,255,0.15);
}

.contact__form .btn {
    margin-top: 10px;
    padding: 16px;
    border-radius: 14px;
    border: none;

    background: #7a5cff;
    color: white;

    font-weight: 600;
    font-size: 0.95rem;

    transition: 0.25s ease;
    cursor: pointer;
}

.contact__form .btn:hover {
    background: #6849ff;
    transform: translateY(-2px);
}


.footer {
    padding: 20px 0 20px;
    /*border-top: 1px solid rgba(15, 42, 42, 0.08);*/
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 24px;
    color: var(--ink-soft);
}

.footer__map {
    margin-top: 20px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 30px rgba(15, 42, 42, 0.12);
}

.footer__map iframe {
    width: 100%;
    height: 600px;
    border: 0;
}

.page-hero {
    padding: 90px 0 40px;
}

.page-hero__inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: center;
}

.page-hero__card {
    background: var(--pearl);
    padding: 26px;
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 12px 22px rgba(15, 42, 42, 0.12);
}

.footer a {
    display: block;
    text-decoration: none;
    color: var(--ink);
    margin: 6px 0;
}

.footer a .bi {
    margin-right: 6px;
    font-size: 0.9rem;
    vertical-align: -1px;
}

.product-card {
    background: #fff;
    text-align: center;

    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: 0.3s ease;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-card-group {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;
    height: 100%;
    min-height: 240px;

    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

.product-card-group img {
    width: 240px !important;
    height: 240px !important;
    object-fit: contain;
    display: block;
}

.product-card-group h4 {
    min-height: 40px;
}

.products-carousel-group .owl-item {
    display: flex;
    justify-content: center;
}


/* efecto hover elegante */
.product-card-group:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* imagen */
.product-card-group img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    margin-bottom: 8px;
}

/* nombre */
.product-card-group h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

/* botón lila */
.btn-info {
    background: #7a5cff;
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: 0.25s;
}

/* hover botón */
.btn-info:hover {
    background: #6849ff;
}


@media (max-width: 980px) {
    .section__grid,
    .contact,
    .page-hero__inner {
        grid-template-columns: 1fr;
    }

    .cards,
    .products-grid,
    .gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nav__check,
    .nav__toggle {
        display: block;
    }

    .nav__toggle {
        display: inline-flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }

    .nav__toggle span {
        width: 24px;
        height: 2px;
        background: var(--ink);
    }

    .nav__links {
        position: absolute;
        top: 90px;
        right: 4%;
        background: var(--pearl);
        border-radius: 16px;
        padding: 18px;
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }

    .nav__check:checked + .nav__toggle + .nav__links {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .products-carousel .products-page {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .products-page-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .nav {
        top: 44px;
    }

    .page {
        padding-top: 120px;
    }

    body.is-scrolled .page {
        padding-top: 76px;
    }

    #inicio {
        padding-top: 42px;
    }

    body.is-scrolled #inicio {
        padding-top: 84px;
    }

    .header-backdrop {
        height: 120px;
    }

    body.is-scrolled .header-backdrop {
        height: 76px;
    }

    .topbar__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .cards,
    .products-grid,
    .gallery {
        grid-template-columns: 1fr;
    }

    .products-carousel .products-page {
        grid-template-columns: 1fr;
    }

    .products-page-grid {
        grid-template-columns: 1fr;
    }

    .hero-carousel .item {
        height: 40vh;
        min-height: 240px;
    }
}

@keyframes float-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
