﻿/* EGIDRA - Estilos Página de Inicio */

/* Variables */
:root {
    --primary-color: #ffc107;
    --dark-color: #1a1a1a;
    --light-bg: #f8f9fa;
    --text-muted: #6c757d;
    --transition: all 0.3s ease;
}

/* Fuentes */
body {
    font-family: 'Poppins', 'Roboto', sans-serif;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    background-color: rgba(13, 13, 13, 0.98) !important;
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.navbar-brand i {
    color: var(--primary-color);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.logoEgidra {
    height: 40px;
    transition: var(--transition);
}
/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: 
        linear-gradient(to right, rgba(13, 13, 13, 0.92) 0%, rgba(13, 13, 13, 0.65) 50%, rgba(13, 13, 13, 0.4) 100%),
        url('../../../img/template/bg-offshore.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(255, 193, 7, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(255, 193, 7, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    line-height: 1.2;
    animation: fadeInUp 1s ease-out;
}

.hero-section .badge {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-section .lead {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-section .d-flex {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #151515 100%);
    position: relative;
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(255, 193, 7, 0.2);
}

.stat-item {
    padding: 1rem 0.5rem;
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-3px);
}

.stat-item h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-item i {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-item p {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.5) !important;
}

/* About Preview */
.about-preview {
    background: #fff;
    padding: 5rem 0;
}

.about-preview img {
    transition: var(--transition);
}

.about-preview img:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.about-preview .list li {
    transition: var(--transition);
}

.about-preview .list li:hover {
    transform: translateX(5px);
}

/* Services Preview */
.services-preview {
    background: var(--light-bg);
    padding: 5rem 0;
}

.service-card {
    transition: var(--transition);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--primary-color);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

/* HSE Preview */
.hse-preview {
    background: #fff;
    padding: 5rem 0;
}

.hse-preview .row > div > div {
    transition: var(--transition);
    padding: 0.75rem;
    border-radius: 0.5rem;
}

.hse-preview .row > div > div:hover {
    background: rgba(255, 193, 7, 0.08);
}

/* Projects Preview */
.projects-preview {
    background: var(--light-bg);
    padding: 5rem 0;
}

.project-card {
    transition: var(--transition);
    overflow: hidden;
}

.project-card img {
    transition: var(--transition);
    height: 200px;
    object-fit: cover;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card:hover img {
    transform: scale(1.1);
}

/* Clients Strip */
.clients-strip {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
}

.clients-strip h4 {
    font-size: 0.85rem;
    letter-spacing: 2px;
    transition: var(--transition);
}

.clients-strip h4:hover {
    opacity: 1 !important;
    color: var(--primary-color) !important;
}

/* Contact Preview */
.contact-preview {
    background: #fff;
    padding: 5rem 0;
}

.contact-preview .card {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
    border-top: 3px solid var(--primary-color);
    padding-top: 4rem !important;
}

.footer a {
    transition: var(--transition);
}

.footer a:hover {
    color: var(--primary-color) !important;
}

.footer h6 {
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive */
@media (max-width: 991px) {
    .hero-section {
        background: 
            linear-gradient(to right, rgba(13, 13, 13, 0.95) 0%, rgba(13, 13, 13, 0.85) 100%),
            url('../../img/template/bg-offshore.jpg');
        background-size: cover;
        background-position: center;
    }
    
    .hero-section h1 {
        font-size: 2.5rem !important;
    }
    
    .navbar-collapse {
        background: #0d0d0d;
        padding: 1rem;
        border-radius: 0.5rem;
        margin-top: 0.5rem;
    }
}

@media (max-width: 767px) {
    .hero-section h1 {
        font-size: 1.75rem !important;
    }
    
    .hero-section .display-3 {
        font-size: 2rem !important;
    }
    
    .stat-item {
        padding: 0.75rem 0.25rem;
    }
    
    .stat-item h2 {
        font-size: 1.35rem;
    }
    
    .stat-item i {
        font-size: 1.2rem;
    }
    
    .stat-item p {
        font-size: 0.6rem;
    }
    
    .service-card {
        margin-bottom: 1rem;
    }
}

/* Partners Section */
.partners-section {
    background: var(--light-bg);
    padding: 5rem 0;
}

.partner-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    height: 100%;
    transition: var(--transition);
}

.partner-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 193, 7, 0.35);
}

.partner-logo {
    width: 76px;
    height: 76px;
    border-radius: 14px;
    background: #f3f4f6;
    border: 2px solid rgba(255, 193, 7, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .78rem;
    font-weight: 800;
    color: #6c757d;
    letter-spacing: 1px;
    transition: var(--transition);
    margin-bottom: 0.25rem;
}

.partner-card:hover .partner-logo {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.5);
    color: #8a6000;
}

.partner-name {
    font-size: .95rem;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.2;
}

.partner-desc {
    font-size: .77rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
    flex: 1;
}

.partner-link {
    font-size: .74rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.partner-link:hover {
    color: #e0a800;
}

.partners-trust {
    background: #fff;
    border: 1px solid rgba(255, 193, 7, 0.15);
    border-left: 4px solid var(--primary-color);
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0d0d0d;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e0a800;
}