/*
Theme Name: Eminox Tech Theme
Theme URI: https://eminoxtech.com
Author: Eminox Tech
Author URI: https://eminoxtech.com
Description: Tema WordPress personalitzat per Eminox Tech - Fabricació en acer inoxidable i processos de precisió per a la indústria alimentària.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eminox-theme
Tags: one-column, custom-menu, featured-images, full-width-template, custom-logo
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0

Aquest tema requereix ACF Pro per la gestió de continguts.
*/

/* ============================================
   EMINOX TECH V2 - Styles
   ============================================ */

/* CSS Variables */
:root {
    --color-black: #0b0b0b;
    --color-white: #ffffff;
    --color-gray-bg: #f5f5f5;
    --color-gray-border: #d9d9d9;
    --color-text-primary: #0b0b0b;
    --color-text-secondary: #4a4a4a;
    --color-text-light: rgba(255, 255, 255, 0.9);

    --font-family: 'Roboto', sans-serif;

    --max-width: 1280px;
    --max-width-narrow: 1152px;

    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-2xl: 64px;
    --spacing-3xl: 80px;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-text-secondary);
    background-color: var(--color-white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-text-primary);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity var(--transition-fast);
}

a:hover {
    opacity: 0.8;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-primary {
    background-color: var(--color-black);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: #333;
    opacity: 1;
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border: 1px solid var(--color-white);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

.btn-outline {
    background-color: transparent;
    color: var(--color-black);
    border: 1px solid var(--color-black);
}

.btn-outline:hover {
    background-color: var(--color-black);
    color: var(--color-white);
    opacity: 1;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ============================================
   HEADER - Figma node 27-995
   Height: 64px, Logo: 163x40px, Nav links: Roboto Medium 14px/20px
   Glassmorphism: blur 4px, border-bottom 1px #d9d9d9
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 64px; /* Figma: height 64 */
    transition: all var(--transition-normal);
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px; /* Figma: paddingLeft/Right 24 */
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px; /* Figma: height 64 */
}

.logo {
    display: flex;
    align-items: center;
}

.logo svg {
    width: 163px; /* Figma: width 163 */
    height: 40px; /* Figma: height 40 */
    transition: filter var(--transition-normal);
}

/* When scrolled, invert logo colors (white to black) */
.header.scrolled .custom-logo,
.header.scrolled .logo svg {
    filter: invert(1);
}

.logo-img {
    width: 163px; /* Figma: width 163 */
    height: 40px; /* Figma: height 40 */
    transition: opacity var(--transition-normal);
    display: none; /* Hide img logos, using SVG instead */
}

/* Logo switching - white visible by default, dark hidden */
.logo-white {
    display: none;
}

.logo-dark {
    display: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0; /* Links use paddingLeft instead of gap */
}

.nav-link {
    font-family: 'Roboto', sans-serif;
    font-weight: 500; /* Figma: Medium */
    font-size: 14px; /* Figma: fontSize 14 */
    line-height: 20px; /* Figma: lineHeightPx 20 */
    color: #ffffff; /* Figma: color white */
    padding-left: 32px; /* Figma: paddingLeft 32 */
    transition: color var(--transition-normal), opacity var(--transition-fast);
}

.nav-link:first-child {
    padding-left: 0;
}

.nav-link:hover {
    opacity: 0.7;
}

/* Header Scrolled - Glassmorphism Figma specs */
.header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px); /* Figma: BACKGROUND_BLUR radius 4.0 */
    -webkit-backdrop-filter: blur(4px);
    border-bottom: 1px solid #d9d9d9; /* Figma: stroke 0.85 rgba = #d9d9d9 */
}

.header.scrolled .nav-link {
    color: #0b0b0b; /* Figma: color black */
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-btn span {
    width: 100%;
    height: 2px;
    background-color: var(--color-white);
    transition: all var(--transition-normal);
}

.header.scrolled .mobile-menu-btn span {
    background-color: var(--color-black);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION
   Figma specs: 1440x700px, overlay 30%, centered content
   ============================================ */
.hero {
    position: relative;
    width: 100%;
    height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3); /* Figma: opacity 0.3 */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 768px; /* Figma: maxWidth 768 */
    padding: 0 24px; /* Figma: paddingLeft/Right 24 */
    text-align: center;
}

.hero-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700; /* Figma: Bold */
    font-size: 36px; /* Figma: fontSize 36 */
    line-height: 40px; /* Figma: lineHeightPx 40 */
    color: #ffffff; /* Figma: color white */
    text-align: center;
    margin-bottom: 16px; /* Figma: itemSpacing 16 */
}

.hero-subtitle {
    font-family: 'Roboto', sans-serif;
    font-weight: 400; /* Figma: Regular */
    font-size: 18px; /* Figma: fontSize 18 */
    line-height: 28px; /* Figma: lineHeightPx 28 */
    color: rgba(255, 255, 255, 0.9); /* Figma: opacity 0.9 */
    text-align: center;
    max-width: 672px; /* Figma: maxWidth 672 */
    margin-bottom: 16px; /* Figma: itemSpacing 16 */
}

.hero-buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 16px; /* Figma: itemSpacing 16 */
    padding-top: 16px; /* Figma: paddingTop 16 */
    flex-wrap: wrap;
}

/* Hero Buttons - exact Figma specs */
.hero .btn-primary {
    background-color: #0b0b0b; /* Figma: color 0.043 */
    color: #ffffff;
    padding: 12px 24px; /* Figma: padding 12/24 */
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    border: none;
}

.hero .btn-secondary {
    background-color: transparent;
    color: #ffffff;
    padding: 12px 24px; /* Figma: padding 12/24 */
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    border: 1px solid #ffffff; /* Figma: stroke white */
}

/* ============================================
   SECTIONS - Base styles
   ============================================ */
.section {
    padding: 80px 0; /* Figma: paddingTop/Bottom 80 */
}

.section-white {
    background-color: #ffffff;
}

.section-gray {
    background-color: #f5f5f5; /* Figma: gray background */
}

.section-header {
    text-align: center;
    max-width: 768px; /* Figma: maxWidth 768 */
    margin: 0 auto 48px; /* Figma: itemSpacing 48 */
}

.section-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700; /* Figma: Bold */
    font-size: 36px; /* Figma: fontSize 36 */
    line-height: 40px; /* Figma: lineHeightPx 40 */
    color: #0b0b0b; /* Figma: color 0.043 */
    margin-bottom: 16px; /* Figma: itemSpacing 16 */
}

.section-subtitle {
    font-family: 'Roboto', sans-serif;
    font-weight: 400; /* Figma: Regular */
    font-size: 16px; /* Figma: fontSize 16 */
    line-height: 24px; /* Figma: lineHeightPx 24 */
    color: #4a4a4a; /* Figma: color 0.29 */
}

/* ============================================
   SERVICES SECTION - Figma node 27-445
   Title: Servicios, 36px Bold
   Subtitle: 16px Regular, color #4a4a4a
   Cards with images, gradient overlay, icon + title
   ============================================ */
#servicios {
    padding-top: 80px;
}

#servicios .section-header {
    margin-bottom: 17px; /* Figma: specific spacing */
}

.services-grid {
    overflow: hidden;
}

.services-grid:not(.swiper-initialized) .swiper-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* Última slide ocupa ample complet si és imparell */
.services-grid:not(.swiper-initialized) .swiper-slide:last-child:nth-child(odd) {
    grid-column: span 2;
}

.service-card {
    position: relative;
    background-color: #ffffff;
    border: 1px solid #d9d9d9;
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px;
}

.service-card-image {
    position: relative;
    width: 100%;
    height: 400px;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%); /* Figma: gradient 70% to 0% */
}

.service-card-header {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 3;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.service-icon {
    width: 56px; /* Figma: width 56 */
    height: 56px; /* Figma: height 56 */
    background-color: #0b0b0b; /* Figma: color 0.043 */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
}

.service-icon svg {
    width: 24px;
    height: 24px;
}

.service-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700; /* Figma: Bold */
    font-size: 24px; /* Figma: fontSize 24 */
    line-height: 32px; /* Figma: lineHeightPx 32 */
    color: #ffffff; /* Figma: white text on dark bg */
    margin: 0;
}

/* Overlay de descripció - cobreix tota la card amb gradient */
.service-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    overflow-y: auto;
    pointer-events: none;
}

.service-card.active .service-card-overlay {
    opacity: 1;
    pointer-events: auto;
}

.service-card-overlay .service-text {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
    color: #ffffff;
    text-align: center;
    margin: 0;
    padding: 24px 0;
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s, opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.service-card.active .service-card-overlay .service-text {
    transform: translateY(0);
    opacity: 1;
}

.service-card.active .service-card-header {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

/* ============================================
   INOXSIS SECTION - Figma node 27-519
   Layout: Split text left (592px), image right
   Title: 36px/40px Bold, Paragraphs: 18px/28px Regular
   Buttons: primary solid, secondary outline with icon
   ============================================ */
#inoxsis {
    padding: 80px 0; /* Figma: padding 80 */
}

.inoxsis-content {
    display: flex;
    gap: 48px; /* Figma: itemSpacing 48 */
    align-items: flex-start;
}

.inoxsis-text {
    flex: 0 0 592px; /* Figma: width 592 */
    max-width: 592px;
}

.inoxsis-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700; /* Figma: Bold */
    font-size: 36px; /* Figma: fontSize 36 */
    line-height: 40px; /* Figma: lineHeightPx 40 */
    color: #0b0b0b; /* Figma: color 0.043 */
    margin-bottom: 24px; /* Figma: itemSpacing 24 */
}

.inoxsis-paragraph {
    font-family: 'Roboto', sans-serif;
    font-weight: 400; /* Figma: Regular */
    font-size: 18px; /* Figma: fontSize 18 */
    line-height: 28px; /* Figma: lineHeightPx 28 */
    color: #4a4a4a; /* Figma: color 0.29 */
    margin-bottom: 24px; /* Figma: itemSpacing 24 */
}

.inoxsis-buttons {
    display: flex;
    align-items: center;
    gap: 16px; /* Figma: itemSpacing 16 */
    margin-top: 32px; /* Figma: paddingTop 32 */
}

.inoxsis-buttons .btn-primary {
    background-color: #0b0b0b;
    color: #ffffff;
    padding: 12px 32px; /* Figma: padding 12/32 */
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
}

.inoxsis-buttons .btn-outline {
    display: flex;
    align-items: center;
    gap: 12px; /* Figma: itemSpacing 12 */
    background-color: transparent;
    color: #0b0b0b;
    padding: 11px 32px; /* Figma: padding accounting for border */
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    border: 2px solid #0b0b0b; /* Figma: strokeWeight 2 */
}

.inoxsis-buttons .btn-outline svg {
    width: 16px;
    height: 16px;
}

.inoxsis-image {
    flex: 1;
    overflow: hidden;
    min-width: 0;
    max-width: 100%;
}

.inoxsis-image img {
    width: 100%;
    height: 460px; /* Figma: height 460 */
    object-fit: cover;
}

/* INOXSIS Swiper - sempre actiu */
.inoxsis-swiper {
    width: 100%;
    height: 100%;
}

.inoxsis-swiper .swiper-slide img {
    width: 100%;
    height: 460px;
    object-fit: cover;
}

/* ============================================
   NUESTRO EQUIPO SECTION - Figma node 27-541
   Title: 36px/40px Bold centered
   Subtitle: 20px/32.5px Regular centered, max-width 768
   Cards: white bg, 1px border #d9d9d9
   Icon: 64x64 black bg
   ============================================ */
#equipo {
    padding: 80px 0;
}

#equipo .section-subtitle {
    font-size: 20px; /* Figma: fontSize 20 */
    line-height: 32.5px; /* Figma: lineHeightPx 32.5 */
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px; /* Figma: itemSpacing 32 */
    margin-bottom: 64px; /* Figma: itemSpacing 64 */
}

.capability-card {
    padding: 33px; /* Figma: padding 33 */
    border: 1px solid #d9d9d9; /* Figma: stroke 0.85 */
    background-color: #ffffff; /* Figma: white bg */
    border-radius: 8px;
}

.capability-icon {
    width: 64px; /* Figma: width 64 */
    height: 64px; /* Figma: height 64 */
    background-color: #0b0b0b; /* Figma: color 0.043 */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px; /* Figma: itemSpacing 24 */
    color: #ffffff;
    border-radius: 8px;
}

.capability-icon svg {
    width: 27px;
    height: 24px;
}

.capability-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700; /* Figma: Bold */
    font-size: 24px; /* Figma: fontSize 24 */
    line-height: 32px; /* Figma: lineHeightPx 32 */
    color: #0b0b0b;
    margin-bottom: 16px; /* Figma: itemSpacing 16 */
}

.capability-text {
    font-family: 'Roboto', sans-serif;
    font-weight: 400; /* Figma: Regular */
    font-size: 16px; /* Figma: fontSize 16 */
    line-height: 26px; /* Figma: lineHeightPx 26 */
    color: #4a4a4a; /* Figma: color 0.29 */
}

/* Experience Block - Figma exact specs */
.experience-block {
    display: flex;
    gap: 48px; /* Figma: itemSpacing 48 */
    padding: 48px; /* Figma: padding 48 */
    background-color: #f5f5f5; /* Figma: color 0.9607 */
    border: 1px solid #d9d9d9; /* Figma: stroke 0.85 */
    margin-bottom: 64px; /* Figma: itemSpacing 64 */
    align-items: center;
    border-radius: 8px;
}

.experience-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px; /* Figma: itemSpacing 24 */
}

.experience-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700; /* Figma: Bold */
    font-size: 30px; /* Figma: fontSize 30 */
    line-height: 36px; /* Figma: lineHeightPx 36 */
    color: #0b0b0b;
    margin: 0;
}

.experience-text {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 18px; /* Figma: fontSize 18 */
    line-height: 29.25px; /* Figma: lineHeightPx 29.25 */
    color: #4a4a4a; /* Figma: color 0.29 */
    margin: 0;
}

/* Stats Row - Horizontal with dividers */
.experience-stats-row {
    display: flex;
    align-items: center;
    padding-top: 16px; /* Figma: paddingTop 16 */
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 36px; /* Figma: fontSize 36 */
    line-height: 40px; /* Figma: lineHeightPx 40 */
    color: #0b0b0b;
}

.stat-label {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 14px; /* Figma: fontSize 14 */
    line-height: 20px; /* Figma: lineHeightPx 20 */
    color: #4a4a4a;
    margin-top: 8px; /* Figma: itemSpacing 8 */
}

.stat-divider {
    width: 1px;
    height: 64px;
    background-color: #d9d9d9; /* Figma: color 0.85 */
    margin: 0 24px; /* Figma: paddingLeft 24 */
}

/* Experience Images Grid - 2x2 */
.experience-images {
    flex: 1;
    max-width: 503px; /* Figma: width 503 */
}

.experience-image-grid {
    overflow: hidden;
}

.experience-image-grid:not(.swiper-initialized) .swiper-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.experience-image-item {
    border: 1px solid #d9d9d9;
    background-color: #ffffff;
    overflow: hidden;
}

.experience-image-item img {
    width: 100%;
    height: 190px; /* Figma: height 190 */
    object-fit: cover;
}

/* Features Section */
#features {
    padding: 80px 0;
}

/* Reduir padding quan Features va després d'Equipo */
#equipo + #features,
#equipo + #experiencia,
#experiencia + #features {
    padding-top: 0;
}


/* Treure padding-bottom quan el següent bloc és Features */
#equipo:has(+ #experiencia),
#equipo:has(+ #features),
#experiencia:has(+ #features) {
    padding-bottom: 0;
}

/* Features Grid - 4 items in a row with left border only */
.features-grid {
    display: flex;
    gap: 24px; /* Figma: itemSpacing 24 */
}

.feature-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px; /* Figma: itemSpacing 8 */
    padding-left: 24px; /* Figma: paddingLeft 24 */
    border-left: 4px solid #0b0b0b; /* Figma: individualStrokeWeights left: 4.0 */
    background: transparent;
    min-height: 76px; /* Figma: height 76 */
}

.feature-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 18px; /* Figma: fontSize 18 */
    line-height: 28px; /* Figma: lineHeightPx 28 */
    color: #0b0b0b;
}

.feature-text {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 14px; /* Figma: fontSize 14 */
    line-height: 20px; /* Figma: lineHeightPx 20 */
    color: #4a4a4a;
}

/* ============================================
   TRABAJA CON NOSOTROS SECTION - Figma node 27-637
   Title: 36px/40px Bold centered
   Subtitle: 18px/28px Regular centered
   Job cards: icon 40x40, title 18px Bold, description 14px
   ============================================ */
#trabaja {
    padding: 80px 0;
    background-color: #f5f5f5;
}

#trabaja .section-subtitle {
    font-size: 18px; /* Figma: fontSize 18 */
    line-height: 28px; /* Figma: lineHeightPx 28 */
}

.jobs-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700; /* Figma: Bold */
    font-size: 24px; /* Figma: fontSize 24 */
    line-height: 32px; /* Figma: lineHeightPx 32 */
    color: #0b0b0b;
    text-align: center;
    margin-bottom: 32px; /* Figma: itemSpacing 32 */
}

.jobs-grid {
    overflow: hidden;
    margin-bottom: 64px; /* Figma: itemSpacing 64 */
}

.jobs-grid:not(.swiper-initialized) .swiper-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Figma: 3 columns */
    gap: 24px; /* Figma: itemSpacing 24 */
}

.job-card {
    padding: 25px; /* Figma: padding 25 */
    background-color: #ffffff;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
}

.job-card-header {
    display: flex;
    align-items: center;
    gap: 12px; /* Figma: marginRight 12 */
    margin-bottom: 16px; /* Figma: itemSpacing 16 */
}

.job-icon {
    width: 40px; /* Figma: width 40 */
    height: 40px; /* Figma: height 40 */
    background-color: #0b0b0b;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
    border-radius: 8px;
}

.job-icon svg {
    width: 18px;
    height: 16px;
}

.job-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700; /* Figma: Bold */
    font-size: 18px; /* Figma: fontSize 18 */
    line-height: 28px; /* Figma: lineHeightPx 28 */
    color: #0b0b0b;
    margin: 0;
}

.job-description {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 14px; /* Figma: fontSize 14 */
    line-height: 20px; /* Figma: lineHeightPx 20 */
    color: #4a4a4a;
    margin-bottom: 16px;
}

.job-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: #4a4a4a;
}

.job-location {
    display: flex;
    align-items: center;
    gap: 8px;
}

.job-location svg {
    width: 16px;
    height: 16px;
}

.job-type {
    padding: 4px 12px;
    background-color: #f5f5f5;
    font-size: 14px;
    line-height: 20px;
}

/* Application Form - Centered with max-width 768px */
.application-form-container {
    max-width: 768px; /* Figma: width 768 */
    margin: 0 auto; /* Centered */
    padding: 48px; /* Figma: padding 48 */
    background-color: #ffffff;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
}

.form-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 32px;
    color: #0b0b0b;
    margin-bottom: 32px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.form-group,
.form-field {
    margin-bottom: 24px;
}

.form-group label,
.form-field label {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #0b0b0b;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea,
.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 24px;
    border: 1px solid #d9d9d9;
    background-color: #ffffff;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #0b0b0b;
}

.form-group textarea,
.form-field textarea {
    resize: vertical;
    min-height: 100px;
}

/* CF7 form styles within contact form */
.contact-form-container .wpcf7-form label {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #0b0b0b;
    margin-bottom: 8px;
}

.contact-form-container .wpcf7-form p {
    margin: 0;
}

.contact-form-container .wpcf7-form .wpcf7-form-control {
    width: 100%;
    box-sizing: border-box;
}

.contact-form-container .wpcf7-form textarea.wpcf7-textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 24px;
    border: 1px solid #d9d9d9;
    background-color: #ffffff;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.2s ease;
}

.contact-form-container .wpcf7-form textarea.wpcf7-textarea:focus {
    outline: none;
    border-color: #0b0b0b;
}

.contact-form-container .wpcf7-form .form-row {
    margin-bottom: 24px;
}

.contact-form-container .wpcf7-form .form-field {
    margin-bottom: 0;
}

.contact-form-container .wpcf7-form > p {
    margin-bottom: 24px;
}

.contact-form-container .wpcf7-form input.wpcf7-submit {
    width: 100%;
    padding: 16px 32px;
    background-color: #0b0b0b;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form-container .wpcf7-form input.wpcf7-submit:hover {
    background-color: #333;
}

.contact-form-container .wpcf7-spinner {
    display: none;
}

.contact-form-container .wpcf7-form .wpcf7-not-valid-tip {
    color: #dc3232;
    font-size: 13px;
    margin-top: 4px;
}

.contact-form-container .wpcf7-response-output {
    margin: 16px 0 0;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
}

.contact-form-container .wpcf7-form.invalid .wpcf7-response-output {
    border-color: #dc3232;
    color: #dc3232;
}

.contact-form-container .wpcf7-form.sent .wpcf7-response-output {
    border-color: #46b450;
    color: #46b450;
}

.btn-submit {
    width: 100%;
    padding: 16px 32px;
    background-color: #0b0b0b;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #333;
}

/* ============================================
   CONTACTO SECTION - Figma node 27-808
   Title: Contacto 36px/40px Bold centered
   Subtitle: 18px/28px Regular centered
   Info: icon 48x48, label 16px Bold, value 16px Regular
   Map: embedded right side
   ============================================ */
#contacto {
    padding: 80px 0;
    background-color: #ffffff;
}

#contacto .section-header {
    margin-bottom: 32px;
}

#contacto .section-subtitle {
    font-size: 18px;
    line-height: 28px;
}

.contact-content {
    display: grid;
    grid-template-columns: 560px 1fr; /* Figma: info width 560 */
    gap: 32px; /* Figma: itemSpacing 32 */
}

.contact-info {
    padding: 33px; /* Figma: padding 33 */
    background-color: #ffffff;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
}

.contact-info-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 32px;
    color: #0b0b0b;
    margin-bottom: 32px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 32px; /* Figma: itemSpacing 32 */
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px; /* Figma: paddingLeft 16 */
}

.contact-icon {
    width: 48px; /* Figma: width 48 */
    height: 48px; /* Figma: height 48 */
    background-color: #0b0b0b;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
    border-radius: 8px;
}

.contact-icon svg {
    width: 16px;
    height: 16px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-label {
    font-family: 'Roboto', sans-serif;
    font-weight: 700; /* Figma: Bold */
    font-size: 16px;
    line-height: 24px;
    color: #0b0b0b;
}

.contact-value {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #4a4a4a;
}

.contact-link {
    color: #0b0b0b;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.contact-link:hover {
    opacity: 0.7;
}

.contact-map {
    border: 1px solid #d9d9d9;
    height: 100%;
    min-height: 400px;
    border-radius: 8px;
    overflow: hidden;
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 100%;
}

/* CF7 Form Overrides - Remove br between label and input */
.application-form-container .wpcf7 br,
.contact-form-container .wpcf7 br {
    display: none;
}

.application-form-container .wpcf7-form-control-wrap,
.contact-form-container .wpcf7-form-control-wrap {
    display: block;
}

/* Contact Form Container */
.contact-form-container {
    max-width: 768px;
    margin: 48px auto 0;
    padding: 48px;
    background-color: #ffffff;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
}

/* ============================================
   FOOTER - Figma node 27-912
   Background: #454545 (dark gray - 0.2705)
   Padding: 64px vertical, 144px horizontal
   4 columns: Brand | Navegación | Servicios | Productos Inoxsis
   ============================================ */
.footer {
    background-color: #454545; /* Figma: color 0.2705 */
    padding: 64px 144px; /* Figma: padding 64 vertical, 144 horizontal */
}

.footer-container {
    max-width: 1152px; /* Figma: maxWidth 1152 */
    margin: 0 auto;
}

.footer-main {
    display: flex;
    gap: 48px; /* Figma: itemSpacing 48 */
    margin-bottom: 48px; /* Figma: itemSpacing 48 before bottom bar */
}

.footer-column {
    flex: 1;
}

.footer-brand {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.footer-logo {
    width: 113px; /* Figma: width 113 */
    height: 66px; /* Figma: height 66 */
    object-fit: contain;
    margin-bottom: 16px;
}

.footer-company {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    color: #ffffff;
    margin-bottom: 16px;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 4px; /* Figma: itemSpacing 4 */
}

.footer-address,
.footer-nif {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 14px; /* Figma: fontSize 14 */
    line-height: 20px; /* Figma: lineHeightPx 20 */
    color: #ffffff;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 4px; /* Figma: itemSpacing 4 */
    margin-top: 8px;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 8px; /* Figma: itemSpacing 8 */
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-link:hover {
    opacity: 0.7;
}

.footer-link svg {
    width: 20px;
    height: 20px;
}

/* Footer Navigation Columns */
.footer-nav-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 18px; /* Figma: fontSize 18 */
    line-height: 28px; /* Figma: lineHeightPx 28 */
    color: #ffffff;
    margin-bottom: 24px; /* Figma: itemSpacing 24 */
}

.footer-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px; /* Figma: itemSpacing 12 */
}

.footer-nav-list li {
    padding: 2px 0;
}

.footer-nav-list a {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 14px; /* Figma: fontSize 14 */
    line-height: 20px; /* Figma: lineHeightPx 20 */
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-nav-list a:hover {
    opacity: 0.7;
}

/* Footer Products Column */
.footer-product-text {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #ffffff;
    margin-bottom: 24px;
}

.footer-product-btn {
    display: inline-block;
    background-color: #ffffff;
    color: #0b0b0b;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    padding: 12px 24px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-product-btn:hover {
    opacity: 0.9;
}

/* Footer Bottom Bar */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px; /* Figma: paddingTop 32 */
    border-top: 1px solid rgba(229, 231, 235, 1); /* Figma: stroke 0.898, 0.905, 0.921 */
}

.footer-copyright {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #ffffff;
}

.footer-legal-links {
    display: flex;
    gap: 24px; /* Figma: itemSpacing 24 */
}

.footer-legal-links a {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-legal-links a:hover {
    opacity: 0.7;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* Tablet */
@media (max-width: 1200px) {
    .services-grid .swiper-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }

    .capabilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .capabilities-grid .capability-card:last-child {
        grid-column: span 2;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .inoxsis-text {
        flex: 0 0 auto;
        max-width: 100%;
    }

    .footer-container {
        padding: 0 40px;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 32px;
        line-height: 38px;
    }

    .inoxsis-content {
        flex-direction: column;
    }

    .inoxsis-image img,
    .inoxsis-swiper .swiper-slide img {
        height: 300px;
    }

    .experience-block {
        flex-direction: column;
    }

    .experience-images {
        max-width: 100%;
    }

    .experience-stats-row {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .stat-divider {
        display: none;
    }

    .jobs-grid:not(.swiper-initialized) .swiper-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background-color: #ffffff;
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links .nav-link {
        color: #0b0b0b;
        padding-left: 0;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        height: 600px;
    }

    .hero-title {
        font-size: 28px;
        line-height: 34px;
    }

    .hero-title br,
    .hero-subtitle br {
        display: none;
    }

    .hero-subtitle {
        font-size: 16px;
        line-height: 24px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section {
        padding: 48px 0;
    }

    .section-title {
        font-size: 28px;
        line-height: 34px;
    }

    .services-grid:not(.swiper-initialized) .swiper-wrapper {
        grid-template-columns: 1fr;
    }

    .services-grid:not(.swiper-initialized) .swiper-slide:last-child:nth-child(odd) {
        grid-column: span 1;
    }

    .service-card-image {
        height: 350px;
    }

    .service-card-overlay {
        align-items: flex-start;
        padding: 24px 20px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .service-card-overlay .service-text {
        font-size: 14px;
        line-height: 22px;
        padding: 16px 0;
    }

    .capabilities-grid {
        grid-template-columns: 1fr;
    }

    .capabilities-grid .capability-card:last-child {
        grid-column: span 1;
    }

    .experience-image-grid:not(.swiper-initialized) .swiper-wrapper {
        grid-template-columns: 1fr;
    }

    .features-grid {
        flex-wrap: wrap;
    }

    .features-grid .feature-item {
        flex: 1 1 calc(50% - 12px);
        min-width: calc(50% - 12px);
    }

    .jobs-grid:not(.swiper-initialized) .swiper-wrapper {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .inoxsis-buttons {
        flex-direction: column;
    }

    .inoxsis-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .contact-info {
        padding: 24px;
    }

    .footer-container {
        padding: 0 24px;
    }

    .footer {
        padding: 64px 24px;
    }

    .footer-main {
        flex-direction: column;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-legal-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .application-form-container {
        padding: 24px;
    }

    .experience-block {
        padding: 24px;
        gap: 32px;
    }

    .contact-form-container {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
        line-height: 30px;
    }

    .btn {
        width: 100%;
    }

    .service-title {
        font-size: 20px;
        line-height: 28px;
    }

    .service-card-header {
        left: 16px;
        bottom: 16px;
    }

    .features-grid .feature-item {
        flex: 1 1 100%;
        min-width: 100%;
    }
}

/* ============================================
   SWIPER OVERRIDES
   ============================================ */

/* Pagination dots - estil personalitzat */
.experience-pagination,
.jobs-pagination,
.services-pagination,
.inoxsis-pagination {
    position: relative;
    margin-top: 24px;
    text-align: center;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--color-gray-border);
    opacity: 1;
    margin: 0 4px;
}

.swiper-pagination-bullet-active {
    background: var(--color-black);
}

/* Ocultar pagination en desktop per sliders responsive-only */
.experience-pagination,
.jobs-pagination,
.services-pagination {
    display: none;
}

/* Mostrar pagination quan Swiper està actiu (mobile) */
@media (max-width: 768px) {
    .experience-pagination,
    .jobs-pagination,
    .services-pagination {
        display: block;
    }
}

/* INOXSIS pagination sempre visible */
.inoxsis-pagination {
    display: block;
}


/* Swiper slide height auto per cards */
.capabilities-swiper .swiper-slide,
.jobs-swiper .swiper-slide,
.services-swiper .swiper-slide {
    height: auto;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}
