/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1a5276;
  --primary-dark: #0d3b6e;
  --primary-light: #2980b9;
  --accent: #27ae60;
  --accent-dark: #1e8449;
  --text: #2c3e50;
  --text-light: #7f8c8d;
  --bg: #ffffff;
  --bg-gray: #f4f6f9;
  --bg-dark: #0d2137;
  --border: #e0e6ed;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.14);
  --radius: 12px;
  --font: 'Inter', sans-serif;
  --font-display: 'Playfair Display', serif;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 90px 0; }
.section-gray { background: var(--bg-gray); }
.section-dark { background: var(--bg-dark); color: white; }

/* ===== SECTION HEADERS ===== */
.section-label {
  font-size: 13px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 12px;
}
.section-label.light { color: #5dade2; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 42px); color: var(--text); margin-bottom: 16px; }
.section-header p { font-size: 17px; color: var(--text-light); max-width: 600px; margin: 0 auto; }

/* ===== HEADER ===== */
#header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: white; box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

.header-top { background: var(--primary-dark); padding: 8px 0; }
.header-contact { display: flex; gap: 32px; font-size: 13px; color: rgba(255,255,255,0.85); }
.header-contact span { display: flex; align-items: center; gap: 6px; }

.header-main { padding: 16px 0; }
.header-main .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 44px; height: 44px; background: var(--primary);
  color: white; font-weight: 700; font-size: 22px;
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
}
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-weight: 700; font-size: 20px; color: var(--primary); line-height: 1.1; }
.logo-tagline { font-size: 11px; color: var(--text-light); letter-spacing: 1px; text-transform: uppercase; }

.nav-desktop { display: flex; gap: 4px; }
.nav-desktop a {
  padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 500;
  color: var(--text); transition: var(--transition);
}
.nav-desktop a:hover { color: var(--primary); background: rgba(26,82,118,0.07); }

.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 6px;
}
.menu-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px; transition: var(--transition);
}

.nav-mobile {
  display: none; flex-direction: column;
  background: white; border-top: 1px solid var(--border); padding: 12px 24px 20px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a { padding: 12px 0; font-weight: 500; border-bottom: 1px solid var(--border); color: var(--text); }
.nav-mobile a:last-child { border-bottom: none; }

/* ===== HERO ===== */
.hero {
  position: relative; overflow: hidden;
  height: 100vh; min-height: 600px; max-height: 900px;
  margin-top: 97px;
}

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

.slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 0.8s ease;
}
.slide.active { opacity: 1; z-index: 1; }

.slide-content {
  max-width: 680px; padding: 0 60px; color: white;
  animation: slideUp 0.8s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.slide-tag {
  display: inline-block; background: var(--accent); color: white;
  font-size: 12px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; padding: 6px 14px; border-radius: 20px;
  margin-bottom: 20px;
}
.slide-content h1 {
  font-family: var(--font-display); font-size: clamp(32px, 5vw, 56px);
  line-height: 1.15; margin-bottom: 20px;
}
.slide-content p { font-size: 18px; line-height: 1.7; opacity: 0.9; margin-bottom: 32px; }

.btn-hero {
  display: inline-block; padding: 14px 32px;
  background: var(--accent); color: white;
  font-weight: 600; font-size: 15px; border-radius: 8px;
  transition: var(--transition);
}
.btn-hero:hover { background: var(--accent-dark); transform: translateY(-2px); }

.hero-controls {
  position: absolute; bottom: 32px; left: 0; right: 0;
  display: flex; align-items: center; justify-content: center; gap: 20px;
  z-index: 10;
}
.hero-prev, .hero-next {
  background: rgba(255,255,255,0.2); border: 2px solid rgba(255,255,255,0.5);
  color: white; width: 44px; height: 44px; border-radius: 50%;
  font-size: 18px; cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.hero-prev:hover, .hero-next:hover { background: var(--accent); border-color: var(--accent); }
.hero-dots { display: flex; gap: 8px; align-items: center; }
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer; transition: var(--transition);
}
.dot.active { background: white; transform: scale(1.3); }

/* ===== STATS BANNER ===== */
.intro-banner { background: var(--primary); padding: 40px 0; }
.intro-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; }
.intro-stat {
  display: flex; flex-direction: column; align-items: center;
  color: white; padding: 16px 0;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.intro-stat:last-child { border-right: none; }
.stat-num { font-family: var(--font-display); font-size: 44px; font-weight: 700; line-height: 1; }
.stat-label { font-size: 13px; opacity: 0.8; margin-top: 6px; text-align: center; }

/* ===== NOSOTROS ===== */
.nosotros-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }

.nosotros-img { position: relative; }
.nosotros-img img { border-radius: var(--radius); box-shadow: var(--shadow-hover); width: 100%; height: 480px; object-fit: cover; }
.nosotros-badge {
  position: absolute; bottom: -24px; right: -24px;
  background: var(--accent); color: white; padding: 20px 24px;
  border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 4px; text-align: center;
}
.nosotros-badge span:first-child { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.nosotros-badge span:last-child { font-size: 13px; opacity: 0.9; }

.nosotros-text h2 { font-family: var(--font-display); font-size: clamp(26px,3.5vw,38px); margin-bottom: 20px; }
.nosotros-text p { font-size: 16px; line-height: 1.8; color: var(--text-light); margin-bottom: 16px; }

.nosotros-valores { display: flex; flex-direction: column; gap: 20px; margin-top: 32px; }
.valor { display: flex; gap: 16px; align-items: flex-start; }
.valor-icon { color: var(--accent); font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.valor strong { display: block; font-size: 15px; color: var(--text); margin-bottom: 4px; }
.valor p { font-size: 14px; color: var(--text-light); margin: 0; }

/* ===== SERVICIOS ===== */
.servicios-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }

.servicio-card {
  background: white; border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: var(--transition); border: 1px solid var(--border);
}
.servicio-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

.card-img { overflow: hidden; height: 200px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.servicio-card:hover .card-img img { transform: scale(1.07); }

.card-body { padding: 24px; }
.card-icon { font-size: 28px; margin-bottom: 12px; }
.card-body h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; color: var(--text); }
.card-body p { font-size: 14px; color: var(--text-light); line-height: 1.7; margin-bottom: 16px; }
.card-link { font-size: 14px; font-weight: 600; color: var(--primary); transition: var(--transition); }
.card-link:hover { color: var(--accent); }

/* ===== CONSULTORIA ===== */
.consultoria-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 36px; }

.consultoria-item {
  padding: 32px; border: 1px solid var(--border);
  border-radius: var(--radius); transition: var(--transition);
  position: relative; overflow: hidden;
}
.consultoria-item::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: var(--accent); transform: scaleX(0);
  transition: transform var(--transition); transform-origin: left;
}
.consultoria-item:hover { border-color: transparent; box-shadow: var(--shadow-hover); }
.consultoria-item:hover::before { transform: scaleX(1); }

.consult-num { font-family: var(--font-display); font-size: 48px; font-weight: 700; color: var(--border); line-height: 1; margin-bottom: 12px; }
.consultoria-item h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; color: var(--text); }
.consultoria-item p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* ===== CLIENTES ===== */
.clientes-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.cliente-logo {
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 20px; display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.cliente-logo:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.cliente-logo span { font-weight: 700; font-size: 16px; color: var(--text-light); letter-spacing: 1px; }

/* ===== PUBLICACIONES ===== */
.pub-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }

.pub-card {
  background: white; border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: var(--transition); border: 1px solid var(--border);
}
.pub-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.pub-img { height: 220px; overflow: hidden; }
.pub-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.pub-card:hover .pub-img img { transform: scale(1.06); }

.pub-body { padding: 24px; }
.pub-cat {
  display: inline-block; background: rgba(26,82,118,0.08);
  color: var(--primary); font-size: 12px; font-weight: 600;
  padding: 4px 12px; border-radius: 20px; margin-bottom: 12px;
  letter-spacing: 1px; text-transform: uppercase;
}
.pub-body h3 { font-size: 16px; font-weight: 600; line-height: 1.5; margin-bottom: 10px; }
.pub-body p { font-size: 14px; color: var(--text-light); line-height: 1.7; margin-bottom: 16px; }
.pub-meta { display: flex; align-items: center; justify-content: space-between; }
.pub-meta span { font-size: 13px; color: var(--text-light); }
.pub-link { font-size: 13px; font-weight: 600; color: var(--accent); }
.pub-link:hover { color: var(--accent-dark); }

/* ===== CONTACTO ===== */
.contacto-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 70px; align-items: start; }

.contacto-info h2 { font-family: var(--font-display); font-size: clamp(26px,3.5vw,38px); color: white; margin-bottom: 16px; }
.contacto-info > p { font-size: 16px; color: rgba(255,255,255,0.75); line-height: 1.8; margin-bottom: 36px; }

.info-items { display: flex; flex-direction: column; gap: 24px; }
.info-item { display: flex; align-items: flex-start; gap: 16px; }
.info-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.info-item strong { display: block; color: white; font-size: 14px; margin-bottom: 4px; }
.info-item p { color: rgba(255,255,255,0.7); font-size: 14px; margin: 0; }

.contacto-form {
  background: white; border-radius: var(--radius);
  padding: 40px; box-shadow: var(--shadow-hover);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-family: var(--font); font-size: 14px; color: var(--text);
  transition: var(--transition); background: var(--bg);
  outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,82,118,0.1);
}
.form-group textarea { resize: vertical; }

.btn-submit {
  width: 100%; padding: 14px; background: var(--primary);
  color: white; font-family: var(--font); font-size: 15px;
  font-weight: 600; border: none; border-radius: 8px;
  cursor: pointer; transition: var(--transition);
}
.btn-submit:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ===== FOOTER ===== */
.footer { background: #06111d; color: rgba(255,255,255,0.7); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; padding: 64px 0 48px; }
.footer-brand .logo-icon { background: var(--primary-light); }
.footer-brand .logo-name { color: white; }
.footer-brand p { font-size: 14px; line-height: 1.8; margin-top: 16px; color: rgba(255,255,255,0.55); }
.footer-links h4 { color: white; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 0; }
.footer-links a { font-size: 14px; padding: 6px 0; color: rgba(255,255,255,0.55); transition: var(--transition); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0; display: flex; align-items: center; justify-content: space-between;
}
.footer-bottom p { font-size: 13px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.1); display: flex; align-items: center;
  justify-content: center; font-size: 14px; font-weight: 700;
  color: rgba(255,255,255,0.7); transition: var(--transition);
}
.footer-social a:hover { background: var(--accent); color: white; }

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .servicios-grid, .consultoria-grid { grid-template-columns: repeat(2,1fr); }
  .nosotros-grid { gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: flex; }
  .header-contact { flex-direction: column; gap: 4px; font-size: 12px; }

  .hero { margin-top: 120px; height: 80vh; }
  .slide-content { padding: 0 28px; }

  .intro-grid { grid-template-columns: repeat(2,1fr); }
  .intro-stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); padding: 20px; }
  .intro-stat:nth-child(2), .intro-stat:nth-child(4) { border-right: none; }
  .intro-stat:last-child, .intro-stat:nth-last-child(2) { border-bottom: none; }

  .nosotros-grid { grid-template-columns: 1fr; }
  .nosotros-badge { right: 12px; bottom: -16px; }
  .servicios-grid { grid-template-columns: 1fr; }
  .consultoria-grid { grid-template-columns: 1fr; }
  .clientes-grid { grid-template-columns: repeat(2,1fr); }
  .pub-grid { grid-template-columns: 1fr; }
  .contacto-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .section { padding: 60px 0; }
}

@media (max-width: 480px) {
  .slide-content h1 { font-size: 28px; }
  .stat-num { font-size: 34px; }
  .intro-grid { grid-template-columns: 1fr 1fr; }
  .contacto-form { padding: 24px; }
}

/* ===== LOGO ICON SVG ===== */
.logo-icon {
  background: none !important;
  padding: 0;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
}

/* ===== EXPERIENCIA / EQUIPO ===== */
.equipo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.equipo-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.equipo-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

.equipo-avatar {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.equipo-avatar span {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: white;
  letter-spacing: 3px;
}

.equipo-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.equipo-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.equipo-titulo {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  line-height: 1.4;
}
.equipo-exp span {
  display: inline-block;
  background: rgba(39, 174, 96, 0.1);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}
.equipo-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.75;
}

.equipo-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.equipo-skills span {
  background: rgba(26, 82, 118, 0.08);
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

.equipo-org {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.equipo-org span {
  font-size: 11px;
  color: var(--text-light);
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
}

@media (max-width: 1024px) {
  .equipo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .equipo-grid { grid-template-columns: 1fr; }
}

/* ── Tarjetas de experiencia agrupadas por cliente ── */
.exp-project-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.exp-project-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  background: var(--bg-gray, #f8f9fa);
  border-left: 3px solid var(--primary, #e74c3c);
  border-radius: 0 6px 6px 0;
}
.exp-period {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary, #e74c3c);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.exp-title {
  font-size: 13px;
  color: var(--text, #333);
  line-height: 1.45;
}
