/* Google Fonts - loaded via HTML preload for performance */
/* @import url(...) removed - loaded async in HTML */

:root {
  --charcoal: #2D3238;
  --steel: #3D4247;
  --gray-mid: #8A9099;
  --gray-light: #B8BCC2;
  --petrol: #1B4965;
  --petrol-light: #2A6F97;
  --bg-light: #F4F5F6;
  --white: #FFFFFF;
  --accent-line: #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--charcoal);
  background: var(--white);
  overflow-x: hidden;
}

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(45,50,56,0.97);
  backdrop-filter: blur(10px);
  padding: 0 60px;
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-logo {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700; font-size: 22px; color: var(--white);
  letter-spacing: 3px;
  display: flex; align-items: center; gap: 10px;
}
.nav-logo span { color: var(--gray-light); font-weight: 400; font-size: 11px; letter-spacing: 4px; text-transform: uppercase; }
.nav-links { display: flex; gap: 36px; }
.nav-links a {
  color: var(--gray-light); text-decoration: none; font-size: 13px;
  font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--petrol); color: var(--white);
  padding: 10px 24px; font-size: 12px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  border: none; cursor: pointer; transition: background 0.3s;
}
.nav-cta:hover { background: var(--petrol-light); }

/* ============ HERO ============ */
.hero {
  position: relative;
  height: 100vh; min-height: 700px;
  background: linear-gradient(rgba(27,73,101,0.75), rgba(45,50,56,0.85)), url('../img/img-24.jpg') center/cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: 
    repeating-linear-gradient(90deg, transparent, transparent 80px, rgba(255,255,255,0.015) 80px, rgba(255,255,255,0.015) 81px),
    repeating-linear-gradient(0deg, transparent, transparent 80px, rgba(255,255,255,0.015) 80px, rgba(255,255,255,0.015) 81px);
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 900px; padding: 0 40px;
}
.hero-tag {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 8px 20px;
  font-size: 11px; font-weight: 500; letter-spacing: 4px; text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 40px;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 900; font-size: 72px; line-height: 1.05;
  color: var(--white);
  margin-bottom: 28px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent-line);
}
.hero-sub {
  font-size: 18px; line-height: 1.7;
  color: var(--gray-light);
  max-width: 600px; margin: 0 auto 48px;
  font-weight: 400;
}
.hero-btn {
  display: inline-block;
  background: var(--white); color: var(--charcoal);
  padding: 16px 48px;
  font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s;
}
.hero-btn:hover { background: var(--accent-line); color: var(--charcoal); }
.hero-scroll {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.4);
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  text-align: center;
}
.hero-scroll::after {
  content: '';
  display: block;
  width: 1px; height: 40px;
  background: rgba(255,255,255,0.3);
  margin: 12px auto 0;
  animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; height: 40px; }
  50% { opacity: 0.8; height: 60px; }
}

/* ============ STATS BAR ============ */
.stats {
  background: var(--charcoal);
  padding: 0 60px;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 48px 32px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 48px; font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 12px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gray-mid);
}

/* ============ SECTION COMMON ============ */
.section { padding: 120px 60px; }
.section-tag {
  font-size: 11px; font-weight: 700;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--petrol);
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 44px; font-weight: 900;
  line-height: 1.15;
  color: var(--charcoal);
  margin-bottom: 24px;
}
.section-desc {
  font-size: 17px; line-height: 1.8;
  color: var(--gray-mid);
  max-width: 560px;
}

/* ============ ABOUT ============ */
.about {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.about-img {
  width: 100%; aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--steel), var(--petrol));
  position: relative; overflow: hidden;
}
.about-img::after {
  content: 'RKN GROUP';
  position: absolute; bottom: 24px; left: 24px;
  font-size: 11px; letter-spacing: 4px; color: rgba(255,255,255,0.5);
  font-weight: 700;
}
.about-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.15);
  font-size: 14px; letter-spacing: 3px; text-transform: uppercase;
}
.about-text .section-desc { margin-bottom: 40px; }
.about-highlights {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.highlight-item {
  padding: 20px 0;
  border-top: 2px solid var(--bg-light);
}
.highlight-item strong {
  display: block;
  font-size: 13px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 6px;
}
.highlight-item span {
  font-size: 14px; color: var(--gray-mid); line-height: 1.5;
}

/* ============ SERVICES ============ */
.services-bg { background: var(--bg-light); }
.services-header {
  text-align: center;
  max-width: 640px; margin: 0 auto 80px;
}
.services-header .section-desc { margin: 0 auto; }
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.service-card {
  background: var(--white);
  padding: 56px 40px;
  transition: all 0.4s;
  position: relative;
  cursor: default;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 0; height: 3px;
  background: var(--petrol);
  transition: width 0.4s;
}
.service-card:hover::before { width: 100%; }
.service-card:hover { background: var(--charcoal); }
.service-card:hover .service-num,
.service-card:hover .service-title,
.service-card:hover .service-desc { color: var(--white); }
.service-card:hover .service-desc { color: var(--gray-light); }
.service-num {
  font-family: 'Playfair Display', serif;
  font-size: 36px; font-weight: 900;
  color: var(--bg-light);
  margin-bottom: 24px;
  transition: color 0.4s;
}
.service-title {
  font-size: 18px; font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  transition: color 0.4s;
}
.service-desc {
  font-size: 14px; line-height: 1.7;
  color: var(--gray-mid);
  transition: color 0.4s;
}

/* ============ PROJECTS ============ */
.projects-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 64px;
}
.projects-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}
.project-card {
  position: relative;
  background: var(--steel);
  padding: 48px;
  min-height: 320px;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
  transition: background 0.4s;
}
.project-card:hover { background: var(--petrol); }
.project-location {
  font-size: 11px; font-weight: 500;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 12px;
}
.project-name {
  font-family: 'Playfair Display', serif;
  font-size: 28px; font-weight: 900;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.2;
}
.project-scope {
  font-size: 14px; line-height: 1.6;
  color: var(--gray-light);
  max-width: 400px;
}
.project-tag {
  position: absolute; top: 48px; right: 48px;
  background: rgba(255,255,255,0.08);
  padding: 6px 14px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gray-light);
}

/* ============ PARTNERS ============ */
.partners-bg { background: var(--charcoal); }
.partners-bg .section-tag { color: var(--gray-light); }
.partners-bg .section-title { color: var(--white); }
.partners-bg .section-desc { color: var(--gray-mid); }
.partners-header { text-align: center; max-width: 600px; margin: 0 auto 64px; }
.partners-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.partner-item {
  background: rgba(255,255,255,0.03);
  padding: 40px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 120px;
  transition: background 0.3s;
}
.partner-item:hover { background: rgba(255,255,255,0.08); }
.partner-name {
  font-size: 14px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--white);
  margin-bottom: 4px;
}
.partner-country {
  font-size: 11px; color: var(--gray-mid);
  letter-spacing: 1px;
}

/* ============ CERTIFICATIONS ============ */
.certs {
  background: var(--petrol);
  padding: 48px 60px;
  display: flex; align-items: center; justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
}
.cert-item {
  text-align: center;
}
.cert-item strong {
  display: block;
  font-size: 15px; font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
}
.cert-item span {
  font-size: 11px; color: rgba(255,255,255,0.6);
  letter-spacing: 1px; text-transform: uppercase;
}

/* ============ NEWS ============ */
.news-section {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.news-img {
  width: 100%; aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--petrol), var(--steel));
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.15);
  font-size: 13px; letter-spacing: 3px; text-transform: uppercase;
}
.news-date {
  font-size: 12px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: 16px;
}
.news-title {
  font-family: 'Playfair Display', serif;
  font-size: 32px; font-weight: 900;
  color: var(--charcoal);
  line-height: 1.2;
  margin-bottom: 20px;
}
.news-text {
  font-size: 15px; line-height: 1.8;
  color: var(--gray-mid);
}

/* ============ CONTACT ============ */
.contact-bg { background: var(--bg-light); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.contact-info-item {
  margin-bottom: 36px;
}
.contact-info-item strong {
  display: block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--petrol);
  margin-bottom: 8px;
}
.contact-info-item p {
  font-size: 16px; line-height: 1.7;
  color: var(--charcoal);
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.contact-form input, .contact-form textarea {
  background: var(--white);
  border: 1px solid #E0E2E5;
  padding: 16px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; color: var(--charcoal);
  outline: none;
  transition: border-color 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--petrol);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form button {
  align-self: flex-start;
  background: var(--charcoal); color: var(--white);
  border: none; padding: 16px 48px;
  font-size: 13px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  cursor: pointer; transition: background 0.3s;
}
.contact-form button:hover { background: var(--petrol); }

/* ============ FOOTER ============ */
.footer {
  background: var(--charcoal);
  padding: 64px 60px 40px;
  display: flex; justify-content: space-between; align-items: flex-end;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-left .nav-logo { margin-bottom: 16px; }
.footer-copy {
  font-size: 12px; color: var(--gray-mid);
  letter-spacing: 1px;
}
.footer-links { display: flex; gap: 32px; }
.footer-links a {
  font-size: 12px; color: var(--gray-mid);
  text-decoration: none; letter-spacing: 1px; text-transform: uppercase;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--white); }



/* ============ PORTFOLIO ============ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
}
.portfolio-item {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--steel);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s;
}
.portfolio-item:hover { transform: scale(0.98); }
.portfolio-item::after {
  content: attr(data-num);
  position: absolute;
  top: 12px; left: 14px;
  font-family: 'Playfair Display', serif;
  font-size: 14px; font-weight: 900;
  color: rgba(255,255,255,0.5);
  letter-spacing: 1px;
}
.portfolio-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.2);
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
}

.portfolio-item { position: relative; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.92);
  z-index: 10000;
  align-items: center; justify-content: center;
  padding: 40px;
  cursor: pointer;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 95%; max-height: 90%;
  object-fit: contain;
}
.lightbox-caption {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.lightbox-close {
  position: absolute; top: 30px; right: 40px;
  color: var(--white); font-size: 32px;
  cursor: pointer; font-weight: 300;
}

.portfolio-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* ============ VIDEOS ============ */
.video-slot {
  position: relative;
  background: rgba(255,255,255,0.03);
  aspect-ratio: 16/9;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.3s;
}
.video-slot:hover { background: rgba(255,255,255,0.06); }
.video-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px;
}
.video-placeholder span {
  font-size: 12px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}
.video-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.6);
  padding: 12px 16px;
  font-size: 13px; font-weight: 500;
  color: var(--white);
  letter-spacing: 0.5px;
  outline: none;
  min-height: 40px;
}
.video-caption:focus {
  background: rgba(27,73,101,0.8);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .nav { padding: 0 24px; }
  .nav-links { display: none; }
  .section { padding: 80px 24px; }
  .hero h1 { font-size: 40px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .news-section { grid-template-columns: 1fr; }
  #videoGrid { grid-template-columns: 1fr !important; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  #equipo > div { grid-template-columns: 1fr !important; gap: 40px !important; }
  #cultura > div:last-child { grid-template-columns: repeat(2, 1fr) !important; }
  .footer { flex-direction: column; align-items: flex-start; gap: 24px; }
  .certs { gap: 40px; padding: 40px 24px; }
}
