@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* --- CUSTOM PROPERTIES --- */
:root {
  --primary-red: #025091; /* Adapt to MCS Cold Storage corporate blue */
  --primary-red-hover: #013b6c;
  --accent-red: #e82429; /* Kept for red highlights/badges */
  --bg-dark: #0f1c30; /* Corporate dark navy */
  --bg-dark-accent: #172a45;
  --bg-light: #f4f7f9;
  --bg-light-accent: #e5ebf0;
  --text-dark: #121d2c;
  --text-muted: #536479;
  --text-light: #ffffff;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.1);
  --shadow-blue: 0 8px 24px rgba(2, 80, 145, 0.25);
  
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
}

/* --- RESET & BASE STYLES --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

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

button, input, select, textarea {
  font-family: inherit;
  outline: none;
  border: none;
}

button {
  cursor: pointer;
  background: none;
}

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

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-red);
}

/* --- CONTAINER & UTILITIES --- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.section-padding {
  padding: 80px 0;
}

.section-subtitle {
  color: var(--primary-red);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: inline-block;
  margin-bottom: 12px;
}

.section-number-badge {
  display: inline-block;
  background-color: var(--accent-red);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title {
  font-size: 2.2rem;
  color: var(--text-dark);
  margin-bottom: 40px;
  line-height: 1.2;
}

.section-title.white {
  color: var(--text-light);
}

/* --- HEADER & TOPBAR --- */
.top-bar {
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-size: 0.8rem;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  opacity: 0.7;
}

.social-links a:hover {
  opacity: 1;
  color: var(--primary-red);
}

.top-bar-right {
  display: flex;
  gap: 24px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.85;
}

.info-item svg {
  fill: var(--accent-red);
}

/* MAIN NAVIGATION */
.main-nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(15, 28, 48, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-smooth);
}

.main-nav.sticky {
  position: fixed;
  top: 0;
  background-color: var(--bg-dark);
  box-shadow: var(--shadow-lg);
  border-bottom: none;
}

.main-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
  transition: var(--transition-smooth);
}

.main-nav.sticky .container {
  height: 70px;
}

/* Logo Design */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  position: relative;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-chevron {
  position: absolute;
  width: 0;
  height: 0;
  border-top: 8px transparent solid;
  border-bottom: 8px transparent solid;
  border-left: 12px var(--accent-red) solid;
}

.logo-chevron.c1 {
  left: 4px;
  opacity: 0.6;
}

.logo-chevron.c2 {
  left: 12px;
  opacity: 0.8;
}

.logo-chevron.c3 {
  left: 20px;
  border-left-color: #fff;
}

.logo-text h2 {
  color: #fff;
  font-size: 1.5rem;
  letter-spacing: 1px;
}

.logo-text p {
  color: var(--accent-red);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  margin-top: -3px;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 8px 0;
  position: relative;
  opacity: 0.85;
}

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

.nav-links a:hover,
.nav-links li.active a {
  color: var(--accent-red);
  opacity: 1;
}

.nav-links a:hover::after,
.nav-links li.active a::after {
  width: 100%;
}

.nav-btn {
  background-color: var(--primary-red);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 28px;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-blue);
}

.nav-btn:hover {
  background-color: var(--primary-red-hover);
  transform: translateY(-2px);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.mobile-toggle span {
  width: 25px;
  height: 2px;
  background-color: #fff;
  transition: var(--transition-smooth);
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  color: var(--text-light);
  overflow: hidden;
}

.video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 28, 48, 0.6) 30%, rgba(15, 28, 48, 0.2) 100%);
  z-index: 2;
}

.hero-angled-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 35%;
  height: 100%;
  background: rgba(15, 28, 48, 0.65);
  clip-path: polygon(0 0, 75% 0, 45% 100%, 0 100%);
  z-index: 2;
  border-right: 2px solid var(--primary-red);
}

.hero-card {
  max-width: 650px;
  position: relative;
  z-index: 5;
  animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 12px;
  font-weight: 800;
  letter-spacing: -1px;
}

.hero-meta {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 30px;
  color: var(--accent-red);
}

/* Floating WOW Logo for Hero */
.hero-wow-logo {
  position: relative;
  z-index: 2;
  width: 220px;
  height: auto;
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.4)) drop-shadow(0 0 10px rgba(2, 80, 145, 0.5));
  transform: perspective(1000px) rotateY(15deg);
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.6s ease;
  cursor: pointer;
}

.hero-wow-logo:hover {
  transform: perspective(1000px) rotateY(0deg) scale(1.08);
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5)) drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

.logo-glow-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(2,80,145,0.2) 40%, transparent 70%);
  z-index: 1;
  filter: blur(20px);
  animation: pulseGlow 4s infinite alternate ease-in-out;
  border-radius: 50%;
}

@keyframes pulseGlow {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.7; }
  100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

/* --- ABOUT SECTION --- */
.about {
  background-color: #ffffff;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.about-left {
  position: sticky;
  top: 120px;
}

/* Placeholder for validation mode */
.text-placeholder-card {
  background: var(--bg-light);
  border: 2px dashed rgba(2, 80, 145, 0.2);
  border-radius: var(--border-radius-md);
  padding: 60px 40px;
  text-align: center;
}

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

.text-placeholder-card p {
  color: var(--text-muted);
}

/* New Section 2 Layout */
.about-main-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: stretch;
  margin-bottom: 50px;
}

.about-text-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-media-col {
  display: flex;
  flex-direction: column;
  justify-content: stretch;
}

.about-image-placeholder-card {
  background: linear-gradient(135deg, var(--bg-light) 0%, rgba(2, 80, 145, 0.04) 100%);
  border: 2px dashed rgba(2, 80, 145, 0.2);
  border-radius: var(--border-radius-lg);
  padding: 50px 40px;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
  min-height: 400px;
}

.about-image-placeholder-card:hover {
  border-color: var(--primary-red);
  background: linear-gradient(135deg, var(--bg-light) 0%, rgba(2, 80, 145, 0.08) 100%);
  transform: translateY(-2px);
}

.about-image-placeholder-card .placeholder-icon {
  color: var(--primary-red);
  margin-bottom: 24px;
  opacity: 0.8;
  transition: transform 0.3s ease, color 0.3s ease;
}

.about-image-placeholder-card:hover .placeholder-icon {
  transform: scale(1.1);
  color: var(--accent-red);
}

.about-image-placeholder-card h3 {
  font-size: 1.3rem;
  color: var(--text-dark);
  font-family: var(--font-heading);
  margin-bottom: 12px;
  font-weight: 700;
}

.about-image-placeholder-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 320px;
  margin: 0 auto 24px auto;
}

.about-image-placeholder-card .placeholder-tag {
  background-color: rgba(2, 80, 145, 0.08);
  color: var(--primary-red);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  border: 1px solid rgba(2, 80, 145, 0.1);
}

.about-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.about-paragraphs strong {
  color: var(--text-dark);
}

.about-welcome-footer {
  font-size: 1.1rem;
  color: var(--primary-red) !important;
  margin-top: 10px;
}

/* Cercanía a Puertos styles - Grid Fila 2 */
.ports-proximity {
  background-color: var(--bg-light);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  border: 1px solid var(--bg-light-accent);
  border-left: 5px solid var(--primary-red);
  box-shadow: var(--shadow-sm);
}

.ports-header-wrapper {
  margin-bottom: 30px;
}

.ports-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.ports-header svg {
  fill: var(--primary-red);
  margin-top: 3px;
  flex-shrink: 0;
}

.ports-header h3 {
  font-size: 1.4rem;
  color: var(--text-dark);
  font-family: var(--font-heading);
  margin-top: 0;
  margin-bottom: 8px;
  font-weight: 700;
}

.ports-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.ports-list-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.port-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  border-radius: var(--border-radius-md);
  padding: 16px 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.port-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(2, 80, 145, 0.15);
}

.port-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.port-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary-red);
  border-radius: 50%;
  flex-shrink: 0;
}

.port-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}

.port-distance {
  font-size: 0.95rem;
  color: var(--primary-red);
  font-weight: 700;
}

/* --- NOTICIAS SECTION --- */
.noticias-section {
  background-color: var(--bg-light);
}

.noticias-content {
  background-color: #ffffff;
  padding: 40px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.noticias-content strong {
  color: var(--text-dark);
}

.project-info-card {
  margin-top: 30px;
  background: var(--bg-light-accent);
  padding: 24px 30px;
  border-radius: var(--border-radius-md);
  border-left: 4px solid var(--accent-red);
}

.project-info-card h3 {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.project-info-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.blue-btn {
  background-color: var(--primary-red) !important;
  box-shadow: var(--shadow-blue) !important;
}

.blue-btn:hover {
  background-color: var(--primary-red-hover) !important;
}

/* --- CERTIFICACIONES SECTION --- */
.cert-ticker-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 24px 0;
  margin-bottom: 60px;
  background-color: var(--bg-light);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--bg-light-accent);
}

/* Gradient fade effects on the sides */
.cert-ticker-container::before,
.cert-ticker-container::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

.cert-ticker-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-light) 0%, transparent 100%);
}

.cert-ticker-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-light) 0%, transparent 100%);
}

.cert-ticker-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: scrollTicker 30s linear infinite;
}

/* Pause scroll when container is hovered */
.cert-ticker-container:hover .cert-ticker-track,
.cert-ticker-track:hover {
  -webkit-animation-play-state: paused !important;
  animation-play-state: paused !important;
}

.cert-ticker-group {
  display: flex;
  gap: 30px;
  padding-right: 30px;
}

.cert-logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--bg-light-accent);
  padding: 20px;
  border-radius: var(--border-radius-md);
  width: 170px;
  height: 160px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  opacity: 0.9;
}

.cert-logo-card img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 75px;
  object-fit: contain;
  margin-bottom: 12px;
  filter: grayscale(100%);
  opacity: 0.65;
  transition: var(--transition-smooth);
}

.cert-logo-card span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-dark);
  text-align: center;
  line-height: 1.2;
}

.cert-logo-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 15px 35px rgba(2, 80, 145, 0.15), 0 0 15px rgba(232, 36, 41, 0.1);
  border-color: var(--accent-red);
  background: #ffffff;
  opacity: 1;
}

.cert-logo-card:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes scrollTicker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.cert-main-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 40px;
  align-items: start;
}

.cert-intro-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cert-block-title {
  font-size: 2rem;
  color: var(--text-dark);
  font-weight: 700;
  margin-top: 10px;
  line-height: 1.25;
}

.cert-block-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.cert-image-wrapper {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.cert-featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.cert-image-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.cert-image-wrapper:hover .cert-featured-image {
  transform: scale(1.03);
}

.cert-image-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
}

.badge-tech {
  background-color: var(--primary-red);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(2, 80, 145, 0.3);
}

.badge-location {
  background-color: var(--accent-red);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
  box-shadow: 0 4px 12px rgba(232, 36, 41, 0.3);
}

.cert-image-overlay-text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px 24px;
  background: linear-gradient(180deg, rgba(15, 28, 48, 0) 0%, rgba(15, 28, 48, 0.9) 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}

.cert-image-overlay-text strong {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.cert-image-overlay-text span {
  font-size: 0.8rem;
  opacity: 0.85;
}

.cert-pillars-col {
  display: flex;
  align-items: stretch;
}

.cert-pillars-grid-custom {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
}

.cert-pillar-card {
  background: #ffffff;
  border: 1px solid rgba(2, 80, 145, 0.08);
  border-radius: var(--border-radius-md);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.cert-pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(2, 80, 145, 0.15);
}

.pillar-card-icon {
  width: 44px;
  height: 44px;
  background-color: rgba(2, 80, 145, 0.06);
  color: var(--primary-red);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.cert-pillar-card:hover .pillar-card-icon {
  background-color: var(--primary-red);
  color: #ffffff;
  transform: scale(1.05);
}

.pillar-card-icon svg {
  transition: transform 0.3s ease;
}

.cert-pillar-card:hover .pillar-card-icon svg {
  transform: rotate(5deg);
}

.pillar-card-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pillar-card-info h4 {
  font-size: 1rem;
  color: var(--text-dark);
  font-weight: 600;
  transition: var(--transition-smooth);
  line-height: 1.3;
}

.cert-pillar-card:hover .pillar-card-info h4 {
  color: var(--primary-red);
}

.pillar-card-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* --- PRODUCTOS DEL MAR & FRUTAS --- */
.products-top-subtitle {
  max-width: 700px;
  margin: -30px auto 40px auto;
  color: var(--text-muted);
}

.products-top-subtitle a {
  color: var(--primary-red);
}

.products-grid-custom {
  background-color: #ffffff;
  padding: 40px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
}

.product-info-column h3 {
  font-size: 1.4rem;
  color: var(--primary-red);
  margin-bottom: 16px;
}

.product-info-column p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.specialties-block {
  background-color: var(--bg-light-accent);
  padding: 30px;
  border-radius: var(--border-radius-md);
  text-align: center;
}

.specialties-title {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.specialties-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-item {
  background-color: var(--primary-red);
  color: #fff;
  padding: 8px 20px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 30px;
  box-shadow: var(--shadow-sm);
}

.green-tags .tag-item {
  background-color: #2e7d32;
}

/* --- SECTION 3: HOW WE WORK (TIMELINE OVER VIDEO) --- */
.timeline-section {
  position: relative;
  overflow: hidden;
  color: var(--text-light);
}

.timeline-section-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(15, 28, 48, 0.94) 0%, rgba(15, 28, 48, 0.85) 100%);
  z-index: 1;
}

.white-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  line-height: 1.8;
}

/* --- SECTION 8: CONTACTO --- */
.quotes-section {
  position: relative;
  color: var(--text-light);
}

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

.quote-form-container {
  padding-right: 20px;
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
}

.quote-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
}

.quote-submit-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.inquiry-card {
  padding: 40px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
}

/* Page Entry Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }


/* Responsive adjustments */
@media (max-width: 1024px) {
  .about-grid, .quotes-grid, .about-main-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-left {
    position: static;
  }
  .cert-checkbox-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .cert-main-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .cert-image-wrapper {
    height: 320px;
  }
  .cert-pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ports-list-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
  .main-nav {
    top: 0;
  }
  .mobile-toggle {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 90px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 90px);
    background-color: var(--bg-dark);
    flex-direction: column;
    padding: 40px 24px;
    transition: var(--transition-smooth);
    z-index: 99;
  }
  .main-nav.sticky .nav-links {
    top: 70px;
    height: calc(100vh - 70px);
  }
  .nav-links.active {
    left: 0;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .cert-checkbox-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cert-pillars-grid, .cert-pillars-grid-custom {
    grid-template-columns: 1fr;
  }
  .copyright-bar .container {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .ports-list-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .ports-proximity {
    padding: 25px 20px;
  }
  .ports-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* --- NOTICIAS GALLERY --- */
.noticias-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  aspect-ratio: 4/3;
  background-color: var(--bg-light-accent);
  transition: var(--transition-smooth);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-zoom-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 28, 48, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-zoom-icon {
  opacity: 1;
}

.gallery-zoom-icon svg {
  transform: scale(0.8);
  transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-zoom-icon svg {
  transform: scale(1);
}

/* --- LIGHTBOX MODAL --- */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 28, 48, 0.95);
  backdrop-filter: blur(8px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 3rem;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: var(--transition-smooth);
  user-select: none;
}

.lightbox-close:hover {
  opacity: 1;
  color: var(--accent-red);
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 3rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  user-select: none;
}

.lightbox-arrow:hover {
  background: var(--primary-red);
  border-color: var(--primary-red);
}

.lightbox-arrow.prev {
  left: 32px;
}

.lightbox-arrow.next {
  right: 32px;
}

.lightbox-content {
  max-width: 80%;
  max-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  display: block;
}

.lightbox-counter {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
}

/* Lightbox responsive overrides */
@media (max-width: 768px) {
  .noticias-gallery {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .lightbox-arrow {
    width: 48px;
    height: 48px;
    font-size: 2rem;
  }
  .lightbox-arrow.prev {
    left: 12px;
  }
  .lightbox-arrow.next {
    right: 12px;
  }
  .lightbox-close {
    top: 16px;
    right: 20px;
    font-size: 2.5rem;
  }
}

/* --- PRODUCT DETAILED TAG LINKS --- */
a.tag-item {
  transition: var(--transition-smooth);
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}

a.tag-item:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(2, 80, 145, 0.35);
  background-color: var(--accent-red) !important;
}

.green-tags a.tag-item:hover {
  background-color: #388e3c !important;
  box-shadow: 0 8px 20px rgba(46, 125, 50, 0.35);
}

/* --- PRODUCT PAGE SPECIAL CUSTOM STYLES --- */
.product-page .main-nav .container {
  height: 60px !important;
}

.product-page .main-nav.sticky .container {
  height: 50px !important;
}

.nav-btn.secondary-btn {
  background-color: transparent !important;
  border: 2px solid rgba(255, 255, 255, 0.4) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.nav-btn.secondary-btn:hover {
  border-color: var(--accent-red) !important;
  background-color: var(--accent-red) !important;
  color: #fff !important;
}

.product-formats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  align-items: stretch;
}

@media (max-width: 991px) {
  .product-formats-grid {
    grid-template-columns: 1fr;
  }
}

.product-info-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 991px) {
  .product-info-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}


/* --- WOW INTERACTIVE PORTS --- */
.interactive-port {
  display: flex;
  flex-direction: column;
  padding: 16px 20px 22px 20px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  background-color: #ffffff;
  border-radius: var(--border-radius-md);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

.interactive-port::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--bg-dark-accent) 0%, var(--bg-dark) 100%);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
}

.interactive-port:hover::before {
  opacity: 1;
}

.interactive-port .port-item-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.interactive-port:hover .port-item-content {
  transform: translateY(-4px);
}

.interactive-port .port-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: color 0.3s ease;
}

.interactive-port:hover .port-name {
  color: #fff;
}

.interactive-port .port-distance {
  font-size: 0.95rem;
  color: var(--primary-red);
  font-weight: 700;
  transition: transform 0.4s ease, color 0.3s ease;
  transform-origin: right center;
}

.interactive-port:hover .port-distance {
  color: #fff;
  transform: scale(1.15);
}

.interactive-port .port-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.interactive-port .port-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(2, 80, 145, 0.1);
  color: var(--primary-red);
  transition: all 0.3s ease;
}

.interactive-port:hover .port-icon-wrapper {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.port-route-track {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(0,0,0,0.05);
  transition: height 0.4s ease, background 0.4s ease;
}

.interactive-port:hover .port-route-track {
  height: 10px;
  background: rgba(255,255,255,0.1);
}

.port-route-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--accent-red);
  transition: width 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.interactive-port:hover .port-route-progress {
  width: var(--target-width);
}

.port-truck-icon {
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease 0.3s;
}

.interactive-port:hover .port-truck-icon {
  opacity: 1;
}

.interactive-port:hover {
  border-color: transparent;
  box-shadow: 0 10px 25px rgba(2, 80, 145, 0.25);
  transform: translateY(-4px);
}


.port-dist-time {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.port-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.3s ease;
  opacity: 0.8;
  white-space: nowrap;
}

.interactive-port:hover .port-time {
  color: rgba(255, 255, 255, 0.7);
}

.interactive-port .port-dist-time {
  transition: transform 0.4s ease;
  transform-origin: right center;
}

.interactive-port:hover .port-dist-time {
  transform: scale(1.1);
}

.interactive-port:hover .port-distance {
  transform: none; /* override previous hover */
}

/* HIDE SECTION MARKERS */
.section-number-badge { display: none !important; }

/* =========================================================
   MCS PREMIUM VISUAL SYSTEM · 2026
   Homepage refinements shared by the Spanish and English sites
   ========================================================= */
:root {
  --primary-red: #0877b8;
  --primary-red-hover: #05639c;
  --accent-red: #f0444f;
  --ice-blue: #72c9f4;
  --bg-dark: #0b1728;
  --bg-dark-accent: #132943;
  --bg-light: #f5f8fb;
  --bg-light-accent: #e6edf3;
  --text-dark: #102033;
  --text-muted: #52647a;
  --border-radius-sm: 8px;
  --border-radius-md: 14px;
  --border-radius-lg: 24px;
  --shadow-sm: 0 8px 24px rgba(14, 34, 56, 0.06);
  --shadow-md: 0 18px 50px rgba(14, 34, 56, 0.1);
  --shadow-lg: 0 28px 80px rgba(4, 18, 35, 0.18);
}

body {
  background: #fff;
  letter-spacing: -0.01em;
}

.container {
  max-width: 1280px;
  padding-inline: 32px;
}

.section-padding {
  padding-block: clamp(88px, 9vw, 128px);
}

.section-subtitle {
  color: var(--primary-red);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  margin-bottom: 18px;
}

.section-title {
  max-width: 900px;
  font-size: clamp(2.25rem, 4vw, 3.7rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
  margin-bottom: 42px;
}

/* Navigation */
.main-nav {
  background: linear-gradient(180deg, rgba(7, 18, 33, 0.94), rgba(7, 18, 33, 0.72));
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.main-nav .container {
  height: 86px;
}

.main-nav .logo img {
  height: 54px !important;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.18));
}

.nav-links {
  gap: clamp(18px, 2vw, 30px);
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  opacity: 0.78;
}

.nav-links a:hover,
.nav-links li.active a {
  color: #fff;
}

.nav-links a::after {
  background: var(--ice-blue);
}

.nav-btn {
  padding: 13px 20px;
  border-radius: 10px;
  background: #fff;
  color: var(--bg-dark);
  box-shadow: none;
  white-space: nowrap;
}

.nav-btn:hover {
  background: var(--ice-blue);
  color: var(--bg-dark);
}

/* Hero */
.hero {
  min-height: 760px;
  height: min(940px, 100svh);
  background: var(--bg-dark) url('../images/cold_storage.png') center/cover no-repeat;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 16, 31, 0.94) 0%, rgba(5, 16, 31, 0.73) 38%, rgba(5, 16, 31, 0.2) 72%, rgba(5, 16, 31, 0.34) 100%),
    linear-gradient(0deg, rgba(5, 16, 31, 0.42), transparent 45%);
}

.hero-angled-accent {
  width: 54%;
  background: linear-gradient(90deg, rgba(8, 119, 184, 0.16), transparent);
  clip-path: polygon(0 0, 92% 0, 72% 100%, 0 100%);
  border-right: 1px solid rgba(114, 201, 244, 0.2);
}

.hero-card {
  max-width: 780px;
  padding-top: 82px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ice-blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 26px;
}

.hero-eyebrow::before {
  content: '';
  width: 42px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  font-size: clamp(3.4rem, 6.5vw, 6.2rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
  margin-bottom: 28px;
  max-width: 900px;
}

.hero h1 span {
  color: rgba(255, 255, 255, 0.74);
  font-weight: 400;
}

.hero-intro {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.65;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.hero-btn-primary {
  color: var(--bg-dark);
  background: #fff;
}

.hero-btn-primary:hover {
  background: var(--ice-blue);
  transform: translateY(-2px);
}

.hero-btn-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-2px);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 670px;
  margin-top: 52px;
  padding: 19px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-proof > div {
  padding-inline: 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-proof > div:first-child { padding-left: 0; }
.hero-proof > div:last-child { border-right: 0; }

.hero-proof strong {
  display: block;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  line-height: 1;
  margin-bottom: 7px;
}

.hero-proof span {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.72rem;
  line-height: 1.3;
}

/* Editorial sections */
.about-main-grid {
  gap: clamp(48px, 7vw, 90px);
  margin-bottom: 72px;
}

.about-paragraphs {
  max-width: 680px;
  gap: 18px;
  font-size: 1rem;
  line-height: 1.82;
}

.about-media-col > div {
  border: 0 !important;
  box-shadow: var(--shadow-lg) !important;
}

.ports-proximity {
  padding: clamp(30px, 4vw, 52px);
  border: 1px solid rgba(8, 119, 184, 0.12);
  border-left: 0;
  background: linear-gradient(145deg, #f8fbfd, #eef4f8);
  box-shadow: none;
}

.ports-list-grid { gap: 14px; }

.interactive-port {
  border-color: rgba(12, 41, 66, 0.08);
  box-shadow: none;
}

.timeline-section > .video-bg {
  filter: saturate(0.72) contrast(1.06);
}

.timeline-section .about-grid {
  border-radius: 22px !important;
  border-color: rgba(255,255,255,.16) !important;
  background: rgba(7, 22, 40, 0.8) !important;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.22) !important;
}

/* Project / funding */
.noticias-section {
  background: linear-gradient(180deg, #f6f9fb, #fff);
}

.project-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: -8px 0 28px;
}

.project-metric {
  min-height: 142px;
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-dark);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.06);
}

.project-metric span {
  color: rgba(255,255,255,.58);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project-metric strong {
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1;
}

.project-metric:nth-child(2) { background: #0b4e78; }
.project-metric:nth-child(3) { background: #0b6f9f; }

.noticias-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  padding: clamp(30px, 4vw, 50px);
  border: 1px solid rgba(12, 41, 66, 0.08);
  box-shadow: none;
  line-height: 1.8;
}

.project-info-card {
  border-left: 0;
  border: 1px solid rgba(8, 119, 184, 0.14);
  background: rgba(8, 119, 184, 0.06);
}

/* Certifications: stable, trustworthy grid */
.certificaciones-section { background: #fff; }

.cert-ticker-container {
  overflow: visible;
  padding: 0;
  margin-bottom: 88px;
  background: transparent;
  border: 0;
}

.cert-ticker-container::before,
.cert-ticker-container::after { display: none; }

.cert-ticker-track {
  width: 100%;
  animation: none;
}

.cert-ticker-group {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  padding: 0;
}

.cert-ticker-group[aria-hidden="true"] { display: none; }

.cert-logo-card {
  width: auto;
  height: 138px;
  padding: 18px;
  border-radius: 14px;
  background: #f8fafc;
  box-shadow: none;
  opacity: 1;
}

.cert-logo-card img {
  max-height: 66px;
  filter: grayscale(100%);
  opacity: .72;
}

.cert-logo-card:hover {
  transform: translateY(-4px);
  border-color: rgba(8, 119, 184, 0.3);
  box-shadow: var(--shadow-sm);
}

.cert-logo-card:hover img { filter: grayscale(0); }

.cert-pillar-card {
  border-radius: 16px;
  box-shadow: none;
  border: 1px solid rgba(12, 41, 66, 0.09);
}

/* Commercial division */
#division-comercial {
  background: radial-gradient(circle at 50% 0%, #173c5b 0%, var(--bg-dark) 55%) !important;
}

#btnToggleComercial {
  border-color: rgba(255,255,255,.38) !important;
  border-radius: 10px !important;
  font-size: .95rem !important;
  padding: 14px 24px !important;
}

/* Contact */
.quotes-section {
  background:
    radial-gradient(circle at 10% 10%, rgba(8,119,184,.26), transparent 34%),
    linear-gradient(135deg, #0b1728, #101f34) !important;
}

.quotes-section > img { opacity: .045 !important; }

.quotes-grid {
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(48px, 8vw, 100px);
}

.quote-form-container .section-title {
  font-size: clamp(2.45rem, 4.4vw, 4rem);
  margin-bottom: 26px;
}

.contact-kicker { color: var(--ice-blue) !important; }

.inquiry-card {
  padding: clamp(30px, 4vw, 48px);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,.24);
}

.inquiry-card h3 {
  font-size: 1.65rem;
  letter-spacing: -.025em;
}

.form-intro {
  color: var(--text-muted);
  font-size: .92rem;
  margin-bottom: 26px;
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.quote-form .form-group:nth-child(4),
.quote-form .quote-submit-btn {
  grid-column: 1 / -1;
}

.form-control {
  min-height: 48px;
  padding: 13px 15px;
  border: 1px solid #d9e2ea !important;
  border-radius: 9px;
  background: #f7f9fb !important;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

textarea.form-control { min-height: 120px; }

.form-control:focus {
  background: #fff !important;
  border-color: var(--primary-red) !important;
  box-shadow: 0 0 0 4px rgba(8,119,184,.12);
}

.quote-submit-btn {
  min-height: 52px;
  border-radius: 9px;
  font-size: .95rem;
}

.quote-submit-btn:hover {
  background: var(--primary-red-hover) !important;
  transform: translateY(-2px);
}

/* Refined motion and accessibility */
.animate-on-scroll {
  transform: translateY(22px);
  transition-duration: .7s;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .animate-on-scroll { opacity: 1; transform: none; }
}

@media (max-width: 1120px) {
  .nav-links { gap: 16px; }
  .nav-links a { font-size: .8rem; }
  .main-nav .lang-switch { margin-right: 8px !important; }
  .nav-btn { padding-inline: 14px; font-size: .8rem; }
  .cert-ticker-group { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  .main-nav nav .nav-links {
    position: fixed;
    top: 86px;
    left: -100%;
    width: 100%;
    height: calc(100svh - 86px);
    background: rgba(7, 18, 33, .98);
    flex-direction: column;
    align-items: flex-start;
    padding: 44px 32px;
    transition: left .3s ease;
    z-index: 99;
  }
  .main-nav nav .nav-links.active { left: 0; }
  .main-nav nav .nav-links a { font-size: 1.15rem; }
  .mobile-toggle { display: flex; }
  .main-nav > .container > .nav-btn { display: none; }
  .main-nav .lang-switch { margin-left: auto; margin-right: 20px !important; }
  .noticias-content { grid-template-columns: 1fr; gap: 22px; }
  .project-metrics { grid-template-columns: 1fr 1fr; }
  .project-metric:last-child { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .container { padding-inline: 20px; }
  .section-padding { padding-block: 76px; }
  .main-nav .container { height: 76px; }
  .main-nav .logo img { height: 46px !important; }
  .main-nav nav .nav-links { top: 76px; height: calc(100svh - 76px); }
  .hero {
    min-height: 760px;
    height: 100svh;
    align-items: flex-end;
  }
  .hero-overlay {
    background: linear-gradient(0deg, rgba(5,16,31,.98) 0%, rgba(5,16,31,.77) 55%, rgba(5,16,31,.38) 100%);
  }
  .hero-angled-accent { display: none; }
  .hero-card { padding: 0 0 44px; }
  .hero h1 { font-size: clamp(2.7rem, 12vw, 4rem); }
  .hero-intro { font-size: 1rem; margin-bottom: 26px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-btn { width: 100%; }
  .hero-proof { margin-top: 32px; }
  .hero-proof > div { padding-inline: 12px; }
  .hero-proof strong { font-size: 1.15rem; }
  .hero-proof span { font-size: .62rem; }
  .section-title { font-size: clamp(2rem, 10vw, 2.75rem); }
  .project-metrics { grid-template-columns: 1fr; }
  .project-metric:last-child { grid-column: auto; }
  .cert-ticker-group { grid-template-columns: repeat(2, 1fr); }
  .cert-logo-card { height: 124px; }
  .quote-form { grid-template-columns: 1fr; }
  .quote-form .form-group:nth-child(4),
  .quote-form .quote-submit-btn { grid-column: auto; }
  .quotes-grid { gap: 44px; }
}

@media (max-width: 480px) {
  .main-nav .lang-switch { font-size: .82rem; margin-right: 14px !important; }
  .hero-eyebrow { font-size: .66rem; letter-spacing: .14em; }
  .hero-proof span { max-width: 86px; }
  .cert-ticker-group { grid-template-columns: 1fr 1fr; gap: 10px; }
}
