:root {
    /* Construction Tech Palette */
    --tech-blue: #0f172a;
    /* Deep Navy/Slate - Base */
    --tech-blue-light: #1e293b;
    --safety-orange: #ff6b00;
    /* Vibrant Orange - Action */
    --safety-yellow: #ffd500;
    /* High Vis Yellow - Highlight */
    --concrete-grey: #f8fafc;
    /* Light Grey - Background */
    --steel-grey: #64748b;
    /* Text */
    --white: #ffffff;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, var(--tech-blue) 0%, #1e3a8a 100%);
    --gradient-accent: linear-gradient(45deg, var(--safety-orange), #ff8800);

    /* Spacing & Layout */
    --container-width: 1280px;
    --header-height: 80px;
    --radius: 4px;
    /* Sharper corners for tech feel */

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--concrete-grey);
    color: var(--tech-blue);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--tech-blue);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Modern Tech Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: var(--safety-orange);
    color: var(--white);
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--tech-blue);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--tech-blue);
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.85rem;
}

/* Top Bar - Sunbelt Style */
.top-bar {
    background-color: var(--safety-orange);
    /* Corporate Color Bar */
    color: var(--white);
    padding: 8px 0;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 1001;
    /* Above header */
    position: relative;
}

.top-bar .container {
    display: flex;
    justify-content: flex-end;
    /* Align to right */
    gap: 20px;
    align-items: center;
}

.top-bar a {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar a:hover {
    opacity: 0.9;
}


/* Tech Header - Dark Mode */
header {
    background-color: var(--tech-blue);
    /* Dark Header */
    height: var(--header-height);
    position: sticky;
    top: 0;
    /* Remains sticky */
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    border-bottom: 3px solid var(--safety-yellow);
    /* Maintained user edit */
}

header .container {
    height: 100%;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    /* White text on dark header */
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    opacity: 0.9;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--safety-orange);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--safety-yellow);
}

/* Hero Section - Gradient Tech look */
.hero {
    height: 90vh;
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.7)), url('assets/fondo mannlift.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    /* Diagonal cut for modern feel */
}

.hero-content {
    color: var(--white);
    max-width: 900px;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 25px;
    color: var(--white);
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-content h1 span {
    color: var(--safety-yellow);
}

.hero-content p {
    font-size: 1.35rem;
    margin-bottom: 40px;
    color: #e2e8f0;
    font-weight: 300;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Catalog Grid & Services */
.services-preview {
    padding: 100px 0;
    background-color: var(--white);
    /* Clean white background for section */
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 15px;
    display: inline-block;
}

.section-header p {
    color: var(--steel-grey);
    font-size: 1.1rem;
}

/* Grid Layouts */
.grid-4,
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

/* Card Styling - Reference Scheme 2 (Light grey cards) */
.card,
.catalog-item {
    background: #f1f5f9;
    /* Light greyish-blue background like reference */
    border: none;
    /* Removed border for cleaner look */
    border-radius: var(--radius);
    padding: 40px 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card:hover,
.catalog-item:hover {
    background: #e2e8f0;
    /* Slightly darker on hover */
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.card::after,
.catalog-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--safety-orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.card:hover::after,
.catalog-item:hover::after {
    transform: scaleX(1);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--safety-yellow);
    /* Yellow icons like reference */
    margin-bottom: 25px;
    background: transparent;
    /* No circle background, just the icon */
    width: auto;
    height: auto;
    display: inline-block;
    border-radius: 0;
}

.card:hover .card-icon {
    background: transparent;
    color: var(--safety-orange);
    transform: scale(1.1);
}

.catalog-img {
    width: 100%;
    height: 250px;
    margin-bottom: 20px;
    background: transparent;
}

.catalog-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.catalog-item:hover .catalog-img img {
    transform: scale(1.05);
}

.catalog-overlay {
    display: none;
    /* Removed for cleaner look in this design */
}

/* Contact Section */
.contact-cta {
    background: var(--tech-blue);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.contact-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.contact-cta h2 {
    color: var(--white);
    font-weight: 800;
}

.contact-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin: 50px 0;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.contact-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px 40px;
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item i {
    color: var(--safety-yellow);
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Footer */
footer {
    background-color: #0b1120;
    /* Darker than tech-blue */
    color: var(--steel-grey);
    padding: 60px 0 30px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content .logo {
    justify-content: center;
    margin-bottom: 20px;
    opacity: 0.8;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 40px;
    padding-top: 20px;
}

/* Page Headers (Reference to Catalog) */
.page-header {
    background: var(--tech-blue);
    padding: 80px 0;
    text-align: center;
    color: var(--white);
    margin-bottom: 40px;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 10px;
}

.page-header p {
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 1024px) {

    .grid-4,
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .grid-4,
    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        gap: 20px;
    }
}

/* Header Left Section (Logo + Phone) */
.nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 100%;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    /* White text as requested */
    font-weight: 600;
    font-size: 0.95rem;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    /* Divider */
    height: 30px;
    /* Limit height of divider */
    text-decoration: none;
}

.header-contact i {
    color: var(--safety-orange);
}

.header-contact:hover {
    color: var(--safety-yellow);
}

@media (max-width: 768px) {
    .header-contact {
        display: none;
        /* Hide phone on mobile */
    }
}