/* ====== RESET ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, sans-serif;
  line-height: 1.6;
  color: #001b3d;
  background-color: #ffffff;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.top-wrapper {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

/* ====== TOP BAR ====== */
.top-bar {
  background-color: #001b3d;
  color: #ffffff;
  font-size: 14px;
  padding: 8px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* ====== NAVBAR ====== */
.navbar {
  background-color: #ffffff;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  width: 150px;
  height: 80px;
}
@media (max-width: 768px) {
  .logo img {
    width: 100px;
    height: 50px;
  }
}

.menu-toggle {
  display: flex;
}

.nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: #001b3d;
  font-weight: 500;
  transition: 0.3s;
}

nav a:hover {
  color: #f6830d;
}

/* ====== BOTONES ====== */
.btn-primary {
  background-color: #001b3d;
  color: #ffffff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 4px;
  transition: 0.3s;
}

.btn-primary:hover {
  background-color: #f6830d;
}

.btn-accent {
  background-color: #f6830d;
  color: #ffffff;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 4px;
  display: inline-block;
  margin-top: 20px;
  transition: 0.3s;
}

.btn-accent:hover {
  background-color: #001b3d;
}

/* =========================
   HEADER
========================= */

.header {
  position: fixed;
  width: 100%;
  background: white;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
}

/* NAV DESKTOP */
.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  text-decoration: none;
  color: #1e293b;
  font-weight: 500;
  transition: 0.3s;
}

.nav a:hover {
  color: #2563eb;
}

/* =========================
   HAMBURGUESA
========================= */

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #1e293b;
  transition: 0.3s;
}

/* =========================
   OFFCANVAS
========================= */

.offcanvas {
  position: fixed;
  top: 0;
  right: -260px;
  width: 260px;
  height: 100vh;
  background: #0f172a;
  display: flex;
  flex-direction: column;
  padding: 4rem 2rem;
  gap: 1.5rem;
  transition: 0.4s ease;
  z-index: 1001;
}

.offcanvas a {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
}

.offcanvas.active {
  right: 0;
}

/* Overlay oscuro */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 1000;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  nav ul {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }
}
/* =========================
   HERO SECTION
========================= */

.hero {
  position: relative;
  height: 80vh;
  background: url("../img/hero-banner.png") center/cover no-repeat;
  display: flex;
  align-items: center;
  color: white;
  overflow: hidden;
}

/* Overlay oscuro elegante */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.95),
    rgba(37, 99, 235, 0.85)
  );
}

/* Contenedor */
.hero-container {
  position: relative;
  max-width: 1200px;
  margin: auto;
  padding: 0 2rem;
  z-index: 2;
}

.hero-content {
  max-width: 650px;
}

/* Título */
.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero h1 span {
  display: block;
  color: #f6830d;
}

/* Texto */
.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Botones */
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: #f6830d;
  color: #ffffff;
  padding: 0.9rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
}

.btn-primary:hover {
  background: #0ea5e9;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.btn-secondary {
  border: 2px solid white;
  color: white;
  padding: 0.9rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
}

.btn-secondary:hover {
  background: white;
  color: #0f172a;
  transform: translateY(-3px);
}
/* ====== SERVICES PREMIUM ====== */

.services {
  padding: 100px 0;
  background-color: #f8f9fa;
  text-align: center;
}

.section-title {
  font-size: 34px;
  margin-bottom: 60px;
  color: #001b3d;
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.service-card {
  background: #ffffff;
  padding: 50px 30px;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
}

/* Círculo decorativo superior */
.service-card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 140px;
  height: 140px;
  background: rgba(246, 131, 13, 0.08);
  border-radius: 50%;
  transition: all 0.4s ease;
}

.service-card:hover::before {
  background: rgba(0, 27, 61, 0.08);
}

/* ICONO */
.icon-wrapper {
  width: 80px;
  height: 80px;
  background: rgba(246, 131, 13, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px auto;
  transition: all 0.3s ease;
}

.service-card:hover .icon-wrapper {
  background: #001b3d;
}

.service-icon {
  width: 40px;
  height: 40px;
  color: #f6830d;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  color: #ffffff;
}

.service-card h4 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #001b3d;
}

.service-card p {
  color: #666;
  font-size: 15px;
  line-height: 1.6;
}

/* ====== ABOUT ====== */
.about {
  background-color: #001b3d;

  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(37, 99, 235, 0.85)),
    url(../img/bg-metalurgia.png) bottom center/cover no-repeat;
  color: #ffffff;
  padding: 80px 0;
}

.about h3 {
  font-size: 32px;
  margin-bottom: 20px;
}

/* ====== CONTACT ====== */
.contact {
  padding: 80px 0;
  text-align: center;
}

.contact h3 {
  font-size: 32px;
  margin-bottom: 20px;
}

/* ====== FOOTER ====== */
footer {
  background-color: #001b3d;
  color: #ffffff;
  text-align: center;
  padding: 20px 0;
  font-size: 14px;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .navbar .container {
    flex-direction: column;
    gap: 15px;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .hero h2 {
    font-size: 28px;
  }
}

/* ====== CONTACT SECTION MEJORADA ====== */

.contact {
  padding: 100px 0;
  background-color: #f8f9fa;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.contact-info h3 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #001b3d;
}

.contact-info p {
  margin-bottom: 30px;
  color: #555;
}

.info-item {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
}

.info-item strong {
  color: #001b3d;
}

.contact-form {
  background: #ffffff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.form-group {
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 15px;
  transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #f6830d;
  outline: none;
  box-shadow: 0 0 0 2px rgba(246, 131, 13, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
}
.btn-accent {
  background-color: #f6830d;
  color: #ffffff;
  padding: 12px 25px;
  border: none; /* Elimina borde por defecto */
  outline: none; /* Elimina outline */
  border-radius: 4px;
  cursor: pointer; /* Cursor profesional */
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-accent:hover {
  background-color: #001b3d;
}

.btn-accent:focus {
  outline: none; /* Elimina focus azul del navegador */
  box-shadow: 0 0 0 3px rgba(246, 131, 13, 0.3); /* Focus elegante */
}
