:root {
  /* Efecto Almena Color Palette */
  --primary-orange: #f26522; /* Inspired by the logo */
  --primary-orange-hover: #d95518;
  --bg-dark: #fcfcfd; /* Inverted background */
  --bg-darker: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.95);
  --bg-card: #ffffff;
  --input-bg: rgba(0, 0, 0, 0.03);
  --text-main: #1a1e23;
  --text-muted: #5e6673;
  --border-glass: rgba(0, 0, 0, 0.08); /* Transparent dark borders */
  --gradient-orange: linear-gradient(135deg, #f26522 0%, #ff8a4c 100%);
  
  /* Typography */
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Spacing */
  --section-padding: 6rem;
  
  /* Radius & Shadows */
  --radius-md: 12px;
  --radius-lg: 24px;
  --shadow-glow: 0 4px 15px rgba(242, 101, 34, 0.3);
  --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.04); /* Clean material shadow */
}

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

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Typography Tools */
.text-gradient {
  background: var(--gradient-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-orange {
  color: var(--primary-orange);
}
.text-center {
  text-align: center;
}
.section-header {
  margin-bottom: 3rem;
}
.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.section-header p {
  font-size: 1.125rem;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient-orange);
  color: white;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(242, 101, 34, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}
.btn-pill-outline {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border: 1px solid var(--text-muted);
  border-radius: 50px;
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s;
  background: transparent;
}
.btn-pill-outline:hover {
  border-color: var(--primary-orange);
  color: var(--primary-orange);
  background: rgba(242, 101, 34, 0.05);
}
.pill-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.pill-nav-item {
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  color: var(--text-muted);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  background: transparent;
  border: none;
  font-size: 1rem;
}
.pill-nav-item.active, .pill-nav-item:hover {
  background: #1a365d; /* Dark corporate blue from reference */
  color: white;
}

/* Header */
/* ==========================================================================
   Header & Navigation (Premium Redesign)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.site-header.scrolled {
  padding: 0.6rem 0;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.logo-container img {
  height: 55px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo-container:hover img {
  transform: scale(1.05);
}

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

.nav-link {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-orange);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-orange);
}

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

.nav-link.active {
  color: var(--primary-orange);
}

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

/* Featured Area Cliente Link */
.nav-link-featured {
  background: var(--primary-orange);
  color: white !important;
  padding: 0.7rem 1.5rem !important;
  border-radius: 50px;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(242, 101, 34, 0.2);
}

.nav-link-featured:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 101, 34, 0.3);
  background: #e0561a;
}

.nav-link-featured::after {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1002;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--text-main);
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 1024px) {
  .site-header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(255, 255, 255, 0.98) !important;
  }

  .mobile-menu-toggle {
    display: flex;
    margin-left: 1rem;
  }

  .nav-links {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 100% !important;
    max-width: 300px !important;
    height: 100vh !important;
    background-color: #ffffff !important;
    flex-direction: column !important;
    padding: 80px 2rem 2rem !important;
    gap: 1rem !important;
    box-shadow: -10px 0 30px rgba(0,0,0,0.2) !important;
    transition: all 0.4s ease-in-out !important;
    z-index: 999999 !important;
    align-items: flex-start !important;
    display: flex !important;
    visibility: hidden;
    opacity: 0;
  }

  .nav-links.active {
    right: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .nav-link {
    font-size: 1.15rem !important;
    width: 100% !important;
    padding: 1.2rem 0 !important;
    border-bottom: 1px solid rgba(0,0,0,0.08) !important;
    color: #1a1e23 !important;
  }

  .nav-link-featured {
    width: 100%;
    text-align: center;
    margin-top: 1.5rem;
    background: var(--primary-orange);
    color: white !important;
  }

  .logo-container img {
    height: 40px;
  }

  body.no-scroll {
    overflow: hidden;
  }
}

/* Selector de idioma refinado */
.lang-switcher-container {
  position: relative;
}

.current-lang {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(0, 0, 0, 0.04);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.current-lang:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.1);
}

.current-lang img.flag {
  width: 22px;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.current-lang span {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-main);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 15px);
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  padding: 0.5rem;
  z-index: 1001;
  border: 1px solid #f0f0f0;
}

.lang-switcher-container:hover .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown li button {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-dropdown li button:hover {
  background: #f8f9fa;
  color: var(--primary-orange);
}

/* Hero Slider Section */
.hero-slider-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.slide-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  opacity: 0.6; /* Slight blend with background */
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

/* Subtle zoom effect for the active slide background */
@keyframes zoomBackground {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}
.slide.active .slide-bg-img {
  animation: zoomBackground 10s linear infinite alternate;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(252, 252, 253, 0.95) 0%, rgba(252, 252, 253, 0.2) 100%);
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: 800px;
  text-align: left;
  padding: 0 5%;
  /* Cancel parent animation to keep text static */
  animation: none !important;
  transform: scale(1) !important;
}

.slide:not(.active) .hero-content {
  opacity: 0;
  transform: translateY(20px) !important;
}

.slide.active .hero-content {
  animation: fadeInUp 1s ease forwards !important;
}

.slider-controls {
  position: absolute;
  bottom: 15%;
  left: 5%;
  z-index: 10;
  display: flex;
  gap: 1rem;
}

.slider-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: all 0.3s;
}

.slider-btn:hover {
  background: var(--primary-orange);
  border-color: var(--primary-orange);
  color: white;
  transform: scale(1.1);
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
  color: #111;
  animation: fadeInUp 1s ease forwards;
}
.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.35rem);
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}
.hero-actions {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.4s;
  opacity: 0;
}
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(242, 101, 34, 0.1) 0%, var(--bg-dark) 70%);
  z-index: 1;
}

/* Services Grid */
.services-highlight {
  padding: var(--section-padding) 0;
  background: var(--bg-darker);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-card);
  border-color: rgba(242, 101, 34, 0.3);
}
.service-card:hover::before {
  transform: scaleX(1);
}
.service-icon {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: rgba(242, 101, 34, 0.05);
  color: var(--primary-orange);
  border-radius: 50%;
}
.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.service-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.service-link {
  color: var(--primary-orange);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-block;
  transition: transform 0.3s;
}
.service-card:hover .service-link {
  transform: translateX(5px);
}

/* Quality Section */
.quality-section {
  padding: var(--section-padding) 0;
  position: relative;
  background: #f4f7f9; /* Light corporate blue-grey instead of dark */
}
.quality-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.quality-list {
  margin-top: 2rem;
}
.quality-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
.check {
  color: var(--primary-orange);
  font-weight: bold;
}
.sector-card-content {
  position: relative;
  z-index: 3;
  padding: 3rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.quality-visual {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tech-circle {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px dashed rgba(242, 101, 34, 0.5);
  animation: rotate 20s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tech-circle::before {
  content: '';
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px solid var(--primary-orange);
  animation: rotateReverse 15s linear infinite;
}
.tech-box {
  position: absolute;
  width: 100px;
  height: 100px;
  background: var(--gradient-orange);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glow);
  animation: float 4s ease-in-out infinite;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes rotateReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* Structural Elements from References */
.bg-light-blue {
  background-color: #f4f7fa; /* Very subtle corporate blue wave/bg */
}
.wavy-section {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
  background-color: #f7f9fc;
}
.wavy-section::before, .wavy-section::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 50px;
  background-repeat: no-repeat;
  background-size: cover;
  left: 0;
  z-index: 0;
}
.wavy-section::before {
  top: -1px;
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 50" xmlns="http://www.w3.org/2000/svg"><path d="M0,0 C480,50 960,50 1440,0 L1440,50 L0,50 Z" fill="%23ffffff"/></svg>');
  transform: rotate(180deg);
}
.wavy-section::after {
  bottom: -1px;
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 50" xmlns="http://www.w3.org/2000/svg"><path d="M0,0 C480,50 960,50 1440,0 L1440,50 L0,50 Z" fill="%23ffffff"/></svg>');
}

/* Stats Counter */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}
.stat-item {
  padding: 1rem;
}
.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: #1a365d; /* Dark corporate blue */
  margin-bottom: 0.5rem;
}
.stat-label {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

/* Split Image Composition */
.split-composition {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.image-overlap-wrapper {
  position: relative;
  height: 500px;
}
.image-overlap-wrapper img {
  border-radius: var(--radius-lg);
  position: absolute;
  object-fit: cover;
  box-shadow: var(--shadow-card);
}
.img-main {
  width: 75%;
  height: 70%;
  top: 0;
  right: 0;
  z-index: 1;
}
.img-secondary {
  width: 65%;
  height: 60%;
  bottom: 0;
  left: 0;
  z-index: 2;
  border: 10px solid var(--bg-main);
}
.composition-content h2 {
  font-size: 2.2rem;
  color: #1a365d; /* Corporate text color */
  margin-bottom: 1.5rem;
}
.composition-content .subtitle-accent {
  color: #38bdf8; /* Light blue accent */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  display: block;
}

/* Footer */
.site-footer {
  background: #f8f9fa; /* Clean light grey footer */
  padding: 5rem 2rem 2rem;
  border-top: 1px solid var(--border-glass);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  max-width: 1280px;
  margin: 0 auto;
}
.footer-col h4 {
  color: var(--text-main);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}
.footer-links li {
  margin-bottom: 0.8rem;
}
.footer-links a {
  color: var(--text-muted);
  transition: color 0.3s;
}
.footer-links a:hover {
  color: var(--primary-orange);
}
.footer-bottom {
  text-align: center;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Internal Pages Structure */
.page-header {
  padding: 10rem 2rem 4rem;
  background: radial-gradient(circle at 50% 0%, rgba(242, 101, 34, 0.15) 0%, var(--bg-dark) 70%);
  border-bottom: 1px solid var(--border-glass);
}
.page-header h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 0.5rem;
}
.page-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}
.page-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Internal Layouts */
.empresa-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
}
.empresa-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}
.values-list {
  margin-bottom: 1.5rem;
}
.values-list li {
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-muted);
}
.values-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--primary-orange);
  font-weight: bold;
}
.values-list strong {
  color: var(--text-main);
}

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

/* Services Lists (Servicios) */
.services-list-grid {
  display: grid;
  gap: 3rem;
}
.service-detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  display: flex;
  overflow: hidden;
  transition: transform 0.3s ease;
  box-shadow: var(--card-shadow);
}
.service-detail-card:hover {
  border-color: rgba(242, 101, 34, 0.4);
  box-shadow: 0 15px 35px rgba(242, 101, 34, 0.1);
  transform: translateY(-5px);
}
.service-detail-icon {
  background: #fcfcfd; /* Clean light background */
  width: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  border-right: 1px solid var(--border-glass);
}
.service-detail-content {
  padding: 3rem;
  flex: 1;
}
.service-detail-content h2 {
  font-size: 2rem;
  color: var(--primary-orange);
  margin-bottom: 1.5rem;
  font-weight: 700;
}
.service-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.service-features li {
  background: rgba(0,0,0,0.02); /* very light */
  padding: 1rem;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary-orange);
}
.service-features strong {
  display: block;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}
.service-features span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Sectores Grid */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}
.sector-card {
  position: relative;
  height: 250px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  border: 1px solid var(--border-glass);
  box-shadow: var(--card-shadow);
}
.sector-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.1));
  z-index: 1;
}
.sector-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
  z-index: 0;
}

.sector-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(26,54,93,0.95) 0%, rgba(26,54,93,0.4) 100%);
  z-index: 2;
  transition: opacity 0.3s;
}

.sector-card:hover .sector-card-bg {
  transform: scale(1.1);
}

/* ==========================================================================
   Cookies System
   ========================================================================== */

/* Banner */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: #8888cc; /* Color aproximado de la imagen 1 */
    color: white;
    padding: 2rem;
    z-index: 9999;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
    transition: bottom 0.5s ease-in-out;
    text-align: center;
}

.cookie-banner.active {
    bottom: 0;
}

.cookie-banner-content {
    max-width: 1100px;
    margin: 0 auto;
}

.cookie-banner-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.cookie-banner-text a {
    color: #ffcccc;
    text-decoration: underline;
}

.cookie-banner-btns {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-cookie-settings {
    background: transparent;
    color: white;
    text-decoration: underline;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.btn-cookie-accept {
    background: #a8e6cf;
    color: #1a365d;
    border: none;
    padding: 0.8rem 3rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-cookie-decline {
    background: #d1d1d1;
    color: white;
    border: none;
    padding: 0.8rem 3rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-cookie-accept:hover, .btn-cookie-decline:hover {
    transform: scale(1.05);
}

/* Modal */
.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 1rem;
}

.cookie-modal-overlay.active {
    display: flex;
}

.cookie-modal {
    background: white;
    width: 100%;
    max-width: 650px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.cookie-modal-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.cookie-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #1a365d;
}

.btn-close-modal {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
}

.cookie-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.cookie-modal-desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.cookie-cat-item {
    border: 1px solid #eef2f7;
    border-radius: 8px;
    margin-bottom: 0.8rem;
    overflow: hidden;
}

.cookie-cat-header {
    padding: 1rem;
    background: #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.cookie-cat-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    color: #1a365d;
}

.cookie-cat-title i {
    transition: transform 0.3s;
}

.cookie-cat-item.active .cookie-cat-title i {
    transform: rotate(90deg);
}

/* Icon fallback if font-awesome not present */
.cookie-cat-title i::before {
    content: "\25b6";
    display: inline-block;
    transition: transform 0.3s;
    font-style: normal;
}
.cookie-cat-item.active .cookie-cat-title i::before {
    transform: rotate(90deg);
}

.cookie-cat-status {
    font-size: 0.85rem;
    color: #3b82f6;
    font-weight: 500;
}

.cookie-cat-content {
    display: none;
    padding: 1rem;
    font-size: 0.85rem;
    color: #555;
    line-height: 1.6;
    background: white;
}

.cookie-cat-item.active .cookie-cat-content {
    display: block;
}

.cookie-cat-content a {
    color: var(--primary-orange);
    text-decoration: none;
}

/* Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-switch {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider-switch:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider-switch {
    background-color: #3b82f6;
}

input:checked + .slider-switch:before {
    transform: translateX(22px);
}

.cookie-modal-footer {
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    border-top: 1px solid #eee;
}

.btn-accept-all {
    background: #4a5568;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
}

.btn-save-settings {
    background: transparent;
    color: #1a365d;
    border: 1px solid #1a365d;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
}

/* Floating Cookie Widget */
.cookie-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9998;
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #ddd;
    border-radius: 50px;
    padding: 5px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
}

.cookie-widget.visible {
    visibility: visible;
    opacity: 1;
}

.cookie-widget:hover {
    width: 240px;
    padding-right: 15px;
}

.cookie-icon-wrapper {
    min-width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #ff9d66 0%, #ff6b2b 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 43, 0.3);
    transition: transform 0.3s ease;
    z-index: 2;
}

.cookie-widget:hover .cookie-icon-wrapper {
    transform: rotate(15deg) scale(1.1);
}

.cookie-icon-wrapper::before {
    content: "";
    display: block;
    width: 26px;
    height: 26px;
    background-color: white;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M256 32C132.3 32 32 132.3 32 256s100.3 224 224 224 224-100.3 224-224S379.7 32 256 32zm0 400c-97 0-176-79-176-176s79-176 176-176 176 79 176 176-79 176-176 176zm-80-176c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm160 0c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm-80 112c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z'/%3E%3C/svg%3E") no-repeat center;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M256 32C132.3 32 32 132.3 32 256s100.3 224 224 224 224-100.3 224-224S379.7 32 256 32zm0 400c-97 0-176-79-176-176s79-176 176-176 176 79 176 176-79 176-176 176zm-80-176c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm160 0c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm-80 112c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z'/%3E%3C/svg%3E") no-repeat center;
}

.cookie-widget-text {
    white-space: nowrap;
    padding: 0 20px 0 15px;
    color: #ff6b2b !important;
    font-weight: 700;
    font-size: 0.95rem;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

.cookie-widget:hover .cookie-widget-text {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .cookie-banner-btns {
        flex-direction: column;
        gap: 1rem;
    }
    .btn-cookie-accept, .btn-cookie-decline {
        width: 100%;
    }
    .cookie-modal-footer {
        flex-direction: column;
    }
}
.sector-card-content {
  position: relative;
  z-index: 2;
}
.sector-card h3 {
  font-size: 1.5rem;
  color: white; /* Keep white for contrast against dark gradient overlay */
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.sector-card p {
  color: #ddd; /* Lighter grey so it is readable on the dark overlay */
  font-size: 0.95rem;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
}
.sector-card:hover p {
  transform: translateY(0);
  opacity: 1;
}

/* Statistics Animation */
.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-orange);
    margin-bottom: 0.5rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
}

/* Machinery Table/List */
.machinery-section {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 3rem;
  margin-bottom: 3rem;
  box-shadow: var(--card-shadow);
}
.machinery-section h2 {
  color: var(--primary-orange);
  margin-bottom: 2rem;
  font-size: 1.8rem;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 1rem;
  font-weight: 700;
}
.machinery-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.machinery-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.machinery-item span {
  font-weight: 500;
}
.machinery-dot {
  width: 12px;
  height: 12px;
  background: var(--primary-orange);
  border-radius: 50%;
}

/* Contact Form Clean Layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.contact-info-clean h3 {
  font-size: 1.3rem;
  color: #1a365d;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.contact-info-clean p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1rem;
}
.contact-info-clean a {
  color: var(--text-muted);
  transition: color 0.3s;
}
.contact-info-clean a:hover {
  color: var(--primary-orange);
}
.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 250px;
  width: 100%;
  box-shadow: var(--shadow-card);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.form-group {
  display: flex;
  flex-direction: column;
}
/* No labels visually as per reference, using placeholder, or visually hidden */
.form-group label {
  display: none;
}
.form-group input, .form-group textarea {
  background: var(--bg-card);
  border: 1px solid #e2e8f0;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: all 0.3s;
}
.form-group input::placeholder, .form-group textarea::placeholder {
  color: #94a3b8;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: #1a365d;
  box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
}
.checkbox-group input[type="checkbox"] {
  margin-top: 0.3rem;
  cursor: pointer;
}
.checkbox-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-main);
  cursor: pointer;
  line-height: 1.4;
}
.form-legal-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 1rem;
}
.form-legal-text strong {
  color: var(--text-main);
}
.contact-info-card {
  display: none; /* Hide old cards logic if it exists */
}

/* Responsive */
@media (max-width: 900px) {
  .empresa-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .service-detail-card {
    flex-direction: column;
  }
  .service-detail-icon {
    width: 100%;
    height: 120px;
    border-right: none;
    border-bottom: 1px solid var(--border-glass);
  }
  .quality-container {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none; /* Will implement mobile menu later */
  }
}

/* ==========================================================================
   Machinery Page (Medios de Producción)
   ========================================================================== */
.machinery-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin: 4rem 0;
}

.machinery-card-premium {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

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

.machinery-card-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.6s ease;
}

.machinery-card-premium:hover .machinery-card-image {
    transform: scale(1.05);
}

.machinery-card-content {
    padding: 2.5rem;
}

.machinery-card-content h2 {
    font-size: 1.4rem;
    color: #1a365d;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.machinery-card-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-orange);
}

.machinery-list-modern {
    list-style: none;
    padding: 0;
    margin: 0;
}

.machinery-list-modern li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0;
    color: #666;
    border-bottom: 1px solid #f8f8f8;
}

.machinery-list-modern li:last-child {
    border-bottom: none;
}

.machinery-list-modern li i {
    color: var(--primary-orange);
    font-size: 1rem;
}

@media (max-width: 768px) {
    .machinery-grid-modern {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   Final CTA Section
   ========================================================================== */
.final-cta {
  padding: 10rem 2rem;
  color: white;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 450px;
}

.final-cta h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white;
}

.final-cta p {
  font-size: 1.35rem;
  opacity: 1;
  max-width: 800px;
  margin: 0 auto;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

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

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(242, 101, 34, 0.85) 0%, rgba(26, 54, 93, 0.8) 100%);
  z-index: 2;
}

.cta-content {
  position: relative;
  z-index: 3;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

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

.btn-white:hover {
  background: #f8f9fa;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-outline-white {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline-white:hover {
  background: white;
  color: var(--primary-orange);
}

.bg-gradient-orange {
  background: linear-gradient(135deg, #f26522 0%, #ff8c52 100%);
}

/* Adjusting Services Grid for 5 items */
@media (min-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  /* Optional: Center the last two items if we wanted a different layout, 
     but repeat(3, 1fr) works well for 5 items (3+2) or 6. */
}

/* ==========================================================================
   Services Page Refinements
   ========================================================================== */
.tech-spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.spec-item h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--primary-orange);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.spec-item p {
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 500;
}

.service-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    list-style: none;
    padding: 0;
}

.service-features-grid li {
    background: rgba(255, 255, 255, 0.5);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.service-features-grid li:hover {
    transform: translateY(-5px);
    background: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.service-features-grid li strong {
    display: block;
    color: var(--primary-orange);
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   Client Area Dashboard
   ========================================================================== */
.client-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.client-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 2rem;
    border: 1px solid #f0f0f0;
}

.client-card.full-width {
    grid-column: span 2;
}

.client-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f8f9fa;
}

.client-card-header i {
    font-size: 1.5rem;
    color: var(--primary-orange);
}

.client-card-header h3 {
    font-size: 1.25rem;
    color: #1a365d;
}

/* Project Tracking Items */
.project-tracking-item {
    margin-bottom: 1.5rem;
}

.project-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.progress-bar {
    height: 8px;
    background: #edf2f7;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f26522, #ffa360);
    border-radius: 10px;
}

/* Status Badges */
.status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-production { background: #fff3e0; color: #ef6c00; }
.status-laser { background: #e3f2fd; color: #1565c0; }
.status-delivered { background: #e8f5e9; color: #2e7d32; }

/* Files List */
.client-files-list {
    list-style: none;
    padding: 0;
}

.client-files-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #fcfcfc;
    border-radius: 10px;
    margin-bottom: 0.8rem;
    border: 1px solid #f5f5f5;
}

.client-files-list li i {
    margin-right: 0.8rem;
    color: #718096;
}

/* Table */
.client-table {
    width: 100%;
    border-collapse: collapse;
}

.client-table th {
    text-align: left;
    padding: 1rem;
    border-bottom: 2px solid #edf2f7;
    color: #4a5568;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.client-table td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid #f7fafc;
    color: #2d3748;
}

.btn-small {
    padding: 0.5rem 1rem;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-small:hover {
    background: #f26522;
    color: white;
    border-color: #f26522;
}

@media (max-width: 992px) {
    .client-dashboard-grid {
        grid-template-columns: 1fr;
    }
    .client-card.full-width {
        grid-column: span 1;
    }
}


