@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Inter:wght@300;400;600;700&display=swap');

:root {
    --primary: #0063dc;
    --primary-dark: #004fb1;
    --secondary: #20c997;
    --accent: #ff4757;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-darker);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.font-poppins {
    font-family: 'Poppins', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* -- UI Utilities -- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: var(--transition);
}

.glass-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

/* -- Header & Nav -- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo img {
    height: 40px;
    margin-right: 12px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-light);
}

.nav-cta {
    background: var(--secondary);
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
}

.nav-cta:hover {
    background: #198754;
    box-shadow: 0 0 20px rgba(32, 201, 151, 0.4);
}

/* -- Hero Section -- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, rgba(0, 99, 220, 0.15), transparent),
        radial-gradient(circle at bottom left, rgba(32, 201, 151, 0.1), transparent);
    padding-top: 80px;
}

.hero-content {
    max-width: 700px;
}

.hero-tag {
    display: inline-block;
    padding: 6px 15px;
    background: rgba(0, 99, 220, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 99, 220, 0.2);
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 25px;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 35px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 14px 30px;
    border-radius: 12px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 10px 25px rgba(0, 99, 220, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-light);
}

.btn-outline:hover {
    background: var(--glass-bg);
}

/* -- Sections Common -- */
.section-title {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-muted);
}

/* -- Services Grid -- */
.rubros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.rubro-card {
    padding: 40px;
}

.rubro-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 99, 220, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--primary);
    font-size: 1.5rem;
}

.ventas-card .rubro-icon {
    background: rgba(32, 201, 151, 0.1);
    color: var(--secondary);
}

.rubro-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.rubro-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.rubro-list {
    margin-bottom: 25px;
}

.rubro-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.rubro-list i {
    color: var(--primary);
    font-size: 0.8rem;
}

/* -- About Section -- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img {
    position: relative;
}

.about-img img {
    border-radius: 30px;
}

.about-img::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    z-index: -1;
    border-radius: 20px;
    opacity: 0.5;
}

/* -- Contact & Footer -- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info-list div {
    margin-bottom: 25px;
}

.contact-info-list h5 {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.contact-info-list p {
    font-size: 1.1rem;
}

.map-container {
    height: 400px;
    border-radius: 25px;
    overflow: hidden;
    filter: invert(90%) hue-rotate(180deg) brightness(95%) contrast(90%);
}

footer {
    padding: 60px 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-links a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border-radius: 50%;
}

.social-links a:hover {
    background: var(--primary);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* -- Search Modal Refinement -- */
.modal-search-header {
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2000;
}

.container-search-header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.wrap-search-header {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 15px 40px;
    width: 90%;
    max-width: 800px;
    display: flex;
    align-items: center;
    transition: var(--transition);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.wrap-search-header:focus-within {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.02);
}

.wrap-search-header input {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    padding: 10px 20px;
    width: 100%;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

.wrap-search-header button {
    color: var(--primary);
    font-size: 1.8rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.wrap-search-header button:hover {
    transform: scale(1.2);
}

.btn-hide-modal-search {
    position: absolute;
    top: -80px;
    right: 20px;
    color: var(--text-light);
    font-size: 2.5rem;
    opacity: 0.5;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-hide-modal-search:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* -- Footer Integration -- */
footer {
    background: var(--bg-darker);
    padding: 80px 0 60px;
    border-top: 1px solid var(--glass-border);
    margin-top: 0;
}

.social-links {
    gap: 25px;
}

.social-links a {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    border: 1px solid var(--glass-border);
}

.social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 99, 220, 0.3);
}

/* -- WhatsApp Floating Button -- */
.btn-whatsapp-fixed {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white !important;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: var(--transition);
}

.btn-whatsapp-fixed:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
    background: #20ba5a;
}

/* -- Mobile Adjustments -- */
@media (max-width: 968px) {
    .btn-whatsapp-fixed {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 25px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .wrap-search-header {
        padding: 10px 20px;
    }

    .wrap-search-header input {
        font-size: 1.1rem;
    }

    .btn-hide-modal-search {
        top: -60px;
        font-size: 2rem;
    }

    /* Fix banner text overlapping on mobile */
    .block1-txt {
        padding-left: 15px !important;
        padding-right: 15px !important;
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }

    .block1-name {
        font-size: 1.5rem !important;
        line-height: 1.2;
    }

    /* Ensure glass header behaves well when desktop menu is hidden */
    .glass-header {
        padding: 5px 0 !important;
    }
}