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

:root {
    --primary-color: #1877f2;
    --secondary-color: #25d366;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --text-color: #333;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #fff;
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-color);
}

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

.btn-facebook,
.btn-whatsapp {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: var(--transition);
}

.btn-facebook {
    display: none;
    background-color: var(--primary-color);
}

.btn-whatsapp {
    display: flex;
    background-color: var(--secondary-color);
}

.btn-facebook:hover,
.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Hero Section */
.hero {
    padding-top: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.hero-content {
    flex: 1;
    padding: 2rem;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary {
    background: white;
    color: var(--primary-color);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.hero-image {
    flex: 1;
    padding: 2rem;
}

.hero-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Section Styles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

/* About Section */
.about {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.about-text p {
    margin-bottom: 2rem;
    color: #666;
}

.features {
    display: grid;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon {
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-text h4 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.feature-text p {
    color: #666;
    margin: 0;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Products Section */
.products {
    padding: 5rem 0;
}

.product-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: white;
}

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

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.image-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-image.active {
    opacity: 1;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.carousel-btn {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    transition: var(--transition);
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

.video-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.product-info {
    padding: 0.85rem 1.5rem 1.5rem;
}

.product-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.product-price {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.spec-item {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.spec-value {
    font-weight: 600;
    color: var(--dark-color);
}

.product-actions {
    display: flex;
    gap: 1rem;
}

.btn-detail,
.btn-inquiry {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-detail {
    background: var(--primary-color);
    color: white;
}

.btn-inquiry {
    background: var(--secondary-color);
    color: white;
}

.btn-detail:hover,
.btn-inquiry:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-text h4 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.contact-text p {
    color: #666;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-form.disabled {
    opacity: 0.75;
}

.form-status {
    display: none;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    background: #f8d7da;
    color: #842029;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.contact-form.disabled .form-status {
    display: block;
}

.contact-form.disabled .btn-submit,
.contact-form.disabled .submit-btn {
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: #1565c0;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section a:hover {
    opacity: 1;
}

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

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

#footerFacebookLink {
    display: none;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    transition: var(--transition);
}

.close:hover {
    color: var(--dark-color);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.product-modal-content {
    max-width: 600px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-content,
    .hero-image {
        flex: 1;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .social-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-specs {
        grid-template-columns: 1fr;
    }

    .product-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 1rem;
    }

    .hero {
        padding-top: 120px;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .product-filter {
        flex-wrap: wrap;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.about-content,
.products-grid,
.contact-content {
    animation: fadeIn 0.6s ease;
}

/* Loading States */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Success/Error Messages */
.success-message,
.error-message {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    display: none;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.success-message.active,
.error-message.active {
    display: block;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 999;
}

.scroll-top.active {
    display: flex;
}

.scroll-top:hover {
    background: #1565c0;
    transform: translateY(-3px);
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* H5 layout polish */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .header {
        padding: 10px 12px;
    }

    .nav {
        width: 100%;
        padding: 0;
        gap: 10px;
    }

    .logo,
    .logo a {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .logo-img {
        height: 34px;
        width: auto;
    }

    .nav-menu {
        width: 100%;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 14px;
        overflow-x: auto;
        padding: 2px 2px 8px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .nav-menu::-webkit-scrollbar {
        display: none;
    }

    .nav-menu li {
        flex: 0 0 auto;
    }

    .nav-menu a {
        white-space: nowrap;
        font-size: 13px;
    }

    .nav-right {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .language-switcher {
        flex: 0 1 auto;
        padding: 0;
        background: transparent;
        box-shadow: none;
    }

    .language-switcher select {
        max-width: 142px;
        min-height: 36px;
        padding: 0.4rem 0.55rem;
        font-size: 13px;
    }

    .social-buttons {
        flex: 1 1 auto;
        justify-content: flex-end;
        gap: 8px;
    }

    .btn-facebook {
        display: none !important;
    }

    .btn-whatsapp {
        min-height: 36px;
        padding: 0.4rem 0.65rem;
        font-size: 13px;
        white-space: nowrap;
    }

    .search-section {
        padding: 168px 16px 34px;
    }

    .search-title {
        font-size: 22px;
        line-height: 1.35;
        margin-bottom: 18px;
    }

    .search-box {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .search-input,
    .search-btn {
        width: 100%;
        min-height: 46px;
    }

    .search-tags {
        justify-content: flex-start;
        gap: 8px;
    }

    .search-tag {
        font-size: 12px;
        padding: 5px 10px;
    }

    .process-section,
    .products,
    .service-section,
    .about,
    .contact-section {
        padding: 44px 16px;
    }

    .section-title,
    .section-head h2 {
        font-size: 24px;
        margin-bottom: 24px;
        letter-spacing: 0;
    }

    .process-list,
    .service-list {
        gap: 16px;
    }

    .process-item {
        flex: 1 1 150px;
        min-width: 145px;
    }

    .products-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .product-card {
        border-radius: 8px;
    }

    .product-card:hover {
        transform: none;
    }

    .product-image,
    .product-card img {
        height: 220px;
    }

    .product-info {
        padding: 0.9rem 1rem 1rem;
    }

    .product-info h3 {
        font-size: 1.1rem;
        line-height: 1.35;
    }

    .product-price {
        font-size: 1.05rem;
    }

    .product-specs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .product-actions {
        flex-direction: row;
        gap: 0.7rem;
    }

    .btn-detail,
    .btn-inquiry {
        min-height: 42px;
        padding: 0.65rem 0.7rem;
        font-size: 13px;
    }

    .about-container,
    .contact-wrap,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .about-left h2 {
        font-size: 24px;
    }

    .about-right img {
        max-height: 280px;
        object-fit: cover;
    }

    .section-head {
        margin-bottom: 34px;
    }

    .contact-info .info-desc {
        margin-bottom: 28px;
    }

    .info-list li {
        margin-bottom: 22px;
        padding-bottom: 22px;
    }

    .info-list div strong {
        font-size: 15px;
        word-break: break-word;
    }

    .footer {
        padding: 38px 16px 18px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .scroll-top {
        right: 1rem;
        bottom: 1rem;
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 420px) {
    .search-section {
        padding-top: 176px;
    }

    .btn-whatsapp span,
    .btn-whatsapp:not(.btn-inquiry) {
        font-size: 12px;
    }

    .product-image,
    .product-card img {
        height: 200px;
    }

    .product-specs,
    .product-actions {
        grid-template-columns: 1fr;
    }

    .product-actions {
        flex-direction: column;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .social-buttons,
    .carousel-controls,
    .video-btn {
        display: none;
    }

    .hero {
        background: white;
        color: var(--text-color);
    }
}
