:root {
  --primary: #f8ad9d;
  --secondary: #fbc4ab;
  --dark: #333;
  --light: #fff;
  --gray: #f4f4f4;
  --transition: all 0.3s ease;
}
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, Sans-Serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light);
}
.grid-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
@media (min-width:768px) {
  .grid-container {
    grid-template-columns: 3fr 1fr;
  }
  .hero, .articles-section {
    grid-column: 1 / span 2;
  }
}
.main-header {
  background: var(--primary);
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar ul {
  display: flex;
  list-style: none;
}
.navbar ul li a {
  text-decoration: none;
  color: var(--light);
  font-weight: bold;
  margin-left: 20px;
  transition: var(--transition);
}
.navbar ul li a:hover {
  color: var(--dark);
  font-size: 1.1rem;
}
.flex-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}
.card {
  flex: 1 1 300px;
  background: var( --gray);
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease;
}
.card:hover {
  transform: translateY(-10px);
}
.card img {
  width: 100%;
  border-radius: 8px;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}
th, td {
  padding: 12px;
  border: 1px solid #ddd;
  text-align: left;
}
th { background-color: var(--secondary);}
.video-container {
  width: 300px;
  float: left;
  margin-right: 20px;
  margin-bottom: 10px;
}
.video-container video {
   width: 100%; 
   height: auto;
}
.main-footer {
  background: var(--dark);
  color: var(--light);
  padding: 40px 5%;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}
.footer-form input {
  padding: 10px;
  width: 70%;
  border: none;
  border-radius: 5px 0 0 5px;
}
.btn-submit {
  padding: 10px;
  background: var(--primary);
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 0 5px 5px 0;
  transition: var(--transition);
}
.btn.submit:hover {
  background: var(--secondary);
}
.contact-form {
  background: var(--gray);
  padding: 20px;
  border-radius: 10px;
}
.form-group {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
}
.form-group label {
  margin-bottom: 5px;
  font-weight: bold;
}
.form-group input, .form-group select, .form-group textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}
.step-number {
  display: inline-block;
  background: var(--primary);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-bottom: 10px;
  font-weight: bold;
}
.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--dark);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn:hover {
  background-color: var(--primary);
  transform: scale(1.05);
}


/* --- Estilos de Artículos --- */
.full-width {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--dark);
    border-bottom: 3px solid var(--primary);
    display: inline-block;
    padding-bottom: 10px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.blog-post {
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.blog-post:hover {
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.blog-post img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 20px;
}

.category {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: bold;
    letter-spacing: 1px;
}

.post-content h3 {
    margin: 10px 0;
    color: var(--dark);
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--dark);
    padding-left: 5px;
}

/* Sidebar Box Styling */
.sidebar-box {
    background: var(--gray);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.sidebar-box ul {
    list-style: none;
    margin-top: 10px;
}

.sidebar-box ul li {
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
}

.sidebar-box ul li a {
    text-decoration: none;
    color: var(--dark);
}

.sidebar-box ul li a:hover {
    color: var(--primary);
}

