:root {
  --brand-blue-900: #0a2c5c;
  --brand-blue-800: #0d3d76;
  --brand-blue-700: #0f5ca8;
  --brand-blue-600: #1a6ec8;
  --brand-gold-500: #f7c948;
  --brand-gold-600: #f0b11a;
  --brand-gold-700: #d99800;
  --bg-soft: #f3f7fb;
  --text-dark: #0f172a;
  --text-muted: #4b5d75;
  --card-bg: #ffffff;
  --border-soft: #e7edf3;
}

/* ===== RESET Y BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: var(--bg-soft);
  color: var(--text-dark);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 1000;
  padding: 0.75rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo img {
  height: 45px;
  width: auto;
}

.nav-logo span {
  font-size: 0.85rem;
  line-height: 1.2;
  color: #64748b;
}

.nav-logo strong {
  color: #0f172a;
  font-weight: 800;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  font-weight: 600;
  color: #475569;
  transition: color 0.2s;
  font-size: 0.95rem;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--brand-blue-700);
}

.nav-toggle {
  display: none;
  font-size: 1.5rem;
  color: #0f172a;
  cursor: pointer;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  gap: 3rem;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-content h1 span {
  background: linear-gradient(
    135deg,
    var(--brand-blue-700),
    var(--brand-gold-600)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.25rem;
  color: #64748b;
  margin-top: 1.5rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image svg {
  width: 250px;
  height: 250px;
}

/* ===== BOTONES ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--brand-gold-500),
    var(--brand-gold-600)
  );
  color: var(--brand-blue-900);
  box-shadow: 0 8px 20px rgba(247, 201, 73, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(
    135deg,
    var(--brand-gold-600),
    var(--brand-gold-700)
  );
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(247, 201, 73, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--brand-blue-800);
  border: 2px solid rgba(15, 92, 168, 0.25);
}

.btn-secondary:hover {
  border-color: var(--brand-blue-700);
  color: var(--brand-blue-700);
}

.btn-small {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

.btn-large {
  padding: 1rem 3rem;
  font-size: 1.1rem;
}

/* ===== SECCIONES ===== */
section {
  padding: 4rem 0;
}

h2 {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.5rem;
}

.subtitle {
  text-align: center;
  color: #64748b;
  font-size: 1.15rem;
  margin-bottom: 3rem;
}

/* ===== SERVICIOS ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.service-card {
  background: #fff;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  border: 1px solid #f1f5f9;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.service-card i {
  font-size: 3rem;
  color: var(--brand-blue-700);
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: #64748b;
}

/* ===== SISTEMAS DESTACADOS ===== */
.systems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.system-card {
  background: #fff;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  text-align: center;
  border: 1px solid #f1f5f9;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.system-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.system-icon i {
  font-size: 3.5rem;
  color: var(--brand-blue-700);
  background: rgba(15, 92, 168, 0.08);
  padding: 1.5rem;
  border-radius: 16px;
  margin-bottom: 1.5rem;
}

.system-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.system-card p {
  color: #64748b;
  margin-bottom: 1.5rem;
}

/* ===== PÁGINAS INTERNAS ===== */
.page-content {
  padding-top: 6rem;
  min-height: 80vh;
}

.page-content h1 {
  font-size: 3rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.5rem;
}

/* ===== QUIÉNES SOMOS ===== */
.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
  align-items: center;
}

.about-text h2 {
  text-align: left;
  font-size: 1.8rem;
  margin-top: 2rem;
}

.about-text h2:first-child {
  margin-top: 0;
}

.about-text p {
  color: #475569;
  margin-top: 0.5rem;
}

.values-list {
  list-style: none;
  margin-top: 0.75rem;
}

.values-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: #475569;
}

.values-list li i {
  color: var(--brand-gold-600);
}

.about-image {
  text-align: center;
  background: #f1f5f9;
  padding: 3rem;
  border-radius: 20px;
}

/* ===== CATÁLOGO / PRODUCTOS ===== */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.catalog-item {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  border: 1px solid #f1f5f9;
}

.catalog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.catalog-image {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  padding: 1.5rem;
}

.catalog-image img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.catalog-info {
  padding: 1.5rem;
}

.catalog-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.catalog-info p {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.catalog-tag {
  display: inline-block;
  background: rgba(15, 92, 168, 0.08);
  color: var(--brand-blue-700);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 0.5rem;
}

/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  border-radius: 20px;
  max-width: 600px;
  width: 90%;
  padding: 2.5rem;
  position: relative;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  cursor: pointer;
  color: #94a3b8;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #0f172a;
}

.modal-body h2 {
  text-align: left;
  font-size: 2rem;
  margin-top: 0;
}

.modal-body ul {
  list-style: none;
  margin: 1rem 0;
}

.modal-body ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
  color: #475569;
}

.modal-body ul li strong {
  color: #0f172a;
}

/* ===== CONTACTO ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--brand-blue-700);
  width: 2rem;
  margin-top: 0.2rem;
}

.contact-item a {
  color: var(--brand-blue-700);
  font-weight: 500;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-form h2 {
  text-align: left;
  font-size: 1.8rem;
}

/* ===== FORMULARIOS ===== */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
  background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-blue-700);
}

.form-group textarea {
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 0.5rem;
}

/* ===== COTIZACIÓN ===== */
.cotizacion-container {
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
}

/* ===== FOOTER ===== */
.footer {
  background: #0f172a;
  color: #e2e8f0;
  padding: 3rem 2rem 1.5rem;
  margin-top: 3rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-col p {
  color: #94a3b8;
  font-size: 0.95rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin: 0.5rem 0;
}

.footer-col ul a {
  color: #94a3b8;
  transition: color 0.2s;
}

.footer-col ul a:hover {
  color: var(--brand-gold-500);
}

.footer-col a {
  color: #94a3b8;
}

.footer-col a:hover {
  color: var(--brand-gold-500);
}

.footer-col i {
  width: 1.5rem;
  color: var(--brand-gold-500);
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid #1e293b;
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid #f1f5f9;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 8rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-image svg {
    width: 180px;
    height: 180px;
  }

  h2 {
    font-size: 2rem;
  }

  .page-content h1 {
    font-size: 2.2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .systems-grid {
    grid-template-columns: 1fr;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .cotizacion-container {
    padding: 1.5rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col ul li {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .nav-logo span {
    font-size: 0.7rem;
  }

  .nav-logo img {
    height: 35px;
  }
}
