/* ============================================
   Avanza SST - Styles
   Seguridad, Salud y Medio Ambiente
   ============================================ */

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

:root {
  --blue: #004ea0;
  --blue-dark: #003b7a;
  --blue-light: #0066cc;
  --green: #8cd258;
  --green-dark: #6fb83e;
  --green-light: #a3e070;
  --gray: #9a9a9a;
  --gray-light: #f5f7fa;
  --gray-medium: #e8eaed;
  --dark: #0d1b2a;
  --dark-soft: #1b2d45;
  --white: #ffffff;
  --text-primary: #1a1a2e;
  --text-secondary: #4a5568;
  --text-light: #718096;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-primary);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p {
  line-height: 1.7;
  color: white;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 2.0rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background-color: var(--green);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  font-family: inherit;
  letter-spacing: 0.01em;
}

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

.btn-primary:hover {
  background-color: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 78, 160, 0.3);
}

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

.btn-secondary:hover {
  background-color: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

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

.btn-white:hover {
  background-color: var(--gray-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.btn-green {
  background-color: var(--green);
  color: var(--dark);
  font-weight: 700;
}

.btn-green:hover {
  background-color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(140, 210, 88, 0.3);
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition);
}

.btn:hover svg {
  transform: translateX(3px);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition);
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
  padding: 14px 0;
}

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

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--white);
  transition: color var(--transition);
}

.navbar.scrolled .navbar-logo {
  color: var(--blue);
}

.navbar-logo .logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.nav-dropdown {
  position: relative;
  list-style: none;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  min-width: 250px;
  background-color: rgba(245, 245, 245, 0);
  border-radius: 8px;
  padding: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  left: 0;
  z-index: 999;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-item {
  color: black;
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: all var(--transition);
}

.nav-dropdown-item:hover {
  background-color: rgba(185, 182, 182, 0.127);
}

.navbar-logo .logo-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.navbar-logo span {
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.7;
  display: block;
  margin-top: -2px;
  letter-spacing: 0.02em;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.navbar-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgb(0, 0, 0);
  position: relative;
  padding: 4px 0;
}

.navbar.scrolled .navbar-links a {
  color: black;
}

.navbar.scrolled .nav-dropdown-menu {

  background-color: rgb(252, 251, 251);
  
}

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

.navbar-links a:hover::after,
.navbar-links a.active::after {
  width: 100%;
  color: rgb(0, 0, 0);
}

.navbar-links a:hover {
  color: #6fb83e;
}
.navbar-links a.active {
  color: #6fb83e;
}

.navbar.scrolled .navbar-links a:hover,
.navbar.scrolled .navbar-links a.active {
  color: var(--blue);
}

.navbar-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.navbar-cta .btn {
  padding: 10px 24px;
  font-size: 0.85rem;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--white);
  transition: all var(--transition);
  border-radius: 2px;
}

.navbar.scrolled .mobile-toggle span {
  background-color: var(--text-primary);
}

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

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

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

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), 
    url("images/Index.png");                                    
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
 
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(140, 210, 88, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 78, 160, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 60px;
}

.hero-content {
  max-width: 580px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(140, 210, 88, 0.12);
  border: 1px solid rgba(140, 210, 88, 0.25);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 28px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero h1 .highlight {
  color: var(--green);
}

.hero-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
  max-width: 480px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat h4 {
  font-size: 2rem;
  color: var(--white);
  font-weight: 800;
}

.hero-stat h4 .stat-accent {
  color: var(--green);
}

.hero-stat p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  overflow: hidden;
}

.hero-visual-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(140, 210, 88, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.visual-icon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px; 
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
}

.visual-icon-item {
  display: flex;
  flex-direction: row; 
  align-items: flex-start;
  gap: 18px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.1); 
  backdrop-filter: blur(5px); 
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.visual-icon-item:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(140, 210, 88, 0.5);
  transform: translateY(-5px);
}

.visual-icon-item .icon-circle {
  flex-shrink: 0; 
  width: 52px; 
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-icon-item .icon-circle.blue {
  background: rgba(0, 114, 177, 0.4);
}

.visual-icon-item .icon-circle.green {
  background: rgba(140, 210, 88, 0.3);
}

.icon-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.visual-icon-item h5 {
  margin: 0;
  font-size: 1rem; 
  font-weight: 700;
  color: #ffffff; 
}

.visual-icon-item p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8); 
  line-height: 1.4;
}

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

.icon-text h5 {
  color: var(--dark-soft);
}

.icon-text p {
  color: var(--dark-soft);
}

.floating-element {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.float-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(140, 210, 88, 0.1) 0%, transparent 70%);
  top: -80px;
  right: -100px;
  animation: float-slow 8s ease-in-out infinite;
}

.float-2 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 78, 160, 0.15) 0%, transparent 70%);
  bottom: -50px;
  left: -60px;
  animation: float-slow 10s ease-in-out infinite reverse;
}

@keyframes float-slow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -20px); }
}

/* ============================================
   ABOUT SECTION (Quienes Somos)
   ============================================ */
.about {
  padding: 120px 0;
  background-color: var(--white);
  position: relative;
}

.about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px; 
  width: 90%; 
}

.about-visual {
  position: relative;
}

.about-image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.about-image-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
}

.service-card-image img,
.large-card-image img,
.small-card-image img,
.top-card-image img,
.featured-card-image img,
.hero-visual-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
}

.service-card-image,
.large-card-image,
.small-card-image,
.top-card-image,
.featured-card-image {
  overflow: hidden;
}

.about-image-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(140, 210, 88, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
}

.about-image-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
}

.about-image-content .big-number {
  font-size: 5rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  opacity: 0.15;
  position: absolute;
  top: 20px;
  right: 30px;
}

.about-image-content svg {
  width: 80px;
  height: 80px;
  color: var(--green);
  margin-bottom: 20px;
}

.about-image-content h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.about-image-content p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  max-width: 240px;
}

.about-accent-card {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background-color: var(--green);
  padding: 20px 28px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.about-accent-card h4 {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--dark);
  line-height: 1;
}

.about-accent-card p {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dark);
  opacity: 0.7;
  margin-top: 2px;
}

.about-content h2 {
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.about-content > p {
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.about-feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.about-feature-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 10px;
  background-color: rgba(0, 78, 160, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-feature-icon svg {
  width: 20px;
  height: 20px;
  color: var(--blue);
}

.about-feature-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

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

/* ============================================
   OBJECTIVE SECTION
   ============================================ */
.objective {
  padding: 120px 0;
  background-color: var(--gray-light);
  position: relative;
  overflow: hidden;
}

.objective::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-medium), transparent);
}

.objective-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.objective-header h2 {
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.objective-header p {
  font-size: 1.05rem;
  color: #000000;
}

.objective-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.objective-card {
  position: relative;
  padding: 40px 32px;
  background-color: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-medium);
  transition: all var(--transition);
  overflow: hidden;
}

.objective-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  opacity: 0;
  transition: opacity var(--transition);
}

.objective-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.objective-card:hover::before {
  opacity: 1;
}

.objective-card .card-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--gray-medium);
  line-height: 1;
  margin-bottom: 20px;
  transition: color var(--transition);
}

.objective-card:hover .card-number {
  color: rgba(0, 78, 160, 0.12);
}

.objective-card .card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all var(--transition);
}

.objective-card .card-icon.blue {
  background-color: rgba(0, 78, 160, 0.08);
}

.objective-card .card-icon.green {
  background-color: rgba(140, 210, 88, 0.12);
}

.objective-card:hover .card-icon.blue {
  background-color: rgba(0, 78, 160, 0.15);
}

.objective-card:hover .card-icon.green {
  background-color: rgba(140, 210, 88, 0.2);
}

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

.objective-card .card-icon.blue svg {
  color: var(--blue);
}

.objective-card .card-icon.green svg {
  color: var(--green-dark);
}

.objective-card h3 {
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.objective-card p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #000000;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
  padding: 120px 0;
  background-color: var(--white);
  position: relative;
}

.services-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 64px;
}

.services-header-text {
  max-width: 560px;
}

.services-header h2 {
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.services-header p {
  font-size: 1.05rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.service-card {
  position: relative;
  padding: 40px 32px;
  background-color: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-medium);
  transition: all var(--transition);
  cursor: default;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transform: scaleX(0);
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-card .service-icon {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all var(--transition);
}

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

.service-card:nth-child(odd) .service-icon {
  background-color: rgba(0, 78, 160, 0.08);
}

.service-card:nth-child(odd) .service-icon svg {
  color: var(--blue);
}

.service-card:nth-child(even) .service-icon {
  background-color: rgba(140, 210, 88, 0.12);
}

.service-card:nth-child(even) .service-icon svg {
  color: var(--green-dark);
}

.service-card:hover:nth-child(odd) .service-icon {
  background-color: var(--blue);
}

.service-card:hover:nth-child(odd) .service-icon svg {
  color: var(--white);
}

.service-card:hover:nth-child(even) .service-icon {
  background-color: var(--green);
}

.service-card:hover:nth-child(even) .service-icon svg {
  color: var(--dark);
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.service-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-card .service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--transition);
}

.service-card:hover .service-link {
  opacity: 1;
  transform: translateY(0);
}

.service-card .service-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.service-card .service-link:hover svg {
  transform: translateX(4px);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); 
  gap: 28px;
}

.service-card.card-wide {
  grid-column: span 4; 
  display: flex;       
  flex-direction: row;
  align-items: center;
  padding: 0;    
}     

.service-card.card-wide .service-card-image {
  flex: 0 0 30%;      
  height: 100%;
  min-height: 300px;
}

.service-card.card-wide .service-card-content {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr); 
  }
  
  .service-card.card-wide {
    grid-column: span 2; 
  }
}

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

  .service-card.card-wide {
    grid-column: span 1;
    flex-direction: column;
  }

  .service-card.card-wide .service-card-image {
    width: 100%;
    height: 100px;
  }
  
  .services-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* ============================================
   STATS BANNER
   ============================================ */
.stats-banner {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--dark) 0%, var(--blue-dark) 100%);
  position: relative;
  overflow: hidden;
}

.stats-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 50%, rgba(140, 210, 88, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 90% 50%, rgba(0, 78, 160, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: 24px;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20%;
  right: 0;
  height: 60%;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.stat-item h3 {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item h3 .stat-suffix {
  color: var(--green);
}

.stat-item p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

@media (max-width: 768px) {
  .stats-banner {
    padding: 60px 0;
  }
  .stats-grid {
    gap: 24px;
  }
  .stat-item h3 {
    font-size: 2.2rem;
  }
  .stat-item p {
    font-size: 0.85rem;
  }
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
  padding: 120px 0;
  background-color: var(--gray-light);
  position: relative;
}

.cta-box {
  position: relative;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  border-radius: 24px;
  padding: 80px 64px;
  overflow: hidden;
  text-align: center;
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(140, 210, 88, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.cta-box .cta-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
}

.cta-box h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  margin-bottom: 36px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 80px 0 0;
  background-color: var(--dark);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--white);
}

.footer-brand .footer-logo .logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-brand .footer-logo .logo-icon svg {
  width: 18px;
  height: 18px;
  color: var(--dark);
}

.footer-brand > p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  max-width: 320px;
  margin-bottom: 24px;
  line-height: 1.7;
}

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

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-social a:hover {
  background-color: var(--green);
}

.footer-social a:hover svg {
  color: var(--dark);
}

.footer-column h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 24px;
}

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

.footer-column a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition);
}

.footer-column a:hover {
  color: var(--green);
  padding-left: 4px;
}

.footer-bottom {
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
}

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

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.stagger-children .reveal:nth-child(1) { transition-delay: 0s; }
.stagger-children .reveal:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .reveal:nth-child(3) { transition-delay: 0.2s; }
.stagger-children .reveal:nth-child(4) { transition-delay: 0.3s; }
.stagger-children .reveal:nth-child(5) { transition-delay: 0.4s; }
.stagger-children .reveal:nth-child(6) { transition-delay: 0.5s; }

/* ============================================
   MOBILE MENU OVERLAY
   ============================================ */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 42, 0.97);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  transition: color var(--transition);
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-description {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .about .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

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

  .services-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

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

  .stat-item:not(:last-child)::after {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .navbar-links,
  .navbar-cta {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  .hero {
    min-height: 90vh;
  }

  .hero .container {
    padding-top: 120px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

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

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

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

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cta-box {
    padding: 48px 28px;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .footer-bottom-links {
    justify-content: center;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .about-accent-card {
    right: 16px;
    bottom: -16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .service-card,
  .objective-card {
    padding: 28px 24px;
  }
}

/* ========================= Codigo 2 =============================================================================*/
/*===================================
| 1. VARIABLES CSS                  |    
| 2. RESET Y PLANTILLA BASE         |
| 3. SECCIONES                      |
| 4. HEADER & NAVIGATION            | 
| 5. HERO SECCIÓN                   |  
| 6. ABOUT SECCIÓN                  |
| 7. MISSION, VISION, VALORES       |
| 8. SECCIÓN DE SERVICIOS           |
| 9. LARGE CARDS                    |
| 10. SMALL CARDS                   |
====================================*/


/* ===== 1. VARIABLES CSS ===== */
:root {
  --color-primary: var(--blue);
  --color-primary-dark: var(--blue-dark);
  --color-primary-light: var(--blue-light);
  --color-secondary: var(--green);
  --color-accent: var(--gray-light);
  --color-background: var(--white);
  --color-background-alt: var(--gray-light);
  --color-text: var(--text-primary);
  --color-text-light: var(--text-secondary);
  --color-text-muted: var(--text-light);
  --color-border: var(--gray-medium);
  --color-white: var(--white);
  --color-black: var(--dark);

  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Inter', sans-serif;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.12);

  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== SECCIONES ===== */
.section {
  padding: 5rem 0;
}

.section-alt {
  background-color: var(--color-background-alt);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-light);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

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

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

/* ===== HEADER & NAVIGATION ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
}

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

.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  color: var(--color-text);
  position: relative;
}

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

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

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

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-item {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--color-text);
}

.nav-dropdown-item:hover {
  background-color: var(--color-accent);
  color: var(--color-primary);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--color-text);
  transition: var(--transition);
}

/* ===== HERO SECCIÓN ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></svg>');
  background-size: 100px 100px;
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  color: var(--color-white);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: 3.5rem;
  color: var(--color-white);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-description {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

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

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

.hero-btn-secondary {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.hero-btn-secondary:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

.hero-image {
  position: relative;
}

.hero-image img {
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
}

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

.hero-stat-number {
  font-size: 2.5rem;
  font-weight: 700;
}

.hero-stat-label {
  font-size: 0.875rem;
  opacity: 0.8;
}

/* ===== ABOUT SECCIÓN ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
}

.about-image-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.about-image-badge-number {
  font-size: 2rem;
  font-weight: 700;
  display: block;
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.about-content p {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

/* ===== MISSION, VISION, VALORES ===== */
.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.mvv-card {
  background-color: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--color-border);
}

.mvv-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.mvv-icon {
  width: 60px;
  height: 60px;
  background-color: var(--color-accent);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}

.mvv-icon svg {
  width: 30px;
  height: 30px;
}

.mvv-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.mvv-card p {
  color: var(--color-text-light);
}

/* ===== SECCIÓN DE SERVICIOS ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.service-card {
  position: relative;
  background-color: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--color-border);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.service-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

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

.service-card:hover .service-card-image img {
  transform: scale(1.05);
}

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.service-card-content {
  padding: 0.5rem;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary);
  font-weight: 600;
}

.service-card-link:hover {
  gap: 0.75rem;
}

/* ===== LARGE CARDS ===== */
.large-card {
  background-color: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--color-border);
  flex: 1;            
  min-width: 300px;   
  display: flex;
}

.large-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.large-card-image {
  height: 250px;
  overflow: hidden;
}

.large-card-image img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  transition: var(--transition);
}

.large-card:hover .large-card-image img {
  transform: scale(1.05);
}

.large-card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column; 
  width: 100%;
  background: #fff;       
  padding: 20px;
  border-radius: 10px;    
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.large-card-header {
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #6fb83e 80%);
  border-radius: var(--radius-md);
  flex-direction: column; 
  padding: 10px;
}

.large-card h3 {
  color:white;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
  font-size: 1.25rem;
}

.large-card h4 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
  font-size: 1.25rem;
  margin-bottom: 20px;
  margin-top:20px;
}

.large-card p {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.large-cards-grid {
  display: flex;
  flex-wrap: wrap;    
  gap: 20px;          
  align-items: stretch; 
}

.large-card-content .btn {
  margin-top: auto; 
  align-self: flex-start; 
}

.training-section {
    padding: 100px 0;
    background-color: #ffffff;
    color: #1a1a1a;
    overflow: hidden;
}

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

.image-wrapper {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.1);
}

.image-wrapper img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: #8cd258;
    color: white;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(140, 210, 88, 0.4);
}

.experience-badge span {
    font-size: 2rem;
    font-weight: 800;
    display: block;
    line-height: 1;
}

.main-title {
    font-size: 2.8rem;
    line-height: 1.1;
    margin-bottom: 10px;
    color: #003366; 
}

.main-title span {
    color: #8cd258; 
    display: block;
}

.subtitle {
    font-size: 1.2rem;
    font-style: italic;
    color: #666;
    margin-bottom: 25px;
}

.description-text p {
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 1.05rem;
    color: #444;
}

.tailored-box {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f4f9f0;
    padding: 20px;
    border-left: 5px solid #8cd258;
    border-radius: 0 15px 15px 0;
    margin: 30px 0;
}

.box-icon {
    width: 40px;
    color: #8cd258;
}

.tailored-box p {
    margin: 0;
    font-weight: 700;
    color: #003366;
}

.btn-primary {
    display: inline-block;
    background: #003366;
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #8cd258;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(140, 210, 88, 0.3);
}

@media (max-width: 992px) {
    .training-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .tailored-box {
        justify-content: center;
    }
}

/* ===== SMALL CARDS ===== */
.small-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.small-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--color-border);
}

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

.small-card-image {
  height: 150px;
  overflow: hidden;
}

.small-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.small-card:hover .small-card-image img {
  transform: scale(1.05);
}

.small-card-content {
  padding: 1rem;
}

.small-card h4 {
  font-size: 1rem;
  text-align: center;
}

.esr-invitation-container {
  margin-top: 30px;
  padding-top: 20px;
  font-family: sans-serif;
  color: #334155;
}

.divider {
  border: 0;
  height: 1px;
  background: #e2e8f0;
  margin-bottom: 30px;
}

.invitation-title {
  color: #1e293b;
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.invitation-intro {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 40px;
  color: #64748b;
}

.esr-grid {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.esr-column {
  flex: 1;
  min-width: 250px; 
  text-align: left;
}

.esr-column h4 {
  color: #1e293b;
  font-size: 1.2rem;
  margin: 15px 0 10px 0;
}

.esr-column p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #475569;
}

.esr-icon-placeholder {
  width: 100%;
  height: 150px;
  background-color: #f1f5f900;
  border-radius: 15px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.icon-micro { background-image: url('images/1.png'); }
.icon-pyme { background-image: url('images/2.png'); }
.icon-grande { background-image: url('images/3.png'); }

/* Ajuste para pantallas pequeñas */
@media (max-width: 768px) {
  .esr-grid {
    flex-direction: column;
  }
}

/* ===== HORIZONTAL CARD ===== */
.horizontal-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background-color: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.horizontal-card-content {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.horizontal-card h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.horizontal-card p {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.horizontal-card-image {
  height: 100%;
  min-height: 300px;
}

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

.featured-card {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  border-radius: var(--radius-2xl);
  padding: 4rem;
  color: var(--color-white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin: 3rem 0;
}

.featured-card h3 {
  font-size: 2.5rem;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.featured-card p {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

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

.featured-card .btn:hover {
  background-color: var(--color-accent);
}

.featured-card-image img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

/* ===== SECCION FAQ ===== */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-category {
  margin-bottom: 2rem;
}

.faq-category-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.faq-item {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-icon {
  width: 24px;
  height: 24px;
  transition: var(--transition);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 1.5rem 1.25rem;
  max-height: 500px;
}

.faq-answer p {
  color: var(--color-text-light);
}

.faq-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border-bottom: 2px solid var(--color-primary);
  margin-bottom: 1rem;
}

.faq-category-header .faq-category-title {
  border-bottom: none; 
  margin-bottom: 0;
}

.faq-category-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
  padding-top: 5px; 
}

.faq-category.section-active .faq-category-content {
  max-height: 2000px; 
}

.faq-category.section-active .category-icon {
  transform: rotate(180deg);
}

.faq-category .faq-item {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 360ms ease, transform 360ms ease;
  transition-delay: calc(var(--i, 0) * 80ms);
}

.faq-category.section-active .faq-item {
  opacity: 1;
  transform: translateY(0);
}

.faq-category.section-active .faq-category-content {
  max-height: 2000px;
  transition: max-height 520ms cubic-bezier(.2,.9,.2,1);
}

/* ===== SECCIÓN DE CLIENTES ===== */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem;
  align-items: center;
}

/* ===== NOTIFICATION ===== */
.notify {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #10b981;
  color: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 2000;
  min-width: 240px;
}

.notify.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.notify.error {
  background: #ef4444;
}

.notify .notify-icon {
  font-weight: 700;
  font-size: 1.1rem;
  background: rgba(255,255,255,0.12);
  padding: 6px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.notify .notify-text {
  flex: 1;
  font-weight: 600;
}

.notify .notify-close {
  background: transparent;
  border: none;
  color: inherit;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

@media (max-width: 600px) {
  .notify {
    left: 50%;
    right: auto;
    transform: translate(-50%, -10px);
  }
}

.client-logo {
  padding: 1.5rem;
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border: 1px solid var(--color-border);
}

.client-logo:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.client-logo img {
  max-height: 60px;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition);
}

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

/* ============================================
CONTACTO PROFESIONAL MODERNO
============================================ */

.contact {
    padding: 90px 0;
    background: linear-gradient(180deg,#f8fafc,#eef2f7);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 70px;
    align-items: start;
}

.contact-info {
    padding-top: 10px;
}

.section-title {
    font-size: 2.4rem;
    margin-bottom: 10px;
}

.section-subtitle {
    color: #64748b;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-item p{
    font-size: 15px;
    color: #334155;
    font-weight: 500;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: #2563eb;
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-form-wrapper {
    background: white;
    padding: 45px;
    border-radius: 20px;
    box-shadow: 0 25px 40px rgba(0,0,0,0.08);
    transition: .3s;
}

.contact-form-wrapper:hover {
    transform: translateY(-5px);
}

.inputbox {
    position: relative;
    margin-bottom: 25px;
}

.inputbox input,
.inputbox textarea {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    outline: none;
    font-size: 15px;
    transition: .3s;
}

.inputbox input:focus,
.inputbox textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37,99,235,.15);
}

.inputbox span {
    position: absolute;
    top: -10px;
    left: 12px;
    background: white;
    padding: 0 5px;
    font-size: 12px;
    color: #64748b;
}

.inputbox textarea {
    min-height: 140px;
    resize: vertical;
}

.buttonform {
    width: 100%;
    background: linear-gradient(90deg,#2563eb,#1d4ed8);
    color: white;
    padding: 14px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
}

.buttonform:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37,99,235,.3);
}

@media(max-width:900px){
    .contact-grid{
        grid-template-columns:1fr;
    }
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-form-wrapper {
        padding: 25px;
    }
}

.footer {
  padding: 80px 0 0;
  background-color: var(--dark);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--white);
}

.footer .logo .logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.footer .logo .logo-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.footer .logo .logo-icon svg {
  width: 18px;
  height: 18px;
  color: var(--dark);
}

.footer-brand > p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  max-width: 320px;
  margin-bottom: 24px;
  line-height: 1.7;
}

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

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.footer-social a:hover {
  background-color: var(--green);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-social a:hover svg {
  color: var(--dark);
}

/* ===== PAGE HERO ===== */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--blue-dark) 50%, var(--blue) 100%);
  padding: 8rem 0 4rem;
  text-align: center;
  color: var(--color-white);
}

.page-hero h1 {
  font-size: 3rem;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  color: var(--color-white);
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.breadcrumb a {
  opacity: 0.8;
}

.breadcrumb a:hover {
  opacity: 1;
}

.breadcrumb span {
  opacity: 0.6;
}

/* ===== TOP CARD ===== */
.top-card {
  background-color: var(--color-white);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 3rem;
}

.top-card-image {
  height: 400px;
  overflow: hidden;
}

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

.top-card-content {
  padding: 2.5rem;
  text-align: center;
}

.top-card h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.top-card p {
  color: var(--color-text-light);
  max-width: 700px;
  margin: 0 auto;
}


.three-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.six-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content {
    order: 1;
  }
  
  .hero-image {
    order: 0;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .hero-description {
    margin: 0 auto 2rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .mvv-grid {
    grid-template-columns: 1fr;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .large-cards-grid {
    grid-template-columns: 1fr;
  }
  
  .small-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .horizontal-card {
    grid-template-columns: 1fr;
  }
  
  .featured-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  
  .three-cards-grid {
    grid-template-columns: 1fr;
  }
  
  .six-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }
  
  .nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-list {
    flex-direction: column;
    width: 100%;
  }
  
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 0.5rem 0 0 1rem;
    display: none;
  }
  
  .nav-dropdown.active .nav-dropdown-menu {
    display: block;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .small-cards-grid {
    grid-template-columns: 1fr;
  }
  
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
  }
  
  .six-cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}


/*================ WHATSAPP WIDGET STYLE =============*/
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  text-decoration: none;
  z-index: 9999;
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.02);
}

.whatsapp-speech-bubble {
  background: white;
  color: #333;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 15px;
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  position: relative;
  font-weight: 500;
}

.whatsapp-speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 30px;
  border-width: 8px 8px 0;
  border-style: solid;
  border-color: white transparent transparent;
}

.whatsapp-card-body {
  background: #25d366;
  display: flex;
  align-items: center;
  padding: 10px 20px 10px 10px;
  border-radius: 15px 50px 15px 15px;
  min-width: 280px;
  position: relative;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

.whatsapp-icon-circle {
  width: 55px;
  height: 55px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  position: relative;
  flex-shrink: 0;
}

.whatsapp-icon-circle svg {
  width: 32px;
  height: 32px;
  fill: #25d366;
  z-index: 2;
}

.whatsapp-info {
  display: flex;
  flex-direction: column;
  color: white;
}

.whatsapp-main-text {
  font-size: 14px;
  line-height: 1.2;
}

.whatsapp-sub-text {
  font-size: 12px;
  opacity: 0.9;
  margin: 2px 0 5px 0;
}

.whatsapp-status-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  width: fit-content;
  border: 1px solid rgba(255,255,255,0.3);
}

.whatsapp-notif-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ff3b30;
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  border: 2px solid white;
}

.whatsapp-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid white;
  border-radius: 50%;
  animation: whatsappPulse 2s infinite;
}

@keyframes whatsappPulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

@media (max-width: 480px) {
  .whatsapp-card-body {
    min-width: auto;
    padding: 8px 15px 8px 8px;
  }
  .whatsapp-main-text { font-size: 13px; }
  .whatsapp-speech-bubble { display: none; } 
}

/*=================certificación============================*/
.impacto-stats {
  padding: 80px 0;
  background: #fff;
  font-family: sans-serif;
}

.label-line {
  color: #004ea0;
  font-weight: bold;
  letter-spacing: 1px;
  position: relative;
  padding-left: 35px;
}

.label-line::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 25px;
  height: 2px;
  background: #8cd258;
}

.graph-wrapper {
  position: relative;
  height: 400px; 
  margin: 50px auto;
  max-width: 900px;
}

.graph-grid-bg {
  position: absolute;
  top: 0;
  left: 50px; 
  right: 0;
  bottom: 40px; 
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.grid-line {
  width: 100%;
  border-top: 1px solid #e2e8f0;
  position: relative;
}

.grid-line::before {
  content: attr(data-value);
  position: absolute;
  left: -45px;
  top: -10px;
  color: #64748b;
  font-size: 14px;
}

.bars-container {
  position: absolute;
  top: 0;
  left: 50px;
  right: 0;
  bottom: 40px;
  display: flex;
  justify-content: space-around;
  align-items: flex-end; 
  z-index: 2;
}

.bar-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  justify-content: flex-end;
}

.bar-actual {
  width: 70%;
  max-width: 80px;
  position: relative;
  border-radius: 4px 4px 0 0;
  transition: all 0.3s ease;
  cursor: pointer;
}

.bar-dark { background: #0a2339; }
.bar-medium { background: #235275; }
.bar-light { background: #4a8bbd; }
.bar-accent { background: #3498db; }

.bar-actual:hover {
  filter: brightness(1.2);
  transform: scaleX(1.05);
}

.bar-actual::after {
  content: attr(data-tooltip);
  position: absolute;
  top: -70px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: pre; 
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 10;
  text-align: center;
}

.bar-actual:hover::after {
  opacity: 1;
  visibility: visible;
}

.bar-number {
  position: absolute;
  top: -25px;
  width: 100%;
  text-align: center;
  font-weight: bold;
  color: #333;
}

.bar-label {
  position: absolute;
  bottom: -30px;
  font-weight: 600;
  color: #1e293b;
}

/*================SEGURIDAD INDUSTRIAL=============*/
.normas-full-section {
    padding: 60px 0;
    background-color: #f4f7f9;
}

.normas-card-large {
    background: #ffffff;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.08);
    display: grid;
    grid-template-columns: 1fr 1.5fr; 
    overflow: hidden;
    border: 1px solid #e1e8ed;
    min-height: 500px; 
}

.normas-info {
    padding: 50px;
    background: linear-gradient(135deg, #003366 0%, #001a33 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.normas-info h2 {
    color: white;
}

.normas-grid-interactive {
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: min-content; 
    gap: 15px;
    background: #fff;
    position: relative;
    align-content: start; 
}

.norma-item {
    cursor: pointer;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 5px solid #8cd258;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: auto;
    grid-column: span 1;
    grid-row: span 1;
}

/* --- ESTILO CUANDO ESTÁ EXPANDIDO --- */
.norma-item.expanded {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    grid-column: span 2; 
    grid-row: span 2; 
}

.norma-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.norma-header p{
  color:black;
}

.norma-detalle {
    max-height: 0; 
    opacity: 0;
    padding: 0 20px;
    transition: all 0.3s ease;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

.norma-detalle p {
    margin: 15px 0;
    color: black;
}
.norma-item.expanded .norma-detalle {
    max-height: 200px; 
    opacity: 1;
    padding-bottom: 20px;
}

.norma-item.expanded .icon-toggle {
    transform: rotate(45deg);
    color: #ff4d4d;
}

.icon-toggle {
    font-weight: bold;
    color: #8cd258;
    transition: 0.3s;
}

.norma-code {
    font-weight: 800;
    color: #003366;
}

.btn-whatsapp-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #8cd258;
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 50px;
    align-self: flex-start;
    font-weight: bold;
    transition: 0.3s;
}

@media (max-width: 992px) {
    .normas-card-large {
        grid-template-columns: 1fr;
    }
    .normas-grid-interactive {
        grid-template-columns: 1fr;
    }
    .norma-item.expanded {
        grid-column: span 1; 
        grid-row: span 1;
    }
}

/*=================ESTADÍSTICAS FLOTANTES============================*/

.floating-stats-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #003366 0%, #001a33 100%);
    color: white;
    overflow: hidden;
}

.floating-keywords {
    margin-bottom: 20px;
}

.keyword-item {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: #8cd258; 
    text-transform: uppercase;
}

.keyword-separator {
    margin: 0 15px;
    color: rgba(255,255,255,0.3);
}

.circles-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 50px;
    position: relative;
}

.stat-circle {
    width: 220px;
    height: 220px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    transition: all 0.5s ease;
    animation: floating 4s ease-in-out infinite;
}

.stats-header-main h2{
  color:white;
}

.c2 { animation-delay: 1s; background: rgba(140, 210, 88, 0.15); }
.c3 { animation-delay: 2s; }
.c4 { animation-delay: 0.5s; background: rgba(140, 210, 88, 0.15); }

.circle-content strong {
    display: block;
    font-size: 2rem;
    color: #8cd258;
    margin-bottom: 5px;
}

.circle-content p {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.3;
}

.stat-circle:hover {
    transform: scale(1.1) translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
    border-color: #8cd258;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@media (max-width: 768px) {
    .stat-circle {
        width: 180px;
        height: 180px;
    }
}

.esr-v2-wrapper {
    padding: 80px 0;
    background-color: #f8fafc;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

.esr-v2-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.esr-v2-hero-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 60px;
}

.esr-v2-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.esr-v2-tag {
    color: #8cd258;
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 0.8rem;
}

.esr-v2-hero-text h3 {
    font-size: 2.5rem;
    color: #003366;
    margin: 10px 0 20px;
}

.esr-v2-hero-text p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.esr-v2-hero-img img {
    width: 100%;
    max-width: 250px;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
}

.esr-v2-invitation {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.esr-v2-divider {
    width: 60px;
    height: 4px;
    background: #8cd258;
    margin: 0 auto 20px;
}

.esr-v2-title {
    font-size: 2.2rem;
    color: #003366;
    margin-bottom: 20px;
}

.esr-v2-title span {
    color: #8cd258;
}

.esr-v2-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.esr-v2-cat-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.esr-v2-cat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.esr-v2-featured {
    border: 2px solid #8cd258;
    background: #fdfdfd;
}

.esr-v2-cat-card h4 {
    color: #003366;
    font-size: 1.2rem;
    margin: 20px 0 15px;
}

.esr-v2-cat-card p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
}

.esr-v2-cat-icon {
    width: 60px;
    height: 60px;
    background: #f1f5f9;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-micro::before { content: '🏢'; font-size: 1.5rem; }
.icon-pyme::before { content: '🏗️'; font-size: 1.5rem; }
.icon-grande::before { content: '🌆'; font-size: 1.5rem; }

@media (max-width: 768px) {
    .esr-v2-hero-grid { grid-template-columns: 1fr; text-align: center; }
    .esr-v2-hero-img { order: -1; }
}