@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;300;400;600;700&display=swap');

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}
.thin-font { font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; font-weight: 100; }
.bold-font { font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; font-weight: 700; }
.transition-letter-spacing:hover { letter-spacing: 0.25em; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

#servicio-academy > div > div > div > span.italic {
    font-size: 16px;
}

#servicio-academy > div > div > div > span.not-italic {
    font-size: 16px;
}

body {
    min-height: max(884px, 100dvh);
}

.hl-whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 56px;
    height: 56px;
    border-radius: 9999px;
    background: #ffffff;
    border: 1.5px solid #000000;
    color: #111111;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    z-index: 90;
    transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.hl-whatsapp-float::before {
    content: "";
    position: absolute;
    inset: -8px;
    background: linear-gradient(120deg, transparent 0%, rgba(0, 0, 0, 0.08) 36%, rgba(0, 0, 0, 0.22) 50%, rgba(0, 0, 0, 0.08) 64%, transparent 100%);
    transform: translateX(-140%) rotate(12deg);
    opacity: 0;
    animation: hl-whatsapp-sheen 3.8s ease-in-out infinite;
    pointer-events: none;
}

.hl-whatsapp-float::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.18);
    animation: hl-whatsapp-pulse 2.8s ease-out infinite;
    pointer-events: none;
}

.hl-whatsapp-float img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.hl-whatsapp-float:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.hl-whatsapp-float:hover::before {
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.08) 36%, rgba(255, 255, 255, 0.22) 50%, rgba(255, 255, 255, 0.08) 64%, transparent 100%);
}

.hl-whatsapp-float:hover::after {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.18);
}

.hl-whatsapp-float:hover img {
    filter: brightness(0) invert(1);
}

.hl-whatsapp-float:focus-visible {
    outline: 2px solid #000000;
    outline-offset: 3px;
}

@keyframes hl-whatsapp-sheen {
    0%, 68% {
        transform: translateX(-140%) rotate(12deg);
        opacity: 0;
    }
    72% { opacity: 1; }
    100% {
        transform: translateX(140%) rotate(12deg);
        opacity: 0;
    }
}

@keyframes hl-whatsapp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.18); }
    70% { box-shadow: 0 0 0 14px rgba(0, 0, 0, 0); }
    100% { box-shadow: 0 0 0 14px rgba(0, 0, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .hl-whatsapp-float::before,
    .hl-whatsapp-float::after {
        animation: none;
    }
}

.hl-hero-photo-carousel__slide {
    opacity: 0;
    animation: hl-hero-photo-fade 10s ease-in-out infinite;
    will-change: opacity;
    pointer-events: none;
}

.hl-hero-photo-carousel__slide:nth-child(2) {
    animation-delay: 5s;
}

.hl-hero-photo-carousel__img {
    -webkit-mask-image: radial-gradient(closest-side, #000 70%, transparent 100%);
    mask-image: radial-gradient(closest-side, #000 70%, transparent 100%);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: 140% 140%;
    mask-size: 140% 140%;
    filter: grayscale(1) drop-shadow(0 18px 28px rgba(0, 0, 0, 0.18));
}

@keyframes hl-hero-photo-fade {
    0% { opacity: 1; }
    45% { opacity: 1; }
    55% { opacity: 0; }
    100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hl-hero-photo-carousel__slide {
        animation: none;
        opacity: 0;
    }

    .hl-hero-photo-carousel__slide:first-child {
        opacity: 1;
    }
}

@media (max-width: 640px) {
    .hl-whatsapp-float {
        right: 14px;
        bottom: 14px;
        width: 52px;
        height: 52px;
    }

    .hl-whatsapp-float img {
        width: 28px;
        height: 28px;
    }
}

.hl-pr-logo__high {
    display: inline-block;
    width: 84px;
}

.hl-pr-logo__light {
    display: inline-block;
    width: 71px;
}

.hl-pr-logo__tag {
    margin-left: 0.5rem;
    position: relative;
    top: -1rem;
    font-weight: 700;
    font-style: italic;
    line-height: 1;
}

.hl-pr-logo--hero {
    color: #000000;
}

.hl-pr-logo--hero .hl-pr-logo__high,
.hl-pr-logo--hero .hl-pr-logo__light {
    font-size: clamp(56px, 10vw, 132px);
    line-height: 1;
}

.hl-pr-logo--hero .hl-pr-logo__high {
    width: clamp(116px, 11vw, 246px);
}

.hl-pr-logo--hero .hl-pr-logo__light {
    width: clamp(98px, 9.5vw, 208px);
}

.hl-pr-logo--hero .hl-pr-logo__tag {
    margin-left: clamp(10px, 1.2vw, 18px);
    top: clamp(-20px, -1.8vw, -12px);
    font-size: clamp(30px, 3vw, 44px);
}

.hl-pr-hero .hl-pr-logo__high,
.hl-pr-hero .hl-pr-logo__light {
    font-size: clamp(64px, 10vw, 120px);
    line-height: 1;
}

.hl-pr-hero .hl-pr-logo__light {
    margin-left: clamp(-8px, -0.8vw, -4px);
}

.hl-pr-hero__tag {
    margin-left: clamp(8px, 1.4vw, 14px);
    position: relative;
    transform: translateY(clamp(-60px, -6vw, -28px));
    font-size: clamp(28px, 4.2vw, 50px);
    font-weight: 700;
    font-style: italic;
    line-height: 1;
}

.hl-division-hero-title {
    font-size: clamp(56px, 9.5vw, 110px);
    line-height: 0.92;
    letter-spacing: -0.06em;
}

.hl-service-division-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 0.9;
}

.hl-service-division-logo__wordmark {
    display: inline-flex;
    align-items: baseline;
    font-size: clamp(32px, 8vw, 132px);
    letter-spacing: -0.06em;
}

.hl-service-division-logo__descriptor {
    align-self: flex-end;
    margin-top: 24px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.hl-service-division-logo__descriptor--marketing {
    font-size: clamp(14px, 2.2vw, 19px);
    text-transform: lowercase;
}

.hl-service-division-logo__descriptor--academy {
    align-self: center;
    font-size: clamp(16px, 2.5vw, 24px);
    margin-top: 16px;
}

main.pt-20 > section.min-h-\[795px\] > div.grid > div.lg\:col-span-8 > h1.font-display-xl > span.bold-font {
    font-size: clamp(36px, 8.5vw, 110px);
}

main.pt-20 > section.min-h-\[795px\] > div.grid > div.lg\:col-span-8 > h1.font-display-xl > span.thin-font {
    font-size: clamp(28px, 6.2vw, 52px);
}

.hl-nav-dropdown__menu {
    position: absolute;
    top: 100%;
    left: 50%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 10px;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease;
    z-index: 60;
}

.hl-nav-dropdown > button {
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 180ms ease, opacity 180ms ease, border-color 180ms ease;
}

.hl-nav-dropdown:hover .hl-nav-dropdown__menu,
.hl-nav-dropdown:focus-within .hl-nav-dropdown__menu,
.hl-nav-dropdown.is-open .hl-nav-dropdown__menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.hl-nav-dropdown:hover > button,
.hl-nav-dropdown:focus-within > button,
.hl-nav-dropdown.is-open > button {
    color: #000000;
    opacity: 1;
    border-bottom-color: #000000;
}

.hl-nav-dropdown__link {
    display: block;
    padding: 0;
    color: #4c4546;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: opacity 180ms ease, color 180ms ease;
}

.hl-nav-dropdown__link:hover,
.hl-nav-dropdown__link:focus-visible {
    color: #000000;
    opacity: 1;
    outline: none;
}

.hl-clients-carousel {
    overflow: hidden;
    padding: 28px 0;
}

.hl-clients-carousel__viewport {
    overflow: hidden;
}

.hl-clients-carousel__track {
    display: flex;
    align-items: center;
    gap: 0;
    width: max-content;
    padding: 0 8px;
    animation: hl-clients-scroll 34s linear infinite;
}

.hl-clients-carousel:hover .hl-clients-carousel__track {
    animation-play-state: paused;
}

.hl-clients-carousel__slide {
    flex: 0 0 auto;
    width: 480px;
    height: 255px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.hl-clients-carousel__slide--tight {
    margin-right: 2px;
}

.hl-clients-carousel__slide--small {
    width: 260px;
    height: 130px;
}

.hl-clients-carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: none;
    opacity: 1;
}

@keyframes hl-clients-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .hl-clients-carousel__track {
        animation: hl-clients-scroll-mobile 25s linear infinite;
        padding: 0 6px;
    }
    
    @keyframes hl-clients-scroll-mobile {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-100% / 2)); }
    }

    .hl-clients-carousel__slide {
        width: 320px;
        height: 180px;
        margin-right: 4px;
    }

    .hl-clients-carousel__slide--small {
        width: 180px;
        height: 100px;
    }
}

@media (max-width: 640px) {
    .hl-clients-carousel__track {
        padding: 0 4px;
    }

    .hl-clients-carousel__slide {
        width: 200px;
        height: 120px;
        margin-right: 4px;
    }

    .hl-clients-carousel__slide--small {
        width: 140px;
        height: 80px;
    }

    .hl-clients-carousel__slide--tight {
        margin-right: 2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hl-clients-carousel__track {
        animation: none;
    }

    .hl-clients-carousel__viewport {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .hl-clients-carousel__track {
        scroll-snap-type: x mandatory;
    }

    .hl-clients-carousel__slide {
        scroll-snap-align: start;
    }
}

/* Mobile Navigation Drawer */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-nav-overlay.is-active {
    opacity: 1;
    visibility: visible;
}
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(92vw, 320px);
    height: 100%;
    background-color: #f9f9f9;
    border-left: 1px solid #000000;
    z-index: 100;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 24px;
}
.mobile-nav-drawer.is-active {
    transform: translateX(0);
}
.mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
.mobile-dropdown.is-open .mobile-dropdown-menu {
    max-height: 200px;
}

@media (min-width: 768px) {
    #mobile-menu-trigger {
        display: none !important;
    }
}

/* Neo-Brutalist Utilities for Conversion & UI */
.neo-brutalism-card {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease;
}

.neo-brutalism-card:hover {
    transform: translate(-6px, -6px);
    box-shadow: 6px 6px 0px 0px currentColor;
}

.neo-brutalism-btn-accent {
    background-color: #000000;
    color: #ffffff;
    border: 1px solid #000000;
    font-weight: 600;
    border-radius: 9999px;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
}

.neo-brutalism-btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    background-color: #222222;
}

.neo-brutalism-btn-secondary {
    background-color: transparent;
    color: currentColor;
    border: 1px solid currentColor;
    opacity: 0.85;
    font-weight: 600;
    border-radius: 9999px;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, opacity 0.2s ease;
}

.neo-brutalism-btn-secondary:hover {
    transform: translateY(-2px);
    opacity: 1;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
    background-color: rgba(0, 0, 0, 0.03);
}

.bg-primary .neo-brutalism-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Header Contact Button Refinement */
header a[href="contacto.html"] {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #000000 !important;
    border-radius: 9999px !important;
    font-weight: 600 !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, color 0.2s ease !important;
}

header a[href="contacto.html"]:active {
    transform: translateY(0) !important;
}

/* Touch screen interaction optimizations (Non-sticky Hover) */
@media (hover: hover) {
    .neo-brutalism-card:hover {
        transform: translate(-6px, -6px);
        box-shadow: 6px 6px 0px 0px currentColor;
    }
    .neo-brutalism-btn-accent:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
        background-color: #222222;
    }
    .neo-brutalism-btn-secondary:hover {
        transform: translateY(-2px);
        opacity: 1;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
        background-color: rgba(0, 0, 0, 0.03);
    }
    header a[href="contacto.html"]:hover {
        transform: translateY(-1.5px) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
        background-color: #222222 !important;
        color: #ffffff !important;
    }
}

@media (hover: none) {
    .neo-brutalism-card:active {
        background-color: rgba(0, 0, 0, 0.04);
    }
    .bg-primary .neo-brutalism-card:active {
        background-color: rgba(255, 255, 255, 0.08);
    }
    .neo-brutalism-btn-accent:active,
    .neo-brutalism-btn-secondary:active,
    header a[href="contacto.html"]:active {
        transform: scale(0.97) !important;
    }
}

/* Mobile grid borders and layout refinements */
@media (max-width: 768px) {
    .grid > a.neo-brutalism-card,
    .grid > article.neo-brutalism-card,
    .grid > div.neo-brutalism-card {
        border-right: none !important;
        border-left: none !important;
        border-top: 1px solid rgba(0, 0, 0, 0.15) !important;
        border-bottom: none !important;
    }
    
    .bg-primary .grid > a.neo-brutalism-card,
    .bg-primary .grid > article.neo-brutalism-card,
    .bg-primary .grid > div.neo-brutalism-card {
        border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    }

    .grid > a.neo-brutalism-card:last-child,
    .grid > article.neo-brutalism-card:last-child,
    .grid > div.neo-brutalism-card:last-child {
        border-bottom: 1px solid rgba(0, 0, 0, 0.15) !important;
    }

    .bg-primary .grid > a.neo-brutalism-card:last-child,
    .bg-primary .grid > article.neo-brutalism-card:last-child,
    .bg-primary .grid > div.neo-brutalism-card:last-child {
        border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    }
}

/* Extra small screen size adjustments (iPhone SE / foldables) */
@media (max-width: 375px) {
    header a[href="contacto.html"] {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        font-size: 11px !important;
    }
    .px-6 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Title scale compression for narrow layouts */
    .hl-service-division-logo__wordmark {
        font-size: clamp(42px, 9vw, 56px) !important;
    }
    .hl-division-hero-title {
        font-size: clamp(38px, 8.5vw, 48px) !important;
    }
    .hl-pr-logo--hero .hl-pr-logo__high,
    .hl-pr-logo--hero .hl-pr-logo__light {
        font-size: clamp(38px, 8.5vw, 48px) !important;
    }
    .hl-pr-logo--hero .hl-pr-logo__high {
        width: 80px !important;
    }
    .hl-pr-logo--hero .hl-pr-logo__light {
        width: 70px !important;
    }
    .hl-pr-logo--hero .hl-pr-logo__tag {
        font-size: 20px !important;
        top: -6px !important;
        margin-left: 6px !important;
    }
}

