:root {
    --grafica-primary: #0056b3;
    --grafica-secondary: #ffffff;
    --grafica-text: #333333;
    --grafica-light: #f8f9fa;
    --grafica-whatsapp: #075e54;
    --grafica-whatsapp-dark: #064c45;
}

.grafica-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.grafica-header a:focus-visible,
.grafica-header button:focus-visible,
.grafica-products a:focus-visible,
.gs-footer a:focus-visible,
.grafica-contact-wrapper a:focus-visible,
.grafica-location-btn:focus-visible,
.grafica-wa-float:focus-visible,
.btn-hero:focus-visible {
    outline: 3px solid #111111;
    outline-offset: 3px;
    box-shadow: 0 0 0 5px #ffbf47;
}

/* Header */
.grafica-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.grafica-logo img {
    max-height: 50px;
}
.grafica-logo h2,
.grafica-logo-text {
    margin: 0;
    color: var(--grafica-primary);
    font-size: 24px;
    font-weight: 700;
}

.grafica-logo a {
    display: inline-flex;
    text-decoration: none;
}

.grafica-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.grafica-nav a {
    text-decoration: none;
    color: var(--grafica-text);
    font-weight: 500;
    transition: color 0.3s;
}
.grafica-nav a:hover {
    color: var(--grafica-primary);
}

.grafica-cta .btn-cta {
    background: var(--grafica-whatsapp);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}
.grafica-cta .btn-cta:hover {
    background: var(--grafica-whatsapp-dark);
}

.grafica-cta .btn-cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.grafica-mobile-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
	border: 0;
	padding: 0;
	background: transparent;
	min-width: 44px;
	min-height: 44px;
}

.social-item,
.grafica-wa-float {
    min-width: 44px;
    min-height: 44px;
}

/* Hero */
.grafica-hero {
    padding: 100px 5%;
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center;
    background-color: var(--grafica-primary); /* Fallback */
}

.grafica-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.grafica-hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-hero {
    background: var(--grafica-whatsapp);
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s;
}
.btn-hero:hover {
    transform: scale(1.05);
    background: var(--grafica-whatsapp-dark);
}

/* About */
.grafica-about {
    padding: 60px 5%;
    background: var(--grafica-light);
}
.about-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}
.about-text {
    flex: 1;
    min-width: 300px;
}
.about-features {
    flex: 1;
    min-width: 300px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.feature-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.feature-icon {
    font-size: 2rem;
    color: var(--grafica-primary);
    margin-bottom: 10px;
}
.feature-item h3 {
    margin: 0;
    font-size: 1.1rem;
}

/* Products */
.grafica-products {
    padding: 60px 5%;
    background: #fff;
}
.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--grafica-primary);
    font-size: 2.5rem;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
.product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.product-image {
    position: relative; /* Anchor for badge */
}

.product-badge {
    position: absolute;
    top: 10px;
    z-index: 10;
    background: #ff0000; /* Default color */
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.badge-pos-left {
    left: 10px;
    right: auto;
}

.badge-pos-right {
    right: 10px;
    left: auto;
}

.product-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.product-info {
    padding: 20px;
    text-align: center;
}
.product-info h3 {
    margin: 0 0 10px;
    color: var(--grafica-primary);
}
.product-info p,
.product-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
    min-height: 40px;
}
.btn-product {
    display: inline-block;
    padding: 10px 20px;
    background: var(--grafica-whatsapp);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background 0.3s;
}
.btn-product:hover {
    background: var(--grafica-whatsapp-dark);
}

/* Testimonials */
.grafica-testimonials {
    padding: 60px 5%;
    background: var(--grafica-light);
    text-align: center;
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 40px;
}
.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: left;
}
.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.testimonial-header img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}
.testimonial-meta h3 {
    margin: 0;
    color: var(--grafica-text);
}
.stars {
    color: #ffc107;
    font-size: 0.9rem;
}
.testimonial-text {
    font-style: italic;
    color: #555;
    line-height: 1.6;
}

/* Footer */
.grafica-footer {
    background: #222;
    color: #ccc;
    padding: 50px 5% 20px;
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 40px;
}
.footer-col h3 {
    color: #fff;
    border-bottom: 2px solid var(--grafica-primary);
    padding-bottom: 10px;
    display: inline-block;
    margin-bottom: 20px;
}
.footer-col p {
    margin-bottom: 10px;
}
.footer-col i {
    width: 20px;
    text-align: center;
    margin-right: 5px;
    color: var(--grafica-primary);
}
.footer-social a {
    color: #fff;
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s;
}
.footer-social a:hover {
    color: var(--grafica-primary);
}
.footer-copyright {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.9rem;
}

/* WhatsApp Float */
.grafica-wa-widget {
    position: fixed;
    bottom: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity .35s ease, visibility .35s ease, transform .35s ease;
}
.grafica-wa-widget.wa-float-left {
    align-items: flex-start;
}
.grafica-wa-widget.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.grafica-wa-widget.is-scroll-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(24px);
    pointer-events: none;
}
.grafica-wa-float {
    position: relative;
    background: var(--grafica-whatsapp);
    color: #fff;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 44px;
    min-height: 44px;
    text-decoration: none;
    line-height: 1;
    box-shadow: 0 12px 30px rgba(7, 94, 84, .3);
    isolation: isolate;
    transition: transform .3s ease, background-color .3s ease, color .3s ease, box-shadow .3s ease;
}
.wa-style-circle .grafica-wa-float {
    width: 64px;
    height: 64px;
}
.wa-style-pill .grafica-wa-float {
    min-height: 56px;
    padding: 16px 22px;
}
.grafica-wa-float i {
    font-size: 30px;
}
.grafica-wa-float svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}
.wa-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    transition: transform .3s ease;
}
.wa-button-text {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}
.grafica-wa-float:hover {
    background: var(--grafica-whatsapp-dark);
    color: #fff;
}
.wa-hover-lift .grafica-wa-float:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 38px rgba(7, 94, 84, .38);
}
.wa-hover-scale .grafica-wa-float:hover {
    transform: scale(1.08);
}
.wa-hover-rotate .grafica-wa-float:hover .wa-icon {
    transform: rotate(12deg) scale(1.08);
}
.wa-notification {
    position: absolute;
    top: -6px;
    right: -5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #e53935;
    color: #fff;
    font: 700 11px/1 Arial, sans-serif;
    box-shadow: 0 3px 9px rgba(0, 0, 0, .2);
}
.wa-float-left .wa-notification {
    right: auto;
    left: -5px;
}
.wa-greeting {
    position: relative;
    width: 290px;
    max-width: calc(100vw - 32px);
    padding: 18px 42px 18px 18px;
    border: 1px solid rgba(16, 42, 67, .08);
    border-radius: 16px 16px 4px 16px;
    background: #fff;
    box-shadow: 0 16px 44px rgba(16, 42, 67, .18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(.97);
    transform-origin: bottom right;
    transition: opacity .3s ease, visibility .3s ease, transform .3s ease;
}
.wa-float-left .wa-greeting {
    border-radius: 16px 16px 16px 4px;
    transform-origin: bottom left;
}
.wa-greeting.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.wa-greeting-title,
.wa-greeting-text {
    display: block;
}
.wa-greeting-title {
    margin-bottom: 5px;
    color: #102a43;
    font-size: 15px;
    line-height: 1.3;
}
.wa-greeting-text {
    color: #486581;
    font-size: 13px;
    line-height: 1.5;
}
.wa-greeting-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #627d98;
    font-size: 23px;
    line-height: 30px;
    cursor: pointer;
}
.wa-greeting-close:hover,
.wa-greeting-close:focus-visible {
    background: #eef4f7;
    color: #102a43;
}
.wa-tooltip {
    position: absolute;
    top: 50%;
    right: calc(100% + 12px);
    width: max-content;
    max-width: 220px;
    padding: 9px 12px;
    border-radius: 8px;
    background: #102a43;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translate(5px, -50%);
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}
.wa-float-left .wa-tooltip {
    right: auto;
    left: calc(100% + 12px);
    transform: translate(-5px, -50%);
}
.grafica-wa-float:hover .wa-tooltip,
.grafica-wa-float:focus-visible .wa-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translate(0, -50%);
}
.wa-attention-pulse .grafica-wa-float {
    animation: graficaWaPulse 2.4s ease-in-out infinite;
}
.wa-attention-ripple .grafica-wa-float::before,
.wa-attention-ripple .grafica-wa-float::after {
    content: '';
    position: absolute;
    inset: -2px;
    z-index: -1;
    border: 2px solid currentColor;
    border-radius: inherit;
    opacity: 0;
    animation: graficaWaRipple 2.4s ease-out infinite;
}
.wa-attention-ripple .grafica-wa-float::after {
    animation-delay: 1.2s;
}
.wa-attention-bounce .grafica-wa-float {
    animation: graficaWaBounce 3.2s ease-in-out infinite;
}
@keyframes graficaWaPulse {
    0%, 100% { box-shadow: 0 12px 30px rgba(7, 94, 84, .28); }
    50% { box-shadow: 0 12px 30px rgba(7, 94, 84, .28), 0 0 0 10px rgba(7, 94, 84, .1); }
}
@keyframes graficaWaRipple {
    0% { transform: scale(1); opacity: .5; }
    80%, 100% { transform: scale(1.45); opacity: 0; }
}
@keyframes graficaWaBounce {
    0%, 82%, 100% { transform: translateY(0); }
    88% { transform: translateY(-8px); }
    94% { transform: translateY(-3px); }
}
.grafica-wa-editor-notice {
    padding: 12px;
    border-left: 4px solid #075e54;
    background: #eef8f6;
    color: #234e52;
    text-align: center;
    font-size: 13px;
}
.wa-float-right { right: 30px; }
.wa-float-left { left: 30px; }

@media (max-width: 767px) {
    .grafica-wa-widget { bottom: 18px; }
    .wa-float-right { right: 18px; }
    .wa-float-left { left: 18px; }
    .wa-greeting { width: min(280px, calc(100vw - 36px)); }
    .wa-tooltip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .grafica-wa-widget,
    .grafica-wa-float,
    .wa-greeting,
    .wa-icon,
    .wa-tooltip {
        transition-duration: .01ms !important;
    }
    .wa-attention-pulse .grafica-wa-float,
    .wa-attention-ripple .grafica-wa-float::before,
    .wa-attention-ripple .grafica-wa-float::after,
    .wa-attention-bounce .grafica-wa-float {
        animation: none !important;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .grafica-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        text-align: center;
    }
    .grafica-nav.active {
        display: block;
    }
    .grafica-nav ul {
        flex-direction: column;
    }
    .grafica-mobile-toggle {
        display: block;
    }
    .grafica-cta {
        display: none; /* Hide CTA in header on mobile to save space, or keep it */
    }
    .grafica-hero h1 {
        font-size: 2rem;
    }
}

.testimonial-text p {
    margin: 0;
}

@media (prefers-reduced-motion: reduce) {
    .grafica-header *,
    .grafica-products *,
    .gs-footer *,
    .grafica-contact-wrapper *,
    .grafica-location-btn,
    .grafica-wa-float,
    .btn-hero {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
