:root {
  --bg-dark: #000000;
  --bg-dark-alt: #121212;
  --red-main: #ff1e1e;
  --red-hover: #e00000;
  --text-light: #f5f5f5;
  --text-muted: #b3b3b3;
  --card-bg: #1d1d1d;
  --border-soft: #333333;
}


*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  background-image: url("img/logo-central-security-negro.jpg");
  background-repeat: repeat;
  background-attachment: fixed;
  background-position: center;
  background-size: 260px auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

/* HEADER */

.main-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.96);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(10px);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.logo-text h1 {
  font-size: 20px;
  margin: 0;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.logo-text p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.main-nav a {
  margin-left: 18px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--red-main);
  transition: width 0.2s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

/* HERO */

.hero-section {
  background: radial-gradient(circle at top, #2a0000, #000000 55%);
  padding: 60px 0 50px;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 32px;
  align-items: center;
}

.hero-text h2 {
  font-size: 30px;
  margin-bottom: 12px;
}

.hero-text p {
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 24px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary,
.btn-secondary {
  padding: 10px 22px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--red-main);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--red-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: #ffffff;
  border-color: var(--red-main);
}

.btn-secondary:hover {
  background: var(--red-main);
  transform: translateY(-1px);
}

.hero-highlight {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-soft);
  padding: 18px 18px 16px;
  border-radius: 8px;
}

.hero-highlight h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--red-main);
}

.hero-highlight ul {
  padding-left: 18px;
  margin: 0;
  color: var(--text-muted);
}

/* SECCIONES GENERALES */

section {
  padding: 50px 0;
}

h2 {
  font-size: 26px;
  margin-bottom: 8px;
}

.section-intro {
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 24px;
}

/* SERVICIOS */

.services-section {
  background: var(--bg-dark-alt);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.service-card {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 18px 16px;
  border: 1px solid var(--border-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.service-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--red-main);
}

.service-card p {
  margin: 0;
  color: var(--text-muted);
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.55);
  border-color: var(--red-main);
}

/* NOSOTROS */

.about-section {
  background: #050505;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 24px;
}

.about-section p {
  color: var(--text-muted);
}

.about-highlights {
  background: var(--card-bg);
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  padding: 18px 16px;
}

.about-highlights h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--red-main);
}

.about-highlights ul {
  padding-left: 18px;
  margin: 0;
}

/* SEDES */

.locations-section {
  background: var(--bg-dark-alt);
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.location-card {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 18px 16px;
  border: 1px solid var(--border-soft);
}

.location-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--red-main);
}

.location-card p {
  margin: 4px 0;
}

/* CONTACTO */

.contact-section {
  background: #050505;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 24px;
  margin-top: 24px;
}

form#contactForm {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 20px 18px;
  border: 1px solid var(--border-soft);
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 9px 10px;
  border-radius: 4px;
  border: 1px solid var(--border-soft);
  background: #050505;
  color: var(--text-light);
  font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red-main);
}

.error-message {
  display: block;
  font-size: 12px;
  color: #ff6b6b;
  margin-top: 3px;
}

input.error,
textarea.error {
  border-color: #ff6b6b;
}

.form-status {
  margin-top: 10px;
  font-size: 13px;
}

.form-status.success {
  color: #4cd964;
}

.form-status.error {
  color: #ff6b6b;
}

.contact-info {
  background: var(--card-bg);
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  padding: 20px 18px;
}

.contact-info h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--red-main);
}

.contact-info p {
  margin: 6px 0;
  color: var(--text-muted);
}

/* BOTÓN WHATSAPP CONTACTO */

.btn-whatsapp {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 18px;
  border-radius: 4px;
  background: #25d366;
  color: #000000;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn-whatsapp:hover {
  background: #1eb255;
  transform: translateY(-1px);
}

/* BOTÓN FLOTANTE WHATSAPP */

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 18px;
  z-index: 60;
  background: #25d366;
  color: #000000;
  padding: 10px 14px;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.6);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.whatsapp-float:hover {
  background: #1eb255;
}

/* FOOTER */

.main-footer {
  background: #000000;
  border-top: 1px solid var(--border-soft);
  padding: 16px 0 18px;
}

.footer-content {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .hero-content,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .main-nav {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .main-nav a {
    margin-left: 0;
    margin-right: 16px;
    margin-bottom: 4px;
  }
}

@media (max-width: 600px) {
  .hero-section {
    padding-top: 40px;
  }

  .hero-text h2 {
    font-size: 24px;
  }

  .logo-img {
    width: 48px;
    height: 48px;
  }
  
  .footer-content a[href*="instagram.com"] {
  color: var(--red-main);
  font-weight: 600;
}

.footer-content a[href*="instagram.com"]:hover {
  text-decoration: underline;
}

  
}
