﻿/* --- VARIABLES LOCALES --- */
:root {
  --accent-cyan: #1AA8E1;
  --dark-bg: #060b13;
  --dark-card: #111827;
  --light-bg: #f8fafc;
  --text-gray: #94a3b8;
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-esin-premium {
  font-family: 'Poppins', sans-serif;
  background-color: var(--dark-bg);
  color: #fff;
}

/* --- HERO SECTION --- */
.hero-clean {
  position: relative;
  /* move hero content further up */
  padding: 30px 0 120px;
  overflow: hidden;
  min-height: auto; /* flexible for mobile */
  display: flex;
  align-items: flex-start; /* start instead of center */
}

/* Desktop: restore min-height and proper layout for large screens */
@media (min-width: 992px) {
  .hero-clean {
    min-height: 70vh;
  }
  
  .hero-clean.section-intro .row {
    min-height: 80vh !important;
    align-items: center !important;
  }
}
/* ensure homepage hero always uses centered, cover background
   regardless of theme – no zoom/offset when toggling modes */
.hero-clean.section-intro .intro-bg {
    background-position: center 20% !important; /* slightly higher framing for better visibility */
    background-size: cover !important;
}
.hero-content-wrapper {
  margin-top: 30px;
}

.hero-overlay-refined {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  /* simpler dark mask; same opacity in both modes */
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.hero-content-wrapper { position: relative; z-index: 2; }

.esin-badge-minimal {
  display: inline-flex;
  align-items: center;
  background: rgba(26, 168, 225, 0.1);
  padding: 6px 14px;
  border-radius: 50px;
  color: var(--accent-cyan);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 20px;
  border: 1px solid rgba(26, 168, 225, 0.2);
}

.esin-badge-minimal .dot {
  width: 6px; height: 6px; background: var(--accent-cyan);
  border-radius: 50%; margin-right: 10px;
  box-shadow: 0 0 10px var(--accent-cyan);
}

.hero-title-main {
  font-size: clamp(20px, 3.5vw, 32px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.text-accent { color: var(--accent-cyan); }

.hero-subtitle-clean {
  font-size: 13px;
  color: var(--text-gray);
  max-width: 500px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.btn-premium-primary {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #1591c2 100%);
  color: #fff;
  border: none;
  padding: 18px 40px;
  border-radius: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  box-shadow: 0 6px 20px rgba(26, 168, 225, 0.25);
  will-change: transform, box-shadow;
}

.btn-premium-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #1591c2 0%, #0d7aa8 100%);
  box-shadow: 0 10px 28px rgba(26, 168, 225, 0.35);
}

/* --- SERVICE GRID --- */
.modern-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  z-index: 2;
  position: relative;
}

/* Estilo para las tarjetas de servicios (PHP generated) */
.modern-services-grid .tarjeta {
  /* Transparent wrapper - no styling */
}

.modern-services-grid .card {
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(26, 168, 225, 0.25) !important;
  border-radius: 18px !important;
  overflow: hidden;
  transition: var(--transition-smooth);
  height: 230px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
}

.modern-services-grid .tarjeta img, .modern-services-grid .card img {
  height: 120px !important;
  object-fit: cover;
  width: 100%;
  flex-shrink: 0;
}

/* Reduce title size in service cards */
.modern-services-grid .tarjeta h4, .modern-services-grid .card h4 {
  font-size: 15px !important;
  font-weight: 700 !important;
  margin: 8px 12px 6px 12px !important;
  padding: 0 !important;
  line-height: 1.2 !important;
}

.modern-services-grid .tarjeta a, .modern-services-grid .card a {
  font-size: 13px !important;
  margin-top: auto !important;
  margin-bottom: 12px !important;
  margin-left: 12px !important;
  display: inline-block !important;
}

.modern-services-grid .card > div {
  width: 100% !important;
  text-align: left !important;
}

.modern-services-grid .card:hover {
  background: rgba(26, 168, 225, 0.12) !important;
  border-color: var(--accent-cyan) !important;
  transform: translateY(-8px);
  box-shadow: 0 15px 50px rgba(26, 168, 225, 0.3);
}

/* --- SECCIÓN BENEFICIOS --- */
.section-benefits-minimal {
  padding: 80px 0 20px 0; /* aún menos espacio abajo */
  background: linear-gradient(135deg, #0a0e17 0%, #111827 100%);
  position: relative;
  overflow: hidden;
}

.section-benefits-minimal::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(26, 168, 225, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.header-minimal {
  position: relative;
  z-index: 2;
  margin-bottom: 60px;
}

.section-tag {
  color: var(--accent-cyan);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 15px;
}

.section-title-clean {
  font-size: 48px;
  font-weight: 800;
  margin: 0;
  color: #fff;
  background: linear-gradient(135deg, #fff 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-line {
  width: 60px; height: 5px; background: var(--accent-cyan);
  margin: 25px auto 0; border-radius: 3px;
  box-shadow: 0 0 20px rgba(26, 168, 225, 0.5);
}

.benefits-grid-refined {
  /* stacked list of horizontal benefit bars */
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 2;
  align-content: start; /* ensure grid starts at same vertical position */
  margin-top: -12px; /* slight lift so cards start just under title */
}

.benefits-ctas {
  display: flex;
  align-items: center;
  gap: 12px;
}
.benefits-ctas .btn {
  vertical-align: middle;
}

/* Section intro / left column */
.benefits-intro {
  color: rgba(255,255,255,0.95);
  font-size: 14px;    /* slightly smaller for a more compact appearance */
  line-height: 1.5;
}

/* shrink the area containing the CTAs to make buttons more compact */
.benefits-ctas .btn {
  padding: 10px 24px;  /* reduced from 18px 40px in .btn-primary/outline rules */
  font-size: 13px;
}
.benefits-highlights li { margin-bottom: 10px; color: rgba(255,255,255,0.85); }

/* secondary outline CTA */
.btn-secondary-outline {
  display: inline-block;
  padding: 18px 40px; /* match primary height */
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  background: transparent;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition-smooth);
  vertical-align: middle;
}
.btn-secondary-outline:hover { background: rgba(255,255,255,0.04); border-color: rgba(26,168,225,0.3); }

.trust-logos img { opacity: 0.9; filter: saturate(0.9); display: inline-block; margin-right: 12px; width: auto; height: 38px; min-width: 80px; }

.trust-logos { margin-bottom: 0; }

.section-benefits-detailed { background: transparent; color: rgba(255,255,255,0.95); position: relative; }
.section-benefits-detailed:not(.section-parallax) { overflow: hidden; }
.section-benefits-detailed::before {
  content: '';
  position: absolute;
  top: 10%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(26,168,225,0.08) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
}
.section-benefits-detailed h3 { font-size: 28px; font-weight: 900; letter-spacing: 0.5px; margin-bottom: 10px; position: relative; z-index: 2; }
.section-benefits-detailed h3::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent-cyan);
  margin: 12px auto 20px;
  border-radius: 2px;
}
.section-benefits-detailed h4 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }

/* card style for detailed items */
.section-benefits-detailed .detail-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(26, 168, 225, 0.1);
  border-radius: 12px;
  padding: 24px 18px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.section-benefits-detailed .detail-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(26, 168, 225, 0.25);
}
.section-benefits-detailed .detail-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(26, 168, 225, 0.15) 0%, rgba(26, 168, 225, 0.05) 100%);
  border-radius: 50%;
}
.section-benefits-detailed .detail-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* stats cards */
.section-benefits-detailed .stat-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(26,168,225,0.08);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.section-benefits-detailed .stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(26,168,225,0.2);
}
.section-benefits-detailed .stat-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.section-benefits-detailed .stat-icon img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
}
.section-benefits-detailed .stat-number {
  font-size: 24px;
  font-weight: 900;
  color: var(--accent-cyan);
  margin-bottom: 4px;
}
.section-benefits-detailed .stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
}

.stats-row { margin-top: 20px; }
@media (max-width: 767px) {
  .stats-row { margin-top: 15px; }
}

/* monitoring types row */
.monitoring-types-row { margin-top: 20px; gap: 20px; }

/* display three items per row on tablet sizes (bootstrap md) */
@media (max-width: 991px) and (min-width: 576px) {
  .monitoring-types-row > [class*="col-"] {
    flex: 0 0 33.3333% !important;
    max-width: 33.3333% !important;
  }
}
.monitoring-type {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(26,168,225,0.12);
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}
.monitoring-type:hover {
  transform: translateY(-4px);
  background: rgba(26,168,225,0.15);
  box-shadow: 0 6px 20px rgba(26,168,225,0.2);
}
.monitor-icon {
  font-size: 36px;
  margin-bottom: 10px;
  display: block;
}
.monitor-label {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.3px;
  line-height: 1.3;
}

/* Home blog cards in grid (original horizontal layout) */
.home-blog-grid {
  /* use grid to avoid bootstrap column conflicts */
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin: 0; /* clear bootstrap row negative margins */
}

/* Vertical stacked layout for blog cards in sidebar/right column */
.home-blog-grid-vertical {
  display: flex !important;
  flex-direction: column !important;
  gap: 20px;
  margin: 0;
}

.home-blog-grid .blog-item {
  width: 100% !important; /* each item fills its grid cell */
  box-sizing: border-box;
  padding: 0 10px;
}
.home-blog-grid > .col-lg-6 { box-sizing: border-box; padding: 0 10px; }
.home-blog-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(26,168,225,0.08);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  height: 140px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  will-change: transform, box-shadow;
}
.home-blog-card:hover { 
  transform: translateY(-4px); 
  box-shadow: 0 8px 24px rgba(26,168,225,0.1); 
}
.home-blog-card .card-img-top { flex: 0 0 140px; height: 100%; overflow: hidden; }
.home-blog-card .card-img-top img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* when cards are stacked vertically (in sidebar), adjust layout */
.home-blog-grid-vertical .home-blog-card {
  flex-direction: row;  /* keep horizontal layout */
  height: 110px !important;  /* slightly shorter for vertical layout */
}

.home-blog-grid-vertical .home-blog-card .card-img-top {
  flex: 0 0 110px;  /* square image, matches height */
  height: 100%;
}
.card-body-home { padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title-home { font-size: 18px; margin: 0; font-weight: 800; }
.card-title-home a { color: inherit; text-decoration: none; }
.card-excerpt { color: rgba(255,255,255,0.8); flex: 1; font-size: 13px; line-height:1.3; overflow: hidden; }
.card-footer-home { display:flex; align-items:center; justify-content:space-between; gap: 12px; margin-top: 4px; }
.card-date-home { font-size: 12px; color: rgba(255,255,255,0.6); }
.read-more-home { background: transparent; color: var(--accent-cyan); text-decoration: none; font-weight: 700; }
.read-more-home:hover { text-decoration: underline; }

/* Highlight animation when coming from home */
.home-blog-card.highlighted, .course-card-refined.highlighted {
  animation: highlightFlash 0.9s ease-in-out;
  border-color: var(--accent-cyan);
  box-shadow: 0 18px 40px rgba(26,168,225,0.18);
}
@keyframes highlightFlash {
  0% { transform: scale(1); }
  30% { transform: scale(1.02); }
  60% { transform: scale(0.995); }
  100% { transform: scale(1); }
}

@media (max-width: 991px) {
  .home-blog-card { height: 140px; }
}

@media (max-width: 576px) {
  .home-blog-grid .blog-item, .home-blog-grid > .col-lg-6 { flex: 0 0 100% !important; max-width: 100% !important; padding: 0; }
  .home-blog-card { flex-direction: column; height: auto; }
  .home-blog-card .card-img-top { flex: 0 0 auto; height: 180px; }
  .home-blog-card .card-img-top img { height: 100%; }
}

/* --- PARALLAX SECTION --- */
.section-parallax {
  position: relative;
  background-image: url('../../images/portada/efectoParrallax.jpg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* reduce default height so parallax section is less tall */
  min-height: 420px;     /* was 520px previously */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible !important;
}

/* further shrink on smaller screens to avoid huge vertical gap */
@media (max-width: 768px) {
  .section-parallax { min-height: 360px !important; }
}
.section-parallax .parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* cyan overlay with subtle dark fade for readability */
  background: linear-gradient(135deg, rgba(26,168,225,0.25) 0%, rgba(10,14,23,0.35) 100%);
  z-index: 1;
}
/* same cyan overlay in both themes */
html[data-theme="light"] .section-parallax .parallax-bg,
html.light-mode .section-parallax .parallax-bg {
  background: linear-gradient(135deg, rgba(26,168,225,0.25) 0%, rgba(10,14,23,0.35) 100%);
}

/* lock all text and icons inside parallax to white regardless of theme */
.section-parallax,
.section-parallax * {
  color: #ffffff !important;
  fill: #ffffff !important;
  background-color: transparent !important; /* prevent light-mode backgrounds */
  filter: none !important; /* cancel any filters injected by theme script */
}
/* ensure font-awesome icons inherit colour and cannot be recoloured by theme script */
.section-parallax .monitor-icon,
.section-parallax .monitor-icon i,
.section-parallax .monitor-icon i::before,
.section-parallax .monitor-icon svg {
  color: #ffffff !important;
  fill: #ffffff !important; /* in case of SVG */
  filter: none !important; /* cancel any filter/invert from theme */
}
/* extra specificity for light mode just in case */
html[data-theme="light"] .section-parallax .monitor-icon,
html[data-theme="light"] .section-parallax .monitor-icon i,
html[data-theme="light"] .section-parallax .monitor-icon i::before,
html[data-theme="light"] .section-parallax .monitor-icon svg {
  color: #ffffff !important;
  fill: #ffffff !important;
  filter: none !important;
}
/* fix card backgrounds inside parallax */
.section-parallax .monitoring-type {
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(26,168,225,0.12) !important;
}
.section-parallax .monitoring-type:hover {
  background: rgba(26,168,225,0.15) !important;
  box-shadow: 0 6px 20px rgba(26,168,225,0.2) !important;
}
/* also override any theme-specific rules using data-theme selectors */
html[data-theme="light"] .section-parallax,
html[data-theme="dark"] .section-parallax {
  background-image: url('../../images/portada/efectoParrallax.jpg') !important;
  background-attachment: fixed !important;
  background-size: cover !important;
  background-position: center !important;
}

.section-parallax .parallax-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* --- BLOG SECTION --- */
.section-blog-brief {
  background: linear-gradient(135deg, #0a0e17 0%, #111827 100%);
  border-top: 1px solid rgba(26,168,225,0.1);
  position: relative;
}
.section-blog-brief .title-blog {
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}
.section-blog-brief .text-muted {
  color: rgba(255,255,255,0.7);
}
.link-more {
  color: var(--accent-cyan);
  font-weight: 800;
  text-decoration: none;
  transition: opacity 0.3s;
}
.link-more:hover {
  opacity: 0.7;
}

/* styled button for "Ver todos los artículos" */
.btn-blog-view {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #1591c2 100%);
  color: #fff !important;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 3px 12px rgba(26, 168, 225, 0.25);
  cursor: pointer;
  will-change: transform, box-shadow;
}

.btn-blog-view:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(26, 168, 225, 0.3);
  color: #fff !important;
}

/* light mode: ensure button stays styled */
[data-theme="light"] .btn-blog-view,
html.light-mode .btn-blog-view {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #1591c2 100%) !important;
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(26, 168, 225, 0.3) !important;
}

[data-theme="light"] .btn-blog-view:hover,
html.light-mode .btn-blog-view:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(26, 168, 225, 0.4) !important;
}

/* text-cyan applies the cyan accent colour to any span or element */
.text-cyan {
  color: #1AA8E1 !important;
}

/* light mode: text-cyan stays bright cyan regardless of theme */
[data-theme="light"] .text-cyan,
html.light-mode .text-cyan {
  color: #1AA8E1 !important;
}
.blog-grid {
  margin-top: 30px;
  gap: 24px;
}
.blog-card-alt {
  background: rgba(255,255,255,0.02);
  border-left: 3px solid var(--accent-cyan);
  padding: 24px;
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.blog-card-alt:hover {
  transform: translateX(6px);
  box-shadow: 0 6px 20px rgba(26,168,225,0.15);
}
.blog-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  font-size: 12px;
}
.blog-category {
  background: rgba(26,168,225,0.2);
  color: var(--accent-cyan);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
}
.blog-date {
  color: rgba(255,255,255,0.5);
  font-size: 11px;
}
.blog-card-alt h4 {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px 0;
  letter-spacing: 0.2px;
}
.blog-card-alt p {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  margin: 0 0 16px 0;
  line-height: 1.6;
}
.read-more {
  color: var(--accent-cyan);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: text-decoration 0.3s;
}
.read-more::after {
  content: ' \2192';
}
.read-more:hover {
  text-decoration: underline;
}

@media (min-width: 1200px) {
  .benefits-grid-refined { grid-template-columns: repeat(3, 1fr); }
}

.benefit-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  backdrop-filter: blur(4px);
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(26, 168, 225, 0.08);
  position: relative;
  overflow: hidden;
  min-height: 64px;
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  /* scroll reveal animation state */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  will-change: opacity, transform;
}

/* Apply animation when card enters viewport */
.benefit-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.benefit-item::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0.18;
}

.benefit-item:hover {
  background: linear-gradient(135deg, rgba(26, 168, 225, 0.08) 0%, rgba(26, 168, 225, 0.04) 100%);
  border-color: var(--accent-cyan);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(26, 168, 225, 0.1);
}

.benefit-icon-box {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(26, 168, 225, 0.12) 0%, rgba(26, 168, 225, 0.04) 100%);
  border: 1px solid rgba(26, 168, 225, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 10px 0 0; /* right gap since icon now left */
  flex: 0 0 40px;
}

.benefit-item:hover .benefit-icon-box {
  background: linear-gradient(135deg, rgba(26, 168, 225, 0.3) 0%, rgba(26, 168, 225, 0.15) 100%);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 30px rgba(26, 168, 225, 0.4);
}

.benefit-icon-box img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: var(--transition-smooth);
}

.benefit-item:hover .benefit-icon-box img {
  filter: brightness(1.3) invert(1);
  transform: scale(1.1);
}

.benefit-item h3 {
  font-size: 14px; 
  margin: 0;
  color: #fff;
  letter-spacing: 0.2px;
  line-height: 1.1;
}

/* ensure h3 and p sit together as the flexible content column */
.benefit-item h3,
.benefit-item p {
  flex: 1 1 auto;
}
.benefit-number { flex: 0 0 auto; }

/* container for icon+text – lay out row-reverse so icon appears on right */
.benefit-left {
  display: flex;
  align-items: center;
  flex-direction: row; /* icon on left */
  flex: 1 1 auto; /* allow number to sit beside it */
}
.benefit-left .benefit-main {
  flex: 1;
}

/* ---------- RESPONSIVE ADJUSTMENTS ---------- */
@media (max-width: 991px) {
  /* hero smaller padding and text spacing */
  .hero-clean {
    padding: 20px 0 80px;
  }
  .hero-content-wrapper {
    text-align: center;
  }
  .esin-badge-minimal {
    margin: 0 auto 30px;
    font-size: 11px;
  }
  .hero-title-main {
    margin-bottom: 20px;
    font-size: clamp(20px, 6vw, 34px);
    line-height: 1.2;
  }
  .hero-subtitle-clean {
    max-width: 100%;
    margin-bottom: 30px;
    font-size: 13px;
    line-height: 1.6;
  }
  .btn-premium-primary {
    padding: 14px 30px;
    font-size: 13px;
    display: inline-block;
    margin: 0 auto;
  }
  /* service grid becomes single column with more breathing room */
  .modern-services-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0 15px;
  }
  .modern-services-grid .card {
    height: auto !important;
    padding: 12px !important;
    margin: 0 15px;
  }
  /* benefit section adjustments */
  .section-benefits-minimal {
    padding: 80px 0;
  }
  .benefits-grid-refined {
    gap: 14px;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
  }
  .benefit-item {
    padding: 16px 20px 14px 20px; /* maintain slightly larger when stacked */
  }
}

/* Ensure header (left intro) aligns to top of cards to avoid visual mismatch */
.header-minimal { align-items: flex-start; }

/* Remove extra top offset for the grid when placed in the header row */
.header-minimal .benefits-grid-refined { margin-top: 0 !important; }

@media (max-width: 768px) {
  .hero-title-main {
    font-size: clamp(18px, 8vw, 30px);
  }
  .hero-subtitle-clean {
    font-size: 12px;
  }
  .esin-badge-minimal {
    font-size: 11px;
  }
  
  /* reduce heavy animations on mobile */
  .benefit-item,
  .home-blog-card {
    will-change: auto;
    transition: none !important;
  }
  
  .benefit-item:hover,
  .home-blog-card:hover {
    transform: none !important;
  }
  
  /* disable blur on mobile for better performance */
  .benefit-item {
    backdrop-filter: none;
  }
  
  /* reduce heavy navbar panel transition on mobile */
  .rd-navbar-panel,
  .rd-navbar-static .rd-menu,
  .rd-navbar-fixed .rd-navbar-nav-wrap,
  .rd-navbar-fixed .rd-navbar-submenu {
    transition: 0.15s transform linear !important;
  }
  
  .rd-navbar-panel {
    transform: translateX(-100%);
    will-change: transform;
  }
  
  .rd-navbar-panel.active {
    transform: translateX(0);
  }
  
  /* simplify navbar collapse animation */
  .rd-navbar-collapse {
    transition: 0.15s max-height linear !important;
  }
  
  .rd-navbar-collapse.active {
    transition: 0.15s max-height linear !important;
  }
  
  /* disable heavy transitions on navbar items */
  .rd-navbar-wrap,
  .rd-navbar,
  .rd-menu,
  .rd-navbar-nav {
    transition: none !important;
  }
  
  /* hamburger icon should be snappy */
  .rd-navbar-toggle,
  .rd-navbar-collapse-toggle {
    transition: 0.1s transform linear !important;
  }
  
  /* disable submenu transitions */
  .rd-navbar-dropdown {
    transition: none !important;
    display: none;
  }
  
  .rd-navbar-dropdown.active {
    transition: none !important;
  }
}

.benefit-item p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.2;
  margin: 0 0 0 6px;
  max-width: none;
}

.benefit-number {
  position: static;
  font-size: 18px;
  font-weight: 900;
  color: rgba(26, 168, 225, 0.25);
  transition: var(--transition-smooth);
  letter-spacing: -1px;
  margin-left: auto; /* push to right edge */
}

/* --- MODAL --- */
.modal-esin-minimal {
  background: linear-gradient(135deg, #111827 0%, #0f1420 100%);
  border: 1px solid rgba(26, 168, 225, 0.3);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-esin-minimal .modal-header {
  border-bottom: 1px solid rgba(26, 168, 225, 0.2);
  padding-bottom: 20px;
  margin-bottom: 25px;
}

.modal-esin-minimal .modal-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.form-group-minimal {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-input-clean {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(26, 168, 225, 0.3);
  padding: 14px 16px; 
  border-radius: 10px;
  color: #fff; 
  font-size: 15px;
  transition: var(--transition-smooth);
}

.form-input-clean::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-input-clean:focus {
  background: rgba(26, 168, 225, 0.1);
  border-color: var(--accent-cyan);
  outline: none;
  box-shadow: 0 0 20px rgba(26, 168, 225, 0.3);
}

.btn-send-minimal {
  width: 100%; 
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #1591c2 100%);
  color: #fff; 
  border: none; 
  padding: 16px;
  border-radius: 10px; 
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition-smooth);
  margin-top: 10px;
}

.btn-send-minimal:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(26, 168, 225, 0.4);
}

/* --- MODO CLARO --- */
[data-theme="light"] .main-esin-premium { 
  background: #ffffff; 
  color: #1e293b; 
}

/* Light mode: lighter overlay to show background image */
[data-theme="light"] .hero-clean.section-intro::before { 
    background: rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .hero-title-main,
[data-theme="light"] .hero-subtitle-clean,
[data-theme="light"] .esin-badge-minimal {
    color: #ffffff !important;
}
/* button gradient already contrasts; ensure text stays white */
[data-theme="light"] .btn-premium-primary {
    color: #ffffff !important;
}
/* arrow icon inside primary CTA must stay white even in light mode */
[data-theme="light"] .btn-premium-primary i,
[data-theme="light"] .btn-premium-primary i::before {
    color: #ffffff !important;
    filter: none !important;
}

/* stronger selectors to override universal context-dark rules in style.css */
body[data-theme="light"] .hero-clean.section-intro.context-dark {
    background-color: transparent !important;
    color: #ffffff !important;
}
body[data-theme="light"] .hero-clean.section-intro .hero-title-main,
body[data-theme="light"] .hero-clean.section-intro .hero-subtitle-clean,
body[data-theme="light"] .hero-clean.section-intro .esin-badge-minimal,
body[data-theme="light"] .hero-clean.section-intro .btn-premium-primary {
    color: #ffffff !important;
}

/* extrema specificidad para anular style.css completamente en modo claro */
html[data-theme="light"] .main-esin-premium .hero-clean.section-intro.context-dark::before,
html.light-mode .main-esin-premium .hero-clean.section-intro.context-dark::before {
    background: rgba(0, 0, 0, 0.15) !important;
    color: transparent !important;
}
html[data-theme="light"] .main-esin-premium .hero-clean.section-intro .hero-title-main,
html.light-mode .main-esin-premium .hero-clean.section-intro .hero-title-main,
html[data-theme="light"] .main-esin-premium .hero-clean.section-intro .hero-subtitle-clean,
html.light-mode .main-esin-premium .hero-clean.section-intro .hero-subtitle-clean,
html[data-theme="light"] .main-esin-premium .hero-clean.section-intro .esin-badge-minimal,
html.light-mode .main-esin-premium .hero-clean.section-intro .esin-badge-minimal {
    color: #ffffff !important;
}

[data-theme="light"] .section-benefits-minimal { 
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%); 
}

[data-theme="light"] .section-title-clean {
  background: linear-gradient(135deg, #033F77 0%, #1AA8E1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .benefit-item { 
  background: linear-gradient(135deg, rgba(26, 168, 225, 0.05) 0%, rgba(26, 168, 225, 0.02) 100%);
  border: 2px solid rgba(26, 168, 225, 0.15); 
  box-shadow: 0 2px 8px rgba(0,0,0,0.04); 
}

[data-theme="light"] .benefit-item:hover {
  background: linear-gradient(135deg, rgba(26, 168, 225, 0.12) 0%, rgba(26, 168, 225, 0.08) 100%);
  border-color: #1AA8E1;
  box-shadow: 0 12px 30px rgba(26, 168, 225, 0.15);
}

[data-theme="light"] .benefit-icon-box { 
  background: linear-gradient(135deg, rgba(26, 168, 225, 0.12) 0%, rgba(26, 168, 225, 0.06) 100%);
  border-color: rgba(26, 168, 225, 0.2);
}

[data-theme="light"] .benefit-icon-box img { 
  filter: brightness(0) saturate(100%) invert(30%) sepia(85%) saturate(1700%) hue-rotate(169deg) brightness(100%) contrast(90%); 
}

[data-theme="light"] .benefit-item:hover .benefit-icon-box {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #1591c2 100%);
  border-color: var(--accent-cyan);
}

[data-theme="light"] .benefit-item:hover .benefit-icon-box img { 
  filter: brightness(0) invert(1); 
}

[data-theme="light"] .benefit-item h3 { 
  color: #003D7A; 
}

[data-theme="light"] .benefit-item p {
  color: #475569;
}

[data-theme="light"] .benefit-number { 
  color: rgba(0, 61, 122, 0.45) !important; 
  font-weight: 900 !important;
}

[data-theme="light"] .modal-esin-minimal { 
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-color: rgba(26, 168, 225, 0.2);
}

[data-theme="light"] .modal-esin-minimal .modal-header {
  border-bottom-color: rgba(26, 168, 225, 0.15);
}

[data-theme="light"] .modal-esin-minimal .modal-title {
  color: #033F77;
}

[data-theme="light"] .form-input-clean { 
  background: #f8fafc; 
  border-color: rgba(26, 168, 225, 0.2); 
  color: #1e293b; 
}

[data-theme="light"] .form-input-clean:focus {
  background: #ffffff;
  border-color: var(--accent-cyan);
}

[data-theme="light"] .form-input-clean::placeholder {
  color: #94a3b8;
}

/* --- RESPONSIVE PARA TABLETS --- */
@media (max-width: 1024px) and (min-width: 769px) {
  .benefits-grid-refined {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

/* --- RESPONSIVE PARA MÓVILES --- */
@media (max-width: 768px) {
  .hero-clean {
    padding: 100px 0 80px;
    min-height: 75vh;
  }

  .hero-title-main {
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 20px;
  }

  .hero-subtitle-clean {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .modern-services-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .section-benefits-minimal {
    padding: 80px 0;
  }

  .section-title-clean {
    font-size: 32px;
  }

  .benefits-grid-refined {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .benefit-item {
    padding: 40px 30px;
  }

  .benefit-icon-box {
    width: 70px;
    height: 70px;
  }

  .benefit-icon-box img {
    width: 35px;
    height: 35px;
  }

  .benefit-item h3 {
    font-size: 17px;
  }

  .benefit-item p {
    font-size: 14px;
  }

  .benefit-number {
    font-size: 50px;
  }
}

@media (max-width: 576px) {
  .hero-clean {
    padding: 80px 0 60px;
    min-height: 65vh;
  }

  .esin-badge-minimal {
    font-size: 11px;
    padding: 6px 12px;
  }

  .hero-title-main {
    font-size: clamp(24px, 3vw, 36px);
    margin-bottom: 15px;
    letter-spacing: 0;
  }

  .hero-subtitle-clean {
    font-size: 15px;
    margin-bottom: 25px;
  }

  .btn-premium-primary {
    padding: 15px 30px;
    font-size: 12px;
    margin-bottom: 60px;
  }

  .modern-services-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .modern-services-grid .card {
    height: 230px !important;
  }

  .section-benefits-minimal {
    padding: 60px 20px;
  }

  .section-tag {
    font-size: 12px;
  }

  .section-title-clean {
    font-size: 26px;
  }

  .title-line {
    width: 50px;
    height: 4px;
  }

  .benefits-grid-refined {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .benefit-item {
    padding: 30px 18px 20px 18px;
    min-height: 240px;
  }

  .benefit-icon-box {
    width: 65px;
    height: 65px;
    margin: 0 auto 12px auto;
  }

  .benefit-icon-box img {
    width: 32px;
    height: 32px;
  }

  .benefit-item h3 {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .benefit-item p {
    font-size: 13px;
    line-height: 1.6;
  }

  .benefit-number {
    font-size: 40px;
    top: 15px;
    right: 15px;
  }

  .modal-esin-minimal {
    padding: 20px;
  }

  .modal-esin-minimal .modal-header {
    padding-bottom: 15px;
    margin-bottom: 15px;
  }

  .modal-esin-minimal .modal-title {
    font-size: 18px;
  }

  .modal-dialog {
    margin: 10px;
  }

  .modal-content-esin .modal-body {
    padding: 15px;
  }

  .form-group-minimal {
    gap: 12px;
  }

  .esin-input {
    padding: 8px;
  }

  .form-input-clean {
    padding: 12px 14px;
    font-size: 14px;
  }

  .btn-submit-orange, .btn-send-minimal {
    width: 100%;
  }

  .btn-send-minimal {
    padding: 14px;
    font-size: 13px;
  }
}

/* --- ANIMACIONES WOW (SCROLL) --- */
.wow {
    /* Use opacity instead of visibility to prevent content from being hidden completely.
      If WOW.js doesn't trigger, content is still visible but slightly faded. */
    opacity: 1;
}

.wow.fadeInUp {
  animation-duration: 0.8s;
  animation-fill-mode: both;
}

.animated.fadeInUp {
  animation-name: fadeInUp;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Hero styling is handled globally via `.esin-hero-force-visible` in `vistas/base/hero-fixes.css`. Image selection is driven by data-attributes (`data-hero`, `data-hero-light`) and `theme-switcher.js`. Per-view hero CSS removed to avoid conflicting visual overrides. */

/* --- GLOBAL NAVBAR PERFORMANCE OPTIMIZATION --- */
/* reduce motion on critical navbar elements */
.rd-navbar {
  will-change: auto;
}

/* minimize repaints on toggle animation */
.rd-navbar-toggle,
.rd-navbar-collapse-toggle {
  will-change: transform;
}

/* optimize menu panel slidedown */
.rd-navbar-panel {
  will-change: auto;
  transform: translateZ(0);
}

/* reduce shadow recalculation on hover */
.rd-nav-item > a,
.rd-navbar-dropdown li > a {
  will-change: auto;
  transition: color 0.2s linear;
}

.rd-nav-item > a:hover,
.rd-navbar-dropdown li > a:hover {
  will-change: auto;
}
/* ============================================================================
   MOBILE OPTIMIZATION - Hero and Services Grid
   ============================================================================ */

/* Small phones: extra adjustments */
@media (max-width: 576px) {
  .hero-clean {
    /* Mobile: let content flow naturally WITHOUT artificial height */
    min-height: auto !important;
    padding: 100px 0 260px !important;
    display: block !important; /* convert from flex to block for natural flow */
  }
  
  .hero-clean.section-intro {
    /* allow vertical expansion rather than fixed height */
    height: auto !important;
    overflow: visible !important;
    position: relative !important;
    /* z-index removed to avoid covering following section */
  }
  .hero-clean.section-intro .hero-content-wrapper {
    margin-top: -20px !important; /* pull up to compensate */
    margin-bottom: 100px !important; /* massive space separates from cards */
    position: relative !important;
    z-index: 10001 !important;
  }
  .section-benefits-minimal {
    /* small gap after hero on phones */
    margin-top: 80px !important;
  }
  
  .hero-clean.section-intro .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  .hero-clean.section-intro .row {
    align-items: flex-start !important; /* don't center vertically, let content flow */
    flex-direction: column !important;
    width: 100% !important;
    overflow: visible !important;
    /* cancel the default min-vh-80 on mobile so text stays within visible area */
    min-height: auto !important;
    padding-top: 40px !important; /* extra space at top */
  }
  
  .hero-clean.section-intro .col-lg-6 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    width: 100% !important;
  }
  
  .hero-content-wrapper {
    text-align: center !important;
    margin-bottom: 30px !important;
    position: relative !important;
    z-index: 10001 !important; /* highest priority */
  }
  
  .hero-title-main {
    font-size: clamp(20px, 7vw, 28px) !important;
    line-height: 1.3 !important;
    margin: 15px 0 !important;
  }
  
  .esin-badge-minimal {
    font-size: 10px !important;
    margin-bottom: 12px !important;
    padding: 6px 14px !important;
  }
  
  .hero-subtitle-clean {
    font-size: 11px !important;
    line-height: 1.5 !important;
    max-width: none !important;
    margin: 0 auto 25px auto !important;
    padding: 0 5px !important;
  }
  
  .hero-action-area {
    margin-bottom: 30px !important;
  }
  
  .btn-premium-primary {
    padding: 10px 24px !important;
    font-size: 12px !important;
    width: auto !important;
    margin: 0 auto !important;
  }
  
  /* Tarjetas flotantes en móvil - PRIMERA PRIORIDAD */
  /* hide desktop floating cards container on small screens */
  .hero-cards-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: 0 0 100% !important;
    position: relative !important;
    z-index: 1 !important; /* LOW priority - below content */
  }
  /* hide desktop floating cards container on small/medium devices */
  @media (max-width: 991px) {
    .hero-cards-wrapper { display: none !important; }
  }
  
  .modern-services-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    padding: 0 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    height: auto !important;
    z-index: 100 !important;
    position: relative !important;
    display: grid !important;
  }
  
  .modern-services-grid .card {
    height: auto !important;
    min-height: 200px !important;
    padding: 12px !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: visible !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .modern-services-grid .tarjeta {
    width: 100% !important;
    display: block !important;
    overflow: visible !important;
  }
}

/* New mobile cards section */
.hero-cards-mobile {
  padding: 40px 0 60px;
  background: transparent;
}
@media (min-width: 992px) {
  .hero-cards-mobile { display: none !important; }
}

/* Tablets y teléfonos grandes: ajustes adicionales */
@media (max-width: 768px) and (min-width: 577px) {
  .hero-clean {
    /* Mobile/tablet: let content flow naturally WITHOUT artificial height */
    min-height: auto !important;
    padding: 100px 0 340px !important;
    display: block !important; /* convert from flex to block for natural flow */
  }
  
  .hero-clean.section-intro {
    /* allow vertical expansion rather than fixed height */
    height: auto !important;
    overflow: visible !important;
    position: relative !important;
    /* keep stacking context default so next section appears normally */
  }
  .hero-clean.section-intro .hero-content-wrapper {
    margin-top: -30px !important; /* pull up visibility */
    margin-bottom: 120px !important; /* big space before cards */
    position: relative !important;
    z-index: 10001 !important;
  }
  .section-benefits-minimal {
    /* modest separation for tablets */
    margin-top: 100px !important;
  }
  
  .hero-clean.section-intro .row {
    align-items: flex-start !important;
    flex-direction: column !important;
    width: 100% !important;
    overflow: visible !important;
    /* cancel the default min-vh-80 on tablets */
    min-height: auto !important;
    padding-top: 50px !important; /* extra space for navbar */
  }
  
  .hero-clean.section-intro .col-lg-6 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 10px 0 !important;
  }
  
  .hero-content-wrapper {
    margin-bottom: 120px !important; /* big space before cards */
    position: relative !important;
    z-index: 10001 !important;
  }
  
  .hero-cards-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: 0 0 100% !important;
    position: relative !important;
    z-index: 1 !important; /* LOW priority below text */
  }
  
  .modern-services-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    padding: 0 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    height: auto !important;
    position: relative !important;
    z-index: 1 !important; /* stay below content */
  }
  
  .modern-services-grid .card {
    height: auto !important;
    min-height: 220px !important;
    padding: 15px !important;
    margin: 0 !important;
    overflow: visible !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .modern-services-grid .tarjeta {
    width: 100% !important;
    display: block !important;
    overflow: visible !important;
  }
  
  .hero-title-main {
    font-size: clamp(22px, 6vw, 32px) !important;
    line-height: 1.35 !important;
    margin: 20px 0 !important;
  }
  
  .hero-subtitle-clean {
    font-size: 13px !important;
    line-height: 1.6 !important;
    margin: 15px auto 30px auto !important;
  }
  
  .btn-premium-primary {
    padding: 11px 26px !important;
    font-size: 12px !important;
  }
  
  .hero-cards-wrapper {
    width: 100% !important;
    padding: 0 !important;
  }
  
  .modern-services-grid {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
    padding: 0 12px !important;
    width: 100% !important;
  }
  
  .modern-services-grid .card {
    height: auto !important;
    min-height: 210px !important;
    padding: 14px !important;
    margin: 0 !important;
  }
}

/* Very large phones or small tablets: 2 columns might work */
@media (min-width: 769px) and (max-width: 991px) {
  .hero-clean.section-intro {
    height: 80vh !important;
  }
  
  .hero-content-wrapper {
    margin-bottom: 40px !important;
  }
  
  .modern-services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 18px !important;
  }
  
  .modern-services-grid .card {
    height: 220px !important;
  }
}