/* ================================
   CUSTOM.CSS - Override & Accessibility Layer
   Solo reglas que NO están en los parciales (/styles/).
   Los componentes (section-tag, gallery, lightbox,
   service-bullet) están definidos en _components.css.
   ================================ */

/* ================================
   AAA CONTRAST OVERRIDES
   Gray text on dark backgrounds - LIGHT GRAY FOR CONTRAST
   Colors chosen for ~10:1 contrast ratio on #121212 background
================================ */

/* Lighter grays (200-400) become light gray */
.bg-bunker-black .text-gray-200,
.bg-bunker-negro .text-gray-200,
.bg-bunker-carbon .text-gray-200,
.bg-bunker-oliva .text-gray-200,
.bg-bunker-black .text-gray-300,
.bg-bunker-negro .text-gray-300,
.bg-bunker-carbon .text-gray-300,
.bg-bunker-oliva .text-gray-300,
.bg-bunker-black .text-gray-400,
.bg-bunker-negro .text-gray-400,
.bg-bunker-carbon .text-gray-400,
.bg-bunker-oliva .text-gray-400,
[class*="bg-bunker-black"] .text-gray-200,
[class*="bg-bunker-black"] .text-gray-300,
[class*="bg-bunker-black"] .text-gray-400 {
    color: #d0d5dd !important;
    /* Light gray - good visual hierarchy */
}

/* Darker grays (500-600) become slightly brighter */
.bg-bunker-black .text-gray-500,
.bg-bunker-negro .text-gray-500,
.bg-bunker-carbon .text-gray-500,
.bg-bunker-oliva .text-gray-500,
.bg-bunker-black .text-gray-600,
.bg-bunker-negro .text-gray-600,
.bg-bunker-carbon .text-gray-600,
.bg-bunker-oliva .text-gray-600,
[class*="bg-bunker-black"] .text-gray-500,
[class*="bg-bunker-black"] .text-gray-600 {
    color: #e8ecf0 !important;
    /* Brighter for secondary text */
}

/* Footer and dark section paragraphs */
.bg-bunker-black p,
.bg-bunker-negro p,
.bg-bunker-carbon p,
.bg-bunker-oliva p {
    color: #d0d5dd;
}

/* Make sure white text class is truly white */
.text-white {
    color: #ffffff;
    /* Removed !important to allow hover states to work */
}



/* Restored Logo Avatar Styles */
.logo-avatar {
    width: 3rem;
    /* w-12 */
    height: 3rem;
    /* h-12 */
    border-radius: 9999px;
    /* rounded-full */
    object-fit: cover;
    border: 2px solid white;
    background-color: white;
    /* Ensure background for transparent logos */
    position: relative;
    z-index: 1;
    border: 1px solid #00000033;
}

.logo-timeline-omicron {
    max-width: 150px;
    height: auto;
    display: inline-block;
    margin-right: 15px;
    filter: brightness(0) saturate(100%) invert(76%) sepia(13%) saturate(1146%) hue-rotate(200deg) brightness(98%) contrast(89%);
}


@media (max-width: 1024px) {

    .logo-timeline-omicron {
        max-width: 100px;
        /*        margin: 0;*/
    }
}

/* Text Fill Animation */
.text-fill-anim {
    /* Layer 1 (Top): Filled color (Black) - Width animated via JS */
    /* Layer 2 (Bottom): Unfilled color (Gray 400) - Width 100% */
    background-image:
        linear-gradient(#121212, #121212),
        linear-gradient(#9ca3af, #9ca3af);
    background-size: 0% 100%, 100% 100%;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

    /* Ensure clean rendering */
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    padding-right: 0.1em;
    /* Fix clipping on some italics/fonts */
}

/* ================================
   WHATSAPP FLOATING BUTTON
================================ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background-color: var(--bunker-oliva);
    color: #FFF;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 24px rgba(154, 177, 124, 0.4);
    z-index: 9999;
    text-decoration: none;
    /* Soft breathing idle animation */
    animation: whatsappPulse 2.5s ease-in-out infinite;
    /* transition for hover */
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

@keyframes whatsappPulse {
    0% { transform: scale(1); box-shadow: 0 8px 24px rgba(154, 177, 124, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 10px 28px rgba(154, 177, 124, 0.55); }
    100% { transform: scale(1); box-shadow: 0 8px 24px rgba(154, 177, 124, 0.4); }
}

.whatsapp-float:hover {
    animation-play-state: paused; /* Pause breathing on hover */
    transform: scale(1.08); /* Immediate pop */
    /* Lighten the background slightly on hover using a brightness filter or explicit brighter color. We'll use filter */
    filter: brightness(1.1);
    box-shadow: 0 12px 28px rgba(154, 177, 124, 0.6);
    color: #FFF;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

/* Tooltip (Desktop Only) */
.whatsapp-float::before {
    content: "Hablemos!";
    position: absolute;
    right: 75px;
    background-color: rgba(18, 18, 18, 0.9);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    font-family: 'Manrope', sans-serif;
    letter-spacing: 0.01em;
}

@media (min-width: 768px) {
    .whatsapp-float:hover::before {
        opacity: 1;
        transform: translateX(0);
    }
}

/* WhatsApp Hidden State for Scroll Logic */
.whatsapp-float.whatsapp-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* WhatsApp Mobile Size Adjustment */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 51px;
        height: 51px;
    }
    .whatsapp-float svg {
        width: 27px !important;
        height: 27px !important;
    }
}

/* ================================
   LOGO CAROUSEL MOBILE ADJUSTMENTS
================================ */
@media (max-width: 767px) {
    .animate-marquee {
        gap: 3.5rem !important; /* Reduces gap-24 (6rem) by ~40% */
    }
}