:root {
  --primary: #0a2e5c;
  --primary-light: #1a4a7a;
  --accent: #2d7fc1;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --border-light: #e2e8f0;
  --shadow-sm:
    0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-md:
    0 10px 15px -3px rgb(0 0 0 / 0.05), 0 4px 6px -4px rgb(0 0 0 / 0.05);
  --shadow-lg:
    0 20px 25px -5px rgb(0 0 0 / 0.05), 0 8px 10px -6px rgb(0 0 0 / 0.05);
}

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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: var(--bg-white);
  color: var(--text-dark);
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 32px);
  width: 100%;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== NAVBAR 100% RESPONSIVE ===== */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  padding: clamp(8px, 2vw, 12px) 0;
  border-bottom: 1px solid var(--border-light);
}

#nav.scrolled {
  padding: clamp(6px, 1.5vw, 8px) 0;
  background: rgba(255, 255, 255, 1);
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 24px);
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.5vw, 8px);
  text-decoration: none;
}

.logo-icon {
  width: clamp(30px, 5vw, 36px);
  height: clamp(30px, 5vw, 36px);
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: clamp(12px, 2vw, 14px);
}

.logo-text {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(18px, 3.5vw, 22px);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.logo-text span {
  color: var(--accent);
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: clamp(16px, 3vw, 32px);
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: clamp(13px, 1.8vw, 15px);
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-cta {
  background: var(--primary);
  color: white !important;
  padding: clamp(8px, 2vw, 10px) clamp(16px, 3vw, 22px);
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--primary-light);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--border-light);
  border-radius: 8px;
  padding: clamp(6px, 2vw, 8px) clamp(10px, 2.5vw, 12px);
  font-size: clamp(18px, 4vw, 22px);
  color: var(--primary);
  cursor: pointer;
  transition: all 0.2s;
}

.menu-toggle:hover {
  background: var(--bg-light);
  border-color: var(--primary);
}

/* ===== HERO 100% RESPONSIVE ===== */
.hero {
  padding: clamp(100px, 15vw, 160px) 0 clamp(60px, 10vw, 100px);
  background: linear-gradient(135deg, #f0f4f8 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
  width: 100%;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(45, 127, 193, 0.1);
  color: var(--primary);
  padding: clamp(4px, 1.5vw, 6px) clamp(12px, 3vw, 16px);
  border-radius: 30px;
  font-size: clamp(11px, 2vw, 14px);
  font-weight: 600;
  margin-bottom: clamp(16px, 3vw, 24px);
  border: 1px solid rgba(45, 127, 193, 0.2);
}

.hero-title {
  font-size: clamp(32px, 6vw, 60px);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: clamp(16px, 3vw, 24px);
  line-height: 1.1;
}

.hero-title .highlight {
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(14px, 2.5vw, 18px);
  color: var(--text-muted);
  margin-bottom: clamp(24px, 4vw, 40px);
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: clamp(10px, 2vw, 16px);
  flex-wrap: wrap;
}

.btn-primary,
.btn-outline {
  padding: clamp(12px, 2.5vw, 14px) clamp(20px, 4vw, 32px);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  font-size: clamp(13px, 2vw, 15px);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--border-light);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(10, 46, 92, 0.02);
}

.hero-stats {
  display: flex;
  gap: clamp(20px, 4vw, 40px);
  margin-top: clamp(30px, 5vw, 50px);
  flex-wrap: wrap;
}

.stat-item h3 {
  font-size: clamp(24px, 4vw, 32px);
  color: var(--primary);
  margin-bottom: 4px;
}

.stat-item p {
  color: var(--text-muted);
  font-size: clamp(12px, 2vw, 14px);
  font-weight: 500;
}

.hero-visual {
  background: white;
  border-radius: 16px;
  padding: clamp(15px, 3vw, 20px);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  width: 100%;
}

/* ===== DASHBOARD 100% RESPONSIVE ===== */
.dashboard-mockup {
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  border-radius: clamp(12px, 2vw, 16px);
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.8),
    var(--shadow-lg);
  width: 100%;
  aspect-ratio: 16/10;
  display: flex;
  flex-direction: column;
}

.dashboard-header {
  background: var(--primary);
  padding: clamp(12px, 2.5vw, 16px) clamp(16px, 3vw, 20px);
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 16px);
}

.dashboard-dots {
  display: flex;
  gap: clamp(6px, 1.5vw, 8px);
}

.dashboard-dots span {
  width: clamp(10px, 2vw, 12px);
  height: clamp(10px, 2vw, 12px);
  border-radius: 50%;
}

.dashboard-dots span:nth-child(1) {
  background: #ff5f56;
}

.dashboard-dots span:nth-child(2) {
  background: #ffbd2e;
}

.dashboard-dots span:nth-child(3) {
  background: #27c93f;
}

.dashboard-title {
  color: white;
  font-size: clamp(11px, 2vw, 14px);
  font-weight: 500;
  opacity: 0.9;
}

.dashboard-content {
  padding: clamp(16px, 3vw, 24px) clamp(12px, 2.5vw, 20px);
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2.5vw, 20px);
  flex: 1;
}

.metric-card {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 16px);
  padding: clamp(8px, 2vw, 12px) clamp(12px, 2.5vw, 16px);
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  animation: slideIn 0.5s ease-out forwards;
  opacity: 0;
}

.metric-card:nth-child(1) {
  animation-delay: 0.1s;
}

.metric-card:nth-child(2) {
  animation-delay: 0.3s;
}

.metric-card:nth-child(3) {
  animation-delay: 0.5s;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.metric-icon {
  width: clamp(40px, 6vw, 48px);
  height: clamp(40px, 6vw, 48px);
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: clamp(16px, 3vw, 20px);
  flex-shrink: 0;
}

.metric-info {
  flex: 1;
  min-width: 0;
}

.metric-label {
  font-size: clamp(10px, 2vw, 12px);
  color: var(--text-muted);
  display: block;
  margin-bottom: 2px;
}

.metric-value {
  font-size: clamp(18px, 3.5vw, 24px);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.metric-trend {
  font-size: clamp(9px, 1.8vw, 11px);
  font-weight: 600;
  padding: 2px clamp(6px, 1.5vw, 8px);
  border-radius: 20px;
  display: inline-block;
  margin-top: 2px;
}

.metric-trend.positive {
  background: #d1fae5;
  color: #065f46;
}

.chart-container {
  margin-top: clamp(4px, 1.5vw, 8px);
  padding: clamp(12px, 2.5vw, 16px);
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: clamp(60px, 10vw, 80px);
  gap: clamp(4px, 1.5vw, 8px);
}

.bar {
  flex: 1;
  background: linear-gradient(to top, var(--primary), var(--accent));
  border-radius: 8px 8px 4px 4px;
  min-height: 4px;
  position: relative;
  animation: growBar 1s ease-out forwards;
  transform-origin: bottom;
  animation-delay: 0.7s;
  transform: scaleY(0);
}

@keyframes growBar {
  to {
    transform: scaleY(1);
  }
}

.bar span {
  position: absolute;
  bottom: clamp(-20px, -3vw, -24px);
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(8px, 1.8vw, 10px);
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

/* ===== SECCIÓN VALORES 100% RESPONSIVE ===== */
.clients-section {
  padding: clamp(40px, 8vw, 60px) 0;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  width: 100%;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 4vw, 40px);
  text-align: center;
}

.value-item i {
  font-size: clamp(28px, 5vw, 36px);
  color: var(--primary);
  margin-bottom: clamp(12px, 3vw, 20px);
  background: rgba(10, 46, 92, 0.05);
  padding: clamp(12px, 2.5vw, 16px);
  border-radius: 50%;
}

.value-item h4 {
  font-size: clamp(16px, 3vw, 20px);
  margin-bottom: clamp(8px, 2vw, 12px);
}

.value-item p {
  color: var(--text-muted);
  font-size: clamp(13px, 2.2vw, 15px);
}

/* ===== SECCIONES BASE 100% RESPONSIVE ===== */
section {
  padding: clamp(60px, 10vw, 100px) 0;
  width: 100%;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto clamp(40px, 8vw, 60px);
  padding: 0 16px;
}

.section-tag {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: clamp(11px, 2vw, 13px);
  margin-bottom: clamp(8px, 2vw, 12px);
}

.section-title {
  font-size: clamp(28px, 5vw, 40px);
  color: var(--primary);
  margin-bottom: clamp(12px, 3vw, 20px);
}

.section-desc {
  font-size: clamp(14px, 2.5vw, 18px);
  color: var(--text-muted);
}

/* ===== NOSOTROS 100% RESPONSIVE ===== */
#nosotros {
  background: var(--bg-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
}

.about-content h2 {
  font-size: clamp(24px, 4.5vw, 36px);
  color: var(--primary);
  margin-bottom: clamp(16px, 3vw, 24px);
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: clamp(20px, 4vw, 30px);
  font-size: clamp(14px, 2.2vw, 16px);
}

.about-feature {
  display: flex;
  gap: clamp(12px, 2.5vw, 16px);
  margin-bottom: clamp(16px, 3vw, 24px);
}

.feature-icon {
  width: clamp(40px, 6vw, 48px);
  height: clamp(40px, 6vw, 48px);
  background: rgba(10, 46, 92, 0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: clamp(16px, 3vw, 20px);
  flex-shrink: 0;
}

.feature-text h4 {
  font-size: clamp(15px, 2.5vw, 18px);
  margin-bottom: clamp(4px, 1.5vw, 8px);
}

.feature-text p {
  margin: 0;
  font-size: clamp(13px, 2.2vw, 15px);
}

.about-card {
  background: var(--bg-light);
  padding: clamp(24px, 5vw, 40px);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.about-card .logo-large {
  width: clamp(50px, 8vw, 60px);
  height: clamp(50px, 8vw, 60px);
  background: var(--primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: clamp(20px, 3.5vw, 24px);
  margin-bottom: clamp(16px, 3vw, 24px);
}

.about-card h3 {
  font-size: clamp(20px, 3.5vw, 24px);
  margin-bottom: clamp(12px, 2.5vw, 16px);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  padding: clamp(6px, 1.5vw, 8px) clamp(12px, 2.5vw, 16px);
  border-radius: 40px;
  font-size: clamp(12px, 2vw, 14px);
  font-weight: 500;
  margin-top: clamp(16px, 3vw, 24px);
  border: 1px solid var(--border-light);
}

.status-dot {
  width: clamp(6px, 1.5vw, 8px);
  height: clamp(6px, 1.5vw, 8px);
  background: #10b981;
  border-radius: 50%;
}

/* ===== SERVICIOS Y PROYECTOS 100% RESPONSIVE ===== */
#servicios {
  background: var(--bg-light);
}

.services-grid,
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 4vw, 30px);
}

.service-card,
.project-card {
  background: white;
  border-radius: clamp(16px, 3vw, 20px);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid var(--border-light);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover,
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.service-image,
.project-image {
  aspect-ratio: 16/9;
  background: linear-gradient(145deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.service-image i,
.project-image i {
  font-size: clamp(36px, 6vw, 48px);
  opacity: 0.9;
}

.service-category,
.project-category {
  position: absolute;
  top: clamp(12px, 2.5vw, 16px);
  right: clamp(12px, 2.5vw, 16px);
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  padding: clamp(3px, 1vw, 4px) clamp(8px, 2vw, 12px);
  border-radius: 30px;
  font-size: clamp(10px, 1.8vw, 12px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-content,
.project-content {
  padding: clamp(20px, 4vw, 28px);
  flex: 1;
}

.service-title,
.project-title {
  font-size: clamp(18px, 3vw, 22px);
  margin-bottom: clamp(8px, 2vw, 12px);
  color: var(--primary);
}

.service-description,
.project-description {
  color: var(--text-muted);
  font-size: clamp(12px, 2.2vw, 14px);
  line-height: 1.7;
  margin-bottom: clamp(16px, 3vw, 20px);
}

.service-tech,
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(6px, 1.5vw, 8px);
}

.tech-tag {
  background: var(--bg-light);
  color: var(--text-dark);
  padding: clamp(3px, 1vw, 4px) clamp(8px, 2vw, 10px);
  border-radius: 6px;
  font-size: clamp(10px, 1.8vw, 12px);
  font-weight: 500;
  border: 1px solid var(--border-light);
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: clamp(8px, 2vw, 12px);
}

.project-industry {
  color: var(--accent);
  font-weight: 600;
  font-size: clamp(11px, 2vw, 13px);
}

.project-year {
  color: var(--text-muted);
  font-size: clamp(11px, 2vw, 13px);
}

.project-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(12px, 2vw, 14px);
  transition: gap 0.2s;
  margin-top: clamp(12px, 2.5vw, 20px);
}

.project-link:hover {
  gap: 10px;
}

/* ===== EQUIPO 100% RESPONSIVE ===== */
#equipo {
  background: var(--bg-light);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 4vw, 30px);
}

.team-card {
  background: white;
  padding: clamp(24px, 5vw, 40px);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all 0.3s;
}

.team-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.team-avatar {
  width: clamp(60px, 10vw, 80px);
  height: clamp(60px, 10vw, 80px);
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: clamp(22px, 4vw, 28px);
  margin-bottom: clamp(16px, 3vw, 24px);
}

.team-name {
  font-size: clamp(18px, 3.5vw, 24px);
  margin-bottom: 4px;
}

.team-role {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: clamp(12px, 2.5vw, 16px);
  font-size: clamp(13px, 2.2vw, 15px);
}

.team-bio {
  color: var(--text-muted);
  margin-bottom: clamp(16px, 3vw, 20px);
  font-size: clamp(13px, 2.2vw, 15px);
}

.team-contact {
  display: flex;
  gap: clamp(12px, 2.5vw, 16px);
}

.team-contact a {
  color: var(--text-muted);
  font-size: clamp(18px, 3vw, 20px);
  transition: color 0.2s;
}

.team-contact a:hover {
  color: var(--primary);
}

/* ===== CONTACTO 100% RESPONSIVE ===== */
#contacto {
  background: var(--bg-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(30px, 5vw, 60px);
  background: white;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: clamp(30px, 5vw, 50px);
  border: 1px solid var(--border-light);
}

.contact-info h3 {
  font-size: clamp(22px, 4vw, 28px);
  margin-bottom: clamp(12px, 3vw, 20px);
  color: var(--primary);
}

.contact-methods {
  margin-top: clamp(24px, 5vw, 40px);
}

.contact-method {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 16px);
  margin-bottom: clamp(16px, 3vw, 24px);
}

.method-icon {
  width: clamp(40px, 6vw, 48px);
  height: clamp(40px, 6vw, 48px);
  background: var(--bg-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: clamp(16px, 3vw, 20px);
  flex-shrink: 0;
}

.method-details p:first-child {
  font-weight: 600;
  margin-bottom: 4px;
  font-size: clamp(14px, 2.5vw, 16px);
}

.method-details p:last-child {
  color: var(--text-muted);
  font-size: clamp(13px, 2.2vw, 15px);
}

.contact-form .form-group {
  margin-bottom: clamp(16px, 3vw, 20px);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: clamp(12px, 2.5vw, 14px) clamp(14px, 3vw, 16px);
  border: 1.5px solid var(--border-light);
  border-radius: 12px;
  font-family: "Inter", sans-serif;
  font-size: clamp(14px, 2.2vw, 15px);
  transition: border 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.contact-form button {
  width: 100%;
  padding: clamp(14px, 2.5vw, 16px);
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: clamp(14px, 2.5vw, 16px);
  cursor: pointer;
  transition: background 0.2s;
}

.contact-form button:hover {
  background: var(--primary-light);
}

/* ===== FOOTER 100% RESPONSIVE ===== */
footer {
  background: var(--primary);
  color: white;
  padding: clamp(30px, 5vw, 40px) 0;
  width: 100%;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 24px);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: white;
}

.footer-links {
  display: flex;
  gap: clamp(16px, 4vw, 32px);
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: clamp(12px, 2.2vw, 14px);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.6);
  font-size: clamp(12px, 2vw, 14px);
}

/* ===== ANIMACIONES ===== */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== MEDIA QUERIES PARA MÓVILES ===== */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: clamp(30px, 5vw, 40px);
  }

  .services-grid,
  .portfolio-grid,
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: clamp(20px, 4vw, 24px);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}

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

  /* Menú móvil mejorado */
  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    background: white;
    flex-direction: column;
    padding: 20px 0;
    box-shadow: var(--shadow-lg);
    display: none;
    border-bottom: 1px solid var(--border-light);
    gap: 0;
    z-index: 999;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links li a {
    display: block;
    padding: 14px 20px;
    font-size: 16px;
  }

  .nav-cta {
    display: inline-block;
    margin: 10px 0;
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 28px;
  }

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

  .btn-primary,
  .btn-outline {
    width: 100%;
    justify-content: center;
  }

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

  .stat-item {
    flex: 1;
    min-width: 120px;
  }

  .dashboard-mockup {
    aspect-ratio: auto;
    min-height: 380px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

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

  /* Ajustes para pantallas muy pequeñas */
  @media (max-width: 480px) {
    .hero-title {
      font-size: 28px;
    }

    .dashboard-mockup {
      min-height: 350px;
    }

    .metric-value {
      font-size: 18px;
    }

    .chart-bars {
      height: 60px;
    }

    .bar span {
      font-size: 8px;
    }

    .stat-item {
      min-width: 100%;
    }

    .hero-actions {
      flex-direction: column;
    }

    .contact-grid {
      padding: 20px;
    }

    .team-card,
    .about-card {
      padding: 20px;
    }
  }
}

/* Ajustes para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero .container {
    gap: 40px;
  }

  .services-grid,
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Ajustes para pantallas grandes */
@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
  }

  .hero-title {
    font-size: 64px;
  }
}

/* Mejoras de accesibilidad táctil */
@media (hover: none) and (pointer: coarse) {
  .nav-links a,
  .btn-primary,
  .btn-outline,
  .menu-toggle {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .service-card:hover,
  .project-card:hover,
  .team-card:hover {
    transform: none;
  }
}

/* Fix para iOS */
@supports (-webkit-touch-callout: none) {
  .hero {
    min-height: auto;
  }

  input,
  textarea {
    font-size: 16px !important;
  }
}
