/* 
    Recodesa Marine & Rectificados - Global Styles 
    Premium Industrial Aesthetic
*/

:root {
    --color-primary: #D32F2F;
    --color-primary-dark: #B71C1C;
    --color-bg-dark: #121212;
    --color-bg-card: #1E1E1E;
    --color-accent: #8E8E93;
    --color-text-main: #FFFFFF;
    --color-text-alt: #CCCCCC;
    --glass-bg: rgba(18, 18, 18, 0.85);
    --transition-fast: 0.3s ease;
    --shadow-premium: 0 10px 30px rgba(0,0,0,0.5);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* Header & Nav */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 15px 0;
    transition: var(--transition-fast);
}

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

.logo img, footer img {
    height: 60px;
    filter: drop-shadow(0 0 10px rgba(211, 47, 47, 0.3));
}

.desktop-nav a {
    color: var(--color-text-main);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    transition: var(--transition-fast);
}

.desktop-nav a:hover {
    color: var(--color-primary);
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition-fast);
}

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

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(18, 18, 18, 0.7), rgba(18, 18, 18, 0.9)), url('assets/images/services/real_v8.png') no-repeat center center/cover;
    padding-top: 80px;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--color-bg-dark), transparent);
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-text-alt);
    max-width: 600px;
    margin-bottom: 40px;
}

.hero .btn {
    padding: 18px 40px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
}

.btn-primary:hover {
    transform: translateY(-5px);
    background: var(--color-primary-dark);
    box-shadow: 0 8px 25px rgba(211, 47, 47, 0.6);
}

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--color-bg-dark);
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    position: relative;
}

.services h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--color-primary);
}

.services .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.card {
    background: var(--color-bg-card);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--color-primary);
    transition: var(--transition-fast);
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(211, 47, 47, 0.3);
    box-shadow: var(--shadow-premium);
}

.card:hover::before {
    height: 100%;
}

.card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.card p {
    color: var(--color-text-alt);
    font-size: 0.95rem;
}

/* About Section */
.about {
    padding: 100px 0;
    background: #161616;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--color-text-alt);
    margin-bottom: 20px;
}

/* Gallery Section */
.gallery {
    padding: 100px 0;
}

.job-card {
    background: var(--color-bg-card);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.job-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: 0.5s ease;
}

.job-card:hover img {
    transform: scale(1.05);
}

/* Reviews */
.reviews-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #121212, #1a1a1a);
}

.review-card {
    background: rgba(255,255,255,0.03);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
}

.stars {
    color: #FFD700;
    margin-bottom: 15px;
}

/* Footer */
footer {
    padding: 80px 0;
    background: #0a0a0a;
    border-top: 1px solid rgba(255,255,255,0.05);
}

footer h3 {
    margin-bottom: 25px;
    color: #fff;
}

footer ul li {
    margin-bottom: 15px;
}

footer a {
    color: var(--color-text-alt);
    text-decoration: none;
    transition: var(--transition-fast);
}

footer a:hover {
    color: var(--color-primary);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
        background: none;
        border: none;
        color: #fff;
        font-size: 2rem;
        cursor: pointer;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
}

/* Utility */
.sticky-actions {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    display: flex;
    gap: 10px;
    width: 90%;
    max-width: 400px;
}

.sticky-btn {
    flex: 1;
    text-align: center;
    padding: 15px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    background: var(--color-primary);
}

.sticky-btn.whatsapp {
    background: #25D366;
}
