/* Home Page Specific Styles */

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.3)), url('/imagenes/industrial-metal-workshop.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 2rem;
    position: relative;
}

.hero-content {
    max-width: 1000px;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(216, 27, 27, 0.2);
    border: 1px solid var(--primary-color);
    border-radius: 50px;
    color: #ffd6d6;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(5px);
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.25rem;
    color: #e5e5e5;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.btn-secondary {
    margin-left: 1rem;
}

/* Stats Section - BRIGHTER NOW */
.stats {
    background-color: #f8fafc;
    /* Very light gray instead of dark */
    color: var(--text-main);
    padding: 5rem 2rem;
    border-bottom: 1px solid var(--gray-200);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.stat-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    color: var(--gray-600);
    font-weight: 700;
}

/* Services Section - PRETTIER TITLE */
.services {
    padding: 6rem 2rem;
    background-color: var(--light-bg);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

/* Enhancing Title */
.services-title-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.services-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: -1px;
    position: relative;
    z-index: 2;
}

.services-title::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 15px;
    background-color: rgba(216, 27, 27, 0.15);
    /* Subtle red highlighter effect */
    z-index: -1;
    transform: skewX(-15deg);
}

.section-description {
    color: var(--gray-600);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary-color);
    transform: scaleY(0);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
    transform: scaleY(1);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.service-card p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Why Choose Us - Red Transparent & Tiny */
.why-us {
    position: relative;
    /* Using local image path, ensure it works */
    background: url('imagenes/industrial-metal-workshop.jpg');
    background-size: cover;
    background-position: center;
    padding: 3rem 1rem;
    /* Tiny padding */
    color: white;
}

.why-us-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(216, 27, 27, 0.85);
    /* Red transparent */
}

.why-us-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.why-us h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 800;
}

.why-us-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.reason-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    padding: 1.5rem;
    border-radius: 8px;
    max-width: 300px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.reason-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reason-item p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Clients */
.clients-section {
    padding: 4rem 2rem;
    background-color: white;
    text-align: center;
}

.clients-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.client-tag {
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--gray-200);
    border-radius: 4px;
    font-weight: 600;
    color: var(--gray-600);
    transition: var(--transition);
}

.client-tag:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: #fff5f5;
}

/* Hero Services Dropdown */
.hero-dropdown {
    position: relative;
    display: inline-block;
}

.hero-dropdown .btn-primary {
    font-family: inherit;
    font-size: inherit;
}

.hero-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    min-width: 250px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    z-index: 10;
}

.hero-dropdown.open .hero-dropdown-menu {
    opacity: 1;
    visibility: visible;
}

@media (hover: hover) and (pointer: fine) {
    .hero-dropdown:hover .hero-dropdown-menu {
        opacity: 1;
        visibility: visible;
    }
}

.hero-dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}

.hero-dropdown-menu a:hover {
    background: #f5f5f5;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .hero-dropdown {
        display: block;
    }

    .btn-secondary {
        margin-left: 0;
        margin-top: 1rem;
        display: block;
    }

    .hero {
        background-attachment: scroll;
    }
}

/* Remove footer margin on home page */
body.home .site-footer {
    margin-top: 0;
}