/*
 * Core stylesheet for the ChileSAT website.  This file defines
 * typography, layout and colour scheme for the entire site.  The
 * palette takes cues from the Chilean flag—deep blue and a warm red—
 * resulting in a professional yet approachable look.  Sections and
 * cards employ subtle shadows and rounded corners to evoke depth
 * without distraction.  The design is responsive down to mobile
 * sizes using flex and grid layouts where appropriate.
 */

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Arial", sans-serif;
  color: #333;
  background-color: #f7f8fa;
  line-height: 1.5;
}

/* Global container constraint */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header and navigation */
header {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  width: auto;
  margin-right: 0.5rem;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

nav a {
  text-decoration: none;
  color: #005fa3;
  font-weight: bold;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

nav a:hover {
  background-color: #e7f0fa;
}

/* Hero section */
.hero {
  background-image: url("../images/hero.png");
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  padding: 4rem 1rem;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

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

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  background-color: #e7131a;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.btn.secondary {
  background-color: #005fa3;
}

.btn.outline {
  background-color: transparent;
  color: #e7131a;
  border: 2px solid #e7131a;
}

.btn:hover {
  background-color: #b50f13;
}

.btn.secondary:hover {
  background-color: #004a82;
}

.btn.outline:hover {
  background-color: #e7131a;
  color: #fff;
}

/* Utility classes */
.section {
  padding: 3rem 0;
}

.section.light {
  background-color: #fff;
}

.section.dark {
  background-color: #f0f4f8;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #005fa3;
  text-align: center;
}

.section p {
  max-width: 800px;
  margin: 0 auto 1.5rem auto;
  font-size: 1rem;
  color: #444;
}

.benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.benefit-item {
  background-color: #fff;
  border: 1px solid #e0e6ed;
  border-radius: 8px;
  padding: 1rem;
  flex: 1 1 200px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Cards for solutions & services */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  margin-top: 0;
  color: #005fa3;
  margin-bottom: 0.5rem;
}

.card ul {
  padding-left: 1.2rem;
  margin: 0;
}

.card ul li {
  margin-bottom: 0.5rem;
}

/* Pricing table for plans */
.pricing {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.plan {
  background-color: #fff;
  border: 1px solid #e0e6ed;
  border-radius: 8px;
  flex: 1 1 280px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.plan h3 {
  margin-top: 0;
  color: #005fa3;
  margin-bottom: 0.5rem;
}

.plan .price {
  font-size: 2rem;
  font-weight: bold;
  margin: 0.5rem 0;
  color: #e7131a;
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: #555;
}

.plan ul li {
  margin-bottom: 0.5rem;
}

.plan .plan-footer {
  margin-top: 1rem;
}

/* FAQ accordion */
.faq-item {
  border-bottom: 1px solid #e0e6ed;
}

.faq-item summary {
  cursor: pointer;
  padding: 1rem;
  font-weight: bold;
  position: relative;
}

.faq-item summary::marker {
  font-size: 1.2rem;
  color: #e7131a;
}

.faq-item p {
  padding: 0 1rem 1rem 1rem;
  margin: 0;
  color: #555;
}

/* Contact form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid #ccd6e1;
  border-radius: 4px;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.contact-form button {
  align-self: flex-start;
}

/* Footer */
footer {
  background-color: #005fa3;
  color: #fff;
  text-align: center;
  padding: 1rem;
  margin-top: 3rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  text-decoration: underline;
}
