/* ===== AMI Technology - Brand Official ===== */
/* Palette: Azul Marino #081F38 | Azul Eléctrico #007BFF | Celeste #00D1FF | Gris #E5E7EB */
:root {
  --navy: #081F38;
  --electric: #007BFF;
  --celeste: #00D1FF;
  --gray: #E5E7EB;
  --white: #FFFFFF;
  --bg: #F8FAFC;
  --text: #081F38;
  --text-muted: #4A5568;
  --border: #D1D9E0;
  --shadow: 0 8px 30px rgba(8, 31, 56, 0.08);
  --shadow-hover: 0 14px 40px rgba(0, 123, 255, 0.15);
  --radius: 12px;
  --transition: all 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

.container { width: min(1140px, 92%); margin: 0 auto; }

/* ===== Navbar ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav-container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}

.logo { display: flex; align-items: center; text-decoration: none; }

.logo-img {
  height: 48px; width: auto; object-fit: contain;
}

.nav-links { display: flex; gap: 2rem; }

.nav-links a {
  color: var(--text-muted); text-decoration: none;
  font-weight: 500; font-size: 0.92rem;
  transition: var(--transition); position: relative;
}

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

.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--celeste);
  transition: var(--transition);
}
.nav-links a:hover::after { width: 100%; }

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

/* ===== Hero ===== */
.hero {
  position: relative;
  padding-top: 72px;
  background: var(--white);
  overflow: hidden;
}

.hero-banner {
  width: 100%;
  max-height: 320px;
  overflow: hidden;
}

.banner-img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-overlay {
  padding: 48px 0 60px;
}

.hero-text { max-width: 640px; }

.hero-tag {
  display: inline-block;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--electric);
  margin-bottom: 1rem;
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: rgba(0, 123, 255, 0.06);
}

.hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 700; line-height: 1.3;
  margin-bottom: 1.1rem; color: var(--navy);
}

.hero h1 span { color: var(--electric); }

.hero-desc {
  font-size: 1.02rem; color: var(--text-muted);
  margin-bottom: 1.75rem; font-weight: 400;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 26px; font-weight: 600; font-size: 0.92rem;
  border-radius: 50px; text-decoration: none; cursor: pointer;
  border: none; transition: var(--transition); font-family: inherit;
}

.btn-primary {
  background: var(--electric); color: var(--white);
  box-shadow: 0 6px 18px rgba(0, 123, 255, 0.3);
}
.btn-primary:hover {
  background: #0066d6; transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 123, 255, 0.4);
}

.btn-outline {
  background: transparent; color: var(--electric);
  border: 2px solid var(--electric);
}
.btn-outline:hover {
  background: rgba(0, 123, 255, 0.06); transform: translateY(-2px);
}

/* ===== About ===== */
.about { padding: 80px 0; background: var(--white); }

.section-header { text-align: center; margin-bottom: 2.75rem; }

.section-header h2 {
  font-size: clamp(1.6rem, 3.5vw, 2rem);
  font-weight: 700; color: var(--navy); margin-bottom: 0.6rem;
}

.underline {
  width: 50px; height: 3px; background: var(--celeste);
  margin: 0 auto 0.9rem; border-radius: 2px;
}

.section-sub { color: var(--text-muted); font-size: 1rem; }

.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.5rem; margin-bottom: 3rem;
}

.about-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  transition: var(--transition);
}
.about-card:hover {
  border-color: var(--celeste); box-shadow: var(--shadow); transform: translateY(-3px);
}

.card-icon { font-size: 1.7rem; margin-bottom: 0.8rem; }

.about-card h3 {
  font-size: 1.15rem; font-weight: 700; color: var(--electric); margin-bottom: 0.6rem;
}
.about-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Valores */
.valores-title {
  text-align: center; font-size: 1.25rem; font-weight: 700;
  color: var(--navy); margin-bottom: 1.5rem;
}

.valores-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem;
}

.valor-item {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.4rem 1rem;
  text-align: center; transition: var(--transition);
}
.valor-item:hover {
  border-color: var(--celeste); box-shadow: var(--shadow); transform: translateY(-3px);
}

.valor-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }

.valor-item h4 {
  font-size: 0.95rem; font-weight: 700; color: var(--navy); margin-bottom: 0.35rem;
}
.valor-item p { font-size: 0.82rem; color: var(--text-muted); }

/* ===== Projects ===== */
.projects { padding: 80px 0; background: var(--bg); }

.projects-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}

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

.project-card.featured { border-color: var(--electric); }

.project-img {
  height: 180px; overflow: hidden;
  background: linear-gradient(145deg, #e8f4ff 0%, #d0e8ff 100%);
  display: flex; align-items: center; justify-content: center;
}

.project-img img {
  width: 100%; height: 100%; object-fit: cover;
}

.project-img.placeholder span {
  font-size: 1.1rem; font-weight: 600; color: var(--electric);
  opacity: 0.45; letter-spacing: 1px;
}

.project-info { padding: 1.25rem; }

.project-tag {
  display: inline-block; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.8px; text-transform: uppercase;
  color: var(--electric); background: rgba(0, 123, 255, 0.08);
  padding: 3px 10px; border-radius: 50px; margin-bottom: 0.55rem;
}

.project-info h3 {
  font-size: 1.08rem; font-weight: 700; color: var(--navy); margin-bottom: 0.4rem;
}
.project-info p {
  font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0.85rem;
}

.project-link {
  color: var(--electric); text-decoration: none;
  font-weight: 600; font-size: 0.88rem; transition: var(--transition);
}
.project-link:hover { color: var(--navy); }

/* ===== Contact ===== */
.contact { padding: 80px 0; background: var(--white); }

.contact-grid {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 2.5rem; align-items: start;
}

.contact-logo {
  height: 70px; width: auto; object-fit: contain; margin-bottom: 1rem;
}

.contact-slogan {
  font-weight: 700; color: var(--electric); font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.contact-info p {
  color: var(--text-muted); margin-bottom: 0.5rem; font-size: 0.95rem;
}

.contact-web a {
  color: var(--electric); text-decoration: none; font-weight: 500;
}
.contact-web a:hover { text-decoration: underline; }

.contact-form {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
}

.form-group { margin-bottom: 1.1rem; }

.form-group label {
  display: block; font-size: 0.85rem; font-weight: 500;
  color: var(--text-muted); margin-bottom: 0.3rem;
}

.form-group input,
.form-group textarea {
  width: 100%; padding: 11px 14px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text);
  font-family: inherit; font-size: 0.92rem;
  transition: var(--transition); outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--electric);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.12);
}

.form-group textarea { resize: vertical; min-height: 110px; }

.contact-form .btn { width: 100%; margin-top: 0.3rem; }

/* ===== Footer ===== */
.footer {
  padding: 36px 0; border-top: 1px solid var(--border); background: var(--bg);
}

.footer-content {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.6rem; text-align: center;
}

.footer-logo { height: 50px; width: auto; object-fit: contain; }

.footer-tagline { color: var(--text-muted); font-size: 0.85rem; }
.footer-copy { color: var(--text-muted); font-size: 0.82rem; }

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .about-grid { grid-template-columns: 1fr; }
  .valores-grid { grid-template-columns: repeat(3, 1fr); }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-banner { max-height: 220px; }
  .banner-img { max-height: 220px; }
}

@media (max-width: 640px) {
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--white); flex-direction: column;
    padding: 1.4rem; gap: 1.1rem;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: flex; }
  .valores-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .logo-img { height: 40px; }
  .hero-banner { max-height: 160px; }
  .banner-img { max-height: 160px; }
}
