:root {
  --primary: hsl(28, 45%, 32%); /* Franciscan Brown */
  --primary-light: hsl(28, 40%, 45%);
  --primary-dark: hsl(28, 60%, 18%);
  --accent: hsl(42, 75%, 45%); /* Gold / Warm Ochre */
  --accent-hover: hsl(42, 85%, 38%);
  --bg-color: hsl(35, 40%, 96%); /* Very light parchment/cream */
  --surface: #ffffff;
  --text-main: hsl(28, 50%, 12%); /* Very dark brown */
  --text-muted: hsl(28, 20%, 45%); /* Warm brownish grey */
  --border: hsl(35, 30%, 85%);
  --shadow-sm: 0 4px 12px rgba(40, 25, 15, 0.04);
  --shadow-md: 0 8px 24px rgba(40, 25, 15, 0.08);
  --shadow-lg: 0 16px 40px rgba(40, 25, 15, 0.12);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--primary-dark);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Typography Helpers */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background-color: var(--accent);
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(180, 80, 40, 0.25);
}

.btn-secondary {
  background-color: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background-color: rgba(255,255,255,0.2);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary) !important;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.btn-outline:hover {
  background-color: var(--primary);
  color: #fff !important;
}

/* Header & Nav */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  padding: 16px 5%;
  align-items: center;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border);
}

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

.logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo:hover .logo-img {
  transform: scale(1.05);
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

nav a {
  color: var(--text-muted);
  font-weight: 500;
  position: relative;
}

nav a:not(.btn-outline):hover, nav a.active {
  color: var(--primary);
}

nav a:not(.btn-outline)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

nav a:not(.btn-outline):hover::after, nav a.active::after {
  width: 100%;
}

/* Layout Containers */
.section-container {
  padding: 80px 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.bg-light {
  background-color: #f8fafc;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  height: 85vh;
  min-height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: url('https://images.unsplash.com/photo-1541339907198-e08756dedf3f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
  opacity: 0.2;
  mix-blend-mode: overlay;
}

.hero-content {
  position: relative;
  z-index: 10;
  color: white;
  max-width: 800px;
  padding: 0 20px;
  animation: fadeUp 1s ease-out;
}

.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: white;
  text-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* Valores Section */
.valores {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: center;
}

.valores-content h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.valores-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.v-card {
  background: var(--surface);
  padding: 32px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid var(--border);
}

.v-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.v-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.v-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.v-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Carreras / Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.card:hover .card-img {
  transform: scale(1.05);
}

.card-body {
  padding: 24px;
  background: var(--surface);
  position: relative;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.card-link {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-link:hover {
  gap: 8px;
}

/* Comunicados */
.comunicados-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comunicado-item {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--surface);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary);
  transition: transform 0.2s ease;
}

.comunicado-item:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
}

.comunicado-date {
  background: var(--primary-light);
  color: white;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-align: center;
  min-width: 80px;
}

.comunicado-content h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.comunicado-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Footer */
footer {
  background: var(--text-main);
  color: white;
  text-align: center;
  padding: 40px 20px;
  margin-top: 40px;
}

footer p {
  opacity: 0.8;
  font-size: 0.95rem;
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 900px) {
  .valores {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }
  
  nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
}