:root {
  --color-bg: #fdfaf6;
  --color-red: #c43535;
  --color-text: #333333;
  --color-text-light: #666666;
  --font-main: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
}

body > *:not(#navbar-placeholder):not(script):not(style) {
  zoom: 0.8;
}

/* Navbar */
#navbar-placeholder {
  position: sticky;
  top: 0;
  z-index: 10000;
  background-color: var(--color-bg);
}

.navbar {
  background-color: var(--color-bg);
  padding: 1.2rem 2rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  line-height: 1.1;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--color-text-light);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--color-red);
  font-weight: 700;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-contact {
  text-decoration: none;
  background-color: #fff;
  color: var(--color-text);
  border: 1px solid #e0e0e0;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.2s;
}

.btn-contact:hover {
  background-color: var(--color-text);
  color: #fff;
}

.btn-outline {
  background-color: transparent;
  border-color: var(--color-red);
  color: var(--color-red);
}

.btn-outline:hover {
  background-color: var(--color-red);
  color: #fff;
}

.menu-btn {
  background-color: #2a2a2a;
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Hero Section con Animaciones Avanzadas y Tamaño Compacto */
.hero-section {
  background: linear-gradient(135deg, #161626 0%, #c43535 70%, #8b1a1a 100%);
  padding: 3rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1350px;
  margin: 1.2rem auto;
  border-radius: 22px;
  min-height: 380px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(196, 53, 53, 0.22);
}

/* Rayo láser que barre dinámicamente el Hero */
.hero-laser-beam {
  position: absolute;
  top: 0;
  left: -100%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-25deg);
  animation: laserScan 4.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes laserScan {
  0% { left: -60%; }
  50% { left: 140%; }
  100% { left: 140%; }
}

.hero-glow-bg {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: pulseGlow 6s ease-in-out infinite alternate;
}

}

/* =============================================
   SIMULADOR DE CORTADOR LÁSER CNC Y CHISPAS
   ============================================= */

.laser-cutter-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.laser-path-svg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.laser-cut-track {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 2;
  fill: none;
}

.laser-cut-glowing-line {
  stroke: #ff3300;
  stroke-width: 3.5;
  fill: none;
  filter: drop-shadow(0 0 6px #ff4500) drop-shadow(0 0 14px #ff8800);
  will-change: stroke-dashoffset;
}

.laser-pulse-halo {
  animation: pulseHalo 0.15s infinite alternate ease-in-out;
}

@keyframes pulseHalo {
  0% { transform: scale(0.85); opacity: 0.25; }
  100% { transform: scale(1.3); opacity: 0.6; }
}

/* Cuerpo del cabezal de corte metalizado */
.nozzle-body {
  position: absolute;
  top: -22px;
  width: 14px;
  height: 22px;
  background: linear-gradient(180deg, #777 0%, #111 100%);
  border-radius: 3px 3px 1px 1px;
  box-shadow: 0 0 8px rgba(0,0,0,0.9);
  border: 1px solid #888;
}

.nozzle-tip-glow {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 12px #00ffff, 0 0 25px #ff3300;
}

.laser-focal-point {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 12px #ffffff, 0 0 30px #ff3300, 0 0 60px #ffaa00;
  animation: pulseFocal 0.12s infinite alternate;
}

@keyframes pulseFocal {
  0% { transform: scale(0.85); opacity: 0.85; }
  100% { transform: scale(1.35); opacity: 1; }
}

/* Chispas incandescentes proyectadas */
.sparks-emitter {
  position: absolute;
  width: 1px;
  height: 1px;
}

.spark {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #ffea00;
  border-radius: 50%;
  box-shadow: 0 0 8px #ff3300;
  opacity: 0;
  animation: spraySpark 0.4s infinite ease-out;
}

.spark.s1 { animation-delay: 0.05s; }
.spark.s2 { animation-delay: 0.11s; }
.spark.s3 { animation-delay: 0.17s; }
.spark.s4 { animation-delay: 0.23s; }
.spark.s5 { animation-delay: 0.29s; }
.spark.s6 { animation-delay: 0.35s; }

@keyframes spraySpark {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1.5);
  }
  100% {
    opacity: 0;
    transform: translate(calc(var(--spark-x, 25px)), calc(var(--spark-y, 35px))) scale(0.2);
  }
}

.hero-content {
  flex: 1;
  padding-right: 3rem;
  color: #fff;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #00ff88;
  border-radius: 50%;
  box-shadow: 0 0 10px #00ff88;
  animation: blinkDot 1.5s infinite;
}

@keyframes blinkDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}

.hero-title-animated {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.9rem;
  letter-spacing: 0.5px;
}

.highlight-text {
  background: linear-gradient(90deg, #ffffff 0%, #ffd1d1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 520px;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-btn {
  padding: 0.95rem 2rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primary-btn {
  background: #ffffff;
  color: #c43535;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.primary-btn:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 15px 35px rgba(255, 255, 255, 0.3);
  background: #ffffff;
}

.secondary-btn {
  background: rgba(0, 0, 0, 0.25);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  transform: translateY(-4px);
}

.floating-arrow {
  margin-top: 1.5rem;
  animation: floatDown 2s infinite ease-in-out;
  color: rgba(255,255,255,0.7);
}

@keyframes floatDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.hero-cards {
  display: flex;
  gap: 1.5rem;
  z-index: 2;
  perspective: 1000px;
}

.hero-card {
  width: 250px;
  height: 320px;
  background-color: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.5s ease;
  transform-style: preserve-3d;
}

.hero-card:hover {
  transform: translateY(-10px) rotateY(-5deg) scale(1.03);
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.hero-card.placeholder {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border: 1px dashed rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

/* =============================================
   SECCIÓN ESTADÍSTICAS Y CARACTERÍSTICAS (ANIMADAS)
   ============================================= */

.stats-section {
  max-width: 1400px;
  margin: -2.5rem auto 4rem;
  padding: 0 2rem;
  position: relative;
  z-index: 10;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  background: #ffffff;
  border-radius: 24px;
  padding: 2.5rem 2rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.stat-card {
  text-align: center;
  padding: 1rem;
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--color-red);
  line-height: 1.1;
  margin-bottom: 0.3rem;
  font-feature-settings: "tnum";
}

.stat-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Features Grid */
.features-section {
  max-width: 1400px;
  margin: 5rem auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  background: rgba(196, 53, 53, 0.08);
  color: var(--color-red);
  padding: 0.4rem 1.1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: 2.3rem;
  font-weight: 800;
  color: #1a1a1a;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-light);
  margin-top: 0.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0%;
  background: var(--color-red);
  transition: height 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(196, 53, 53, 0.1);
}

.feature-card:hover::before {
  height: 100%;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.8rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* Glow Button */
.btn-glow {
  position: relative;
  box-shadow: 0 8px 25px rgba(196, 53, 53, 0.3);
  transition: all 0.3s ease;
}

.btn-glow:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 35px rgba(196, 53, 53, 0.5);
}

/* Scroll Reveal Classes */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Nosotros Section */
.nosotros-section {
  max-width: 1400px;
  margin: 6rem auto;
  padding: 0 2rem;
}

.nosotros-container {
  display: flex;
  align-items: center;
  gap: 4rem;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  overflow: hidden;
  padding: 4rem;
  border: 1px solid rgba(0,0,0,0.05);
}

.nosotros-image-box {
  flex: 1;
  position: relative;
}

.nosotros-image-box img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(196,53,53,0.15);
  object-fit: cover;
  transition: transform 0.4s ease;
}

.nosotros-image-box img:hover {
  transform: scale(1.02);
}

.nosotros-text-box {
  flex: 1;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 60px;
  height: 4px;
  background-color: #c43535;
  border-radius: 2px;
}

#nosotros-text {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.8;
}

@media (max-width: 992px) {
  .nosotros-container {
    flex-direction: column;
    padding: 2rem;
    gap: 2rem;
  }
}

/* Galería */
.gallery-section {
  max-width: 1400px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.gallery-item {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

@media (max-width: 900px) {
  .hero-section {
    flex-direction: column;
    padding: 3rem 1.5rem;
  }
  .hero-cards {
    margin-top: 3rem;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 1rem;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-bg);
    padding: 2rem;
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    z-index: 1000;
  }
  .nav-links.active {
    display: flex;
  }
  .menu-btn {
    display: flex;
  }
}

@media (min-width: 901px) {
  .menu-btn {
    display: none;
  }
}

/* ==========================================================
   PÁGINA NOSOTROS - REDISEÑO PREMIUM
   ========================================================== */

#nosotros-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

/* 1. Hero / Historia */
.nosotros-hero-section {
  padding: 2rem 0;
}

.nosotros-hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.nosotros-badge {
  display: inline-block;
  background-color: rgba(196, 53, 53, 0.08);
  color: var(--color-red);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.2rem;
}

.nosotros-main-title {
  font-size: 3rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 1.8rem;
  line-height: 1.2;
}

.nosotros-intro-p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text-light);
}

.nosotros-hero-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.nosotros-img-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nosotros-img-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(196, 53, 53, 0.08);
}

.nosotros-img-card img {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.05));
  border-radius: 12px;
}

/* 2. Misión y Visión Section */
.nosotros-mv-section {
  padding: 1rem 0;
}

.nosotros-mv-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.mv-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 3.5rem 3rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.mv-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.06);
}

.mv-icon {
  font-size: 2.5rem;
  width: 64px;
  height: 64px;
  background: rgba(196, 53, 53, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  margin-bottom: 0.5rem;
}

.mv-card h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a1a1a;
  position: relative;
  display: inline-block;
  padding-bottom: 0.8rem;
}

.mv-card h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background-color: var(--color-red);
  border-radius: 20px;
}

.mv-card p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text-light);
}

/* 3. Valores Section */
.nosotros-valores-section {
  padding: 1rem 0;
}

.section-title-centered {
  font-size: 2.2rem;
  font-weight: 800;
  text-align: center;
  color: #1a1a1a;
  margin-bottom: 3.5rem;
  position: relative;
}

.section-title-centered::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -12px;
  width: 50px;
  height: 4px;
  background-color: var(--color-red);
  border-radius: 20px;
}

.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.valor-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.valor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(196, 53, 53, 0.05);
}

.valor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.valor-number {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-red);
  font-feature-settings: "tnum";
}

.valor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-red);
  border-radius: 50%;
  opacity: 0.3;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.valor-card:hover .valor-dot {
  opacity: 1;
  transform: scale(1.3);
}

.valor-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c2c2c;
  line-height: 1.5;
}

/* 4. ¿Por qué elegirnos? Section */
.nosotros-porque-section {
  padding: 1rem 0;
}

.porque-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: start;
}

.porque-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.porque-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding: 0.5rem 0;
}

.porque-check-wrapper {
  background: rgba(196, 53, 53, 0.08);
  color: var(--color-red);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.porque-item:hover .porque-check-wrapper {
  transform: scale(1.1) rotate(5deg);
  background: var(--color-red);
  color: #ffffff;
}

.porque-text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-text);
  font-weight: 500;
}

.porque-concluing-card {
  background: linear-gradient(135deg, #1e1e38 0%, #111122 100%);
  color: #ffffff !important;
  border-radius: 24px;
  padding: 3rem 2.5rem;
  position: relative;
  box-shadow: 0 20px 45px rgba(26, 26, 46, 0.18);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.porque-concluing-card * {
  color: #ffffff !important;
}

.porque-concluing-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(196,53,53,0.25) 0%, transparent 70%);
  border-radius: 50%;
}

.concl-quote-icon {
  font-size: 4rem;
  color: var(--color-red) !important;
  line-height: 1;
  margin-bottom: 0.5rem;
  font-family: serif;
}

.concl-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #f8f9fa !important;
  font-weight: 400;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  #nosotros-content {
    padding: 3rem 1.5rem;
    gap: 4rem;
  }
  
  .nosotros-hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .nosotros-hero-image-container {
    order: -1;
  }
  
  .nosotros-main-title {
    font-size: 2.5rem;
  }
  
  .nosotros-mv-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .porque-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 576px) {
  .mv-card {
    padding: 2.5rem 2rem;
  }
  .porque-concluing-card {
    padding: 2rem;
  }
  .nosotros-main-title {
    font-size: 2.2rem;
  }
}

/* ==========================================================
   PÁGINA GALERÍA PÚBLICA - REDISEÑO PREMIUM
   ========================================================== */

#galeria-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.galeria-hero-section {
  text-align: center;
  padding: 2rem 0;
}

.galeria-badge {
  display: inline-block;
  background-color: rgba(196, 53, 53, 0.08);
  color: var(--color-red);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.2rem;
}

.galeria-main-title {
  font-size: 3rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 1.2rem;
}

.galeria-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.galeria-grid-section {
  padding: 1rem 0;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
}

/* Card of each item */
.galeria-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
  position: relative;
  aspect-ratio: 4 / 3;
}

.galeria-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(196, 53, 53, 0.1);
}

.galeria-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.galeria-card:hover img {
  transform: scale(1.06);
}

/* Hover overlay info */
.galeria-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.galeria-card:hover .galeria-overlay {
  opacity: 1;
}

.galeria-title {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  transform: translateY(15px);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.galeria-card:hover .galeria-title {
  transform: translateY(0);
}

.galeria-desc {
  color: #c43535;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transform: translateY(15px);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  transition-delay: 0.05s;
}

.galeria-card:hover .galeria-desc {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .galeria-main-title {
    font-size: 2.2rem;
  }
  .galeria-subtitle {
    font-size: 1rem;
  }
  #galeria-page {
    padding: 3rem 1rem;
    gap: 3rem;
  }
  .galeria-grid {
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

/* ========================================= */
/* ESTILOS PARA LA PÁGINA DE NOSOTROS        */
/* ========================================= */

#nosotros-content {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 5rem;
  animation: fadeIn 0.8s ease-out;
}

/* 1. Hero Section */
.nosotros-hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nosotros-hero-container {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: center;
}

.nosotros-hero-text {
  flex: 1;
  min-width: 300px;
}

.nosotros-badge {
  display: inline-block;
  background-color: rgba(196, 53, 53, 0.1);
  color: var(--color-red);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nosotros-main-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.nosotros-intro-p {
  font-size: 1.1rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

.nosotros-hero-image-container {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
}

.nosotros-img-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  background: white;
  padding: 2rem;
}

.nosotros-img-card img {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  object-fit: contain;
}

/* 2. Misión y Visión */
.nosotros-mv-container {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.mv-card {
  flex: 1;
  min-width: 300px;
  background: white;
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  border: 1px solid rgba(0,0,0,0.05);
}

.mv-card:hover {
  transform: translateY(-5px);
}

.mv-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.mv-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.mv-card p {
  color: var(--color-text-light);
  line-height: 1.7;
}

/* 3. Valores */
.section-title-centered {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 3rem;
  color: var(--color-text);
}

.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.valor-card {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.03);
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.03);
  position: relative;
  overflow: hidden;
}

.valor-card:hover {
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
  transform: translateY(-5px);
}

.valor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.valor-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(196, 53, 53, 0.15);
  font-family: monospace;
}

.valor-dot {
  width: 10px;
  height: 10px;
  background-color: var(--color-red);
  border-radius: 50%;
}

.valor-text {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-text);
}

/* 4. ¿Por qué elegirnos? */
.porque-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.porque-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.porque-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.porque-check-wrapper {
  background: rgba(196, 53, 53, 0.1);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.porque-check-icon {
  color: var(--color-red);
  width: 14px;
  height: 14px;
}

.porque-text {
  font-size: 1.05rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

.porque-concluing-card {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.05);
  position: relative;
}

.concl-quote-icon {
  position: absolute;
  top: 1rem;
  left: -0.5rem;
  font-size: 4rem;
  color: rgba(196, 53, 53, 0.1);
  font-family: serif;
  line-height: 1;
}

.concl-text {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-text);
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .nosotros-main-title {
    font-size: 2.2rem;
  }
  .mv-card {
    padding: 2rem;
  }
  .porque-grid {
    padding: 2rem;
  }
}

