/* 
 * L.D.S. Lonas de Sonora - Main Stylesheet
 * Industrial, Professional, Robust
 */

:root {
  /* Brand Colors */
  --primary-red: #D32F2F; /* Industrial Red */
  --primary-dark: #B71C1C;
  --black: #1a1a1a;
  --dark-gray: #333333;
  --light-gray: #f4f4f4;
  --white: #ffffff;
  --border-color: #ddd;

  /* Typography */
  --font-main: 'Roboto', 'Segoe UI', Tahoma, sans-serif;
  
  /* Spacing */
  --container-width: 1200px;
  --section-padding: 4rem 1rem;
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--white);
  color: var(--dark-gray);
  line-height: 1.6;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--black);
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 { font-size: 2.5rem; text-transform: uppercase; }
h2 { font-size: 2rem; position: relative; padding-bottom: 0.5rem; }
h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--primary-red);
}
h3 { font-size: 1.5rem; }

p { margin-bottom: 1rem; }

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.text-center { text-align: center; }
.text-center h2::after { left: 50%; transform: translateX(-50%); }

.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--primary-red);
  color: var(--white);
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 4px;
  border: 2px solid var(--primary-red);
  cursor: pointer;
}

.btn:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-red);
}

.btn-outline:hover {
  background-color: var(--primary-red);
  color: var(--white);
}

.section {
  padding: var(--section-padding);
}

.bg-light { background-color: var(--light-gray); }
.bg-dark { background-color: var(--black); color: var(--white); }
.bg-dark h2 { color: var(--white); }

/* Grid System (Simple) */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
}

/* Specific Components */
.card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
}

.card:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

.card-img {
  height: 200px;
  background-color: #ddd;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title { font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--black); }
.card-text { font-size: 0.95rem; color: #555; flex-grow: 1; margin-bottom: 1rem;}
