﻿:root {
    --primary: #009540;
    --primary-2: #A3D900;
    --dark: #1E293B;
    --muted: #64748B;
    --bg: #F8FAFC;
    --card: #FFFFFF;
    --radius: 14px;
    --wrap: 1200px;
    --shadow-sm: 0 4px 16px rgba(16, 24, 40, 0.06);
    --shadow-md: 0 10px 30px rgba(16, 24, 40, 0.09);
    --shadow-lg: 0 22px 50px rgba(16, 24, 40, 0.14);
    --transition: 0.3s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- RESET ---------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

body {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    color: var(--dark);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

/* ---------- GLOBAL ---------- */
.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

/* ---------- HEADER ---------- */
.site-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow var(--transition), background var(--transition), transform var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 4px 24px rgba(16, 24, 40, 0.10);
    background: rgba(255, 255, 255, 1);
}

.site-header.hidden {
    transform: translateY(-100%);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    gap: 16px;
}

.logo-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}


.logo {
    height: 160px;
    width: auto;
    max-width: 280px;
    opacity: 0;
    transform: translateY(-8px) scale(.98);
    transition: all .7s cubic-bezier(.2, .9, .3, 1);
    object-fit: contain;
    display: block;
}

.logo.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.logo-wrap:hover .logo {
    transform: scale(1.04);
    filter: drop-shadow(0 3px 10px rgba(0, 149, 64, 0.22));
}

/* ---- NAV LAYOUT ---- */
.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ---- NAV LINKS ---- */
.nav-link {
    position: relative;
    color: var(--dark);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 8px;
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(0, 149, 64, 0.06);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: transform var(--transition);
}

.nav-link.active::after,
.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-link.active {
    color: var(--primary);
}

.btn-cta {
    background: var(--primary);
    color: #fff !important;
    padding: 9px 18px;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(0, 149, 64, 0.18);
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    text-decoration: none;
}

.btn-cta:hover {
    background: #007b35;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 149, 64, 0.25);
}

.btn-cta::after {
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes popIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ---------- MOBILE MENU ---------- */
.mobile-toggle {
    display: none;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--dark);
    margin: 4px 0;
    border-radius: 2px;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: #fff;
    border-top: 1px solid rgba(15, 23, 42, 0.04);
}

.mobile-menu a {
    padding: 10px 0;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
}

.mobile-menu.show {
    display: flex;
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    padding: 80px 0;
    color: #fff;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: none;
    /* la imagen se renderiza desde ::before */
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../images/hero-camiplas.jpg');
    background-size: cover;
    /* usa la variable --bg-pos; si no existe usa center 40% */
    background-position: var(--bg-pos, center 40%);
    transform-origin: center;
    z-index: 0;
    will-change: transform, background-position;
    animation: kenburns 22s ease-in-out infinite;
    filter: contrast(0.98) saturate(1.02);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(0, 100, 40, 0.78) 0%,
            rgba(0, 149, 64, 0.62) 50%,
            rgba(0, 70, 30, 0.80) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero .wrap {
    position: relative;
    z-index: 2;
    /* contenido arriba del fondo animado */
}

/* Animación Ken‑Burns */
@keyframes kenburns {
    0% {
        transform: scale(1) translateY(0);
        background-position: center 40%;
    }

    50% {
        transform: scale(1.06) translateY(-3%);
        background-position: center 50%;
    }

    100% {
        transform: scale(1) translateY(0);
        background-position: center 40%;
    }
}

/* Accesibilidad: respetar preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .hero::before {
        animation: none;
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 520px;
    gap: 40px;
    align-items: center;
}

.hero-left h1 {
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2 {
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.lead {
    font-size: 1.05rem;
    color: var(--dark);
    margin-bottom: 18px;
}

.hero .lead {
    color: rgba(255, 255, 255, 0.95);
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.btn {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: transform .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.gradient-btn {
    background: linear-gradient(90deg, var(--primary-2), var(--primary));
    color: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    background-size: 200% 100%;
    transition: background-position .4s ease;
}

.gradient-btn:hover {
    background-position: 100% 0;
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.14);
}

.hero-features {
    list-style: none;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.95);
}

.hero-features li {
    margin-top: 8px;
}

/* ---------- PRODUCTS ---------- */
.products {
    background: linear-gradient(180deg, #f0fdf4, #ffffff 40%, #f8fafc);
}

.section-head h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    color: var(--primary);
}

.section-head {
    text-align: center;
    margin-bottom: 36px;
}

.section-head h2 {
    font-size: 2rem;
    color: var(--primary);
}

.section-sub {
    color: var(--muted);
    margin-top: 8px;
}

.products-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, 1fr);
    align-items: stretch;
}

.card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.4s ease, transform 0.15s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    will-change: transform;
    transform-style: preserve-3d;
    /* subtle outer ring that glows on hover */
    outline: 1.5px solid transparent;
    outline-offset: 0;
    transition: box-shadow 0.4s ease, outline-color 0.4s ease;
}

/* Green gradient top bar */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-2), var(--primary));
    background-size: 200% 100%;
    border-radius: var(--radius) var(--radius) 0 0;
    animation: borderShift 3s linear infinite;
    z-index: 1;
}

/* Shimmer sweep layer */
.card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
            transparent 40%,
            rgba(255, 255, 255, 0.28) 50%,
            transparent 60%);
    transform: translateX(-100%) skewX(-8deg);
    pointer-events: none;
    z-index: 5;
    border-radius: var(--radius);
}

.card:hover::after {
    animation: shimmerSweep 0.65s ease forwards;
}

.card:hover {
    box-shadow: 0 24px 48px rgba(0, 149, 64, 0.18), 0 0 0 2px rgba(0, 149, 64, 0.2);
    outline-color: rgba(0, 149, 64, 0.25);
}

@keyframes borderShift {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes shimmerSweep {
    0% {
        transform: translateX(-100%) skewX(-8deg);
        opacity: 1;
    }

    100% {
        transform: translateX(200%) skewX(-8deg);
        opacity: 1;
    }
}

.card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.card-body {
    padding: 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-body h3 {
    margin: 0 0 6px;
    color: var(--dark);
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.card-body p {
    color: var(--muted);
    font-size: 0.83rem;
    flex: 1;
    line-height: 1.5;
    /* Limit to 3 lines for uniform card height */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card .link {
    display: inline-block;
    margin-top: 12px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

/* ---------- SERVICES ---------- */
.services .services-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 28px;
}

.service {
    background: #fff;
    border-radius: 14px;
    padding: 28px 22px;
    text-align: left;
    box-shadow: var(--shadow-sm);
    transition: transform .3s ease, box-shadow .3s ease;
    border: 1px solid rgba(0, 149, 64, 0.06);
}

.service:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 149, 64, 0.14);
}

.service .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(0, 149, 64, 0.08);
    border-radius: 14px;
    font-size: 26px;
    margin-bottom: 4px;
    transition: background var(--transition), transform var(--transition);
}

.service:hover .icon {
    background: rgba(0, 149, 64, 0.14);
    transform: scale(1.08);
}

.service h4 {
    margin: 10px 0 4px;
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
}

/* ---------- ABOUT ---------- */
.about-grid {
    display: grid;
    gap: 40px;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

.about-text {
    max-width: 600px;
}

.about-text h2 {
    color: var(--primary);
}

.values {
    list-style: disc;
    margin-left: 18px;
    color: var(--muted);
    margin-top: 12px;
}

.about-media {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.founder {
    width: 100%;
    max-width: 340px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 14px 40px rgba(16, 24, 40, 0.08);
}

.timeline {
    background: #fff;
    width: 100%;
    max-width: 380px;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(16, 24, 40, 0.04);
}

.t-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 8px 6px;
}

.t-year {
    display: inline-block;
    width: 64px;
    font-weight: 700;
    color: var(--primary);
}

/* ---------- SUSTAINABILITY ---------- */
.sustainability {
    background: linear-gradient(180deg, rgba(163, 217, 0, 0.07), rgba(0, 149, 64, 0.02));
}

.sust-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.sust-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(16, 24, 40, 0.04);
    transition: transform .3s;
}

.sust-card:hover {
    transform: translateY(-5px);
}

.sust-icon {
    font-size: 28px;
    color: var(--primary);
}

/* ---------- CONTACT ---------- */
.contact-grid {
    display: grid;
    gap: 40px;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info h2 {
    color: var(--primary);
    margin-bottom: 20px;
}

.contact-info p {
    margin: 12px 0;
    font-size: 1rem;
}

.contact-cta {
    margin-top: 18px;
    display: flex;
    gap: 12px;
}

.contact-form {
    background: #fff;
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 149, 64, 0.06);
}

.contact-form label {
    display: block;
    margin-bottom: 14px;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.93rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    margin-top: 5px;
    font-size: 0.95rem;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
    background: #fafbfc;
    font-family: inherit;
    color: var(--dark);
    appearance: none;
    -webkit-appearance: none;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 149, 64, 0.12);
    background: #fff;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

/* ---------- FOOTER ---------- */
.site-footer {
    background: linear-gradient(180deg, var(--dark), #0b1220);
    color: #e6eef6;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 160px 220px 200px;
    gap: 50px;
    align-items: start;
    margin-bottom: 40px;
}

.footer-products h4,
.footer-contact h4,
.footer-cta h4 {
    color: var(--primary-2);
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 1.1rem;
}

.logo-footer {
    height: 80px;
    width: auto;
    display: block;
    object-fit: contain;
    margin-bottom: 20px;
}

.footer-info p {
    margin: 15px 0;
    line-height: 1.6;
}

.footer-certifications {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.footer-certifications span {
    font-size: 0.9rem;
    opacity: 0.95;
}

.footer-links a {
    display: block;
    color: rgba(230, 238, 246, 0.9);
    text-decoration: none;
    margin: 6px 0;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-2);
}

.footer-products a {
    display: block;
    color: rgba(230, 238, 246, 0.9);
    text-decoration: none;
    margin: 10px 0;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-products a:hover {
    color: var(--primary-2);
}

.footer-contact p {
    margin: 12px 0;
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-contact a {
    color: #A3D900;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #c4f01a;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    font-size: 1.5rem;
}

.social-links a {
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.2);
}

.footer-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-cta .btn {
    width: 100%;
    text-align: center;
}

/* =========================================================
   🎁 POPUP PROMOCIONAL CAMIPLAS
   ========================================================= */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(3px);
    transition: opacity 0.3s ease;
}

.popup-overlay.active {
    display: flex;
    animation: fadeIn 0.4s ease;
}

.popup-content {
    background: #fff;
    border-radius: 20px;
    padding: 32px 28px;
    max-width: 460px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
    animation: popIn 0.5s cubic-bezier(.2, .9, .3, 1);
}

.popup-content h2 {
    color: var(--primary);
    font-size: 1.6rem;
    margin: 10px 0;
}

.popup-content p {
    color: var(--dark);
    font-size: 1rem;
    margin: 10px 0 20px;
}

.popup-image {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 26px;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.3s ease;
}

.popup-close:hover {
    color: var(--primary);
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes popIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ---------- ANIMACIONES GENERALES ---------- */
.reveal-up,
.reveal-scale {
    opacity: 0;
    transition: all .7s cubic-bezier(.2, .9, .3, 1);
}

.reveal-up {
    transform: translateY(18px);
}

.reveal-scale {
    transform: scale(.98);
}

.in-view {
    opacity: 1;
    transform: none;
}

.delay-1 {
    transition-delay: 0.12s;
}

.delay-2 {
    transition-delay: 0.22s;
}

.delay-3 {
    transition-delay: 0.32s;
}

.delay-4 {
    transition-delay: 0.42s;
}

/* ---------- FOCUS ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

/* ---------- SECTION WAVE DIVIDER ---------- */
.section-wave {
    display: block;
    line-height: 0;
    margin-bottom: -2px;
    margin-top: -2px;
    background: linear-gradient(135deg, rgba(0, 100, 40, 0.78) 0%, rgba(0, 149, 64, 0.62) 50%, rgba(0, 70, 30, 0.80) 100%);
}

.section-wave svg {
    display: block;
    width: 100%;
    height: 56px;
}

/* ---------- SCROLL TO TOP BUTTON ---------- */
.scroll-top-btn {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 999;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 149, 64, 0.3);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .3s ease, transform .3s ease, background .2s ease;
    pointer-events: none;
}

.scroll-top-btn.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-top-btn:hover {
    background: #007b35;
    transform: translateY(-3px);
}

.scroll-top-btn svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* ---------- SOCIAL ICONS SVG ---------- */
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(230, 238, 246, 0.9);
    transition: background var(--transition), color var(--transition), transform var(--transition);
    text-decoration: none;
}

.social-icon:hover {
    background: var(--primary-2);
    color: var(--dark);
    transform: translateY(-3px);
}

.social-icon svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {

    .hero-grid,
    .about-grid,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-right {
        order: -1;
    }

    .main-nav {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .wrap {
        padding: 0 18px;
    }

    .popup-content {
        max-width: 90%;
        padding: 24px;
    }

    .logo-footer {
        height: 64px;
    }
}

/* ---------- MAPA ---------- */
.map-section {
    margin-top: 60px;
}

.map-card {
    background: var(--card);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.08);
    text-align: center;
    transition: transform .3s ease, box-shadow .3s ease;
}

.map-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(16, 24, 40, 0.12);
}

.map-card h3 {
    color: var(--primary);
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.map-card p {
    color: var(--muted);
    margin-bottom: 18px;
    font-size: 1rem;
}

.map-frame {
    border-radius: 16px;
    overflow: hidden;
    border: 4px solid rgba(0, 149, 64, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.map-frame iframe {
    width: 100%;
    height: 380px;
    border: none;
}

.map-buttons {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Ajuste: botón de Google dentro del mapa — forzar fondo verde y contraste */
.map-buttons .btn-outline {
    background: var(--primary);
    color: #fff;
    border: none;
    box-shadow: 0 8px 26px rgba(0, 149, 64, 0.12);
    padding: 12px 20px;
    border-radius: 10px;
    transition: transform .2s ease, background .3s ease;
}

.map-buttons .btn-outline:hover {
    background: #007b35;
    transform: translateY(-2px);
}

/* Movimiento suave para la imagen del lado derecho en hero */
.hero-media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 14px 40px rgba(16, 24, 40, 0.08);
    transform-origin: center;
    will-change: transform;
    animation: heroFloat 12s ease-in-out infinite;
}

@keyframes heroFloat {
    0% {
        transform: translateY(0) scale(1);
    }

    25% {
        transform: translateY(-6px) scale(1.01);
    }

    50% {
        transform: translateY(0) scale(1.02);
    }

    75% {
        transform: translateY(6px) scale(1.01);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

/* Accesibilidad: desactivar movimiento si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
    .hero-media img {
        animation: none;
    }
}

/* ---------- CATÁLOGO (tarjeta y visor) ---------- */
/* Tarjeta en Productos */
.catalog-card .card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.catalog-card {
    /* mantiene la consistencia con .card, pero permite overrides */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.catalog-cover {
    position: relative;
    width: 100%;
    height: 220px;
    /* ajustar según preferencia */
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
    background: #f6f7f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.catalog-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform-origin: center;
    transition: transform .6s ease;
}

/* pequeño efecto hover para vida visual */
.catalog-card:hover .catalog-cover img {
    transform: scale(1.03);
}

/* badge sobre la portada */
.catalog-badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    font-weight: 800;
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(16, 24, 40, 0.06);
    z-index: 2;
}

/* centro de texto en la card body para mejor composición */
.catalog-card .card-body {
    text-align: center;
}

/* ajustar tamaño de título/links si hace falta */
.catalog-card .card-body h3 {
    margin-top: 8px;
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.catalog-card .link {
    display: inline-block;
    margin-top: 10px;
}

/* movilidad reducida */
@media (prefers-reduced-motion: reduce) {
    .catalog-cover img {
        transition: none;
        transform: none;
    }
}

/* responsive: portada un poco menor en móviles */
@media (max-width: 980px) {
    .catalog-cover {
        height: 160px;
    }
}

/* ---------- CATÁLOGO: mejora visual (portada centrada + botones) ---------- */
/* Ajustes generales de la tarjeta */
.catalog-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 0;
    /* .card-body aplica el padding */
}

/* Centrado y tamaño controlado de la portada */
.catalog-cover-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 16px;
    background: transparent;
}

.catalog-cover {
    position: relative;
    width: 100%;
    max-width: 420px;
    /* limita el ancho de la portada para centrar visualmente */
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    background: #f6f7f8;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
    margin: 0 auto;
}

/* Imagen portada: centrada y con object-fit si es grande */
.catalog-cover-img {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s ease;
}

/* Efecto sutil al pasar el ratón */
.catalog-card:hover .catalog-cover-img {
    transform: scale(1.03);
}

/* Badge sobre la portada (ya existía, lo dejamos) */
.catalog-badge {
    position: absolute;
    left: 16px;
    bottom: 16px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    font-weight: 800;
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(16, 24, 40, 0.06);
    z-index: 2;
}

/* Card body centrado y espaciamiento */
.catalog-card .card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* Acciones / botones centrados */
.catalog-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    justify-content: center;
    width: 100%;
}

/* Botón principal estilo Camiplas (verde) */
.catalog-btn {
    background: var(--primary);
    color: #fff;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(0, 149, 64, 0.12);
    transition: transform .16s ease, background .16s ease;
}

/* Pequeño ajuste para btn-outline dentro de acciones: contraste */
.catalog-actions .btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid rgba(0, 149, 64, 0.12);
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
}

/* Hover states */
.catalog-btn:hover {
    transform: translateY(-3px);
    background: #007b35;
}

.catalog-actions .btn-outline:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 149, 64, 0.18);
}

/* Responsive: reducir portada en pantallas pequeñas */
@media (max-width: 980px) {
    .catalog-cover {
        max-width: 360px;
        height: 180px;
    }

    .catalog-cover-img {
        height: 100%;
    }

    .catalog-actions {
        flex-direction: column;
        gap: 8px;
    }
}

/* ---- Visor de catálogo: toolbar, botones e iframe centrado ---- */
.catalog-viewer {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f3f6f8;
    color: var(--dark);
}

/* Barra superior con título y acciones */
.viewer-toolbar {
    background: #fff;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 6px 20px rgba(16, 24, 40, 0.06);
    position: sticky;
    top: 0;
    z-index: 60;
}

/* Título visible */
.viewer-title {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

/* Acciones al lado derecho */
.viewer-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Botones del visor */
.viewer-btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 8px 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 26px rgba(0, 149, 64, 0.12);
    transition: transform .14s ease, background .14s ease;
}

.viewer-btn.secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid rgba(0, 149, 64, 0.12);
    box-shadow: none;
}

.viewer-btn:hover {
    transform: translateY(-2px);
    background: #007b35;
}

/* Cuerpo del viewer: centra el iframe y limita su ancho */
.viewer-body {
    display: flex;
    justify-content: center;
    padding: 20px;
    flex: 1;
}

/* Iframe centrado, con borde redondeado y sombra */
.viewer-iframe {
    width: 100%;
    max-width: 1100px;
    height: calc(100vh - 92px);
    /* toolbar + margenes */
    border: none;
    background: #fff;
    box-shadow: 0 18px 50px rgba(16, 24, 40, 0.08);
    border-radius: 8px;
}

/* Mobile adjustments */
@media (max-width: 980px) {
    .viewer-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .viewer-actions {
        justify-content: center;
    }

    .viewer-iframe {
        height: calc(100vh - 160px);
        margin: 0 8px;
    }
}

/* Fallback text-centering for file:// where some browsers show controls differently */
.catalog-viewer a {
    text-decoration: none;
}

/* =========================================================
   🎨 NUEVAS ANIMACIONES Y EFECTOS VISUALES MODERNOS
   ========================================================= */

/* --- Animación de Badge Flotante --- */
.badge-float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 10px 18px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
}

.badge-icon {
    font-size: 1.2rem;
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* --- Gradiente de Texto Animado --- */
.gradient-text {
    background: linear-gradient(90deg, var(--primary-2), var(--primary), #00d4aa);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }
}

/* --- Efecto Hover Lift en Botones --- */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* --- Métricas con Contador Animado --- */
.trust-metrics {
    display: flex;
    gap: 30px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.metric {
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.metric:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.metric-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 5px;
}

.metric-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* --- Features con Iconos Mejoradas --- */
.hero-features {
    list-style: none;
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(10px);
}

.feature-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.feature-content {
    flex: 1;
}

.feature-content strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1.05rem;
}

.feature-content p {
    font-size: 0.9rem;
    opacity: 0.95;
    line-height: 1.5;
}

/* --- Efectos de Tarjetas Mejoradas --- */
.card-hover-effect {
    position: relative;
    overflow: hidden;
}

.card-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-hover-effect:hover .card-image-wrapper img {
    transform: scale(1.1) rotate(2deg);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 149, 64, 0.9));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 20px;
}

.card-hover-effect:hover .image-overlay {
    opacity: 1;
}

.overlay-text {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.card-hover-effect:hover .overlay-text {
    transform: translateY(0);
}

/* --- Badge con Pulso --- */
.card-badge.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    padding: 8px 14px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

/* --- Product Specs Mejoradas --- */
.product-specs {
    list-style: none;
    padding: 8px 0;
    margin: 8px 0;
    border-top: 1.5px solid #f0f0f0;
    border-bottom: 1.5px solid #f0f0f0;
}

.product-specs li {
    padding: 4px 0;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--muted);
}

.spec-icon {
    flex-shrink: 0;
    font-size: 0.85rem;
    margin-top: 1px;
}

/* --- Card Actions --- */
.card-actions {
    margin-top: auto;
    padding-top: 10px;
    display: flex;
    gap: 8px;
}

.primary-btn {
    background: var(--primary);
    color: white;
    font-size: 0.82rem;
    padding: 8px 12px;
    border-radius: 8px;
    white-space: nowrap;
}

.primary-btn:hover {
    background: #007b35;
}

/* --- Products Grid Responsive --- */
@media (max-width: 1100px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 580px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Sección de Testimonios --- */
.testimonials {
    background: linear-gradient(180deg, #f8fafc, #e8f4f8);
    padding: 80px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 80px;
    color: rgba(0, 149, 64, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.testimonial-stars {
    color: #ffc107;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-top: 15px;
    border-top: 2px solid #e2e8f0;
}

.testimonial-author strong {
    color: var(--primary);
    font-size: 1.05rem;
}

.testimonial-author span {
    font-size: 0.9rem;
    color: #64748b;
}

.testimonial-cta {
    margin-top: 50px;
    text-align: center;
}

.testimonial-cta p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--dark);
    font-weight: 600;
}

/* --- About Stats --- */
.about-stats {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.stat-item {
    flex: 1;
    min-width: 150px;
    max-width: 180px;
    text-align: center;
    padding: 25px 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    border-radius: 12px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 149, 64, 0.2);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px) scale(1.05);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.95;
}

/* --- Animación de Pulse --- */
@keyframes pulse-animation {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(163, 217, 0, 0.7);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(163, 217, 0, 0);
    }
}

.pulse-animation {
    animation: pulse-animation 2s infinite;
}

/* --- WhatsApp Button --- */
.btn-whatsapp {
    background: #25d366;
    color: white;
    border: 2px solid #25d366;
}

.btn-whatsapp:hover {
    background: #128c7e;
    border-color: #128c7e;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .trust-metrics {
        flex-direction: column;
        gap: 15px;
    }

    .metric {
        min-width: 100%;
    }

    .hero-features {
        gap: 12px;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        flex-direction: column;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-text {
        max-width: 100%;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* =====================================================
   ¿POR QUÉ CAMIPLAS? SECTION
   ===================================================== */
.why-us {
    background: linear-gradient(180deg, #f8fafc, #ffffff);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.why-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 22px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 149, 64, 0.07);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(0, 149, 64, 0.06) 0%, transparent 65%);
    pointer-events: none;
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 149, 64, 0.2);
}

.why-icon {
    font-size: 2.4rem;
    margin-bottom: 12px;
    display: block;
    line-height: 1;
    filter: drop-shadow(0 2px 6px rgba(0, 149, 64, 0.15));
    transition: transform var(--transition);
}

.why-card:hover .why-icon {
    transform: scale(1.15) rotate(-4deg);
}

.why-card h4 {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--dark);
}

.why-card p {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 900px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   CLIENTS MARQUEE SECTION
   ===================================================== */
.clients-section {
    background: linear-gradient(135deg, #f0fdf4 0%, #e8f5e9 100%);
    padding: 60px 0;
}

.clients-marquee-wrap {
    overflow: hidden;
    margin-top: 36px;
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.clients-marquee {
    width: 100%;
    overflow: hidden;
}

.clients-track {
    display: flex;
    gap: 14px;
    width: max-content;
    animation: marqueeScroll 28s linear infinite;
}

.clients-track:hover {
    animation-play-state: paused;
}

.client-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    color: var(--dark);
    border: 1.5px solid rgba(0, 149, 64, 0.15);
    border-radius: 50px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0, 149, 64, 0.07);
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    cursor: default;
}

.client-tag:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(0, 149, 64, 0.14);
    transform: translateY(-2px);
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* =====================================================
   FAQ ACCORDION
   ===================================================== */
.faq-section {
    background: #fff;
}

.faq-list {
    max-width: 760px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.faq-item.open {
    border-color: rgba(0, 149, 64, 0.3);
    box-shadow: 0 4px 20px rgba(0, 149, 64, 0.08);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    font-family: inherit;
    text-align: left;
    gap: 16px;
    transition: background var(--transition);
}

.faq-question:hover {
    background: rgba(0, 149, 64, 0.04);
}

.faq-item.open .faq-question {
    background: rgba(0, 149, 64, 0.05);
    color: var(--primary);
}

.faq-icon {
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1;
    color: var(--primary);
    flex-shrink: 0;
    transition: transform var(--transition);
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 400px;
}

.faq-answer p {
    padding: 0 22px 20px;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--muted);
}

/* =====================================================
   COOKIE CONSENT BANNER
   ===================================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 0;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(.2, .9, .3, 1);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-text {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 260px;
}

.cookie-text p {
    margin: 0;
    color: rgba(226, 232, 240, 0.9);
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.cookie-link {
    color: var(--primary-2);
    text-decoration: underline;
    font-weight: 600;
}

.cookie-link:hover {
    color: #fff;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 9px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    border: none;
    transition: background var(--transition), transform var(--transition);
    font-family: inherit;
}

.cookie-btn:hover {
    transform: translateY(-1px);
}

.cookie-accept {
    background: var(--primary);
    color: #fff;
}

.cookie-accept:hover {
    background: #007b35;
}

.cookie-reject {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(226, 232, 240, 0.85);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
}

.cookie-reject:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* =====================================================
   DARK MODE (prefers-color-scheme)
   ===================================================== */
@media (prefers-color-scheme: dark) {
    :root {
        --dark: #e2e8f0;
        --muted: #94a3b8;
        --bg: #0f172a;
        --card: #1e293b;
        --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
        --shadow-lg: 0 22px 50px rgba(0, 0, 0, 0.45);
    }

    body {
        background: #0f172a;
        color: #e2e8f0;
    }

    .site-header {
        background: rgba(15, 23, 42, 0.97);
        border-bottom-color: rgba(255, 255, 255, 0.06);
    }

    .site-header.scrolled {
        background: rgba(15, 23, 42, 1);
    }

    .main-nav .nav-link {
        color: #cbd5e1;
    }

    .main-nav .nav-link:hover,
    .main-nav .nav-link.active {
        color: var(--primary-2);
    }

    .card,
    .service,
    .why-card,
    .testimonial-card,
    .contact-form,
    .faq-item {
        background: #1e293b;
        border-color: rgba(255, 255, 255, 0.07);
    }

    .card-body h3,
    .why-card h4,
    .service h4,
    .faq-question {
        color: #e2e8f0;
    }

    .clients-section {
        background: linear-gradient(135deg, #0f2a1a 0%, #0f1e2f 100%);
    }

    .client-tag {
        background: #1e293b;
        color: #cbd5e1;
        border-color: rgba(0, 149, 64, 0.2);
    }

    .faq-section,
    .why-us,
    .products {
        background: #0f172a;
    }

    .products {
        background: linear-gradient(180deg, #111827, #0f172a 40%, #111827);
    }

    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        background: #0f172a;
        border-color: rgba(255, 255, 255, 0.1);
        color: #e2e8f0;
    }

    .contact-form input:focus,
    .contact-form textarea:focus,
    .contact-form select:focus {
        background: #1e293b;
    }

    .footer {
        background: #020617;
    }

    .section-wave path {
        fill: #0f172a;
    }

    .product-specs {
        border-color: rgba(255, 255, 255, 0.08);
    }

    .faq-answer p,
    .card-body p,
    .why-card p {
        color: #94a3b8;
    }

    h2,
    h3,
    h4,
    h5 {
        color: #e2e8f0;
    }

    .testimonials {
        background: linear-gradient(180deg, #111827, #0f172a);
    }

    .services {
        background: #111827;
    }

    .about {
        background: #0f172a;
    }
}

/* ---- COPYRIGHT BAR ---- */
.copyright {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.copyright p {
    margin: 0;
}

.footer-internal-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.webmail-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    padding: 5px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: color var(--transition), border-color var(--transition), background var(--transition);
    white-space: nowrap;
}

.webmail-link:hover {
    color: var(--primary-2);
    border-color: rgba(163, 217, 0, 0.4);
    background: rgba(163, 217, 0, 0.06);
}