/* Explain: Styles for UI components, including new brand card styling. */
.eyebrow {
    font-size: 0.78rem;
    font-weight: 800;
    display: inline-block;
}

.brand-badge {
    display: inline-flex;
    height: 2.75rem;
    width: 2.75rem;
    shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 0.95rem;
    background: linear-gradient(150deg, var(--primary-color), color-mix(in srgb, var(--primary-color) 40%, var(--charcoal-color)));
    color: var(--cream-color);
    box-shadow: 0 12px 26px color-mix(in srgb, var(--primary-color) 32%, transparent);
}

.glow-orb {
    position: absolute;
    border-radius: 999px;
    background: color-mix(in srgb, var(--secondary-color) 48%, transparent);
    border: 1px solid color-mix(in srgb, var(--primary-color) 26%, transparent);
    animation: orbFloat 9s ease-in-out infinite;
}

.glow-orb:nth-child(2n) {
    animation-delay: -3s;
}

.glow-orb:nth-child(3n) {
    animation-delay: -6s;
}

.quote-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    background: color-mix(in srgb, var(--surface-color) 96%, transparent);
    box-shadow: var(--shadow-soft);
}

.ivory-panel {
    position: relative;
    border: 1px solid color-mix(in srgb, var(--primary-color) 18%, transparent);
    border-radius: 1.75rem;
    background: color-mix(in srgb, var(--surface-color) 90%, transparent);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.credibility-item {
    display: flex;
    min-height: 4.25rem;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 1rem;
    border-radius: 1.15rem;
    border: 1px solid var(--border-color);
    background: color-mix(in srgb, var(--surface-color) 72%, transparent);
    color: var(--charcoal-color);
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
}

.service-card,
.feature-card,
.process-card,
.project-card,
.contact-tile {
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    background: color-mix(in srgb, var(--surface-color) 94%, transparent);
    box-shadow: var(--shadow-card);
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.service-card:hover,
.feature-card:hover,
.project-card:hover,
.contact-tile:hover {
    transform: translateY(-0.3rem);
    border-color: color-mix(in srgb, var(--primary-color) 55%, transparent);
    box-shadow: var(--shadow-soft);
}

.service-icon {
    display: inline-flex;
    height: 3.25rem;
    width: 3.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary-color) 28%, var(--cream-color));
    color: var(--charcoal-color);
}

.review-card {
    border: 1px solid color-mix(in srgb, var(--cream-color) 20%, transparent);
    border-radius: 1.5rem;
    background: color-mix(in srgb, var(--cream-color) 10%, transparent);
    box-shadow: var(--shadow-card);
    transition: transform 300ms ease, border-color 300ms ease, background 300ms ease;
}

.review-card:hover {
    transform: translateY(-0.3rem);
    border-color: color-mix(in srgb, var(--secondary-color) 65%, transparent);
    background: color-mix(in srgb, var(--cream-color) 16%, transparent);
}

.faq-card {
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    background: color-mix(in srgb, var(--surface-color) 94%, transparent);
    box-shadow: var(--shadow-card);
    transition: border-color 300ms ease, background 300ms ease;
}

.faq-card[open] {
    border-color: color-mix(in srgb, var(--primary-color) 55%, transparent);
    background: color-mix(in srgb, var(--primary-color) 6%, var(--surface-color));
}

.faq-card summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    list-style: none;
}

.faq-card summary::-webkit-details-marker {
    display: none;
}

.faq-icon {
    transition: transform 300ms ease;
}

.faq-card[open] .faq-icon {
    transform: rotate(180deg);
}

.floating-quote {
    position: fixed;
    inset-inline-end: 1rem;
    bottom: 5.25rem;
    z-index: 900;
    display: none;
}

.floating-whatsapp {
    position: fixed;
    inset-inline-end: 1rem;
    bottom: 1rem;
    z-index: 950;
    display: inline-flex;
    height: 3.5rem;
    width: 3.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #25d366;
    color: #ffffff;
    box-shadow: 0 14px 32px color-mix(in srgb, #25d366 45%, transparent);
    transition: transform 300ms ease, box-shadow 300ms ease;
}

.floating-whatsapp:hover {
    transform: scale(1.06);
    box-shadow: 0 18px 40px color-mix(in srgb, #25d366 60%, transparent);
}

.floating-quote.is-visible {
    display: inline-flex;
}

.callback-status.success {
    display: block;
    border: 1px solid color-mix(in srgb, var(--primary-color) 50%, transparent);
    background: color-mix(in srgb, var(--primary-color) 14%, transparent);
    color: var(--charcoal-color);
}

.callback-status.error {
    display: block;
    border: 1px solid color-mix(in srgb, var(--accent-color) 48%, transparent);
    background: color-mix(in srgb, var(--accent-color) 12%, transparent);
    color: var(--charcoal-color);
}

.star-btn {
    color: color-mix(in srgb, var(--charcoal-color) 22%, transparent);
    line-height: 1;
}

.star-btn.is-active {
    color: var(--secondary-color);
    text-shadow: 0 6px 16px color-mix(in srgb, var(--secondary-color) 55%, transparent);
}

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

#quote,
#smart-systems,
#services,
#projects,
#faq,
#reviews,
#brands {
    scroll-margin-top: 6rem;
}

@keyframes orbFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(0.6rem, -0.9rem, 0) scale(1.06);
    }
}

@media (max-width: 640px) {
    .floating-quote {
        inset-inline-start: 1rem;
        inset-inline-end: 1rem;
        justify-content: center;
    }
}

.tracker-timeline {
    position: relative;
    margin-top: 1.25rem;
    padding-left: 1.75rem;
    border-left: 2px dashed color-mix(in srgb, var(--primary-color) 45%, transparent);
}

.tracker-timeline > li {
    position: relative;
    padding-bottom: 1.1rem;
}

.tracker-timeline > li::before {
    content: "";
    position: absolute;
    left: -2.32rem;
    top: 0.2rem;
    width: 0.95rem;
    height: 0.95rem;
    border-radius: 999px;
    background: var(--surface-color);
    border: 3px solid var(--primary-color);
}

.map-search-result {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.6rem 0.85rem;
    border-radius: 0.85rem;
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--charcoal-color);
    transition: background 250ms ease;
}

.map-search-result:hover {
    background: color-mix(in srgb, var(--primary-color) 12%, transparent);
}

.check-tile {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--charcoal-color);
    cursor: pointer;
}

.check-tile input {
    accent-color: var(--primary-color);
}

/* Traducción y RTL — ocultar cualquier barra, aviso o marco de Google Translate */
#google_translate_element,
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
iframe.skiptranslate,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-tooltip,
.goog-tooltip:hover,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.VIpgJd-ZVi9od-xl07Ob-OEVmcd,
.VIpgJd-ZVi9od-l4eHX-hSRGPd {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
}

body {
    top: 0 !important;
    position: static !important;
    margin-top: 0 !important;
}

.goog-text-highlight {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

html[dir="rtl"] .fa-arrow-right,
html[dir="rtl"] .fa-arrow-right-from-bracket {
    transform: scaleX(-1);
}

.brand-card {
    display: flex;
    min-height: 6.25rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 1.15rem;
    background: color-mix(in srgb, var(--surface-color) 92%, transparent);
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.brand-card:hover {
    transform: translateY(-0.3rem);
    border-color: color-mix(in srgb, var(--primary-color) 55%, transparent);
    box-shadow: var(--shadow-soft);
}

.brand-wordmark {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.3;
    color: var(--charcoal-color);
    transition: color 300ms ease;
}

.brand-card:hover .brand-wordmark {
    color: var(--primary-color);
}