/* --- CATALOG GRID --- */
.catalog-header {
    margin-bottom: 40px;
    border-bottom: 2px solid var(--bg-off);
    padding-bottom: 20px;
}

.catalog-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding-bottom: 80px;
}

/* --- PRODUCT CARD (The Hive Cell) --- */
.product-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    /* Soft square, not hexagon (usability first) */
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    border-color: var(--brand-gold-light);
}

.card-image {
    height: 200px;
    /* Fixed height for uniformity */
    background: var(--bg-off);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    /* Helps transparent images blend */
}

.card-body {
    padding: 20px;
    flex-grow: 1;
    /* Pushes footer down */
    display: flex;
    flex-direction: column;
}

.category-tag {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--brand-gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    display: block;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    color: var(--brand-dark);
}

.product-id {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.card-footer {
    padding: 0 20px 20px;
    margin-top: auto;
    /* Stays at bottom */
}

.btn-consult {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
    background: var(--bg-off);
    color: var(--text-primary);
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
}

/* --- CATALOG LAYOUT (Sidebar + Grid) --- */
.catalog-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    /* Sidebar Fixed | Content Fluid */
    gap: 40px;
    align-items: start;
    position: relative;
    /* Context for sticky sidebar */
}

/* --- CATALOG SIDEBAR (Glass Panel) --- */
.catalog-sidebar {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);

    /* Alignment Fix */
    position: sticky;
    top: 90px;
    /* Below fixed header if any, or just offset */
    align-self: start;
}

/* Search Widget */
.input-group {
    display: flex;
    position: relative;
    border-bottom: 1px solid #cbd5e1;
    transition: all 0.3s;
}

.input-group:focus-within {
    border-bottom-color: var(--brand-gold);
}

.search-input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 10px 0;
    font-size: 0.9rem;
    color: var(--brand-dark);
    outline: none;
}

.search-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0 10px;
    transition: color 0.2s;
}

.search-btn:hover {
    color: var(--brand-gold);
}

.catalog-sidebar h4 {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 10px;
}

.filter-list a {
    text-decoration: none;
    color: var(--brand-dark);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    padding: 8px 0;
    transition: all 0.3s ease;
    border-left: 2px solid transparent;
}

.filter-list a:hover,
.filter-list a.active {
    color: var(--brand-gold);
    font-weight: 600;
    padding-left: 12px;
    border-left-color: var(--brand-gold);
    background: linear-gradient(90deg, rgba(255, 165, 0, 0.05) 0%, transparent 100%);
}

.filter-list a.active::before {
    content: '';
    /* Removed hex char for cleaner look */
}

/* --- PRODUCT CARD (Lady Di Refinement) --- */
.product-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Softer border */
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
    /* Gold Tint */
}

.card-image {
    height: 220px;
    background: radial-gradient(circle at center, #ffffff 0%, #f8f9fa 100%);
    /* Vignette */
    padding: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

/* Shine effect on hover */
.card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.8), transparent);
    transform: skewX(-25deg);
    transition: 0.5s;
}

.product-card:hover .card-image::after {
    left: 150%;
    transition: 0.7s;
}

.btn-consult {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    background: transparent;
    color: var(--brand-dark);
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s;
    text-decoration: none;
}

.product-card:hover .btn-consult {
    background: var(--brand-dark);
    color: #fff;
    border-color: var(--brand-dark);
}

@media (max-width: 768px) {
    .catalog-layout {
        grid-template-columns: 1fr;
        /* Stack on mobile */
    }

    .catalog-sidebar {
        display: none;
        /* Hide sidebar on mobile for now (or make collapsible) */
    }
}

/* --- BREADCRUMBS (Sticky Bar) --- */
.sys-breadcrumb {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-family: var(--font-mono);

    /* Sticky Magic */
    position: sticky;
    top: 70px;
    /* Adjust based on header height, usually header is ~70px */
    z-index: 900;
    /* High priority, just below header if header is z-1000 */

    /* Glass Background to hide content scrolling behind */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    padding: 10px 0;
    /* Add padding for the bar look */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtle separator */
    width: 100%;
}

.sys-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}

.sys-breadcrumb a:hover {
    color: var(--brand-gold);
}

.sys-breadcrumb .separator {
    margin: 0 8px;
    color: #cbd5e1;
}

.sys-breadcrumb .current {
    color: var(--brand-dark);
    font-weight: 600;
}

/* --- SIDEBAR FILTERS --- */
.catalog-sidebar h4 {
    font-size: 1rem;
    color: var(--brand-dark);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--brand-gold);
    display: inline-block;
    padding-bottom: 4px;
}

.filter-list {
    list-style: none;
}

.filter-list li {
    margin-bottom: 8px;
}

.filter-list a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    transition: all 0.2s;
}

.filter-list a:hover,
.filter-list a.active {
    color: var(--brand-gold);
    font-weight: 500;
    padding-left: 5px;
    /* Subtle movement */
}

.filter-list a.active::before {
    content: '›';
    /* Hex bullet simulation */
    margin-right: 8px;
    font-weight: 800;
}

.count-badge {
    margin-left: auto;
    /* Push to right */
    font-size: 0.75rem;
    color: #94a3b8;
}

/* --- HONEYCOMB LOGIN (The Hive Gateway) --- */
.honeycomb-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    /* Full screen immersive */
    padding: 20px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9)), url('../img/login-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.honeycomb-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    gap: 20px;
    /* Tighter gap for hexes */
}

/* Hexagon Shape Container */
.hex-cell {
    position: relative;
    width: 300px;
    height: 340px;
    margin: 20px;
    /* Hexagon clip path */
    -webkit-clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: transform 0.3s ease;
    /* Dark Honey Border Effect */
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.4), rgba(160, 82, 45, 0.3));
    padding: 2px;
    /* acts as border width */
}

.hex-cell:hover {
    transform: scale(1.05);
    z-index: 10;
}

/* Inner Content (The actual dark hex) */
.hex-content {
    background: #111;
    /* Solid dark background inside */
    width: 100%;
    height: 100%;
    -webkit-clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    text-align: center;
}

.hex-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--brand-gold);
    /* Default Gold */
}

.hex-title {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hex-subtitle {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

/* Input Fields inside Hex */
.hex-form-group {
    width: 100%;
    margin-bottom: 10px;
}

.hex-input {
    width: 80%;
    padding: 8px;
    background: transparent;
    border: none;
    border-bottom: 1px solid #444;
    color: #fff;
    text-align: center;
    outline: none;
    transition: border-color 0.3s;
    font-family: var(--font-tech);
    font-size: 0.9rem;
}

.hex-input:focus {
    border-bottom: 1px solid var(--brand-gold);
}

.hex-input::placeholder {
    color: #555;
    font-size: 0.8rem;
}

/* Action Button */
.btn-hex-action {
    margin-top: 15px;
    background: transparent;
    border: 1px solid var(--brand-gold);
    color: var(--brand-gold);
    padding: 8px 24px;
    text-transform: uppercase;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-hex-action:hover {
    background: var(--brand-gold);
    color: #000;
}

/* --- VARIANTS --- */

/* Blue Variant (GPS) */
.hex-blue .hex-cell {
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.3), rgba(0, 243, 255, 0.1));
}

.hex-blue .hex-icon {
    color: #00f3ff;
}

.hex-blue .hex-input:focus {
    border-bottom-color: #00f3ff;
}

.hex-blue .btn-hex-action {
    border-color: #00f3ff;
    color: #00f3ff;
}

.hex-blue .btn-hex-action:hover {
    background: #00f3ff;
    color: #000;
}

/* Gold Variant (Intranet) - reinforcing gold */

/* --- SERVICE PILLARS (Lady Di - Light Glass Version) --- */
:root {
    --color-infra: #0081a7;
    /* Cyan Oscuro para fondo claro */
    --color-sec: #e08e00;
    /* Naranja más sólido */
    --color-gps: #00b36b;
    /* Verde más oscuro */
    --color-code: #6a00ac;
    /* Violeta profundo */
}

.services-hero {
    display: flex;
    height: 85vh;
    width: 100%;
    overflow: hidden;
    /* NEW LIGHT BACKGROUND */
    background: url('../img/services-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    align-items: stretch;
}

.service-pillar {
    flex: 1;
    position: relative;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);

    /* FROSTED GLASS (Crystal Clear) */
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.02);
    /* Almost invisible */
    backdrop-filter: blur(2px);
    /* Minimal blur */
    -webkit-backdrop-filter: blur(2px);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    cursor: pointer;
}

.service-pillar:last-child {
    border-right: none;
}

.service-pillar:hover {
    flex: 2.5;
    background: rgba(255, 255, 255, 0.4);
    /* Less milky */
    backdrop-filter: blur(6px);
    /* Just enough to read text */
}

.pillar-content {
    z-index: 2;
    text-align: center;
    padding: 20px;
    transition: transform 0.4s;
    width: 100%;
}

/* Icons and Text need to be darker now */
.pillar-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #333;
    /* Dark Grey base */
    opacity: 0.8;
    transition: all 0.4s;
}

.pillar-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #222;
    /* Almost Black */
    margin-bottom: 20px;
    transition: color 0.3s;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    /* White glow for contrast */
}

.pillar-desc {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    font-size: 0.95rem;
    color: #444;
    /* Dark Grey Text */
    font-weight: 500;
    max-width: 320px;
    margin: 0 auto;
    line-height: 1.6;
}

.service-pillar:hover .pillar-desc {
    max-height: 300px;
    opacity: 1;
    margin-top: 20px;
    padding-bottom: 20px;
}

.service-pillar:hover .pillar-icon {
    transform: scale(1.1) translateY(-10px);
    opacity: 1;
}

/* Color Variants - Darker Text on Hover */
.pillar-infra:hover {
    border-top: 4px solid var(--color-infra);
}

.pillar-infra:hover .pillar-title {
    color: var(--color-infra);
}

.pillar-infra:hover .pillar-icon {
    color: var(--color-infra);
}

.pillar-sec:hover {
    border-top: 4px solid var(--color-sec);
}

.pillar-sec:hover .pillar-title {
    color: var(--color-sec);
}

.pillar-sec:hover .pillar-icon {
    color: var(--color-sec);
}

.pillar-gps:hover {
    border-top: 4px solid var(--color-gps);
}

.pillar-gps:hover .pillar-title {
    color: var(--color-gps);
}

.pillar-gps:hover .pillar-icon {
    color: var(--color-gps);
}

.pillar-code:hover {
    border-top: 4px solid var(--color-code);
}

.pillar-code:hover .pillar-title {
    color: var(--color-code);
}

.pillar-code:hover .pillar-icon {
    color: var(--color-code);
}


/* Mobile Fallback: Stack them */
@media (max-width: 768px) {
    .services-hero {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .service-pillar {
        height: 200px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
        border-right: none;
    }

    .service-pillar:hover {
        flex: 1;
    }

    .pillar-desc {
        opacity: 1;
        max-height: auto;
        margin-top: 10px;
        display: block;
    }
}

/* --- CONTACT PAGE (Lady Di Glass) --- */
.contact-hero {
    display: flex;
    min-height: 85vh;
    width: 100%;
    /* Shared Background */
    background: url('../img/services-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    align-items: center;
    justify-content: center;
    padding: 40px;
    gap: 60px;
}

/* Left Panel: Info (Glass Box Version) */
.contact-info-panel {
    flex: 1;
    max-width: 500px;

    /* FROSTED GLASS BOX */
    background: rgba(255, 255, 255, 0.25);
    /* Subtle white tint */
    backdrop-filter: blur(12px);
    /* Smooth blur "granulado" */
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 40px;

    color: #333;
    /* Revert to Dark Grey for elegance */
    text-shadow: none;
    /* Remove harsh shadow */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    /* Soft float shadow */
}

.contact-title {
    font-size: 3.5rem;
    /* Slightly smaller to fit box */
    font-weight: 800;
    margin-bottom: 20px;
    color: #222;
    text-shadow: none;
    /* Remove harsh shadow */
}

.contact-subtitle {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 30px;
    font-weight: 500;
    color: #444;
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: #333;
    /* Dark Grey */
}

.detail-item i {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--brand-gold);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Semi-transparent Map container */
.map-container-glass {
    width: 100%;
    height: 150px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    font-family: var(--font-mono);
    color: #666;
    letter-spacing: 2px;
}

/* Right Panel: Form */
.contact-form-panel {
    flex: 1;
    max-width: 550px;
    background: rgba(255, 255, 255, 0.5);
    /* Frosted Glass */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.glass-form .form-group {
    margin-bottom: 20px;
}

.glass-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #555;
}

.glass-form input,
.glass-form select,
.glass-form textarea {
    width: 100%;
    padding: 12px 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    font-family: var(--font-primary);
    font-size: 1rem;
    color: #000;
    transition: all 0.3s;
    resize: none;
}

.glass-form input:focus,
.glass-form select:focus,
.glass-form textarea:focus {
    outline: none;
    border-bottom-color: var(--brand-gold);
    background: linear-gradient(to bottom, transparent 95%, rgba(255, 166, 0, 0.1) 100%);
}

.btn-glass-submit {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

.btn-glass-submit:hover {
    background: var(--brand-gold);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 166, 0, 0.3);
}

@media (max-width: 900px) {
    .contact-hero {
        flex-direction: column;
        padding: 20px;
        height: auto;
    }

    .contact-info-panel,
    .contact-form-panel {
        width: 100%;
        max-width: 100%;
    }

    .contact-title {
        font-size: 2.5rem;
        text-align: center;
    }
}