/*
  Estilos para el sitio web de SemCt.
  La paleta de colores se inspira en el logo proporcionado, utilizando tonos azul oscuro,
  turquesa y verde para crear un diseño moderno y coherente. La estructura
  imita a la de la página de referencia con secciones claras y llamadas a la acción.
*/

:root {
  --primary: #1f3a93; /* Azul oscuro principal */
  --secondary: #009bcd; /* Turquesa vivo */
  --accent: #2ea866; /* Verde de acento */
  --dark: #333333; /* Color para texto principal */
  --light: #f7fafc; /* Fondo claro */
}

/* Reset y tipografía básica */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: #ffffff;
}

/* Navegación */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
  z-index: 20;
}

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

.logo img {
  height: 80px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.25rem;
}

.nav-links a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease-in-out;
}

.nav-links a:hover {
  color: var(--primary);
}

/* Sección Hero */
.hero {
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  color: #ffffff;
  padding: 8rem 0 6rem;
  text-align: center;
  /* Ajustar por la altura de la barra de navegación */
  margin-top: 60px;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: background-color 0.3s ease-in-out;
}

.btn-primary:hover {
  background-color: var(--dark);
}

/* Botón secundario usado en tarjetas para enlazar a páginas de detalle */
.btn-secondary {
  display: inline-block;
  background-color: var(--secondary);
  color: #ffffff;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease-in-out;
}

.btn-secondary:hover {
  background-color: var(--primary);
}

/* Contenedores y espaciado general */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

section {
  padding: 10rem 0;
}

section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--primary);
  font-weight: 700;
}

/* Sección Servicios */
.service-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.service-card {
  background-color: var(--light);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.service-card i {
  font-size: 2.2rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.service-card h3 {
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 600;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--dark);
}

/* Sección Ventajas */
.advantage-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.advantage-card {
  text-align: center;
  padding: 1rem;
}

.advantage-card i {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.advantage-card h3 {
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 600;
}

.advantage-card p {
  font-size: 0.95rem;
  color: var(--dark);
}

/* Sección Proceso */
.process-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.step {
  flex: 1 1 30%;
  text-align: center;
}

.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--secondary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.step h3 {
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-weight: 600;
}

.step p {
  font-size: 0.95rem;
  color: var(--dark);
}

/* Sección Contacto */
.contact {
  background-color: var(--light);
}

.contact p {
  text-align: center;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
}

.contact-form textarea {
  resize: vertical;
}

/* Pie de página */
.footer {
  background-color: #1f3a9365; /* tonalidad más oscura del azul */
  color: #ffffff;
  padding: 2rem 0;
}

.footer-content {
  text-align: left;
}

.footer-logo img {
  /* Aumentamos el tamaño del logo en el pie de página */
  height: 100px;
  margin-bottom: 1rem;
}

.footer p {
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.footer a {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 500;
}

/* Redes sociales en el pie de página */
.social-links {
  display: flex;
  justify-content: right;
  gap: 1rem;
}

.social-links a {
  color: #ffffff;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--secondary);
}

/*
  Paquetes de servicios
  La siguiente sección define el diseño de los paquetes de servicios inspirados
  en la propuesta de SemCt. Cada tarjeta muestra una imagen relacionada,
  título, lista de características y el precio. Las tarjetas utilizan un
  diseño flexible que se adapta a distintos tamaños de pantalla.
*/
.packages-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.package-card {
  background-color: var(--light);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.package-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.package-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.package-card h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.package-card ul {
  list-style: disc;
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}

.package-card ul li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--dark);
}

.package-card .price {
  font-weight: 700;
  color: var(--secondary);
  font-size: 1.2rem;
  margin-top: auto;
}

/*-------------------------------------------------------------
  Estilos para páginas de producto individuales
  Estas clases se aplican a las páginas como web-basic.html,
  web-premium.html, etc. para dar una apariencia coherente
  con el sitio principal. El encabezado utiliza un degradado
  y el contenido se distribuye con flex para acomodar la imagen
  y el texto.
-------------------------------------------------------------*/
.product-hero {
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  color: #ffffff;
  padding: 6rem 0 4rem;
  text-align: center;
  margin-top: 60px;
}

.product-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.product-hero p {
  font-size: 1.1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.product-details {
  padding: 4rem 0;
  background-color: #ffffff;
}

.product-details .container {
  display: grid;
  grid-template-columns: 260px 1fr; /* imagen | contenido */
  column-gap: 2rem;                 /* solo espacio horizontal */
  row-gap: .4rem;                   /* espacio vertical mínimo */
  align-items: start;
}

/* Imagen fija en col 1 y abarcando la altura de todo el contenido */
.product-image {
  grid-column: 1;
  grid-row: 1 / 5;   /* ocupa de la fila 1 a la 4 (ajusta si quieres) */
  width: 100%;
  max-width: 260px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
}

/* Contenido a la derecha: filas explícitas */
.product-details h2 {
  grid-column: 2;
  grid-row: 1;       /* MISMA FILA QUE LA IMAGEN */
  font-size: 1.8rem;
  color: var(--primary);
  font-weight: 600;
  margin: 0 0 .25rem;
}

.product-details ul {
  grid-column: 2;
  grid-row: 2;       /* justo debajo del h2 */
  list-style: disc;
  padding-left: 1.2rem;
  margin: 0 0 1rem;
}

.product-details .product-price {
  grid-column: 2;
  grid-row: 3;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--secondary);
  margin: .75rem 0;
}

.product-details .btn-primary {
  grid-column: 2;
  grid-row: 4;
}

.product-buy {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1rem;
}

/* Precio */
.product-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--secondary);
  margin: 0;
}

/* Botón pequeño con ícono */
.btn-buy {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: #25d366; /* verde WhatsApp */
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-buy i {
  font-size: 1rem;
}

.btn-buy:hover {
  background-color: #1ebe5d;
  transform: translateY(-2px);
}



/* Estilos para las tarjetas de planes de mantenimiento */
.plan-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 2rem;
}

.plan-card {
  background-color: var(--light);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.plan-card h3 {
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
  font-weight: 600;
}

.plan-card ul {
  list-style: disc;
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}

.plan-card ul li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--dark);
}

.plan-card .product-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--secondary);
  margin-top: auto;
  margin-bottom: 1rem;
}

.plan-card .btn-primary {
  align-self: flex-start;
}


/* Responsive: apilar en móvil */
@media (max-width: 768px) {
  .product-details .container {
    grid-template-columns: 1fr;
  }
  .product-image {
    grid-row: auto;
    max-width: 320px;
    margin: 0 auto 1rem;
  }
  .product-details h2,
  .product-details ul,
  .product-details .product-price,
  .product-details .btn-primary {
    grid-column: 1;
    grid-row: auto;
  }
}