/* Base */
body {
  background: linear-gradient(135deg, #1a1c20 0%, #2c5364 100%);
  color: #f5f7fa;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-attachment: fixed;
  min-height: 100vh;
}

.container {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  color: #e2e8f0;
  max-width: 1200px;
  margin: 3rem auto;
  padding: 2rem;
  border-radius: 16px;
  box-shadow:
    0 8px 32px 0 rgba(0, 0, 0, 0.5),
    inset 0 0 10px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.3s ease;
}

.container:hover {
  box-shadow:
    0 12px 48px 0 rgba(0, 0, 0, 0.6),
    inset 0 0 15px rgba(255, 255, 255, 0.1);
}


/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: linear-gradient(to right, #0f1115, #1a2734); /* más oscuro que antes */
  color: #f5f7fa;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #1e293b;
}


.logo-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.5rem;
  color: #e2e8f0;
}

nav {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

nav a,
.dropbtn {
  color: #f5f7fa;
  text-decoration: none;
  font-weight: 500;
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.2s ease-in-out;
}

nav a:hover,
.dropbtn:hover {
  color: #dadada;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: rgba(30, 41, 59, 0.95);
  color: #f1f5f9;
  min-width: 150px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  border-radius: 0.375rem;
  padding: 0.5rem 0;
  top: 100%;
  left: 0;
  z-index: 1000;
  flex-direction: column;
}

.dropdown-content a {
  display: block;
  padding: 0.5rem 1.25rem;
  color: #cbd5e1;
  font-weight: 400;
  text-decoration: none;
}

.dropdown-content a:hover {
  background-color: rgba(100, 116, 139, 0.2);
  color: #dadada;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.menu-toggle {
  display: none;
  background: none;
  font-size: 1.5rem;
  color: white;
  border: none;
  cursor: pointer;
}


/* Hero */
.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
  background-image: url('/images/seguridad.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  color: white;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 50, 0.6);
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  color: #dadada;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  color: #d1d5db;
}

.hero button {
  background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
  color: white;
  border: none;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}

.hero button:hover {
  transform: scale(1.05);
}


/* Services */
.services {
  margin: 3rem auto;
  padding: 0 1rem;
}

.services h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 700;
  color: #f5f7fa;
}

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

.service {
  background: rgba(255, 255, 255, 0.12); /* más claro */
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: #f1f5f9;
}


.service:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.service h3 {
  margin-bottom: 0.75rem;
  color: #dadada;
}


/* Why Us */
.why-us {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.why-us h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #f5f7fa;
  font-weight: 700;
}

.reason {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.12); /* más claro */
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  color: #f1f5f9;
}


.reason-left {
  flex-direction: row;
}

.reason-right {
  flex-direction: row-reverse;
}

.reason img {
  max-width: 620px;
  max-height: 620px;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0.5rem;
  flex-shrink: 0;
}

.reason div {
  flex: 1;
  color: #e2e8f0;
}

.reason strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
}


/* Quote */
.quote {
  position: relative;
  max-width: 800px;
  margin: 4rem auto;
  padding: 2.5rem 2rem;
  background: linear-gradient(to right, #2c3e50, #3a506b);
  border-left: 6px solid #dadada;
  border-radius: 0.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  font-style: italic;
  color: #e2e8f0;
  text-align: center;
  line-height: 1.6;
}

.quote::before,
.quote::after {
  content: "“";
  font-size: 3rem;
  color: #dadada;
  position: absolute;
  font-style: normal;
  font-weight: bold;
}

.quote::after {
  content: "”";
  bottom: -20px;
  right: 20px;
}

.quote::before {
  top: -20px;
  left: 20px;
}

.quote cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #94a3b8;
  font-style: normal;
}


/* Contact */
.contact {
  max-width: 600px;
  margin: 3rem auto 5rem;
  padding: 0 1rem;
  color: #e2e8f0;
}

.contact h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #f5f7fa;
  font-weight: 700;
}

form {
  display: grid;
  gap: 1rem;
}

input,
textarea {
  padding: 0.75rem 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid #475569;
  border-radius: 0.375rem;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  resize: vertical;
  color: #f5f7fa;
  transition: border-color 0.2s ease-in-out;
}

input:focus,
textarea:focus {
  border-color: #dadada;
  outline: none;
}

button[type="submit"] {
  background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
  color: white;
  border: none;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}

button[type="submit"]:hover {
  transform: scale(1.05);
}


/* Contact CTA */
.contact-cta {
  text-align: center;
  background: linear-gradient(to right, #1e293b, #334155);
  color: white;
  padding: 3rem 1.5rem;
  border-radius: 0.75rem;
  margin: 3rem auto;
  max-width: 800px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.contact-cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.contact-cta p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.cta-button {
  background-color: white;
  color: #0c2a66;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.2s ease-in-out, transform 0.2s ease-in-out;
  display: inline-block;
}

.cta-button:hover {
  background-color: #e0e7ff;
  transform: translateY(-2px);
}


/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #94a3b8;
  background: linear-gradient(to right, #0e141a, #1a2734); /* oscuro y elegante */
  user-select: none;
}

.site-footer {
  width: 100%;
  margin: 0;
  padding: 2rem 0;
  background: linear-gradient(to right, #0e141a, #1a2734); /* coherente con footer */
  color: white;
}


.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
  border-bottom: 1px solid #374151;
  padding-bottom: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 2.5rem;
  font-weight: 600;
  color: #ffffff;
}

.footer-links {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer-links h4 {
  margin-bottom: 0.75rem;
  color: #ffffff;
  font-weight: 600;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  margin-bottom: 0.4rem;
}

.footer-links ul li a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links ul li a:hover {
  color: #dadada;
}

.footer-bottom {
  text-align: center;
  margin-top: 1.5rem;
  color: #94a3b8;
  font-size: 0.85rem;
}


/* Responsive */
@media (max-width: 870px) {
  .reason {
    flex-direction: column !important;
    text-align: center;
  }

  .reason img {
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
  }

  nav.show {
    display: flex;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
  }
}

@media (max-width: 600px) {
  header {
    flex-direction: column;
    gap: 0.75rem;
  }

  nav a {
    margin-left: 0.5rem;
    font-size: 0.9rem;
  }

  .hero h1 {
    font-size: 2rem;
  }
}



/* Contact */

.contact {
  max-width: 600px;
  margin: 3rem auto 5rem;
  padding: 0 1rem;
  color: #e2e8f0;
}

.contact h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #f5f7fa;
  font-weight: 700;
}

form {
  display: grid;
  gap: 1rem;
}

input,
textarea,
select {
  padding: 0.75rem 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid #475569;
  border-radius: 0.375rem;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  resize: vertical;
  color: #f5f7fa;
  transition: border-color 0.2s ease-in-out;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #dadada;
  outline: none;
}

button[type="submit"] {
  background: linear-gradient(90deg, #1e3a8a 0%, #334155 100%);
  color: #f1f5f9;
  border: none;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: transform 0.2s ease-in-out, background 0.3s ease-in-out;
}

button[type="submit"]:hover {
  background: linear-gradient(90deg, #1e40af 0%, #475569 100%);
  transform: scale(1.03);
}


.hidden {
  display: none;
}

.form-wrapper {
  background: rgba(255, 255, 255, 0.07);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

select {
  background-color: rgba(255, 255, 255, 0.05); /* igual a inputs */
  color: #f5f7fa; /* texto claro */
  border: 1px solid #475569;
  border-radius: 0.375rem;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  font-family: 'Inter', sans-serif;
}

select:focus {
  border-color: #dadada;
  outline: none;
}

option {
  background-color: #1e293b; /* fondo oscuro solo para desplegable */
  color: #f5f7fa; /* texto claro */
}

option:disabled {
  color: #94a3b8;
}


/* Contenedor principal para "Trabaja con Nosotros" */
.container-work {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border-radius: 1rem;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.5),
    inset 0 0 10px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

/* Layout flex para imagen y texto */
.content-work {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  color: inherit;
}

/* Imagen con sombra y bordes redondeados */
.content-work img {
  width: 350px;
  max-width: 100%;
  border-radius: 0.75rem;
  object-fit: cover;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Texto flex para ocupar el resto del espacio */
.content-work .text {
  flex: 1;
}

/* Títulos y textos */
.content-work h1 {
  color: #f5f7fa;
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 2rem;
}

.content-work p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.4;
}

.content-work .email {
  color: #a5b4fc;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* Código para asunto del mail */
.content-work code {
  background: rgba(255, 255, 255, 0.07);
  padding: 0.4rem 0.75rem;
  border-radius: 0.375rem;
  font-family: monospace;
  color: #cbd5e1;
  display: inline-block;
  margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .content-work {
    flex-direction: column;
    text-align: center;
  }

  .content-work img {
    width: 100%;
    max-width: 100%;
  }
}
