/* Variables */
:root {
  --color-primary: #1e5a8e;
  --color-cta: #e8914f;
  --color-white: #ffffff;
  --color-light-gray: #f5f5f5;
  --font-family-primary: 'Poppins', sans-serif;
  
  --font-size-3xl: 40px;
  --font-size-xl: 24px;
  --font-size-lg: 20px;
  --font-size-md: 18px;
  --font-size-base: 16px;
  
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
}

body {
    font-family: var(--font-family-primary);
    margin: 0;
    padding: 0;
    background-color: var(--color-white);
    color: #333;
}

section {
    padding: var(--space-2xl) var(--space-xl);
    max-width: 1200px;
    margin: 0 auto;
}

/* 1. CTA BUTTON */
.cta-btn {
  background: var(--color-cta);
  color: white;
  padding: var(--space-md) var(--space-lg);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-size: var(--font-size-base);
}
.cta-btn:hover {
  background: #d67a38;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cta-btn.secondary {
    background: transparent;
    border: 2px solid var(--color-cta);
    color: var(--color-cta);
}
.cta-btn.secondary:hover {
    background: var(--color-cta);
    color: white;
}

/* 2. PILARES */
.pilares {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}
.pilar-card {
  text-align: center;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  background: var(--color-light-gray);
  transition: transform 0.3s;
}
.pilar-card:hover {
  transform: translateY(-4px);
}
.pilar-card span {
    font-size: 2rem;
    display: block;
    margin-bottom: var(--space-md);
}

/* 3. TALLER CARD */
.taller-card { 
    border-left: 4px solid var(--color-primary); 
    margin-bottom: var(--space-md);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.taller-header {
  background: linear-gradient(135deg, var(--color-primary), #3d7db5);
  color: white;
  padding: var(--space-lg);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.taller-header h3 {
    margin: 0;
    font-size: var(--font-size-lg);
    flex-grow: 1;
    margin-left: var(--space-md);
}
.taller-header .badge {
    background: rgba(255,255,255,0.2);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: bold;
}
.taller-content {
  padding: 0 var(--space-xl);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s;
  background: var(--color-white);
}
.taller-content.active { 
    max-height: 800px; 
    padding: var(--space-xl);
}
.taller-content ul {
    list-style: none;
    padding: 0;
}
.taller-content ul li {
    margin-bottom: var(--space-sm);
}

/* 4. FAQ ACCORDION */
.faq-item {
    margin-bottom: var(--space-md);
    border: 1px solid #ddd;
    border-radius: var(--radius-md);
    overflow: hidden;
}
.faq-btn {
  width: 100%;
  text-align: left;
  padding: var(--space-lg);
  border: none;
  background: white;
  cursor: pointer;
  font-family: var(--font-family-primary);
  font-size: var(--font-size-md);
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  justify-content: space-between;
}
.faq-answer {
  padding: 0 var(--space-lg);
  background: var(--color-light-gray);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s, padding 0.3s;
}
.faq-answer.active {
    max-height: 300px;
    padding: var(--space-lg);
}

/* 5. TESTIMONIO CARD */
.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}
.testimonial {
  background: white;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  border: 1px solid var(--color-light-gray);
}
.testimonial p {
    font-size: var(--font-size-md);
    font-style: italic;
    margin-bottom: var(--space-xl);
}
.testimonial .meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}
.avatar { 
    width: 60px; 
    height: 60px; 
    border-radius: 50%; 
    background-color: var(--color-cta);
    object-fit: cover;
}
.meta div {
    text-align: left;
    display: flex;
    flex-direction: column;
}
.meta div strong {
    color: var(--color-primary);
}
.meta div span {
    font-size: 0.9rem;
    color: #666;
}

/* 6. FORMULARIO CONTACTO */
.form-contacto {
  max-width: 600px;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: var(--color-light-gray);
  border-radius: var(--radius-lg);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.form-contacto input, .form-contacto select, .form-contacto textarea {
    width: 100%;
    padding: var(--space-md);
    border: 1px solid #ccc;
    border-radius: var(--radius-md);
    font-family: var(--font-family-primary);
    box-sizing: border-box;
}
.form-contacto textarea {
    min-height: 120px;
    resize: vertical;
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }

/* 7. HERO SECTION */
.hero {
    background: linear-gradient(rgba(30, 90, 142, 0.9), rgba(30, 90, 142, 0.9)), url('hero_poster.png') center/cover;
    color: white;
    padding: var(--space-2xl) var(--space-xl);
    text-align: center;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.hero nav {
    position: absolute;
    top: 20px;
    width: 100%;
    text-align: center;
    font-weight: 600;
    letter-spacing: 1px;
}
.hero-content {
    max-width: 800px;
}
.hero-content h1 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-lg);
    line-height: 1.2;
}
.hero-content p {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-2xl);
    opacity: 0.9;
}
.hero-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .pilares { grid-template-columns: repeat(2, 1fr); }
  .row { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 2rem; }
  .hero-content p { font-size: 1.2rem; }
}

@media (max-width: 480px) {
  .pilares { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
}
