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

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #2563eb;
    --accent-color: #ef4444;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --bg-color: #ffffff;
    --text-color: #334155;
    --white: #ffffff;
    --logo-blue: #1e3a8a;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.12);
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    padding-bottom: 100px;
}

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

/* Header */
.header {
    background: #284066;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.4rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
}

.logo img {
    height: 98px;
    width: auto;
    max-width: 364px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.02);
}

.nav {
    display: flex;
    gap: 1.5rem;
}

.nav a {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: width 0.3s ease;
}

.nav a:hover {
    color: var(--white);
    opacity: 0.9;
}

.nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    color: var(--text-color);
    padding: 40px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(30, 58, 138, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--white);
    border: 3px solid var(--logo-blue);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(30, 58, 138, 0.15), 
                0 0 0 1px rgba(255, 255, 255, 0.1) inset,
                0 4px 20px rgba(30, 58, 138, 0.1);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    transition: all 0.3s ease;
    transform: perspective(1000px) rotateX(0deg);
}

.hero-content:hover {
    transform: perspective(1000px) rotateX(1deg) translateY(-2px);
    box-shadow: 0 15px 50px rgba(30, 58, 138, 0.2), 
                0 0 0 1px rgba(255, 255, 255, 0.1) inset,
                0 6px 25px rgba(30, 58, 138, 0.15);
}

.hero-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: var(--logo-blue);
    animation: fadeInUp 0.8s ease;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(30, 58, 138, 0.2),
                 0 1px 3px rgba(30, 58, 138, 0.1);
    letter-spacing: 0.5px;
    position: relative;
    padding: 1rem 0;
}

.hero-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--logo-blue), var(--secondary-color));
    border-radius: 2px;
}

.hero-subtitle {
    font-size: 0.77rem;
    margin-bottom: 0.5rem;
    color: var(--logo-blue);
    font-weight: 600;
    animation: fadeInUp 1s ease;
    text-shadow: 0 1px 5px rgba(30, 58, 138, 0.15);
    letter-spacing: 0.3px;
    padding: 0.5rem 0;
    border-top: 2px solid rgba(30, 58, 138, 0.1);
    margin-top: 0.5rem;
}

.hero-tagline {
    font-size: 0.85rem;
    margin: 0.5rem 0 0 0;
    color: var(--logo-blue);
    font-weight: 700;
    animation: fadeInUp 1.2s ease;
    font-style: italic;
    opacity: 1;
    padding-top: 0.5rem;
    text-shadow: 0 1px 3px rgba(30, 58, 138, 0.2);
    letter-spacing: 0.5px;
}


/* Section Titles */
.section-title {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--logo-blue);
    font-weight: 700;
    position: relative;
    padding-bottom: 0.4rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--logo-blue), var(--secondary-color));
    border-radius: 2px;
}

/* Products Tabs Section */
.products-tabs {
    padding: 25px 0;
    background: #f8fafc;
    min-height: 60vh;
}

.tabs-header {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-button {
    background: var(--white);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    box-shadow: var(--shadow);
}

.tab-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--logo-blue);
}

.tab-button.active {
    background: var(--logo-blue);
    border-color: var(--logo-blue);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.tab-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--logo-blue);
    transition: color 0.3s ease;
    line-height: 1.3;
    text-align: center;
}

.tab-button.active .tab-title {
    color: var(--white);
}


.tab-content {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.tab-content.active {
    display: block;
}

/* Products Section */
.products {
    padding: 25px 0;
    background: #f8fafc;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 1fr;
    gap: 1rem;
    align-items: stretch;
}

.product-card {
    background: linear-gradient(135deg, var(--logo-blue) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 1.3rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100px;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: var(--shadow-lg);
}

.product-card h3 {
    color: var(--white);
    font-size: 0.9rem;
    margin: 0;
    font-weight: 600;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Fire Systems Section */
.fire-systems {
    padding: 25px 0;
    background: var(--white);
}

.fire-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 1fr;
    gap: 1rem;
    align-items: stretch;
}

.fire-card {
    background: linear-gradient(135deg, var(--logo-blue) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 1.3rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100px;
    height: 100%;
}

.fire-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: var(--shadow-lg);
}

.fire-card h3 {
    font-size: 0.9rem;
    margin: 0;
    font-weight: 600;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Contact Section */
.contact {
    padding: 25px 0;
    background: #f8fafc;
    position: relative;
}


.contact-subtitle {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

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

.contact-card {
    background: var(--white);
    padding: 1.1rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-top: 3px solid var(--logo-blue);
}

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

.contact-icon {
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
}

.contact-card h3 {
    color: var(--logo-blue);
    font-size: 1rem;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.contact-phone {
    display: block;
    color: var(--secondary-color);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-phone:hover {
    color: var(--logo-blue);
}

/* Footer */
.footer {
    background: #284066;
    color: var(--white);
    padding: 0.8rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.footer-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1rem;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.footer-toggle:hover {
    opacity: 0.9;
}

.footer-toggle-icon {
    transition: transform 0.3s ease;
    font-size: 0.7rem;
}

.footer-toggle.active .footer-toggle-icon {
    transform: rotate(180deg);
}

.footer-info {
    width: 100%;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
}

.footer-contact {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.3rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--white);
}

.footer-phone {
    color: var(--white);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.footer-phone:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer-text {
    color: var(--white);
    font-size: 0.7rem;
    opacity: 0.9;
}

.footer-copyright-link {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.footer-copyright-link:hover {
    opacity: 1;
    text-decoration: underline;
    color: var(--white);
}

.footer-copyright {
    color: var(--white);
    font-size: 0.7rem;
    opacity: 0.9;
    margin-top: 0.3rem;
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    color: var(--white);
    text-decoration: none;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
    background: #20BA5A;
}

.whatsapp-button svg {
    width: 32px;
    height: 32px;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 0.3rem 0;
    }
    
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo img {
        height: 60px;
        max-width: 200px;
    }
    
    .nav {
        gap: 1rem;
        font-size: 0.85rem;
    }
    
    .hero {
        padding: 30px 0;
    }
    
    .hero-content {
        padding: 1.5rem;
        margin: 0 15px;
        border-width: 2px;
    }
    
    .hero-title {
        font-size: 1.2rem;
        padding: 0.8rem 0;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
    }
    
    .hero-title::before {
        width: 60px;
        height: 3px;
    }

    .section-title {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .tabs-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
        margin-bottom: 1.5rem;
    }

    .tab-button {
        width: 100%;
        min-width: auto;
        padding: 0.9rem 1.2rem;
    }
    
    .tab-title {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .tab-icon {
        font-size: 1.5rem;
    }

    .products-tabs {
        padding: 20px 0;
    }
    
    .products-grid,
    .fire-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .product-card,
    .fire-card {
        padding: 1rem;
        min-height: 160px;
    }
    
    .product-icon,
    .fire-icon {
        font-size: 1.8rem;
    }
    
    .product-card h3,
    .fire-card h3 {
        font-size: 0.85rem;
    }
    
    .product-card p,
    .fire-card p {
        font-size: 0.7rem;
    }
    
    .footer {
        padding: 0.4rem 0;
    }
    
    .footer-toggle {
        display: flex;
    }
    
    .footer-content {
        gap: 0.2rem;
    }
    
    .footer-info {
        max-height: 0;
        opacity: 0;
    }
    
    .footer-info.active {
        max-height: 500px;
        opacity: 1;
    }
    
    .footer-contact {
        flex-direction: column;
        gap: 0.4rem;
        align-items: center;
        padding: 0.5rem 0;
    }
    
    .footer-contact-item {
        flex-direction: row;
        gap: 0.4rem;
        align-items: center;
    }
    
    .footer-label {
        font-size: 0.7rem;
        font-weight: 500;
    }
    
    .footer-phone {
        font-size: 0.7rem;
    }
    
    .footer-text {
        font-size: 0.55rem;
        margin-top: 0.2rem;
        line-height: 1.3;
    }
    
    
    body {
        padding-bottom: 100px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 20px 0;
    }
    
    .hero-content {
        padding: 1.5rem;
        border-width: 2px;
        border-radius: 15px;
        margin: 0 10px;
    }

    .hero-title {
        font-size: 1rem;
        line-height: 1.4;
        padding: 0.8rem 0;
    }
    
    .hero-title::before {
        width: 60px;
        height: 3px;
    }

    .hero-subtitle {
        font-size: 0.65rem;
        padding: 0.4rem 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .logo img {
        height: 50px;
        max-width: 180px;
    }
    
    .nav {
        gap: 0.8rem;
        font-size: 0.8rem;
    }

    .products-tabs {
        padding: 15px 0;
    }
    
    .tabs-header {
        gap: 0.6rem;
        margin-bottom: 1.2rem;
    }
    
    .tab-button {
        padding: 0.8rem 1rem;
    }
    
    .tab-title {
        font-size: 0.75rem;
    }
    
    .tab-icon {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .products-grid,
    .fire-grid {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }

    .product-card,
    .fire-card {
        padding: 0.9rem;
        min-height: 150px;
    }
    
    .product-icon,
    .fire-icon {
        font-size: 1.6rem;
        margin-bottom: 0.3rem;
    }
    
    .product-card h3,
    .fire-card h3 {
        font-size: 0.8rem;
        min-height: 2.4em;
    }
    
    .product-card p,
    .fire-card p {
        font-size: 0.65rem;
    }
    
    .footer {
        padding: 0.35rem 0;
    }
    
    .footer-toggle {
        display: flex;
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .footer-content {
        gap: 0.15rem;
    }
    
    .footer-info {
        max-height: 0;
        opacity: 0;
    }
    
    .footer-info.active {
        max-height: 500px;
        opacity: 1;
    }
    
    .footer-contact {
        flex-direction: column;
        gap: 0.3rem;
        align-items: center;
        padding: 0.4rem 0;
    }
    
    .footer-contact-item {
        flex-direction: row;
        gap: 0.3rem;
        text-align: center;
        padding: 0.1rem 0;
    }
    
    .footer-label {
        font-size: 0.65rem;
        font-weight: 500;
    }
    
    .footer-phone {
        font-size: 0.65rem;
    }
    
    .footer-text {
        font-size: 0.5rem;
        margin-top: 0.15rem;
        padding: 0 0.5rem;
        line-height: 1.3;
    }
    
    body {
        padding-bottom: 70px;
    }
    
    .whatsapp-button {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-button svg {
        width: 28px;
        height: 28px;
    }
    
    .footer-contact {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-contact-item {
        flex-direction: column;
        gap: 0.2rem;
    }
    
    .footer-label,
    .footer-phone {
        font-size: 0.75rem;
    }
    
    .whatsapp-button {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-button svg {
        width: 24px;
        height: 24px;
    }
    
}

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

