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

:root {
    --primary: #0a2540;
    --primary-light: #16385c;
    --secondary: #3bb77e;
    --secondary-hover: #2ea06b;
    --accent: #f5f8fa;
    --text-main: #2d3748;
    --text-muted: #64748b;
    --white: #ffffff;
    --border: rgba(10, 37, 64, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 10px 40px rgba(10, 37, 64, 0.12);
}

[data-theme="dark"] {
    --primary: #f8fafc;
    --primary-light: #cbd5e1;
    --secondary: #3bb77e;
    --secondary-hover: #4ade80;
    --accent: #0f172a;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --white: #1e293b;
    --border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(15, 23, 42, 0.85);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 10px 40px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--accent);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .brand {
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul { list-style: none; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 3rem; }
.w-100 { width: 100%; }
.bg-light { background-color: var(--white); }

/* Typography */
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
h2.section-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.01em; margin-bottom: 1rem; }
p.section-subtitle { font-size: 1.125rem; color: var(--text-muted); max-width: 820px; margin: 0 auto; line-height: 1.8; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary) 0%, #298d5e 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(59, 183, 126, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 183, 126, 0.4);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.brand {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}
.brand span { color: var(--secondary); }

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--primary-light);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}

.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }

.nav-social-icons {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-left: 0.5rem;
    padding-left: 1.2rem;
    border-left: 1px solid var(--border);
}

.nav-social-icons a {
    color: var(--text-muted);
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.nav-social-icons a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
    transition: var(--transition);
}

.theme-toggle-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
}

.theme-toggle-btn:hover {
    background: rgba(10, 37, 64, 0.05);
}

[data-theme="dark"] .theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Language Switcher */
.nav-lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid var(--border);
}

.lang-btn {
    background: none;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px 4px;
    transition: var(--transition);
    border-radius: 4px;
}

.lang-btn:hover {
    color: var(--primary);
}

.lang-btn.active {
    color: var(--secondary);
    background: rgba(59, 183, 126, 0.1);
}

.lang-divider {
    color: var(--border);
    font-size: 0.8rem;
    font-weight: 300;
    cursor: default;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(rgba(10, 37, 64, 0.72), rgba(10, 37, 64, 0.78)), 
                url('assets/FotoHome.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-top: 90px;
}

.hero-content h1 {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .hero {
    background: linear-gradient(rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.88)), 
                url('assets/FotoHome.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-content {
    max-width: 900px;
    text-align: center;
    margin: 0 auto;
    z-index: 10;
}

/* Nosotros Section */
.section { padding: 7rem 0; }

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    padding: 2.5rem 1.8rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: var(--secondary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }
.card:hover::before { transform: scaleX(1); }

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    background: rgba(59, 183, 126, 0.1);
    border-radius: 16px;
    color: var(--secondary);
}

.card h3 { font-size: 1.35rem; margin-bottom: 0.8rem; }
.card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* Portafolio Section */
.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-btn {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    color: var(--primary);
    border-color: #cbd5e1;
    background: #f8fafc;
}

.filter-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(10, 37, 64, 0.2);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
}

.product-card.hide {
    display: none;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-hover);
}

.product-img {
    height: 240px;
    background-color: #f1f5f9;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.product-img::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 37, 64, 0.03);
    transition: var(--transition);
}

.product-card:hover .product-img::after { background: transparent; }

.product-card:hover .product-img {
    transform: scale(1.05); /* Needs wrapper to hide overflow and not break layout, but bg image can just use transition on itself */
}

.placeholder-img::before {
    content: "Generando imagen...";
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Outfit', sans-serif;
    color: #94a3b8;
    font-size: 1rem;
    font-weight: 500;
    z-index: 10;
}

.product-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: var(--white);
    position: relative;
    z-index: 2;
}

.product-info h4 { font-size: 1.3rem; margin-bottom: 0.75rem; color: var(--primary); }
.product-info p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-soft);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: none;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    text-align: left;
}

.faq-icon {
    color: var(--secondary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer-inner {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-answer-inner p {
    margin-bottom: 0.5rem;
}

.faq-answer-inner p:last-child {
    margin-bottom: 0;
}

.faq-answer-inner ul {
    margin-top: 0.4rem;
    padding-left: 1.25rem;
}

.faq-answer-inner li {
    margin-bottom: 0.3rem;
}

/* Testimonios Section */
.testimonials-slider-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 1rem 0;
}

.testimonials-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    gap: 2rem;
}

.testimonial-card {
    min-width: calc(33.3333% - 1.3333rem); /* Show 3 cards: 2 gaps / 3 */
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.stars {
    color: #f59e0b;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.review-text {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.client-name {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 0.2rem;
}

.client-role {
    font-size: 0.85rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--secondary);
    transform: scale(1.3);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    background: var(--white);
    padding: 4rem;
    border-radius: 24px;
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--border);
}

.contact-info h3 { font-size: 2rem; margin-bottom: 1.5rem; }

.info-list { margin-top: 2rem; }
.info-list li {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    line-height: 1.5;
    min-width: 0;
}

.info-list li > span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1.2;
}
.info-list strong { color: var(--primary); font-weight: 600; display: block; margin-bottom: 0.2rem;}

.form-group { margin-bottom: 1.8rem; }
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: #f8fafc;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(59, 183, 126, 0.1);
}

.map-container {
    width: 100%;
    margin-top: 4rem;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--border);
    transition: var(--transition);
    background: var(--white);
    padding: 1rem;
}

.map-container iframe {
    border-radius: 16px;
    display: block;
    filter: contrast(1.05) saturate(1.1);
}

.map-container:hover {
    transform: translateY(-8px);
}

/* Footer */
.footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .footer {
    background: var(--accent);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    object-fit: contain;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
}

.footer-brand h2 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.footer-brand span {
    color: var(--secondary);
}

.footer-social p {
    margin-bottom: 0.8rem;
    font-weight: 500;
    color: #ffffff;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.footer-bottom p { font-size: 0.95rem; color: rgba(255, 255, 255, 0.5); }

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: #128c7e;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
    animation: none;
}

@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Modal Overlays */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 37, 64, 0.8);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content.modal-infographic {
    background: var(--white);
    border-radius: 24px;
    width: 95%;
    max-width: 680px;
    max-height: 92vh;
    position: relative;
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .modal-content.modal-infographic {
    background: #1e293b;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-body-scroll {
    padding: 2.2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.modal-body-scroll::-webkit-scrollbar {
    width: 6px;
}
.modal-body-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: rgba(15, 23, 42, 0.08);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 20;
}

[data-theme="dark"] .modal-close {
    background: rgba(255, 255, 255, 0.12);
    color: #f8fafc;
}

.modal-close:hover {
    background: #ef4444;
    color: white;
    transform: rotate(90deg);
}

/* Modal Hero */
.modal-hero {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1.6rem;
    align-items: center;
}

.modal-img-wrapper {
    width: 180px;
    height: 180px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

[data-theme="dark"] .modal-img-wrapper {
    background: #0f172a;
    border-color: #334155;
}

.modal-product-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.modal-img-wrapper:hover .modal-product-img {
    transform: scale(1.05);
}

.modal-hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
}

.modal-hero-text h3 {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.25;
    margin: 0;
}

.modal-hero-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0;
}

.eco-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    border-radius: 9999px;
    padding: 0.3rem 0.8rem;
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

[data-theme="dark"] .eco-badge {
    background: rgba(5, 150, 105, 0.15);
    border-color: rgba(5, 150, 105, 0.35);
    color: #34d399;
}

.eco-icon {
    flex-shrink: 0;
}

/* Specs Header */
.modal-specs-header {
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.45rem;
    margin-top: 0.2rem;
}

[data-theme="dark"] .modal-specs-header {
    border-color: #334155;
}

.specs-title-text {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #059669;
    text-transform: uppercase;
}

[data-theme="dark"] .specs-title-text {
    color: #34d399;
}

/* Specs Grid */
.modal-specs-grid {
    display: flex;
    flex-direction: column;
    gap: 1.05rem;
}

.spec-row {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 0.85rem;
    align-items: start;
}

.spec-icon-box {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #ecfdf5;
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

[data-theme="dark"] .spec-icon-box {
    background: rgba(5, 150, 105, 0.15);
    color: #34d399;
}

.spec-content {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.spec-label {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-main);
}

.spec-value {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* Color Swatches */
.color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    margin-top: 0.15rem;
}

.color-swatch-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 0.2rem 0.6rem 0.2rem 0.35rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-main);
}

[data-theme="dark"] .color-swatch-item {
    background: #0f172a;
    border-color: #334155;
    color: #cbd5e1;
}

.color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.color-dot.white {
    border: 1px solid #cbd5e1;
}

/* Pills */
.pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.15rem;
}

.spec-pill {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    transition: all 0.2s ease;
}

[data-theme="dark"] .spec-pill {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

/* Custom Size Callout Box */
.modal-custom-banner {
    display: flex;
    gap: 0.85rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    padding: 1rem 1.2rem;
    align-items: flex-start;
}

[data-theme="dark"] .modal-custom-banner {
    background: rgba(22, 163, 74, 0.12);
    border-color: rgba(34, 197, 94, 0.28);
}

.custom-banner-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(22, 163, 74, 0.18);
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

[data-theme="dark"] .custom-banner-icon {
    color: #4ade80;
}

.custom-banner-content h4 {
    font-size: 0.92rem;
    font-weight: 700;
    color: #166534;
    margin: 0 0 0.2rem 0;
}

[data-theme="dark"] .custom-banner-content h4 {
    color: #4ade80;
}

.custom-banner-content p {
    font-size: 0.82rem;
    color: #15803d;
    line-height: 1.45;
    margin: 0;
}

[data-theme="dark"] .custom-banner-content p {
    color: #86efac;
}

/* Quote Action Button */
.modal-action-footer {
    margin-top: 0.2rem;
}

.btn-infographic-quote {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    background: #16a34a;
    color: #ffffff;
    padding: 0.9rem 1.4rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.25);
}

.btn-infographic-quote:hover {
    background: #15803d;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.35);
}

@media (max-width: 640px) {
    .modal-hero {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }
    .modal-hero-text {
        align-items: center;
    }
    .modal-body-scroll {
        padding: 1.5rem 1.2rem;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .testimonial-card {
        min-width: calc(50% - 1rem); /* 2 cards, 1 gap / 2 */
    }

    .contact-grid {
        grid-template-columns: 1fr;
        padding: 3rem 2rem;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 90px;
        left: 0;
        width: 100%;
        height: calc(100vh - 90px);
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: var(--transition);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .theme-toggle-btn {
        margin-top: 1rem;
    }

    .testimonial-card {
        min-width: 100%; /* 1 card */
    }

    .nav-links a { font-size: 1.5rem; }
    .mobile-menu-btn { display: flex; }
    
    .mobile-menu-btn.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    .section { padding: 5rem 0; }
    .hero { background-attachment: scroll; }

    /* Contact Section Mobile (Tablet/Phablet) */
    .contact-grid {
        padding: 2.2rem 1.5rem;
        gap: 2.5rem;
        border-radius: 20px;
    }

    .contact-info h3 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .info-list {
        margin-top: 1.5rem;
    }

    .info-list li {
        font-size: 0.98rem;
        margin-bottom: 1.25rem;
        gap: 0.85rem;
    }

    .info-icon {
        font-size: 1.35rem;
    }

    .map-container {
        margin-top: 2.5rem;
        padding: 0.75rem;
        border-radius: 20px;
    }

    .map-container iframe {
        height: 320px;
        border-radius: 14px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 4%;
    }

    .contact-grid {
        padding: 1.6rem 1.1rem;
        gap: 2rem;
        border-radius: 16px;
    }

    .contact-info h3 {
        font-size: 1.35rem;
        line-height: 1.3;
    }

    .info-list li {
        font-size: 0.92rem;
        gap: 0.75rem;
        margin-bottom: 1.1rem;
    }

    .info-icon {
        font-size: 1.25rem;
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.85rem 1rem;
        font-size: 1rem;
        border-radius: 10px;
    }

    .contact-form .btn {
        padding: 0.9rem 1.2rem;
        font-size: 1rem;
    }

    .map-container {
        margin-top: 2rem;
        padding: 0.5rem;
        border-radius: 16px;
    }

    .map-container iframe {
        height: 260px;
        border-radius: 12px;
    }
}

