/* ===== RESET Y BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: #f8fafc;
  color: #0b1e33;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== BOTONES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: #1e3a5f;
  color: #fff;
  box-shadow: 0 8px 24px rgba(30, 58, 95, 0.25);
}
.btn-primary:hover {
  background: #152d4a;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(30, 58, 95, 0.35);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  transform: translateY(-2px);
}

/* ===== SECTION HEADER ===== */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  background: #eef2f6;
  color: #1e3a5f;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.3rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 0.8rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0b1e33;
}
.section-header h2 span {
  color: #1e3a5f;
}
.section-header p {
  color: #5e6f8d;
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0.8rem 0;
  transition: all 0.3s ease;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(11, 30, 51, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-brand i {
  font-size: 1.4rem;
  color: #aac4e0;
}
.nav-brand .nav-dot {
  color: #aac4e0;
}
.nav-brand .nav-pe {
  font-weight: 600;
  color: #aac4e0;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-menu a {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s;
  position: relative;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #aac4e0;
  transition: width 0.3s;
}
.nav-menu a:hover,
.nav-menu a.active {
  color: #fff;
}
.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, #0b1e33 0%, #1a3a5c 50%, #0f2a44 100%);
  overflow: hidden;
  padding: 6rem 1.5rem 3rem;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  text-align: center;
  color: #fff;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  padding: 0.4rem 1.5rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.5rem;
}
.hero-badge i {
  color: #f0b34b;
}

.hero-content h1 {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.2rem;
}
.hero-content h1 span {
  color: #aac4e0;
}

.hero-content p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 580px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2.5rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  animation: bounceDown 2s infinite;
}
.hero-scroll i {
  margin-top: 0.3rem;
  font-size: 1rem;
}

@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== SERVICES ===== */
.services {
  padding: 5rem 0;
  background: #fff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.service-card {
  background: #f8fafc;
  border-radius: 1.5rem;
  padding: 2.2rem 1.8rem;
  transition: all 0.3s ease;
  border: 1px solid #e9edf2;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  border-color: #d0d9e6;
}

.service-icon {
  width: 60px;
  height: 60px;
  background: #eef2f6;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #1e3a5f;
  margin-bottom: 1.2rem;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #0b1e33;
}
.service-card p {
  color: #5e6f8d;
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

.service-card ul li {
  font-size: 0.9rem;
  color: #334155;
  padding: 0.2rem 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.service-card ul li i {
  color: #1e3a5f;
  font-size: 0.7rem;
}

/* ===== PROJECTS ===== */
.projects {
  padding: 5rem 0;
  background: #f8fafc;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
}

.project-item {
  background: #fff;
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}
.project-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.project-image {
  height: 180px;
  background: linear-gradient(135deg, #eef2f6, #dce3ec);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: #1e3a5f;
}

.project-info {
  padding: 1.5rem 1.5rem 1.8rem;
}
.project-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.project-info p {
  font-size: 0.9rem;
  color: #5e6f8d;
  margin-bottom: 0.8rem;
}
.project-tag {
  display: inline-block;
  background: #eef2f6;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 1rem;
  border-radius: 50px;
  color: #1e3a5f;
}

/* ===== ABOUT ===== */
.about {
  padding: 5rem 0;
  background: #fff;
}

.about-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content .section-tag {
  margin-bottom: 0.5rem;
}

.about-content h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}
.about-content h2 span {
  color: #1e3a5f;
}
.about-content p {
  color: #5e6f8d;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.feature {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}
.feature i {
  font-size: 1.5rem;
  color: #1e3a5f;
  background: #eef2f6;
  padding: 0.6rem;
  border-radius: 12px;
  margin-top: 0.1rem;
}
.feature strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #0b1e33;
}
.feature span {
  font-size: 0.9rem;
  color: #5e6f8d;
}

.about-image-placeholder {
  background: linear-gradient(135deg, #1e3a5f, #2a4a75);
  border-radius: 1.5rem;
  height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}
.about-image-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}
.about-image-placeholder span {
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 1rem;
  position: relative;
  z-index: 1;
}
.about-image-placeholder i {
  position: relative;
  z-index: 1;
}

/* ===== CONTACT ===== */
.contact {
  padding: 5rem 0;
  background: #f8fafc;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  margin-top: 1rem;
}

.contact-info {
  background: #fff;
  padding: 2.5rem;
  border-radius: 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.contact-item {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 2rem;
}
.contact-item i {
  font-size: 1.4rem;
  color: #1e3a5f;
  width: 2.5rem;
  margin-top: 0.2rem;
}
.contact-item strong {
  display: block;
  font-size: 0.95rem;
  color: #0b1e33;
}
.contact-item p {
  color: #5e6f8d;
  font-size: 0.95rem;
}

.contact-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
.contact-social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #eef2f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e3a5f;
  transition: all 0.3s;
}
.contact-social a:hover {
  background: #1e3a5f;
  color: #fff;
}

.contact-form {
  background: #fff;
  padding: 2.5rem;
  border-radius: 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: #0b1e33;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1.2rem;
  border: 1px solid #dce3ec;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: border 0.3s;
  background: #fafbfc;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1e3a5f;
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.08);
}

/* ===== FOOTER ===== */
.footer {
  background: #0b1e33;
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}
.footer-brand i {
  color: #aac4e0;
  margin-right: 0.3rem;
}
.footer-brand .footer-dot {
  color: #aac4e0;
}
.footer-brand p {
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.4rem;
}

.footer-links h4 {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.footer-links ul li {
  margin-bottom: 0.5rem;
}
.footer-links ul li a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s;
}
.footer-links ul li a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}
.footer-bottom i {
  color: #b22234;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .about-wrapper {
    grid-template-columns: 1fr;
  }
  .about-image-placeholder {
    height: 280px;
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 70%;
    height: 100vh;
    background: #0b1e33;
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: left 0.3s ease;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.3);
  }
  .nav-menu.open {
    left: 0;
  }
  .nav-toggle {
    display: block;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }
  .hero-stats {
    gap: 1.8rem;
    flex-wrap: wrap;
  }
  .stat-number {
    font-size: 1.8rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }
}