/* Modern Design System (Light Theme) - ESEASA Construcciones */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;700;900&family=Inter:wght@300;400;600&display=swap');

:root {
    --primary-color: #e9bd00;
    --primary-hover: #ffcc00;
    --light-bg: #F7F7F7;
    --white-bg: #FFFFFF;
    --dark-navbar: #25292c;
    --text-dark: #1d2023;
    --text-muted: #666666;
    --glass-border: rgba(0, 0, 0, 0.08);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-premium: 0 10px 30px rgba(0, 0, 0, 0.05);
}

body {
    background-color: var(--light-bg);
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
}

h1, h2, h3, h4, .title {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.01em;
}

/* Navbar Modernization (Floating Glassmorphism) */
.navbar.navbar-default {
    background: rgba(37, 41, 44, 0.8) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 0 !important;
    min-height: 60px;
    transition: var(--transition-smooth);
}

.navbar .navbar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 30px !important;
    background: var(--primary-color);
    height: 60px;
    margin-top: 0 !important;
    border-radius: 0; /* Remove radius to match Pesado's square block */
}

.navbar .navbar-brand img {
    height: 40px; /* Increased from 30px to make the logo prominent like Pesado */
    object-fit: contain;
}

.navbar-nav > li > a {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 20px 15px !important;
    line-height: 20px;
    transition: var(--transition-smooth);
}

.navbar-nav > li > a:hover {
    color: var(--primary-color) !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.language-switch {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    height: 60px; /* Match navbar height */
    padding: 0 10px;
}

.lang-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px !important;
    opacity: 0.5;
    transition: var(--transition-smooth);
}

.lang-link:hover, .lang-link.active {
    opacity: 1;
    transform: scale(1.1);
}

.lang-link img {
    height: 20px;
    width: 20px;
    object-fit: cover;
    border-radius: 50%; /* Make flags look like modern circular icons */
}

/* Footer Modernization */
footer.footer {
    background: var(--primary-color) !important;
    padding: 15px 0 10px !important; /* Drastically reduced padding */
    border-top: none;
    color: #ffffff !important;
    font-size: 13px; /* Smaller base font size */
}

footer.footer .footer-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

footer.footer ul {
    list-style: none;
    padding: 0;
    margin: 0 0 8px; /* Reduced margin */
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

footer.footer a {
    color: #ffffff;
    font-weight: 600;
    transition: var(--transition-smooth);
    text-decoration: none;
}

footer.footer a:hover {
    opacity: 0.8;
}

.footer-logo img {
    height: 35px; /* Reduced logo size */
    margin-top: 8px; /* Reduced margin */
}

.copyright {
    font-size: 11px; /* Smaller font size */
    color: rgba(255, 255, 255, 0.9);
    margin-top: 8px; /* Reduced margin */
    margin-bottom: 0;
}

/* Hero Section */
video {
    filter: none; /* Remove darkening */
}

/* Section Styling */
.section-wrapper {
    background: var(--light-bg) !important;
    padding: 80px 0 !important;
}

/* Teams / Equipment Cards Modernization - Horizontal Rectangular Style */
.section-team .row {
    display: flex;
    flex-wrap: wrap;
}

.section-team .row > [class*='col-'] {
    display: flex;
    margin-bottom: 30px;
}

.teams {
    display: flex;
    flex-direction: row; /* Image left, content right */
    height: 300px; /* Uniform height */
    width: 100%;
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid #f0f0f0;
    border-left: 6px solid var(--primary-color); /* ESEASA Yellow Accent */
}

.teams:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.teams .pict {
    width: 40%;
    height: 100%;
    flex-shrink: 0;
}

.teams .pict img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover;
}

.teams .desc {
    width: 60%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    text-align: left !important;
}

.teams .desc h4 {
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left !important;
}

.teams .desc p {
    font-size: 13px;
    line-height: 1.6;
    color: #666;
    margin: 0;
    text-align: justify;
    max-height: none;
    overflow: visible;
}

/* Responsive adjustment for horizontal cards */
@media (max-width: 991px) {
    .teams {
        flex-direction: column;
        height: auto;
    }
    .teams .pict, .teams .desc {
        width: 100%;
    }
    .teams .pict {
        height: 200px;
    }
}

.section-title .title {
    color: var(--text-dark) !important;
    font-weight: 900 !important;
}

/* IMPROVED: EQUIPO DE IZAJE CARDS */
.section-team .teams {
    background: var(--white-bg) !important;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-premium);
    height: 100%;
}

.section-team .teams:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.teams .pict {
    overflow: hidden;
}

.teams .pict img {
    transition: var(--transition-smooth);
}

.teams:hover .pict img {
    transform: scale(1.05);
}

.teams .desc h4 {
    color: var(--text-dark) !important;
    font-weight: 700 !important;
    margin-bottom: 15px;
}

.teams .desc p {
    color: var(--text-muted) !important;
    font-size: 14px;
    line-height: 1.6;
}

/* PREMIUM CARD STYLES */
.premium-card {
    background: var(--white-bg) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 24px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
    transition: var(--transition-smooth) !important;
}

.premium-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-10px) !important;
    border-color: var(--primary-color) !important;
}

.premium-card h3, .premium-card h4 {
    color: var(--text-dark) !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* IMPROVED: SERVICIOS / INDUSTRIAS */
.left-icon.premium-card {
    padding: 30px 30px 30px 80px !important;
    margin-bottom: 20px;
}

.left-icon .icon {
    background: var(--primary-color) !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 10px rgba(233, 189, 0, 0.3);
}

/* Portfolio / Gallery */
.og-grid li a {
    border-radius: 15px;
    box-shadow: var(--shadow-premium);
}

/* Mission / Vision Sections */
.bg-parallax .fill-wrapper {
    background: rgba(0, 0, 0, 0.4); /* Subtle overlay for text readability */
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--light-bg); }
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
    border: 2px solid var(--light-bg);
}

/* PREMIUM SERVICE CARDS (Horizontal/Rectangular) */
.service-item-modern {
    background: #ffffff;
    padding: 35px 30px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-bottom: 4px solid transparent;
}

.service-item-modern:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--primary-color);
    box-shadow: 0 20px 45px rgba(0,0,0,0.1);
}

.service-item-modern i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-item-modern h3 {
    font-size: 19px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.service-item-modern p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
}

/* GALLERY MODERNIZATION */
.testimonial-item img {
    border-radius: 20px !important;
    box-shadow: 0 12px 25px rgba(0,0,0,0.15) !important;
    transition: transform 0.5s ease !important;
}

.testimonial-item:hover img {
    transform: scale(1.03) !important;
}

/* SECTION SUBTITLES */
.section-title .subtitle-premium {
    max-width: 850px;
    margin: 15px auto 30px;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.7;
    color: #666;
    text-align: center;
}

.section-title .subtitle-premium strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* GALLERY PREMIUM OVERLAYS */
.og-grid li {
    perspective: 1000px;
}

.og-grid li a {
    border-radius: 15px !important;
    overflow: hidden;
    position: relative;
    display: block;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: var(--transition-smooth);
}

.og-grid li a:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.og-grid li a .og-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(37, 41, 44, 0) 0%, rgba(37, 41, 44, 0.8) 100%) !important;
    backdrop-filter: blur(2px);
    opacity: 0 !important; /* Default hidden */
    transition: var(--transition-smooth);
    z-index: 1;
}

.og-grid li a:hover .og-overlay {
    opacity: 1 !important;
}

.og-grid li a .og-title {
    position: absolute;
    bottom: 15px;
    left: 20px;
    right: 20px;
    color: #ffffff !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 700 !important;
    font-size: 16px;
    z-index: 2;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.og-grid li a:hover .og-title {
    opacity: 1;
    transform: translateY(0);
}

.og-grid li a img {
    transition: transform 0.6s ease;
}

.og-grid li a:hover img {
    transform: scale(1.1);
}

/* Expanding Detail Styles */
.og-expander {
    background: #ffffff !important;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    margin-top: 30px;
}

.og-fullimg img {
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.og-details h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--text-dark);
}

.og-details p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
}

.og-details a {
    background: var(--primary-color) !important;
    color: #fff !important;
    padding: 12px 30px !important;
    border-radius: 30px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: var(--transition-smooth) !important;
    border: none !important;
}

.og-details a:hover {
    background: var(--dark-navbar) !important;
    transform: scale(1.05);
}
