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

body {
  font-family: 'Poppins', Arial, sans-serif;
  line-height: 1.6;
  background-color: #f5f7fa;
  color: #333;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== Encabezado ===== */
header {
  background: #001d3d;
  color: #fff;
  padding: 2rem;
  text-align: center;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* ===== Secciones ===== */
section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: auto;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #001d3d;
  text-align: center;
}

section p {
  margin-bottom: 1rem;
  text-align: center;
}

/* ===== Características ===== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* ===== Espaciado entre título y texto dentro de las cards ===== */
.feature h3 {
  margin-bottom: 1rem; /* separa el título del texto */
}

.feature {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.2s ease-in-out, background 0.2s ease-in-out;
  cursor: pointer;
}

.feature:hover {
  transform: translateY(-5px);
  background: #f0f4ff;
}

/* ===== Galería ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 2px solid #eee;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: zoom-in;
}

.gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* ===== CTA ===== */
.cta {
  text-align: center;
  margin-top: 3rem;
}

.cta a,
.cta button {
  background: #001d3d;
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 25px;
  font-weight: bold;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
}

.cta a:hover,
.cta button:hover {
  background: #003566;
}

/* ===== Pie de página ===== */
footer {
  background: #001d3d;
  color: #fff;
  padding: 2rem;
  text-align: center;
  margin-top: 3rem;
}

/* ===== Modal de Imagen/Video ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  padding: 1rem;
  border-radius: 12px;
  max-width: 90%;
  max-height: 90%;
  overflow: auto;
  position: relative;
}

.modal-content img,
.modal-content video {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close:hover {
  color: #ff5c5c;
}

.modal-content img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* ===== Modal Formulario (Solicitar Demo) ===== */
#formModal .modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 5px 25px rgba(0,0,0,0.3);
  text-align: left;
}

#formModal h2 {
  margin-top: 0;
  color: #001d3d;
  text-align: center;
}

#formModal label {
  display: block;
  margin: 0.5rem 0 0.2rem;
  font-weight: 600;
}

#formModal input,
#formModal textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 1rem;
}

#formModal button[type="submit"] {
  background-color: #001d3d;
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
  display: block;
  margin: auto;
}

#formModal button[type="submit"]:hover {
  background-color: #003366;
}

#formModal .close {
  color: #333;
  font-size: 24px;
  top: 15px;
  right: 20px;
}

/* ===== Indicador de video con imagen SVG real ===== */
.feature {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease-in-out, box-shadow 0.3s ease;
}

.feature::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  width: 34px;
  height: 34px;
  background-color: #001d3d;
  border-radius: 50%;
  background-image: url("/helpdesk_solution/static/src/img/play_icon.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 55%;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.25s ease-in-out;
}

.feature:hover::after {
  opacity: 1;
  transform: scale(1);
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}
