:root {
  --primary-color: #E33220;
  --black: #000;
  --white: #fff;
  --font-main: 'Montserrat', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--white);
  color: var(--black);
}

a {
  text-decoration: none;
  color: inherit;
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  font-size: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
  z-index: 999;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

@media screen and (max-width: 768px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
    font-size: 24px;
    bottom: 15px;
    right: 15px;
  }
}


.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.nav__menu {
  display: flex;
}

.nav__list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav__link {
  color: var(--black);
  font-weight: 600;
  transition: color 0.3s;
}

.nav__link:hover {
  color: var(--primary-color);
}

.nav__toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  background: url('../imagenes/seguridadhome.webp') no-repeat center 20%/contain;
  background-size: cover;
  background-position: center top;
  padding-top: 5rem; /* Espacio para que no se corte por el menú */
  clip-path: ellipse(150% 100% at 50% 0%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}


.overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

.hero__content {
  position: relative;
  color: var(--white);
  z-index: 1;
}

.hero__content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.hero__content h1 span {
  color: var(--primary-color);
}

.hero__content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
}

.btn {
  background-color: var(--primary-color);
  font-size: 1.3rem;
  padding: 0.75rem 2rem;
  color: var(--white);
  font-weight: 600;
  border-radius: 5px;
  transition: background 0.3s;
}

.btn:hover {
  background-color: #b7281a;
}

/* Responsive */
@media screen and (max-width: 768px) {

    .hero__content {
  padding: 0 1rem;
}

  .nav__menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
  }

  .nav__menu.active {
    display: flex;
  }

  .nav__toggle {
    display: block;
  }

  .nav__list {
    flex-direction: column;
    gap: 1rem;
  }

  .hero__content h1 {
    font-size: 2.5rem;
  }

  .hero__content p {
    font-size: 1.2rem;
  }

  .btn {
    font-size: 1.1rem;
    padding: 0.6rem 1.4rem;
  }
}

.about.section {
  padding: 8rem 2rem; /* Más espacio arriba y abajo */
}

.about__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem; /* Más espacio entre imagen y contenido */
  flex-wrap: wrap;
}

.about__image {
  flex: 0 0 35%;
  max-width: 440px;
  border-left: 8px solid var(--primary-color);
  padding-left: 1rem;
}


.about__image img {
  width: 100%;
  border-radius: 3px;
  object-fit: cover;
}

.about__content {
  flex: 1;
  min-width: 300px;
}

.about__content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.about__content h2 span {
  color: var(--primary-color);
}

.about__content p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 2rem;
}

/* Responsive: texto primero, imagen abajo */
@media screen and (max-width: 768px) {
  .about__container {
    flex-direction: column-reverse;
    text-align: center;
    gap: 2rem;
  }

  .about__image {
    border-left: none;
    padding-left: 0;
  }

    .about__content h2 {
    font-size: 2rem;
  }

  .about.section {
  padding: 4rem 2rem; /* Más espacio arriba y abajo */

 }
  
}

.mision-equipo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
  flex-wrap: wrap;
  background: var(--white);
}

.mision,
.equipo {
  flex: 1;
  min-width: 300px;
  padding: 2rem;
}

.mision {
  background-color: #fff;
  color: #222;
}

.equipo {
  background-color: var(--primary-color);
  color: #fff;
}

.mision h3,
.equipo h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
    text-align: center;
}

.mision h3 span,
.equipo h3 span {
  color: var(--primary-color);
}

.equipo h3 span {
  color: #fff;
  font-weight: 700;
}

.mision p,
.equipo p {
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.6;
}

.mision__image {
  flex: 0 0 auto;
  max-width: 360px;
  margin: 0 2.3rem;
}

.mision__image img {
  width: 100%;
  height: auto;
}

@media screen and (min-width: 993px) {
  .mision-equipo {
    padding: 1rem 4rem 0 4rem; /* Arriba y lados con espacio, abajo sin espacio */
    position: relative;
  }

  .mision__image {
    max-width: 480px;
    margin: 0 -2rem;
    z-index: 2;
    position: relative;
    transform: translateY(-30px);
  }

  .mision,
  .equipo {
    padding: 3rem 2rem;
  }

}

.servicios-section {
  padding: 6rem 2rem;
  text-align: center;
}

.servicios-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-family: var(--font-heading);
}

.servicios-subtitle {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 3rem;
  color: #444;
}

.servicio-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
}

.servicio-card {
  background-color: #fff;
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  max-width: 370px;
  flex: 1;
  text-align: center;
}

.circulo-img {
  position: relative;
  width: 220px; /* AUMENTADO */
  height: 220px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 6px #fff, 0 0 0 10px var(--primary-color);
}

.circulo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.circulo-img {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.servicio-card:hover .circulo-img {
  transform: scale(1.07);
  box-shadow: 0 0 0 6px #fff, 0 0 0 12px var(--primary-color), 0 8px 20px rgba(0, 0, 0, 0.15);
}


.numero {
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-20%);
  background-color: var(--primary-color);
  color: white;
  font-weight: bold;
  font-size: 1.3rem;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.servicio-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.servicio-card p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

.servicio-boton {
  margin-top: 3rem;
}

.btn-primario {
  background-color: var(--primary-color);
  color: #fff;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 2rem;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-primario:hover {
  background-color: #ba2a1a;
}

@media screen and (max-width: 768px) {

  .servicios-section {
  padding: 3rem 2rem;
  text-align: center;
}

  .servicio-card {
    max-width: 100%;
  }

  .circulo-img {
    width: 180px;
    height: 180px;
  }

  .numero {
    font-size: 1.1rem;
    bottom: -10px;
  }

  .servicios-title{
    font-size: 2.2rem;
  }
}

.sedena-section {
  background: url('../imagenes/sedena1.webp') no-repeat center center/cover;
  position: relative;
  padding: 6rem 2rem;
  color: white;
}

.sedena-overlay {
  background: rgba(0, 0, 0, 0.7); /* capa oscura */
  padding: 3rem 2rem;
  max-width: 900px;
  margin: auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sedena-content {
  text-align: left;
}

.sedena-content h2 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--white);
}

.sedena-content p {
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.sedena-content ul {
  margin-bottom: 2rem;
  padding-left: 1.2rem;
  list-style: none;
}

.sedena-content ul li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  position: relative;
  padding-left: 1rem;
}

.sedena-content ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.btn-degradado {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(to right, #E33220, #ff6b4d);
  color: #fff;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  transition: transform 0.2s ease;
  display: inline-block;
}

.btn-degradado:hover {
  transform: scale(1.05);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .sedena-overlay {
    padding: 2rem 1.5rem;
  }

  .sedena-content h2 {
    font-size: 1.8rem;
    text-align: center;
  }

  .sedena-content p,
  .sedena-content ul {
    font-size: 1rem;
    text-align: center;
  }

  .sedena-content ul {
    padding-left: 0;
  }

  .sedena-content ul li {
    padding-left: 0.8rem;
    text-align: left;
  }

  .btn-degradado {
    display: block;
    margin: 0 auto;
  }
}


.contacto-section {
  padding: 6rem 2rem;
  background: #f7f7f7;
  text-align: center;
}

.contacto-header {
  max-width: 800px;
  margin: 0 auto 3rem;
}

.contacto-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.contacto-subtitle {
  font-size: 1.6rem;
  margin-top: 0.5rem;
  color: #333;
}

.contacto-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
}

.contacto-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 300px;
}

.contact-card {
  background: white;
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  color: #000;
}

.contact-card.dark {
  background: var(--primary-color);
  color: white;
}

.icono-contacto {
  font-size: 2rem;
  flex-shrink: 0;
}

.contact-card h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.contact-card p {
  margin: 0;
  font-size: 1rem;
}

.formulario-contacto {
  flex: 1;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  min-width: 320px;
}

.formulario-contacto h2 {
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  text-align: center;
}

.formulario-contacto form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-row input {
  flex: 1;
}

input, textarea {
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}

textarea {
  resize: vertical;
}

.btn-degradado {
  background: linear-gradient(to right, #E33220, #ff6b4d);
  color: white;
  padding: 0.9rem 1.5rem;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.btn-degradado:hover {
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
  .contacto-container {
    flex-direction: column;
    align-items: center;
  }

  .form-row {
    flex-direction: column;
  }

  .formulario-contacto {
    text-align: left;
    width: 100%;
    max-width: 500px;
  }

  .contacto-title {
  font-size: 2.1rem;
}

.contacto-subtitle {
  font-size: 1.3rem;
}
}

.footer {
  background-color: #ffffff;
  padding: 1rem 0.5rem;
  border-top: 1px solid #eee;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem; /* Menos espacio */
}

.footer-left,
.footer-center,
.footer-right {
  flex: 1;
  text-align: center;
}

.footer-left {
  text-align: left;
}

.footer-right {
  text-align: right;
  font-size: 0.9rem;
  color: #666;
  white-space: nowrap; /* Mantener en una sola línea */
}

.footer-link {
  color: #333;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.footer-link:hover {
  color: var(--primary-color);
}

.footer-logo {
  height: 40px; /* Más compacto */
  max-width: 100px;
  object-fit: contain;
}

.razon-social {
  font-size: 0.85rem;
  color: #555;
  margin-top: 0.3rem;
}


/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-left,
  .footer-right {
    text-align: center;
    white-space: normal;
  }
}

.floating-popup {
  position: fixed;
  bottom: 2rem;
  right: 1rem;
  width: 320px;
  max-width: 90%;
  background: #fff;
  border-left: 5px solid var(--primary-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-radius: 1rem;
  padding: 1rem 1.2rem;
  z-index: 9999;
  opacity: 0;
  transform: translateX(100%);   /* Oculto hacia la derecha */
  transition: transform 0.6s ease-out, opacity 0.6s ease-out;
  font-family: 'Montserrat', sans-serif;
}

.floating-popup.show {
  transform: translateX(0);  /* Visible, sin desplazamiento */
  opacity: 1;
}


.floating-content h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  color: var(--primary-color);
}

.floating-content p {
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
  color: #333;
}

.popup-btn {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.popup-btn:hover {
  background: #c6281a;
}

.floating-close {
  position: absolute;
  top: 0.4rem;
  right: 0.7rem;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #888;
  cursor: pointer;
}

.vendedores-section {
  background: var(--black);
  color: var(--white);
  padding: 4rem 1rem;
  font-family: var(--font-main);
  text-align: center;
}

.vendedores-container {
  max-width: 700px;
  margin: 0 auto;
}

.vendedores-section h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.vendedores-section p {
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.whatsapp-btn {
  background-color: #25D366;
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border: none;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.whatsapp-btn:hover {
  background-color: #c42c1d;
}

@media (max-width: 600px) {
  .vendedores-section h2 {
    font-size: 1.5rem;
  }

  .vendedores-section p {
    font-size: 0.95rem;
  }

  .whatsapp-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
  }
}

.reclutamiento-section {
  background-color: var(--white);
  color: var(--black);
  padding: 4rem 1rem;
  padding-bottom: 8rem;
  font-family: var(--font-main);
  text-align: center;
}

.reclutamiento-container {
  max-width: 700px;
  margin: 0 auto;
  border: 2px solid var(--primary-color);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.reclutamiento-section h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.reclutamiento-section p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.reclutamiento-section ul {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.reclutamiento-section ul li {
  font-size: 1rem;
  margin: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.reclutamiento-section ul li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.contact-btn {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border: none;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.contact-btn:hover {
  background-color: #c42c1d;
}

@media (max-width: 600px) {
  .reclutamiento-section h2 {
    font-size: 1.6rem;
  }

  .reclutamiento-section ul li {
    font-size: 0.95rem;
  }

  .contact-btn {
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem;
  }
}

/* Estilo para el spinner de carga */
  .loading-spinner {
    display: none; /* Inicialmente está oculto */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 4px solid var(--black); /* Color del borde */
    border-top: 4px solid var(--primary-color); /* Color del spinner */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
  }

  /* Animación de rotación */
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }









