/* ==========================================================================
   DESIGN SYSTEM - JH LOGÍSTICA Y ADUANA (LIGHT-FIRST & MOBILE-FIRST)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    /* Typography */
    --font-title: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-button: 'Outfit', sans-serif;

    /* Palette - Light Theme Priority */
    --color-bg-start: hsl(0, 0%, 100%);      /* White */
    --color-bg-end: hsl(210, 20%, 98%);       /* Very light grey */
    --color-section-alt: hsl(210, 20%, 96%);  /* Soft grey block */
    
    /* Golden Accent - Slightly darker for high-contrast visibility on white bg */
    --color-gold: hsl(38, 85%, 42%);          /* Solid elegant gold */
    --color-gold-hover: hsl(38, 95%, 48%);    /* Dynamic hover gold */
    --color-gold-glow: hsla(38, 85%, 42%, 0.08);
    --color-gold-border: hsla(38, 85%, 42%, 0.16);

    /* Text Colors - Dark slate for high contrast and readability */
    --color-text-primary: hsl(217, 30%, 15%);
    --color-text-secondary: hsl(215, 20%, 35%);
    --color-text-muted: hsl(215, 14%, 50%);
    
    /* Premium Glassmorphic Colors (Light Style) */
    --color-glass-bg: hsla(0, 0%, 100%, 0.75);
    --color-glass-border: hsla(217, 30%, 15%, 0.08);
    --color-glass-border-hover: hsla(217, 30%, 15%, 0.18);
    
    /* Contrast Dark Block (For Services section & Footer) */
    --color-dark-block-bg: hsl(220, 50%, 8%);
    --color-dark-block-bg-hover: hsl(220, 50%, 10%);
    --color-dark-block-text: hsl(0, 0%, 100%);
    --color-dark-block-text-secondary: hsl(215, 25%, 72%);

    /* UI Specs */
    --radius-el: 14px;
    --radius-card: 20px;
    --shadow-light: 0 4px 20px hsla(217, 30%, 15%, 0.05);
    --shadow-premium: 0 16px 36px hsla(217, 30%, 15%, 0.08);
    --shadow-dark-block: 0 20px 40px hsla(0, 0%, 0%, 0.25);

    /* Dynamic Spacings */
    --spacing-section: clamp(48px, 8vw, 100px);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-end);
}
::-webkit-scrollbar-thumb {
    background: hsla(215, 14%, 50%, 0.2);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold);
}

/* ==========================================================================
   RESET & MOBILE-FIRST BASE STYLES
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 80px;
}

body {
    background-color: var(--color-bg-start);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Technical grid overlay on light background */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: 60px 60px;
    background-image: 
        linear-gradient(to right, hsla(217, 30%, 15%, 0.008) 1px, transparent 1px),
        linear-gradient(to bottom, hsla(217, 30%, 15%, 0.008) 1px, transparent 1px);
    pointer-events: none;
    z-index: 1;
}

a {
    color: inherit;
    text-decoration: none;
    transition: 200ms ease;
}

ul {
    list-style: none;
}

img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

h1, h2, h3, h4 {
    font-family: var(--font-title);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-text-primary);
    letter-spacing: -0.4px;
}

/* Core Container Padding (Mobile First) */
.section-container {
    width: 100%;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 20px;
    padding-left: 20px;
}

.text-center {
    text-align: center;
}

/* Section titles */
.section-pre-title {
    font-family: var(--font-button);
    font-size: 0.78rem;
    color: var(--color-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.3rem);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 36px auto;
    letter-spacing: -0.6px;
}

/* ==========================================================================
   BUTTONS & CTAs (MOBILE FIRST)
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%; /* Full width on mobile for easy tap target */
    padding: 14px 28px;
    font-family: var(--font-button);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-el);
    cursor: pointer;
    transition: all 250ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    border: none;
    text-align: center;
    box-shadow: var(--shadow-light);
}

.btn-primary {
    background-color: var(--color-gold);
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: var(--color-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px hsla(38, 85%, 42%, 0.25);
}

.btn-secondary {
    background-color: hsla(217, 30%, 15%, 0.04);
    color: var(--color-text-primary);
    border: 1px solid hsla(217, 30%, 15%, 0.08);
}

.btn-secondary:hover {
    background-color: hsla(217, 30%, 15%, 0.08);
    transform: translateY(-2px);
}

.btn-glow-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
    pointer-events: none;
}

.btn:hover .btn-glow-effect {
    left: 100%;
    transition: 0.8s ease;
}

/* ==========================================================================
   HEADER & NAVIGATION (MOBILE FIRST & DESKTOP PILL REDESIGN)
   ========================================================================== */

.main-header {
    position: fixed;
    top: 12px;
    left: 12px;
    right: 12px;
    width: auto;
    transform: none;
    height: 56px;
    z-index: 1000;
    transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
    background-color: hsla(0, 0%, 100%, 0.85);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(14, 29, 53, 0.06);
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(14, 29, 53, 0.04);
}

.main-header.scrolled {
    top: 6px;
    height: 50px;
    background-color: hsla(0, 0%, 100%, 0.95);
    border-color: rgba(14, 29, 53, 0.12);
    box-shadow: 0 12px 40px rgba(14, 29, 53, 0.08);
}

.header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 16px;
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: clamp(0.95rem, 3.6vw, 1.15rem); /* Fluid clamp: fits perfectly on all viewports! */
    letter-spacing: -0.6px;
    white-space: nowrap; /* Prevent wrapping and breaking on small mobiles! */
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: var(--color-gold);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.82rem;
    border-radius: 6px;
    margin-right: 6px;
}

.logo-text {
    color: var(--color-text-primary);
}

/* Styled Desktop Menu Items (Added back missing design core!) */
.nav-menu {
    display: none; /* Hidden by default on Mobile/Tablet */
}

.nav-menu ul {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-link {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    position: relative;
    padding: 6px 0;
    transition: color 200ms ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-gold);
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: width 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateX(-50%);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: none; /* Hidden by default on Mobile/Tablet */
}

.btn-cta {
    padding: 8px 18px;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 30px;
    background-color: var(--color-gold);
    color: #FFFFFF;
    box-shadow: 0 4px 12px hsla(38, 85%, 42%, 0.15);
}

.btn-cta:hover {
    background-color: var(--color-gold-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px hsla(38, 85%, 42%, 0.3);
}

.hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
    padding: 0;
}

.hamburger-btn .bar {
    width: 100%;
    height: 2px;
    background-color: var(--color-text-primary);
    transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 2px;
}

/* Mobile active animation */
.hamburger-btn.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.active .bar:nth-child(2) { opacity: 0; transform: scale(0); }
.hamburger-btn.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.97); /* Premium Glassmorphism Claro */
    z-index: 999;
    display: flex;
    opacity: 0;
    pointer-events: none;
    transition: opacity 350ms cubic-bezier(0.16, 1, 0.3, 1), transform 350ms cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    transform: translateY(-15px);
    border-bottom: 1px solid var(--color-glass-border);
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.mobile-menu-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 96px 24px 36px 24px;
    overflow-y: auto;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    width: 100%;
}

.mobile-nav-link {
    font-family: var(--font-title);
    font-size: clamp(1.35rem, 5.5vw, 1.7rem);
    font-weight: 700;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 6px 0;
    transition: all 250ms ease;
    width: 100%;
}

.mobile-nav-num {
    font-family: var(--font-button);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-gold);
    background-color: hsla(38, 85%, 42%, 0.06);
    border: 1px solid hsla(38, 85%, 42%, 0.12);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 250ms ease;
}

.mobile-nav-link:hover {
    color: var(--color-gold);
    transform: translateX(6px);
}

.mobile-nav-link:hover .mobile-nav-num {
    background-color: var(--color-gold);
    color: #FFFFFF;
    border-color: var(--color-gold);
    box-shadow: 0 4px 10px hsla(38, 85%, 42%, 0.15);
}

.mobile-menu-footer {
    border-top: 1px solid var(--color-glass-border);
    padding-top: 24px;
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu-contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mobile-menu-contact .contact-label {
    font-family: var(--font-button);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    margin-bottom: 2px;
}

.mobile-menu-contact a {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mobile-menu-contact a:hover {
    color: var(--color-gold);
}

.mobile-menu-cta {
    width: 100% !important;
    padding: 14px 20px;
    font-size: 0.95rem;
    background-color: var(--color-gold);
    color: #FFFFFF;
    border-radius: var(--radius-el);
    text-align: center;
    box-shadow: 0 4px 15px hsla(38, 85%, 42%, 0.18);
}

/* ==========================================================================
   HERO SECTION (MOBILE FIRST)
   ========================================================================== */

.hero-section {
    position: relative;
    padding-top: 100px;
    padding-bottom: 50px;
    overflow: hidden;
    background-color: #FFFFFF;
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    opacity: 0.12; /* Light overlay of global network lines */
}

/* Mobile-first Hero Layout: stacked single column */
.hero-container-layout {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.hero-main-row {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.hero-text-content {
    display: flex;
    flex-direction: column;
}

.hero-badges-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.hero-badge {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    background-color: hsla(217, 30%, 15%, 0.04);
    border: 1px solid hsla(217, 30%, 15%, 0.06);
    padding: 5px 12px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.badge-check {
    color: var(--color-gold);
    margin-right: 4px;
}

.hero-title {
    font-size: 1.85rem;
    line-height: 1.3;
    margin-bottom: 16px;
}

.hero-text {
    font-size: 0.98rem;
    color: var(--color-text-secondary);
    margin-bottom: 28px;
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 10px;
}

/* Hyper-realistic Cargo photo frame on mobile */
.hero-visual {
    width: 100%;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    aspect-ratio: 16 / 10;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-position: center;
    transition: transform 0.5s ease;
}

.hero-img-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background-color: rgba(7, 19, 36, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: #10B981;
    border-radius: 50%;
}

/* Technical Counters on mobile */
.hero-counters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 10px;
    background-color: var(--color-bg-end);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--radius-card);
    padding: 24px 16px;
    box-shadow: var(--shadow-light);
}

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

.counter-number {
    font-family: var(--font-title);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 4px;
}

.counter-label {
    font-size: 0.72rem;
    color: var(--color-text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   SERVICIOS SECTION (DARK HIGH-CONTRAST CONTRAST BLOCK)
   ========================================================================== */

.services-section {
    padding-top: var(--spacing-section);
    padding-bottom: var(--spacing-section);
    background-color: var(--color-dark-block-bg);
    color: var(--color-dark-block-text);
    position: relative;
    z-index: 10;
}

/* Alternate light text colors for dark services block */
.services-section .section-title {
    color: var(--color-dark-block-text);
}

.services-section .section-text {
    color: var(--color-dark-block-text-secondary);
    font-size: 0.98rem;
    max-width: 680px;
    margin: -16px auto 36px auto;
    text-align: center;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.service-card {
    background-color: hsla(220, 50%, 4%, 0.6);
    border: 1px solid rgba(229, 169, 26, 0.15);
    border-radius: var(--radius-card);
    padding: 30px 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    transition: transform 300ms ease, border-color 300ms ease;
}

.service-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 10%, rgba(229, 169, 26, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.service-icon {
    width: 44px;
    height: 44px;
    background-color: rgba(229, 169, 26, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
    border: 1px solid rgba(229, 169, 26, 0.15);
    flex-shrink: 0;
}

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

.service-card h3 {
    font-size: 1.25rem;
    color: var(--color-dark-block-text);
}

.service-desc {
    color: var(--color-dark-block-text-secondary);
    margin-bottom: 24px;
    font-size: 0.92rem;
    line-height: 1.5;
}

.service-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.service-items li {
    display: flex;
    align-items: center;
    font-size: 0.88rem;
    color: var(--color-dark-block-text-secondary);
}

.check-bullet {
    color: var(--color-gold);
    font-weight: 700;
    margin-right: 8px;
}

/* Hover effects */
.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(229, 169, 26, 0.4);
}

/* ==========================================================================
   RED GLOBAL INTERACTIVA (NEW DEDICATED 2026 LOGISTICS SHOWCASE)
   ========================================================================== */

/* ==========================================================================
   PROVEEDURÍA MARÍTIMA / SHIP CHANDLERING SECTION (CON ANIMACIÓN DE FONDO)
   ========================================================================== */

.ship-chandlering-section {
    position: relative;
    overflow: hidden;
    padding-top: var(--spacing-section);
    padding-bottom: var(--spacing-section);
    background-color: var(--color-section-alt);
    z-index: 10;
}

.ship-chandlering-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.ship-chandlering-map-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    object-fit: contain;
    opacity: 0.04; /* Sutil de fondo */
    pointer-events: none;
    z-index: 2;
    filter: brightness(0.92) contrast(1.05);
}

.ship-chandlering-canvas {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    z-index: 3;
    opacity: 0.7;
}

.ship-chandlering-container {
    position: relative;
    z-index: 5; /* Asegura estar sobre el canvas de fondo */
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.ship-chandlering-info {
    display: flex;
    flex-direction: column;
}

.section-title-left {
    font-size: clamp(1.6rem, 3.5vw, 2.3rem);
    text-align: left;
    margin-bottom: 8px;
    letter-spacing: -0.6px;
    color: var(--color-text-primary);
}

.section-subtitle {
    font-family: var(--font-title);
    font-size: 1.15rem;
    color: var(--color-gold);
    font-weight: 600;
    margin-bottom: 24px;
}

.ship-chandlering-desc {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.ship-chandlering-desc p {
    font-size: 0.98rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.ship-chandlering-badge {
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--radius-el);
    padding: 16px 20px;
    box-shadow: var(--shadow-light);
    max-width: 420px;
}

.badge-icon {
    font-size: 1.5rem;
    color: var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: hsla(38, 85%, 42%, 0.05);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-gold-border);
}

.ship-chandlering-badge h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 2px;
}

.ship-chandlering-badge p {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.ship-chandlering-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.chandlering-card {
    background-color: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--radius-card);
    padding: 28px;
    box-shadow: var(--shadow-light);
    transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.chandlering-card .card-icon {
    width: 44px;
    height: 44px;
    background-color: hsla(38, 85%, 42%, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
    margin-bottom: 16px;
    border: 1px solid var(--color-gold-border);
    transition: all 250ms ease;
    flex-shrink: 0;
}

.chandlering-card .card-icon svg {
    width: 22px;
    height: 22px;
}

.chandlering-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--color-text-primary);
    font-weight: 600;
}

.chandlering-card p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.chandlering-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-gold);
    background-color: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-premium);
}

.chandlering-card:hover .card-icon {
    background-color: var(--color-gold);
    color: #FFFFFF;
    border-color: var(--color-gold);
}

.accent-divider {
    color: var(--color-glass-border-hover);
    margin: 0 4px;
    font-weight: 300;
}

.gold-text {
    color: var(--color-gold);
}

/* ==========================================================================
   CONFIANZA SECTION (MOBILE FIRST)
   ========================================================================== */

.trust-section {
    padding-top: var(--spacing-section);
    padding-bottom: var(--spacing-section);
    background-color: #FFFFFF;
}

.trust-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.trust-card {
    background-color: var(--color-bg-end);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--radius-el);
    padding: 24px;
    box-shadow: var(--shadow-light);
    transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.card-icon-wrapper {
    width: 38px;
    height: 38px;
    background-color: hsla(38, 85%, 42%, 0.06);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
    margin-bottom: 16px;
    border: 1px solid hsla(38, 85%, 42%, 0.12);
    transition: var(--transition-fast);
}

.outline-icon {
    width: 20px;
    height: 20px;
}

.trust-card h3 {
    font-size: 1.12rem;
    margin-bottom: 8px;
    color: var(--color-text-primary);
    font-weight: 600;
}

.trust-card p {
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    line-height: 1.45;
}

.trust-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-gold);
    box-shadow: var(--shadow-premium);
    background-color: #FFFFFF;
}

.trust-card:hover .card-icon-wrapper {
    background-color: var(--color-gold);
    color: #FFFFFF;
    border-color: var(--color-gold);
}

/* ==========================================================================
   METODOLOGÍA SECTION (MOBILE FIRST)
   ========================================================================== */

.methodology-section {
    padding-top: var(--spacing-section);
    padding-bottom: var(--spacing-section);
    background-color: var(--color-section-alt);
}

.timeline-container {
    position: relative;
    margin-top: 40px;
    padding: 10px 0;
}

.timeline-line {
    display: none; /* Desktop only */
}

.timeline-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    position: relative;
}

/* Vertical methodology progress line on mobile */
.timeline-steps::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 25px; /* Aligned exactly behind mobile step circle centers */
    width: 2px;
    background-color: hsla(217, 30%, 15%, 0.08);
    z-index: 1; /* Strictly behind step circles */
}

.timeline-step {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    position: relative;
    z-index: 2; /* Positioned to cover line */
}

.step-marker {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #FFFFFF; /* Solid opaco to cover the line background */
    border: 2px solid hsla(217, 30%, 15%, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 5;
    transition: all 400ms ease;
    box-shadow: var(--shadow-light);
}

.step-num {
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-muted);
}

.step-content {
    text-align: left;
}

.step-content h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

/* Active marker states */
.timeline-step.active .step-marker {
    border-color: var(--color-gold);
    background-color: var(--color-bg-end);
    box-shadow: 0 0 15px rgba(200, 150, 20, 0.2);
}

.timeline-step.active .step-num {
    color: var(--color-gold);
}

/* ==========================================================================
   VENTAJAS SECTION (CLEAN SPLIT LAYOUT REDESIGN)
   ========================================================================== */

.differentials-section {
    padding-top: var(--spacing-section);
    padding-bottom: var(--spacing-section);
    background-color: #FFFFFF;
}

.differentials-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.differentials-info {
    text-align: center;
}

.differentials-info .section-title {
    text-align: center;
    margin-bottom: 16px;
}

.differentials-intro-text {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.differentials-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.advantage-card {
    background-color: var(--color-bg-end);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--radius-card);
    padding: 28px 24px;
    box-shadow: var(--shadow-light);
    transition: all 250ms ease;
}

.advantage-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.advantage-number {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gold);
    line-height: 1;
}

.advantage-card h3 {
    font-size: 1.15rem;
    letter-spacing: -0.2px;
}

.advantage-text {
    font-size: 0.92rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.advantage-card:hover {
    transform: translateY(-3px);
    border-color: var(--color-gold-border);
    box-shadow: var(--shadow-premium);
    background-color: #FFFFFF;
}

/* ==========================================================================
   QUIÉNES SOMOS (NOSOTROS) (MOBILE FIRST)
   ========================================================================== */

.about-section {
    padding-top: var(--spacing-section);
    padding-bottom: var(--spacing-section);
    background-color: #FFFFFF;
}

.about-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.about-content {
    display: flex;
    flex-direction: column;
}

.about-content .section-title {
    text-align: left;
    margin: 0 0 20px 0;
}

.about-p {
    font-size: 0.98rem;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
}

/* Operational photograph frame and absolute technical statistics overlay */
.about-visual {
    width: 100%;
}

.visual-globe-mesh {
    position: relative;
    width: 100%;
    border-radius: var(--radius-card);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--color-glass-border);
}

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

.tech-overlay-card {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background-color: rgba(7, 19, 36, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border-radius: 12px;
    padding: 16px;
    width: 220px;
    box-shadow: var(--shadow-dark-block);
    z-index: 10;
}

.tech-card-tag {
    font-size: 0.65rem;
    font-family: var(--font-button);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-dark-block-text-secondary);
    display: block;
    margin-bottom: 10px;
}

.tech-metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.tech-label {
    font-size: 0.78rem;
    color: var(--color-dark-block-text-secondary);
}

.tech-value {
    font-family: var(--font-title);
    font-size: 0.95rem;
    font-weight: 700;
}

.tech-graph-bar {
    width: 100%;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

.tech-graph-bar .fill-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: var(--color-gold);
    border-radius: 2px;
}

.tech-status-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-indicator-dot {
    width: 6px;
    height: 6px;
    background-color: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.8);
}

.status-text {
    font-size: 0.7rem;
    color: var(--color-dark-block-text-secondary);
}

/* ==========================================================================
   CTA FUERTE SECTION (MOBILE FIRST)
   ========================================================================== */

.strong-cta-section {
    padding-top: 60px;
    padding-bottom: 60px;
    background: linear-gradient(135deg, hsl(220, 50%, 6%) 0%, hsl(220, 50%, 4%) 100%);
    color: #FFFFFF;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-backdrop-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, rgba(229,169,26,0.06) 0%, transparent 60%);
    pointer-events: none;
}

.cta-container {
    position: relative;
    z-index: 10;
}

.strong-cta-section h2 {
    font-size: 1.6rem;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.strong-cta-section p {
    font-size: 1rem;
    color: var(--color-dark-block-text-secondary);
    margin-bottom: 28px;
}

.cta-button-group {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.cta-microcopy {
    font-size: 0.82rem;
    color: var(--color-dark-block-text-secondary);
}

/* ==========================================================================
   CONTACTO (MOBILE FIRST)
   ========================================================================== */

.contact-section {
    padding-top: var(--spacing-section);
    padding-bottom: var(--spacing-section);
    background-color: var(--color-section-alt);
}

.contact-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-info .section-title {
    text-align: left;
    margin: 0 0 16px 0;
}

.contact-intro {
    font-size: 0.98rem;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
    line-height: 1.55;
}

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

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.detail-icon {
    width: 42px;
    height: 42px;
    color: var(--color-gold);
    background-color: hsla(38, 85%, 42%, 0.05);
    border-radius: 10px;
    padding: 10px;
    border: 1px solid var(--color-gold-border);
    flex-shrink: 0;
}

.contact-detail-item h4 {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.contact-detail-item p {
    font-size: 0.98rem;
    font-weight: 600;
}

/* Contact Form Card on Mobile */
.contact-form-wrapper {
    background-color: #FFFFFF;
    border: 1px solid var(--color-glass-border);
    border-radius: var(--radius-card);
    padding: 30px 20px;
    box-shadow: var(--shadow-premium);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.floating-group input, 
.floating-group textarea {
    background-color: var(--color-bg-end);
    border: 1px solid var(--color-glass-border);
    border-radius: 10px;
    padding: 16px 18px 12px 18px;
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 0.96rem;
    outline: none;
    transition: 200ms ease;
    width: 100%;
}

.floating-group textarea {
    resize: none;
}

.floating-group label {
    position: absolute;
    left: 18px;
    top: 15px;
    color: var(--color-text-secondary);
    font-size: 0.96rem;
    font-weight: 500;
    pointer-events: none;
    transition: all 200ms ease;
}

/* Floating triggers */
.floating-group input:focus ~ label,
.floating-group input:not(:placeholder-shown) ~ label,
.floating-group textarea:focus ~ label,
.floating-group textarea:not(:placeholder-shown) ~ label {
    transform: translateY(-10px) scale(0.78);
    transform-origin: left top;
    color: var(--color-gold);
    font-weight: 600;
}

.focus-border {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: var(--transition-normal);
    transform: translateX(-50%);
    pointer-events: none;
}

.floating-group input:focus ~ .focus-border,
.floating-group textarea:focus ~ .focus-border {
    width: calc(100% - 24px);
}

.floating-group input:focus, 
.floating-group textarea:focus {
    border-color: var(--color-gold);
    background-color: #FFFFFF;
}

.select-group {
    margin-bottom: 2px;
}

.select-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: 6px;
}

.select-wrapper {
    position: relative;
}

.select-wrapper select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-color: var(--color-bg-end);
    border: 1px solid var(--color-glass-border);
    border-radius: 10px;
    padding: 14px 18px;
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 0.96rem;
    outline: none;
    transition: 200ms ease;
}

.select-wrapper select:focus {
    border-color: var(--color-gold);
    background-color: #FFFFFF;
}

.select-wrapper::after {
    content: "▾";
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Validations feedback */
.error-message {
    font-size: 0.72rem;
    font-weight: 600;
    color: hsl(0, 80%, 50%);
    margin-top: 4px;
    margin-left: 6px;
    display: none;
}

.form-group.invalid input,
.form-group.invalid textarea,
.form-group.invalid select {
    border-color: hsl(0, 80%, 50%);
    background-color: hsla(0, 100%, 50%, 0.02);
}

.form-group.invalid .error-message {
    display: block;
}

.form-group.valid input,
.form-group.valid textarea,
.form-group.valid select {
    border-color: #10B981;
}

.btn-submit {
    width: 100%;
    margin-top: 8px;
}

.loader {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255, 0.3);
    border-radius: 50%;
    border-top-color: #FFFFFF;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.form-feedback {
    font-size: 0.92rem;
    font-weight: 600;
    text-align: center;
    display: none;
    padding: 12px;
    border-radius: 8px;
}

.form-feedback.success {
    display: block;
    background-color: hsla(16, 185, 129, 0.08);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-feedback.error {
    display: block;
    background-color: hsla(0, 80%, 50%, 0.08);
    color: hsl(0, 80%, 50%);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ==========================================================================
   FOOTER (MOBILE FIRST)
   ========================================================================== */

.main-footer {
    background-color: var(--color-dark-block-bg);
    color: var(--color-dark-block-text);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 60px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 40px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand .logo-text {
    color: #FFFFFF;
}

.footer-desc {
    color: var(--color-dark-block-text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
}

.footer-links h3, 
.footer-contact-info h3 {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--color-dark-block-text-secondary);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--color-gold);
}

.footer-contact-info p {
    color: var(--color-dark-block-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding: 24px 0;
}

.footer-bottom-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    color: var(--color-text-muted);
    font-size: 0.78rem;
    text-align: center;
}

.seo-text-fine {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.02);
}

/* ==========================================================================
   MOBILE BOTTOM FLOATING CTA (MOBILE FIRST)
   ========================================================================== */



/* ==========================================================================
   REVEAL STYLES
   ========================================================================== */

.reveal-fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 550ms cubic-bezier(0.16, 1, 0.3, 1), transform 550ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade-up.active {
    opacity: 1;
    transform: translateY(0);
}


/* ==========================================================================
   PROGRESSIVE ENHANCEMENT (TABLETS AND DESKTOPS OVERRIDES)
   ========================================================================== */

/* --- TABLET LAYOUTS (min-width: 768px) --- */
@media (min-width: 768px) {
    .ship-chandlering-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .btn {
        width: auto; /* Buttons return to auto sizes */
    }

    .hero-actions {
        flex-direction: row;
        gap: 16px;
    }

    .hero-title {
        font-size: 2.3rem;
    }

    .hero-counters {
        grid-template-columns: repeat(4, 1fr);
        padding: 30px;
    }

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

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

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

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

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

    .contact-form-wrapper {
        padding: 40px;
    }
}

/* --- DESKTOP LAYOUTS (min-width: 1024px) --- */
@media (min-width: 1024px) {
    .ship-chandlering-container {
        grid-template-columns: 1fr 1.15fr;
        display: grid;
        gap: 60px;
        align-items: center;
    }
    
    .ship-chandlering-info {
        position: sticky;
        top: 140px;
    }

    .main-header {
        top: 16px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: calc(100% - 40px);
        height: 64px;
        border-radius: 50px;
    }
    
    .main-header.scrolled {
        top: 10px;
        height: 58px;
    }

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

    /* Show desktop navigation */
    .nav-menu {
        display: block;
    }

    .header-actions {
        display: block;
    }

    .hamburger-btn {
        display: none;
    }

    /* Hero side-by-side split layout */
    .hero-main-row {
        flex-direction: row;
        align-items: center;
        gap: 60px;
    }

    .hero-text-content {
        flex: 1.15;
    }

    .hero-visual {
        flex: 0.85;
    }

    .hero-image-wrapper {
        aspect-ratio: 1 / 1; /* Square beautiful layout on desktop */
        border-radius: 24px;
    }

    .hero-img:hover {
        transform: scale(1.04);
    }

    .hero-title {
        font-size: 3rem;
        line-height: 1.18;
        letter-spacing: -1.2px;
    }

    .hero-text {
        font-size: 1.12rem;
    }

    /* Trust 4-columns grid */
    .trust-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Timeline horizontal progression on desktop */
    .timeline-container {
        margin-top: 80px;
    }

    .timeline-line {
        display: block;
        position: absolute;
        top: 26px;
        left: 12.5%;
        right: 12.5%;
        height: 2px;
        background-color: hsla(217, 30%, 15%, 0.08);
        z-index: 1;
    }

    .timeline-progress {
        width: 0%;
        height: 100%;
        background-color: var(--color-gold);
        transition: width 1s ease;
    }

    .timeline-steps {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }

    .timeline-steps::before {
        display: none; /* Hide vertical mobile timeline */
    }

    .timeline-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .step-marker {
        margin-bottom: 24px;
        background-color: #FFFFFF; /* Mask behind line */
    }

    .step-content p {
        max-width: 220px;
        margin: 0 auto;
    }

    /* Advantages 2-columns split layout */
    .differentials-container {
        flex-direction: row;
        align-items: flex-start;
        gap: 60px;
    }

    .differentials-info {
        flex: 1;
        text-align: left;
        position: sticky;
        top: 140px;
    }

    .differentials-info .section-title {
        text-align: left;
    }

    .differentials-intro-text {
        margin: 0;
    }

    .differentials-list {
        flex: 1.8;
        grid-template-columns: repeat(2, 1fr);
        display: grid;
    }

    /* About section split column */
    .about-container {
        grid-template-columns: 1.1fr 0.9fr;
        display: grid;
        gap: 80px;
        align-items: center;
    }

    .about-visual {
        height: 400px;
    }

    .visual-globe-mesh {
        aspect-ratio: auto;
        height: 100%;
    }

    /* Contact section side-by-side */
    .contact-container {
        grid-template-columns: 0.85fr 1.15fr;
        display: grid;
        gap: 60px;
        align-items: start;
    }

    /* Footer 3-columns */
    .footer-container {
        grid-template-columns: 1.3fr 0.8fr 0.9fr;
        display: grid;
        gap: 60px;
    }

    .footer-bottom-container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}
