@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* --- CUSTOM VARIABLES --- */
:root {
  --primary: #1E3A8A; /* Azul Institucional Copernico */
  --primary-dark: #172554;
  --primary-light: #EFF6FF;
  --secondary: #0D9488; /* Teal / Verde Azulado de Confianza */
  --secondary-light: #F0FDFA;
  --accent: #F59E0B; /* Ámbar / Oro de Acción */
  --accent-hover: #D97706;
  
  --text-main: #0F172A; /* Slate 900 */
  --text-muted: #475569; /* Slate 600 */
  --text-light: #94A3B8; /* Slate 400 */
  --text-white: #FFFFFF;
  
  --bg-main: #FFFFFF;
  --bg-alt: #F8FAFC; /* Slate 50 */
  --bg-card: #FFFFFF;
  --border-color: #E2E8F0; /* Slate 200 */
  
  --font-headings: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-alt);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- UTILITIES --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 80px 0;
}

.text-center {
  text-align: center;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-primary {
  background-color: var(--primary-light);
  color: var(--primary);
}

.badge-accent {
  background-color: #FEF3C7;
  color: var(--accent-hover);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-white);
  box-shadow: 0 4px 6px -1px rgba(30, 58, 138, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(30, 58, 138, 0.3);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--text-main);
  box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.2);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(217, 119, 6, 0.3);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--primary);
  background-color: var(--primary-light);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: #25D366;
  color: white;
  box-shadow: 0 4px 6px -1px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
  background-color: #20BA5A;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(37, 211, 102, 0.3);
}

/* --- HEADER & NAVIGATION --- */
header {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 1000;
  transition: var(--transition-smooth);
}

.navbar {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  padding: 16px 28px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

header.scrolled {
  top: 0;
  left: 0;
  right: 0;
}

header.scrolled .navbar {
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  padding: 12px 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-headings);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.logo-icon {
  background-color: var(--primary);
  color: var(--accent);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-headings);
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.95rem;
  position: relative;
  padding: 8px 0;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition-smooth);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-main);
  border-radius: 3px;
  transition: var(--transition-smooth);
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 140px;
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  background-color: var(--bg-alt);
  overflow: hidden;
}

.hero-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.shape-1 {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(30, 58, 138, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
}

.shape-2 {
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.04) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 24px;
  color: var(--primary-dark);
}

.hero-content h1 span {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.hero-content h1 span::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: rgba(245, 158, 11, 0.2);
  z-index: -1;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
}

.stat-item h3 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.stat-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image-card {
  position: relative;
  background-color: var(--bg-card);
  padding: 16px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.hero-image-card img {
  border-radius: var(--radius-md);
  object-fit: cover;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 480px;
}

.floating-badge {
  position: absolute;
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 6s ease-in-out infinite;
}

.floating-badge-1 {
  bottom: 30px;
  left: -20px;
}

.floating-badge-2 {
  top: 40px;
  right: -20px;
  animation-delay: 3s;
}

.badge-icon {
  background-color: var(--primary-light);
  color: var(--primary);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.floating-badge-2 .badge-icon {
  background-color: var(--secondary-light);
  color: var(--secondary);
}

.badge-text h4 {
  font-size: 1rem;
  font-weight: 700;
}

.badge-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* --- SECTION GENERAL HEADINGS --- */
.section-header {
  max-width: 600px;
  margin: 0 auto 56px auto;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-top: 12px;
  margin-bottom: 16px;
  color: var(--primary-dark);
}

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

/* --- QUICK INFO / CARDS BLOCKS --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.info-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--primary);
  opacity: 0;
  transition: var(--transition-smooth);
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(30, 58, 138, 0.15);
}

.info-card:hover::before {
  opacity: 1;
}

.card-icon-box {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.info-card h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}

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

.card-link {
  font-weight: 700;
  font-family: var(--font-headings);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.card-link:hover {
  color: var(--primary-dark);
  gap: 12px;
}

/* --- HIGHLIGHTED SEGMENTS --- */
.highlight-block {
  background-color: var(--primary-dark);
  color: var(--text-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.highlight-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
}

.highlight-content {
  padding: 60px;
}

.highlight-content .badge {
  margin-bottom: 16px;
}

.highlight-content h2 {
  color: var(--text-white);
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.highlight-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.highlight-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.h-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.h-feature-icon {
  color: var(--accent);
  font-size: 1.25rem;
  margin-top: 2px;
}

.h-feature h4 {
  color: var(--text-white);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.h-feature p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

.highlight-image {
  height: 100%;
  min-height: 400px;
  position: relative;
}

.highlight-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

/* --- TESTIMONIALS SECTION --- */
.testimonials-section {
  background-color: var(--bg-alt);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

.testimonial-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quote-icon {
  color: rgba(30, 58, 138, 0.1);
  font-size: 3rem;
  font-family: serif;
  line-height: 1;
  margin-bottom: -15px;
}

.testimonial-content {
  font-style: italic;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.author-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.1rem;
}

.author-info h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.author-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- FOOTER --- */
footer {
  background-color: var(--primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding-top: 80px;
  padding-bottom: 40px;
  border-top: 8px solid var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand .logo {
  color: var(--text-white);
  margin-bottom: 20px;
}

.footer-brand .logo-icon {
  background-color: var(--text-white);
  color: var(--primary);
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-white);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.social-links a:hover {
  background-color: var(--accent);
  color: var(--text-main);
  transform: translateY(-2px);
}

.footer-col h3 {
  color: var(--text-white);
  font-size: 1.2rem;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--accent);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 6px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.footer-contact-icon {
  color: var(--accent);
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-bottom-links a:hover {
  color: var(--accent);
}

/* --- PAGE SUB-HERO (HEADER BANNER FOR INTERNAL PAGES) --- */
.sub-hero {
  background-color: var(--primary-dark);
  color: var(--text-white);
  padding: 140px 0 70px 0;
  position: relative;
  overflow: hidden;
}

.sub-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(13, 148, 136, 0.15) 0%, rgba(255, 255, 255, 0) 60%);
  z-index: 1;
}

.sub-hero-container {
  position: relative;
  z-index: 2;
}

.sub-hero h1 {
  color: var(--text-white);
  font-size: 3rem;
  margin-bottom: 12px;
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  list-style: none;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs li:not(:last-child)::after {
  content: '/';
  margin-left: 8px;
}

.breadcrumbs li.active {
  color: var(--accent);
  font-weight: 600;
}

/* --- CARRERAS PAGE STYLES --- */
.carreras-grid {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.carrera-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  transition: var(--transition-smooth);
}

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

.carrera-card.reverse {
  grid-template-columns: 1fr 1.2fr;
}

.carrera-image {
  height: 100%;
  min-height: 350px;
  position: relative;
}

.carrera-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.carrera-content {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.carrera-content h2 {
  font-size: 2.2rem;
  color: var(--primary-dark);
  margin-top: 12px;
  margin-bottom: 16px;
}

.carrera-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.meta-icon {
  color: var(--primary);
  font-size: 1.3rem;
  background-color: var(--primary-light);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.meta-info h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
}

.meta-info p {
  font-size: 0.95rem;
  font-weight: 600;
}

.carrera-curriculum {
  margin-bottom: 30px;
}

.carrera-curriculum h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.carrera-curriculum ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.carrera-curriculum li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.carrera-curriculum li::before {
  content: '✓';
  color: var(--secondary);
  font-weight: 700;
}

/* --- CURSOS PAGE STYLES --- */
.cursos-controls {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.search-bar-wrapper {
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.search-bar {
  width: 100%;
  padding: 16px 20px 16px 52px;
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
  background-color: var(--bg-card);
  transition: var(--transition-smooth);
}

.search-bar:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1);
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 1.2rem;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 22px;
  border-radius: 50px;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.95rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background-color: var(--primary);
  color: var(--text-white);
  border-color: var(--primary);
  box-shadow: 0 4px 6px -1px rgba(30, 58, 138, 0.2);
}

.cursos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.curso-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.curso-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(30, 58, 138, 0.1);
}

.curso-img-wrapper {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.curso-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.curso-category {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--primary);
  color: var(--text-white);
  font-weight: 700;
}

.curso-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.curso-body h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.curso-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.curso-info-row {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  margin-bottom: 24px;
}

.c-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.c-info-item svg {
  color: var(--primary);
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: var(--text-muted);
}

/* --- NOSOTROS PAGE STYLES --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}

.value-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition-smooth);
}

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

.value-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--secondary-light);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 24px auto;
}

.value-card h3 {
  font-size: 1.3rem;
  margin-bottom: 14px;
}

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

.infra-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.infra-content h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: var(--primary-dark);
}

.infra-content p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.infra-gallery {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}

.gallery-img-1 {
  grid-row: span 2;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.gallery-img-2, .gallery-img-3 {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.infra-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- CONTACTO PAGE STYLES --- */
.contacto-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}

.contacto-info {
  background-color: var(--primary-dark);
  color: var(--text-white);
  padding: 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.contacto-info h2 {
  color: var(--text-white);
  font-size: 2rem;
  margin-bottom: 16px;
}

.contacto-info > p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 36px;
}

.contacto-channels {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 40px;
}

.channel-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.channel-icon {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--accent);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.channel-details h4 {
  color: var(--text-white);
  font-size: 1rem;
  margin-bottom: 4px;
}

.channel-details p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

.channel-details a:hover {
  color: var(--accent);
}

.map-placeholder {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.map-placeholder iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.contacto-form-wrapper {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.contacto-form-wrapper h2 {
  font-size: 2rem;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.contacto-form-wrapper > p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-alt);
  transition: var(--transition-smooth);
}

.form-control:focus {
  border-color: var(--primary);
  background-color: var(--bg-card);
  outline: none;
  box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.08);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* --- FAQ ACCORDION --- */
.faq-section {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border-color);
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.faq-item:hover {
  border-color: rgba(30, 58, 138, 0.15);
}

.faq-header {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transition: var(--transition-smooth);
}

.faq-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  padding-right: 20px;
}

.faq-icon {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.faq-item.active .faq-header {
  background-color: var(--primary-light);
}

.faq-item.active .faq-header h3 {
  color: var(--primary);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--primary);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.faq-item.active .faq-body {
  max-height: 1000px;
  transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

.faq-content {
  padding: 24px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 2.8rem;
  }
  .highlight-grid {
    grid-template-columns: 1fr;
  }
  .highlight-image {
    min-height: 300px;
  }
  .carrera-card, .carrera-card.reverse {
    grid-template-columns: 1fr;
  }
  .carrera-image {
    min-height: 250px;
  }
  .contacto-grid {
    grid-template-columns: 1fr;
  }
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-image-wrapper {
    order: -1;
  }
  .hero-content {
    text-align: center;
  }
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
    gap: 30px;
  }
  .floating-badge {
    padding: 10px 14px;
  }
  .menu-toggle {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 96px;
    left: 16px;
    right: 16px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    flex-direction: column;
    padding: 32px;
    gap: 20px;
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    z-index: 999;
  }
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-links a {
    font-size: 1.1rem;
    width: 100%;
    text-align: center;
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .infra-block {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .values-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .hero-stats {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }
  .hero-buttons .btn {
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .footer-bottom-links {
    justify-content: center;
  }
  .carrera-content {
    padding: 24px;
  }
  .carrera-meta-grid {
    grid-template-columns: 1fr;
  }
  .carrera-curriculum ul {
    grid-template-columns: 1fr;
  }
  .contacto-info {
    padding: 24px;
  }
  .contacto-form-wrapper {
    padding: 24px;
  }
}
