:root {
    --cream: #fff6e8;
    --orange: #ffa328;
    --orange-dark: #ac6200;
    --lime-soft: #f3fea1;
    --lime-text: #5d7300;
    --pink-soft: #ed97dd;
    --pink-text: #7b0064;
    --ink: #30220d;
    --card-shadow: 0 14px 34px rgba(70, 42, 8, 0.15);
    --radius-lg: 22px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: "Josefin Sans", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 5%, #ffd7a2 0%, rgba(255, 215, 162, 0) 36%),
        radial-gradient(circle at 90% 12%, #f3fea1 0%, rgba(243, 254, 161, 0) 34%),
        var(--cream);
}

a {
    color: inherit;
}

.head {
    width: min(1120px, 94vw);
    margin: 1rem auto 0;
    padding: 1.2rem clamp(1rem, 3vw, 2.4rem);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
    background: rgba(255, 247, 235, 0.94);
    border: 2px solid rgba(172, 98, 0, 0.2);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.logo {
    width: clamp(68px, 8vw, 112px);
    height: auto;
    border-radius: 14px;
}

.brandTitle {
    font-size: clamp(1.5rem, 3.5vw, 2.35rem);
    line-height: 1;
}

.brandSubtitle {
    margin-top: 0.25rem;
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    color: var(--orange-dark);
}

.direccion {
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    color: var(--orange-dark);
    text-align: right;
}

.heroActions {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    grid-column: 1 / -1;
}

.btn {
    border: none;
    text-decoration: none;
    border-radius: 999px;
    padding: 0.75rem 1.05rem;
    font-family: "Quicksand", sans-serif;
    font-weight: 700;
    transition: transform 180ms ease, filter 180ms ease;
}

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
}

.btnPrimary {
    background: var(--orange);
    color: #2d1b00;
}

.btnSecondary {
    background: #fff;
    color: #433200;
    border: 1px solid rgba(172, 98, 0, 0.25);
}

.main {
    width: min(1120px, 94vw);
    margin: 1rem auto 2rem;
    display: grid;
    gap: 1rem;
}

.contentBlock,
.promo {
    background: rgba(255, 255, 255, 0.74);
    border-radius: var(--radius-lg);
    border: 2px solid rgba(172, 98, 0, 0.14);
    box-shadow: var(--card-shadow);
    padding: clamp(0.9rem, 2.2vw, 1.4rem);
}

.contentBlock h2,
.promo h2 {
    font-size: clamp(1.3rem, 2.8vw, 2rem);
    margin-bottom: 0.45rem;
}

.promo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background:
        linear-gradient(110deg, rgba(255, 163, 40, 0.17), rgba(237, 151, 221, 0.2)),
        rgba(255, 255, 255, 0.85);
}

.promoKicker {
    display: inline-block;
    margin-bottom: 0.4rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.85rem;
    background: #fff;
    color: var(--pink-text);
}

.categories {
    display: grid;
    gap: 1rem;
}

.category {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.8rem, 3vw, 2rem);
    padding: clamp(0.8rem, 2.2vw, 1.35rem);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 26px rgba(70, 42, 8, 0.14);
    background-color: var(--lime-soft);
}

.category:nth-child(2) {
    background-color: var(--pink-soft);
}

.categoryImage {
    width: min(380px, 50vw);
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.categoryTitle {
    font-family: "Quicksand", sans-serif;
    font-weight: 700;
    font-size: clamp(1.7rem, 4.9vw, 3.4rem);
    text-align: center;
    color: var(--lime-text);
}

.category:nth-child(2) .categoryTitle {
    color: var(--pink-text);
}

.categoryReverse {
    flex-direction: row-reverse;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.6rem;
}

.tag {
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(172, 98, 0, 0.25);
    font-size: 0.93rem;
}

.mediaIntro {
    margin-bottom: 0.7rem;
}

.mediaGrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.mediaCard {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(172, 98, 0, 0.2);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(70, 42, 8, 0.14);
}

.mediaCard video,
.mediaCard img {
    width: 100%;
    display: block;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    background: #000;
}

.mediaCard p {
    padding: 0.55rem 0.65rem 0.7rem;
    font-family: "Quicksand", sans-serif;
    font-size: 0.92rem;
}

.resourcesGrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.resourceCard {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(172, 98, 0, 0.2);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(70, 42, 8, 0.14);
    display: flex;
    flex-direction: column;
}

.resourceCard video,
.resourceCard img {
    width: 100%;
    display: block;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    background: #000;
}

.resourceCard p {
    padding: 0.55rem 0.65rem 0.7rem;
    font-family: "Quicksand", sans-serif;
    font-size: 0.92rem;
}

.resourceCardDownload {
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem;
}

.infoGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: stretch;
}

.infoList {
    list-style: none;
    display: grid;
    gap: 0.55rem;
    margin-top: 0.45rem;
}

.mapWrap iframe {
    width: 100%;
    min-height: 290px;
    border: 0;
    border-radius: 14px;
}

.faq {
    display: grid;
    gap: 0.6rem;
    margin-top: 0.6rem;
}

.faqItem {
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(172, 98, 0, 0.2);
    padding: 0.75rem 0.85rem;
}

.faqItem summary {
    cursor: pointer;
    font-weight: 700;
}

.faqItem p {
    margin-top: 0.55rem;
    line-height: 1.45;
}

.footer {
    width: min(1120px, 94vw);
    margin: 0 auto 1.2rem;
    padding: 1rem 1rem 1.2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    background-color: #ffd7a2;
    border: 2px solid rgba(172, 98, 0, 0.2);
}

.footerTexto {
    font-family: "Quicksand", sans-serif;
    font-size: clamp(1.1rem, 3vw, 1.8rem);
    color: var(--lime-text);
    margin-bottom: 0.6rem;
}

.footerRedes {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.85rem;
}

.footerRedes a {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.72);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: transform 180ms ease, background-color 180ms ease;
}

.footerRedes a:hover {
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.95);
}

.footerRedes img {
    width: 30px;
    height: 30px;
}

.footerCopy {
    margin-top: 0.65rem;
    opacity: 0.84;
}

.floatingWhatsApp {
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 30;
    background: #1bbf52;
    color: #fff;
    text-decoration: none;
    font-family: "Quicksand", sans-serif;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.78rem 1rem;
    box-shadow: 0 10px 26px rgba(13, 61, 26, 0.35);
    transition: transform 180ms ease;
}

.floatingWhatsApp:hover {
    transform: translateY(-3px);
}

.socialBubbles {
    position: fixed;
    left: 14px;
    bottom: 14px;
    z-index: 30;
    display: flex;
    gap: 0.65rem;
}

.bubble {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.58);
    box-shadow:
        0 14px 30px rgba(24, 14, 8, 0.34),
        inset 0 -4px 12px rgba(0, 0, 0, 0.2),
        inset 0 7px 12px rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(4px);
    text-decoration: none;
    position: relative;
    isolation: isolate;
    overflow: visible;
    transition: transform 220ms ease, filter 220ms ease, box-shadow 220ms ease;
    opacity: 0;
    transform: translateY(14px) scale(0.9);
    animation: bubbleIn 480ms cubic-bezier(0.18, 0.9, 0.2, 1) forwards;
}

.bubble::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 8px;
    width: 58%;
    height: 36%;
    border-radius: 999px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.08));
    transform: rotate(-20deg);
    pointer-events: none;
}

.bubble::after {
    content: attr(data-label);
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%) translateX(-6px);
    white-space: nowrap;
    padding: 0.22rem 0.52rem;
    font-size: 0.76rem;
    font-family: "Quicksand", sans-serif;
    font-weight: 700;
    background: rgba(29, 21, 8, 0.86);
    color: #fff;
    border-radius: 999px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
}

.bubble:hover {
    transform: translateY(-4px) scale(1.08);
    filter: brightness(1.06);
    box-shadow:
        0 16px 36px rgba(24, 14, 8, 0.42),
        inset 0 -4px 12px rgba(0, 0, 0, 0.26),
        inset 0 9px 14px rgba(255, 255, 255, 0.2);
}

.bubble:hover::after,
.bubble:focus-visible::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.bubble:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.bubble:nth-child(2) {
    animation-delay: 120ms;
}

.bubble:nth-child(3) {
    animation-delay: 220ms;
}

.socialBubbles.isLive .bubble {
    animation:
        bubbleIn 480ms cubic-bezier(0.18, 0.9, 0.2, 1) forwards,
        bubbleFloat 4.2s ease-in-out infinite;
}

.socialBubbles.isLive .bubble:nth-child(2) {
    animation-delay: 120ms, 0.9s;
}

.socialBubbles.isLive .bubble:nth-child(3) {
    animation-delay: 220ms, 1.8s;
}

.bubbleFacebook {
    background:
        radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.34), transparent 48%),
        linear-gradient(145deg, #2c8fff, #1163d6);
}

.bubbleInstagram {
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.34), transparent 48%),
        linear-gradient(135deg, #f9ce34, #ee2a7b 58%, #6228d7);
}

.bubbleTikTok {
    background:
        radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.22), transparent 42%),
        linear-gradient(150deg, #1b1b1b, #050505);
}

.bubble img {
    width: 25px;
    height: 25px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
}

.bubbleFacebook img,
.bubbleInstagram img {
    filter: brightness(0) invert(1) drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
}

.opacidad {
    transition: opacity 0.8s ease;
}

@keyframes bubbleIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes bubbleFloat {
    0% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-3px) scale(1.015);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 980px) {
    .head {
        grid-template-columns: 1fr;
    }

    .direccion {
        text-align: left;
    }

    .heroActions {
        justify-content: flex-start;
    }

    .infoGrid {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 760px) {
    .promo {
        flex-direction: column;
        align-items: flex-start;
    }

    .category,
    .categoryReverse {
        flex-direction: column;
    }

    .categoryImage {
        width: min(460px, 100%);
    }

    .floatingWhatsApp {
        right: 10px;
        bottom: 10px;
        padding: 0.72rem 0.9rem;
    }

    .mediaGrid {
        grid-template-columns: 1fr;
    }

    .resourcesGrid {
        grid-template-columns: 1fr;
    }

    .socialBubbles {
        left: 10px;
        bottom: 10px;
        gap: 0.5rem;
    }

    .bubble {
        width: 46px;
        height: 46px;
    }

    .bubble::after {
        display: none;
    }

    .bubble img {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 520px) {
    .main,
    .head,
    .footer {
        width: 96vw;
    }

    .heroActions {
        width: 100%;
        flex-direction: column;
    }

    .btn {
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bubble {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .socialBubbles.isLive .bubble {
        animation: none;
    }
}
