/* CSS Design System - Colegio Rayenco Web (Mobile-First & Premium) */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- CSS Variables & Tokens --- */
:root {
  /* Color Palette */
  --primary: #0F2242;         /* Deep Academic Blue */
  --primary-light: #1A365D;   /* Lighter Academic Blue */
  --primary-rgb: 15, 34, 66;
  --accent: #E5A93B;          /* Vibrant Excellence Gold */
  --accent-light: #F3C63F;    /* Bright Gold Hover */
  --accent-rgb: 229, 169, 59;
  --secondary: #10B981;       /* WhatsApp Green / Success */
  --secondary-hover: #059669;
  --text-dark: #1E293B;       /* Deep Slate Text */
  --text-muted: #64748B;      /* Gray Slate */
  --bg-light: #F8FAFC;        /* Off-white background */
  --bg-card: #FFFFFF;         /* Card background */
  --bg-accent-light: #FDF8ED; /* Soft Golden White for Highlight Blocks */
  --white: #FFFFFF;
  --border-color: #E2E8F0;
  
  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Shadows & Radius */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 34, 66, 0.08), 0 4px 6px -2px rgba(15, 34, 66, 0.04);
  --shadow-premium: 0 20px 25px -5px rgba(15, 34, 66, 0.12), 0 10px 10px -5px rgba(15, 34, 66, 0.06);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-round: 50%;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- Global Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-bottom: 70px; /* Space for the persistent mobile bottom bar if needed */
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary);
  font-weight: 700;
  line-height: 1.2;
}

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

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

ul {
  list-style: none;
}

/* --- Accessibility & Focus --- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* --- Layout Containers --- */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* --- Header & Navigation --- */
.header {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  height: 70px;
  display: flex;
  align-items: center;
  transition: var(--transition-normal);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
  height: 64px;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-image {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(15, 34, 66, 0.15));
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--primary);
  line-height: 1.1;
  font-family: var(--font-heading);
}

.logo-subtitle {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.8px;
}

/* Navigation Menu */
.nav-menu {
  display: none; /* Hidden on mobile by default */
}

/* Hamburger button */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 110;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2.5px;
  background-color: var(--primary);
  border-radius: 4px;
  transition: var(--transition-normal);
  transform-origin: left center;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(-2px);
  background-color: var(--white);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(2px);
  background-color: var(--white);
}

/* Mobile Sidebar Drawer */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  background-color: var(--primary);
  z-index: 105;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  padding: 100px 30px 40px 30px;
  transition: var(--transition-normal);
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 34, 66, 0.4);
  backdrop-filter: blur(4px);
  z-index: 102;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-normal);
}

.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: auto;
}

.mobile-nav-link {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  padding: 10px 0;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-link::after {
  content: '→';
  font-size: 1.1rem;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-10px);
  transition: var(--transition-fast);
}

.mobile-nav-link:hover::after,
.mobile-nav-link:focus::after {
  opacity: 1;
  transform: translateX(0);
}

.mobile-nav-link.highlight {
  color: var(--accent);
  border-bottom: 1.5px solid rgba(229, 169, 59, 0.2);
}

.mobile-contact-info {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 25px;
}

.mobile-contact-item {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-contact-item svg {
  width: 18px;
  height: 18px;
  fill: var(--accent);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 60px 0 70px 0;
  overflow: hidden;
  text-align: center;
}

.hero-subtitle-text {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 15px;
}

.hero-badge-container {
  display: inline-flex;
  justify-content: center;
  margin-bottom: 24px;
}

/* Excelencia Academica Badge (Highly Premium) */
.excellence-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(229, 169, 59, 0.15);
  border: 1.5px solid var(--accent);
  padding: 8px 18px;
  border-radius: 40px;
  box-shadow: 0 4px 20px rgba(229, 169, 59, 0.2);
  animation: float 4s ease-in-out infinite;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

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

.excellence-badge svg {
  width: 20px;
  height: 20px;
  fill: var(--accent);
  filter: drop-shadow(0 0 2px rgba(229, 169, 59, 0.5));
}

.excellence-badge span {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-light);
}

.hero-title {
  color: var(--white);
  font-size: 2.25rem;
  line-height: 1.15;
  margin-bottom: 12px;
  font-family: var(--font-heading);
}

.hero-title span {
  background: linear-gradient(to right, var(--accent-light), #FFE082);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-top: 6px;
}

.hero-description {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto 30px auto;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

/* Button UI Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #D49D2F);
  color: var(--primary);
  box-shadow: 0 4px 15px rgba(229, 169, 59, 0.3);
}

.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  box-shadow: 0 6px 20px rgba(229, 169, 59, 0.45);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover, .btn-secondary:focus {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(0);
}

/* Desktop float hero logo hidden on mobile */
.hero-logo-frame {
  display: none;
}

/* --- Section Global Layouts --- */
.section {
  padding: 60px 0;
}

.section-bg-alt {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

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

.section-pretitle {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 10px;
}

.section-title {
  font-size: 1.85rem;
  letter-spacing: -0.5px;
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--accent);
  border-radius: 2px;
}

.section-title.left-align::after {
  left: 0;
  transform: none;
}

/* --- Excelencia Académica Highlight Banner --- */
.excelencia-banner {
  background: linear-gradient(135deg, #FFF9EB 0%, #FFF2D1 100%);
  border: 2px solid rgba(229, 169, 59, 0.4);
  border-radius: var(--radius-lg);
  padding: 30px 20px;
  box-shadow: var(--shadow-md);
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.sned-image-container {
  width: 95px;
  height: 95px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(229, 169, 59, 0.1);
  border-radius: var(--radius-round);
  box-shadow: 0 4px 14px rgba(229, 169, 59, 0.18);
  transition: var(--transition-normal);
}

.excelencia-banner:hover .sned-image-container {
  transform: scale(1.1) rotate(5deg);
  background-color: rgba(229, 169, 59, 0.18);
  box-shadow: 0 6px 18px rgba(229, 169, 59, 0.28);
}

.sned-badge-svg {
  width: 54px;
  height: 54px;
  fill: var(--accent);
  filter: drop-shadow(0 2px 5px rgba(229, 169, 59, 0.25));
  transition: var(--transition-normal);
}

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

.sned-tag {
  display: inline-block;
  background-color: var(--primary);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.excelencia-banner h3 {
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.excelencia-banner p {
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.6;
}

/* --- Directora Welcome Split Section --- */
.director-split {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.director-portrait-card {
  background-color: var(--bg-light);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  max-width: 320px;
  margin: 0 auto;
}

.portrait-wrapper {
  background-color: #ECEFF1;
  height: 280px;
  overflow: hidden;
}

.director-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.director-meta-box {
  padding: 20px;
  text-align: center;
  background-color: var(--white);
  border-top: 1px solid var(--border-color);
}

.director-name {
  font-size: 1.15rem;
  color: var(--primary);
  font-weight: 700;
}

.director-charge {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
}

.director-message-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.director-quote-text blockquote {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-dark);
  font-style: italic;
  border-left: 4px solid var(--accent);
  padding-left: 20px;
  margin: 20px 0 0 0;
}

/* --- Campus Selector (Sedes) - Multi-Tab --- */
.sedes-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.sedes-tabs {
  display: flex;
  background-color: rgba(15, 34, 66, 0.05);
  padding: 6px;
  border-radius: 40px;
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
}

.tab-btn {
  flex: 1;
  padding: 12px 20px;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: var(--transition-normal);
  text-align: center;
}

.tab-btn.active {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.sede-panel {
  display: none;
  animation: fadeIn 0.4s ease-in-out forwards;
}

.sede-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.sede-visual-header {
  height: 180px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  overflow: hidden;
}

.sede-icon-bg {
  width: 72px;
  height: 72px;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2;
}

.sede-icon-bg svg {
  width: 36px;
  height: 36px;
  fill: var(--accent);
}

.sede-info-body {
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sede-name {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.sede-badge {
  display: inline-block;
  align-self: flex-start;
  background-color: var(--bg-accent-light);
  color: var(--accent);
  border: 1px solid rgba(229, 169, 59, 0.3);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.sede-details-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sede-detail-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.sede-detail-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.sede-detail-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--primary);
}

.sede-detail-text {
  font-size: 0.95rem;
  color: var(--text-dark);
}

.sede-detail-title {
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--primary);
  display: block;
  font-size: 0.9rem;
}

.sede-btn-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}

.btn-action {
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition-normal);
}

.btn-call {
  background-color: var(--bg-light);
  color: var(--primary);
  border: 1.5px solid var(--border-color);
}

.btn-call:hover, .btn-call:focus {
  background-color: var(--white);
  border-color: var(--primary);
}

.btn-whatsapp {
  background-color: var(--secondary);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}

.btn-whatsapp:hover, .btn-whatsapp:focus {
  background-color: var(--secondary-hover);
  box-shadow: 0 6px 15px rgba(16, 185, 129, 0.35);
  transform: translateY(-2px);
}

.btn-whatsapp svg {
  width: 20px;
  height: 20px;
  fill: var(--white);
}

/* --- Benefits Section (Grid) --- */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

.benefit-card {
  background-color: var(--bg-card);
  padding: 30px 24px;
  border-radius: var(--radius-lg);
  border: 1.5px solid #dfe7f3;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}

.benefit-card:hover {
  transform: translateY(-6px);
  border-color: #e6b13c;
  box-shadow: 0 18px 34px rgba(14, 39, 79, 0.13);
}

.benefit-img-wrapper {
  width: 78px;
  height: 78px;
  background: #fff5d8;
  border-radius: var(--radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #d89112;
  position: relative;
}

.benefit-img-wrapper::after {
  content: '';
  position: absolute;
  inset: -6px;
  border: 1px dashed currentColor;
  opacity: .35;
  border-radius: inherit;
}

.benefit-icon {
  width: 42px;
  height: 42px;
  position: relative;
  z-index: 1;
}

.benefit-card:nth-child(2) .benefit-img-wrapper {
  background: #e8f5ff;
  color: #2377b9;
}

.benefit-card:nth-child(3) .benefit-img-wrapper {
  background: #fbe9f0;
  color: #cb4f7b;
}

.benefit-card:nth-child(4) .benefit-img-wrapper {
  background: #e9f7f0;
  color: #20845b;
}

.benefit-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
}

.benefit-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- News Section (Diario de Rayenco) --- */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

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

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(229, 169, 59, 0.3);
}

.news-img-wrapper {
  height: 200px;
  overflow: hidden;
  background-color: #E2E8F0;
}

.news-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

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

.news-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-date {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.news-card-title {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1.3;
}

.news-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.news-readmore {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary);
  align-self: flex-start;
}

.news-readmore:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.diario-home-link { margin-top: 30px; text-align: center; }
.diario-home-link a { background: var(--primary); border-radius: 999px; color: #fff; display: inline-flex; font-family: var(--font-heading); font-size: .9rem; font-weight: 700; gap: 12px; padding: 13px 20px; text-decoration: none; }
.diario-home-link a:hover { background: #1c4175; transform: translateY(-2px); }

/* --- El Diario de Rayenco --- */
.diario-page { background: #f8f5ee; }
.diario-page .header { background: rgba(255,253,248,.96); }
.diario-page .nav-link.active { color: #b85c35; }
.diario-page .mobile-nav-link.active { color: #b85c35; font-weight: 700; }
.diario-masthead { background: #112b4d; color: #fffaf0; padding: 64px 0 27px; text-align: center; position: relative; overflow: hidden; }
.diario-masthead::before { content: 'R'; position: absolute; font-family: 'Fraunces', serif; color: rgba(255,255,255,.035); font-size: 30rem; line-height: .5; left: -40px; bottom: -60px; }
.diario-kicker { color: #e9b13b; font-size: .7rem; font-weight: 800; letter-spacing: .18em; margin-bottom: 12px; }
.diario-masthead h1 { font-family: 'Fraunces', serif; color: #fffaf0; font-size: clamp(2.7rem, 8vw, 5.2rem); letter-spacing: -.065em; line-height: .9; margin: 0; position: relative; }
.diario-masthead h1 em { color: #f0bb4b; font-weight: 600; }
.diario-edition { border-top: 1px solid rgba(255,255,255,.27); border-bottom: 1px solid rgba(255,255,255,.27); display: flex; justify-content: space-between; gap: 16px; font-size: .62rem; letter-spacing: .12em; font-weight: 700; margin-top: 28px; padding: 10px 0; position: relative; }
.diario-content { padding-top: 48px; padding-bottom: 55px; }
.diario-section-heading { border-bottom: 2px solid #193657; display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 24px; padding-bottom: 9px; }
.diario-section-heading span { color: #b85c35; font-weight: 800; font-size: .72rem; letter-spacing: .15em; }
.diario-section-heading p { color: #607086; font-size: .85rem; margin: 0; }
.diario-lead-grid { display: grid; gap: 22px; }
.diario-lead-story { background: #fffdf8; border: 1px solid #dbe0db; }
.diario-lead-story img { display: block; width: 100%; height: 240px; object-fit: cover; }
.diario-lead-body { padding: 25px 22px 27px; }
.diario-category { color: #b85c35; display: block; font-size: .67rem; font-weight: 800; letter-spacing: .11em; margin-bottom: 10px; }
.diario-lead-body h2, .diario-side-story h3, .diario-article h2, .diario-cta h2 { font-family: 'Fraunces', serif; color: #152f50; letter-spacing: -.04em; }
.diario-lead-body h2 { font-size: 2rem; line-height: 1.02; margin: 0 0 13px; }
.diario-lead-body p { color: #59687b; line-height: 1.65; margin-bottom: 18px; }
.diario-link { color: #a74c2a; display: inline-flex; font-weight: 800; gap: 9px; text-decoration: none; }
.diario-link:hover { color: #152f50; }
.diario-side-stories { display: grid; align-content: start; gap: 16px; }
.diario-side-story { border-bottom: 1px solid #ccd4d2; display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding-bottom: 16px; }
.diario-side-story img { height: 100px; width: 110px; object-fit: cover; }
.diario-side-story h3 { font-size: 1.25rem; line-height: 1.04; margin: 0 0 8px; }
.diario-side-story a { color: #a74c2a; font-size: .8rem; font-weight: 800; text-decoration: none; }
.diario-note { background: #e9b13b; color: #142e50; font-family: 'Fraunces', serif; font-size: 1.23rem; line-height: 1.25; padding: 22px; transform: rotate(-1deg); }
.diario-stories { background: #fffdf8; border-top: 1px solid #e2ddd1; padding: 55px 0; }
.diario-article { border-top: 1px solid #bdc9c5; display: grid; gap: 18px; padding: 28px 0; scroll-margin-top: 90px; }
.diario-article-meta { color: #a74c2a; display: flex; flex-wrap: wrap; font-size: .68rem; font-weight: 800; gap: 10px; letter-spacing: .1em; }
.diario-article-meta span + span::before { color: #8d9a9d; content: '•'; margin-right: 10px; }
.diario-article h2 { font-size: 2rem; line-height: 1.04; margin: 0 0 12px; }
.diario-article p { color: #536276; line-height: 1.72; margin: 0 0 14px; max-width: 760px; }
.diario-article .diario-standfirst { color: #1a3658; font-family: 'Fraunces', serif; font-size: 1.15rem; line-height: 1.42; }
.diario-cta { background: #183758; color: #fefbf4; padding: 55px 0; }
.diario-cta .container { display: flex; flex-direction: column; gap: 25px; }
.diario-cta span { color: #e9b13b; font-size: .69rem; font-weight: 800; letter-spacing: .13em; }
.diario-cta h2 { color: #fffaf0; font-size: 2rem; line-height: 1.04; margin: 8px 0; }
.diario-cta p { color: #d4dde5; line-height: 1.55; margin: 0; }
.diario-cta-button { align-self: flex-start; background: #e9b13b; border-radius: 999px; color: #173451; font-weight: 800; padding: 13px 18px; text-decoration: none; }
.diario-cta-button:hover { background: #fff3cf; transform: translateY(-2px); }

@media (min-width: 768px) {
  .diario-masthead { padding-top: 85px; }
  .diario-lead-grid { grid-template-columns: minmax(0, 1.55fr) minmax(300px, .85fr); gap: 30px; }
  .diario-lead-story img { height: 330px; }
  .diario-lead-body { padding: 31px 34px 34px; }
  .diario-lead-body h2 { font-size: 2.65rem; }
  .diario-article { grid-template-columns: 180px minmax(0, 1fr); gap: 42px; padding: 43px 0; }
  .diario-cta .container { align-items: center; flex-direction: row; justify-content: space-between; }
  .diario-cta .container > div { max-width: 670px; }
}

/* Archivo / revista: una alternativa al formato de noticias frecuentes */
.archivo-hero { background: #f7eddb; overflow: hidden; padding: 52px 0 46px; }
.archivo-hero-grid { display: grid; gap: 36px; }
.archivo-hero-simple { padding-bottom: 58px; padding-top: 63px; text-align: left; }
.archivo-hero-simple .archivo-hero-copy { margin: 0; max-width: 760px; }
.archivo-hero-simple h1 { letter-spacing: -.055em; line-height: 1.03; }
.archivo-hero-simple h1 em { display: block; margin: .14em 0 0; word-spacing: .12em; }
.archivo-hero-simple .archivo-hero-copy p { margin-left: 0; margin-right: 0; }
.archivo-hero-simple .archivo-scroll-link { margin-top: 18px; }
.archivo-eyebrow, .archivo-heading > div > span, .archivo-footer-message > .container > span { color: #b75a32; display: inline-block; font-size: .71rem; font-weight: 800; letter-spacing: .15em; }
.archivo-hero h1 { color: #173657; font-family: 'Fraunces', serif; font-size: clamp(3.4rem, 13vw, 6.7rem); letter-spacing: -.08em; line-height: .83; margin: 15px 0 19px; }
.archivo-hero h1 em { color: #cb6840; font-weight: 600; }
.archivo-hero-copy p { color: #4e5f70; font-size: 1.03rem; line-height: 1.65; max-width: 505px; }
.archivo-scroll-link { border-bottom: 2px solid #173657; color: #173657; display: inline-flex; font-weight: 800; gap: 13px; margin-top: 15px; padding-bottom: 7px; text-decoration: none; }
.archivo-scroll-link span { color: #cb6840; font-size: 1.15rem; line-height: .8; }
.archivo-collage { min-height: 330px; position: relative; }
.archivo-photo-main { border: 8px solid #fffaf1; box-shadow: 0 14px 30px rgba(29,49,67,.15); height: 270px; object-fit: cover; transform: rotate(-3deg); width: 75%; }
.archivo-photo-top { border: 7px solid #fffaf1; box-shadow: 0 14px 30px rgba(29,49,67,.15); height: 170px; object-fit: cover; position: absolute; right: 0; top: 100px; transform: rotate(4deg); width: 48%; }
.archivo-sticker { background: #173657; border-radius: 50%; bottom: 0; color: #f5bd45; display: grid; font-family: 'Fraunces', serif; font-size: 1rem; font-weight: 700; height: 114px; line-height: .94; place-content: center; position: absolute; right: 14%; text-align: center; transform: rotate(-9deg); width: 114px; }
.archivo-sticker span { color: #fff7db; font-size: 1.35rem; margin-top: 3px; }
.archivo-welcome { background: #173657; color: #f9f2e6; padding: 23px 0; }
.archivo-welcome p { font-family: 'Fraunces', serif; font-size: 1.12rem; line-height: 1.35; margin: 0; text-align: center; }
.archivo-welcome span { color: #f1bb49; margin-right: 5px; }
.archivo-collection { padding-bottom: 64px; padding-top: 62px; }
.archivo-heading { border-bottom: 1px solid #c9d1cd; display: grid; gap: 12px; padding-bottom: 20px; }
.archivo-heading h2 { color: #173657; font-family: 'Fraunces', serif; font-size: 2.4rem; letter-spacing: -.06em; line-height: 1; margin: 8px 0 0; }
.archivo-heading > p { color: #607080; line-height: 1.5; margin: 0; max-width: 390px; }
.archivo-topic-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 28px; }
.archivo-topic-row a { border: 1px solid #b7c5c2; border-radius: 999px; color: #345166; font-size: .8rem; font-weight: 700; padding: 9px 13px; text-decoration: none; }
.archivo-topic-row a:nth-child(2) { background: #e6f0ed; }.archivo-topic-row a:nth-child(3) { background: #f9e7df; }.archivo-topic-row a:nth-child(4) { background: #fff0c9; }
.archivo-topic-row a:hover { background: #173657; color: #fff; }
.archivo-grid { display: grid; gap: 19px; }
.archivo-card { background: #fffdf8; border: 1px solid #d9dfda; border-radius: 14px; overflow: hidden; scroll-margin-top: 90px; }
.archivo-card > img { display: block; height: 205px; object-fit: cover; width: 100%; }
.archivo-card-body { padding: 22px 20px 24px; }
.archivo-card-body > span { color: #bc5b35; display: block; font-size: .65rem; font-weight: 800; letter-spacing: .11em; margin-bottom: 11px; }
.archivo-card h3 { color: #183756; font-family: 'Fraunces', serif; font-size: 1.7rem; letter-spacing: -.045em; line-height: 1.02; margin: 0 0 12px; }
.archivo-card p { color: #5d6c79; line-height: 1.58; margin: 0 0 15px; }
.archivo-card details { border-top: 1px dashed #bfc9c3; margin-top: 18px; padding-top: 13px; }
.archivo-card summary { color: #a54b2b; cursor: pointer; font-size: .83rem; font-weight: 800; list-style: none; }
.archivo-card summary::-webkit-details-marker { display: none; }
.archivo-card summary b { float: right; font-size: 1.1rem; }
.archivo-card details[open] summary b { transform: rotate(45deg); }
.archivo-card details p { font-size: .93rem; margin: 15px 0 0; }
.archivo-gallery-link { color: #a54b2b; font-size: .85rem; font-weight: 800; text-decoration: none; }
.archivo-footer-message { background: #e6ad38; color: #173657; padding: 57px 0; text-align: center; }
.archivo-footer-message > .container > span { color: #173657; }
.archivo-footer-message h2 { color: #173657; font-family: 'Fraunces', serif; font-size: clamp(2rem, 7vw, 3.3rem); letter-spacing: -.06em; line-height: 1.02; margin: 14px auto 24px; max-width: 750px; }
.archivo-message-button { background: #173657; border-radius: 999px; color: #fff; display: inline-block; font-weight: 800; padding: 14px 20px; text-decoration: none; }
.archivo-message-button:hover { background: #fffaf1; color: #173657; transform: translateY(-2px); }

@media (min-width: 768px) {
  .archivo-hero { padding: 78px 0 74px; }
  .archivo-hero-simple { padding-bottom: 88px; padding-top: 96px; }
  .archivo-hero-grid { align-items: center; grid-template-columns: 1fr .9fr; gap: 64px; }
  .archivo-collage { min-height: 410px; }.archivo-photo-main { height: 330px; }.archivo-photo-top { height: 210px; top: 130px; }.archivo-sticker { bottom: 2px; }
  .archivo-welcome p { font-size: 1.32rem; }.archivo-heading { align-items: end; grid-template-columns: 1fr .75fr; }.archivo-grid { grid-template-columns: 1.2fr 1fr 1fr; align-items: start; }.archivo-card-featured { grid-row: span 2; }.archivo-card-featured > img { height: 305px; }.archivo-card-featured h3 { font-size: 2.15rem; }
}

/* Diario v2: inspirado en las secciones del sitio anterior, con lectura más clara */
.diario-v2-page { background: #f4f7f8; }
.v2-diary-hero { background: #183a61; color: #fff; padding: 59px 0 50px; text-align: center; }
.v2-diary-hero span { color: #f0bb42; font-size: .7rem; font-weight: 800; letter-spacing: .15em; }
.v2-diary-hero h1 { color: #fff; font-size: clamp(2.4rem, 8vw, 4.6rem); letter-spacing: -.06em; margin: 12px 0; }
.v2-diary-hero p { color: #d6e0e9; line-height: 1.6; margin: 0 auto; max-width: 630px; }
.v2-topic-nav { background: #fff; border-bottom: 1px solid #d8e0e2; overflow-x: auto; white-space: nowrap; }
.v2-topic-nav .container { display: flex; gap: 5px; padding-bottom: 9px; padding-top: 9px; }
.v2-topic-nav a { color: #284b6b; font-size: .8rem; font-weight: 800; padding: 9px 11px; text-decoration: none; }
.v2-topic-nav a:hover { background: #eaf2f4; border-radius: 7px; color: #c35934; }
.v2-diary-section { padding: 48px 0; scroll-margin-top: 90px; }
.v2-diary-section h2 { border-bottom: 3px solid #234c70; color: #183a61; font-size: 1.75rem; margin: 0 0 23px; padding-bottom: 11px; }
.v2-diary-section h2 span { background: #edb637; border-radius: 5px; color: #173a5d; display: inline-grid; font-size: .65rem; height: 22px; margin-right: 7px; place-content: center; vertical-align: middle; width: 22px; }
.v2-card-grid { display: grid; gap: 16px; }
.v2-post { background: #fff; border: 1px solid #d8e0e2; border-radius: 10px; overflow: hidden; }
.v2-post img { display: block; height: 175px; object-fit: cover; width: 100%; }
.v2-post > div { padding: 19px; }.v2-post small, .v2-feature-strip small { color: #c25b35; font-size: .65rem; font-weight: 800; letter-spacing: .1em; }
.v2-post h3 { color: #193d60; font-size: 1.2rem; line-height: 1.15; margin: 8px 0; }.v2-post p { color: #64758a; font-size: .91rem; line-height: 1.5; }.v2-post a, .v2-feature-strip a { color: #1769a6; font-size: .8rem; font-weight: 800; text-decoration: none; }
.v2-section-tint { background: #e9f0f2; }.v2-feature-strip { background: #fff; border-radius: 11px; overflow: hidden; }.v2-feature-strip img { display: block; height: 230px; object-fit: cover; width: 100%; }.v2-feature-strip > div { padding: 25px; }.v2-feature-strip h3 { color: #193d60; font-family: 'Fraunces', serif; font-size: 2rem; line-height: 1.06; margin: 9px 0; }.v2-feature-strip p { color: #607084; line-height: 1.6; }
.v2-mini-grid { display: grid; gap: 12px; }.v2-mini-grid article { border-left: 5px solid #eab43b; padding: 15px 17px; }.v2-mini-grid article:nth-child(2) { border-color: #50a4b7; }.v2-mini-grid article:nth-child(3) { border-color: #ca6748; }.v2-mini-grid b { color: #183a61; font-size: 1.05rem; }.v2-mini-grid p { color: #64758a; line-height: 1.5; margin-bottom: 0; }
.v2-useful { background: #183a61; }.v2-useful h2 { border-color: #f0bb42; color: #fff; }.v2-useful-grid { display: grid; gap: 12px; }.v2-useful-grid a { background: #fff; border-radius: 9px; color: #193d60; padding: 19px; text-decoration: none; }.v2-useful-grid strong, .v2-useful-grid span { display: block; }.v2-useful-grid span { color: #55708a; font-size: .85rem; margin-top: 6px; }
@media (min-width: 768px) { .v2-card-grid { grid-template-columns: repeat(3, 1fr); }.v2-feature-strip { display: grid; grid-template-columns: .95fr 1.05fr; }.v2-feature-strip img { height: 100%; min-height: 330px; }.v2-feature-strip > div { align-self: center; padding: 46px; }.v2-mini-grid, .v2-useful-grid { grid-template-columns: repeat(3, 1fr); }.v2-diary-section { padding: 70px 0; } }

/* Colecciones migradas desde el Diario WordPress */
.diario-collections-loading { color: #637080; padding: 32px 0; }
.diario-collection-section { padding: 38px 0 18px; scroll-margin-top: 85px; }
.diario-collection-section + .diario-collection-section { border-top: 1px solid #d5ddd7; margin-top: 34px; }
.diario-collection-heading { display: grid; gap: 9px; margin-bottom: 20px; }
.diario-collection-heading span { color: #bb5d37; font-size: .67rem; font-weight: 800; letter-spacing: .13em; }
.diario-collection-heading h2 { color: #173657; font-family: 'Fraunces', serif; font-size: 2.15rem; letter-spacing: -.055em; line-height: 1; margin: 0; }
.diario-collection-heading p { color: #607080; line-height: 1.45; margin: 0; max-width: 490px; }
.diario-post-grid { display: grid; gap: 17px; }
.diario-post-card { background: #fffdf9; border: 1px solid #d8ded9; border-radius: 13px; display: flex; flex-direction: column; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.diario-post-card:hover { box-shadow: 0 15px 30px rgba(22,52,78,.11); transform: translateY(-4px); }
.diario-post-image { background: #e5ebea; display: block; height: 190px; overflow: hidden; }
.diario-post-image img { height: 100%; object-fit: cover; transition: transform .35s ease; width: 100%; }
.diario-post-card:hover .diario-post-image img { transform: scale(1.04); }
.diario-post-body { display: flex; flex: 1; flex-direction: column; padding: 19px; }
.diario-post-body > span { color: #b95b35; font-size: .64rem; font-weight: 800; letter-spacing: .1em; }
.diario-post-body h3 { font-family: 'Fraunces', serif; font-size: 1.37rem; letter-spacing: -.04em; line-height: 1.05; margin: 10px 0; }
.diario-post-body h3 a { color: #173657; text-decoration: none; }
.diario-post-body p { color: #627082; font-size: .89rem; line-height: 1.53; margin: 0 0 15px; }
.diario-post-link { color: #a54b2b; font-size: .81rem; font-weight: 800; margin-top: auto; text-decoration: none; }.diario-post-link b { margin-left: 6px; }
.post-main { background: #f7eddb; min-height: 65vh; padding: 46px 0 68px; }
.post-article { background: #fffdf9; border: 1px solid #d8ded9; border-radius: 16px; max-width: 860px; padding: 25px 20px 36px; }
.post-back { color: #a54b2b; display: inline-block; font-size: .85rem; font-weight: 800; margin-bottom: 27px; text-decoration: none; }.post-back:hover { color: #173657; }
.post-meta { color: #ba5b35; font-size: .68rem; font-weight: 800; letter-spacing: .12em; margin-bottom: 13px; text-transform: uppercase; }
.post-article h1 { color: #173657; font-family: 'Fraunces', serif; font-size: clamp(2.2rem, 9vw, 4rem); letter-spacing: -.065em; line-height: 1; margin: 0 0 23px; }
.post-cover { border-radius: 10px; display: block; height: auto; max-height: 510px; object-fit: cover; width: 100%; }
.post-content { margin: 28px auto 0; max-width: 710px; }.post-content p { color: #455a6d; font-size: 1rem; line-height: 1.75; margin: 0 0 19px; }.post-back-bottom { border-top: 1px solid #d7ddd7; margin: 12px 0 0; padding-top: 21px; }.post-not-found { color: #455a6d; font-size: 1.1rem; padding: 35px; }
@media (min-width: 700px) { .diario-post-grid { grid-template-columns: repeat(2, 1fr); }.post-article { padding: 46px 60px 58px; } }
@media (min-width: 1060px) { .diario-post-grid { grid-template-columns: repeat(3, 1fr); } }

/* --- Convenios Section --- */
.convenios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.convenio-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.convenio-card:hover {
  border-color: var(--accent);
  transform: scale(1.03);
}

.convenio-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.65;
  transition: var(--transition-normal);
}

.convenio-card:hover .convenio-img {
  filter: grayscale(0%);
  opacity: 1;
}

/* --- Matrícula Section & Form --- */
.matricula-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-color);
  box-shadow: var(--shadow-premium);
  overflow: hidden;
}

.matricula-intro {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  padding: 35px 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.matricula-intro h3 {
  color: var(--white);
  font-size: 1.6rem;
}

.matricula-intro p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.6;
}

.reglamentos-box {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  margin-top: 10px;
  text-align: left;
}

.reglamento-title-lbl {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}

.reglamentos-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reglamento-dl-link {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.reglamento-dl-link:hover {
  color: var(--accent-light);
}

.reglamento-dl-link svg {
  width: 16px;
  height: 16px;
  fill: var(--accent);
}

.matricula-form {
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
}

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

.form-control:focus {
  background-color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(15, 34, 66, 0.08);
}

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

.form-checkbox-group {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  margin: 5px 0;
}

.form-checkbox {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  cursor: pointer;
  margin-top: 3px;
  flex-shrink: 0;
}

.form-checkbox-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.form-checkbox-label a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

.btn-submit {
  width: 100%;
  padding: 16px;
  font-size: 1.05rem;
  margin-top: 10px;
}

/* Form Success State styling */
.form-success-wrapper {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  animation: fadeIn 0.4s ease-in-out forwards;
}

.success-icon-container {
  width: 80px;
  height: 80px;
  background-color: rgba(16, 185, 129, 0.1);
  border: 2px solid var(--secondary);
  color: var(--secondary);
  border-radius: var(--radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  animation: scaleUp 0.5s var(--transition-spring);
}

@keyframes scaleUp {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.success-icon-container svg {
  width: 42px;
  height: 42px;
  fill: currentColor;
}

.success-title {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.success-description {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 420px;
  margin-bottom: 25px;
}

/* --- Testimonials Section (Swipeable Carousel) --- */
.carousel-outer {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  padding: 10px;
}

.testimonial-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-color);
  padding: 35px 25px;
  box-shadow: var(--shadow-md);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.testimonial-quote-icon {
  position: absolute;
  top: 25px;
  right: 25px;
  opacity: 0.08;
  color: var(--primary);
  pointer-events: none;
}

.testimonial-quote-icon svg {
  width: 50px;
  height: 50px;
  fill: currentColor;
}

.testimonial-text {
  font-size: 1rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--text-dark);
  position: relative;
  z-index: 2;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-round);
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  border: 1.5px solid var(--white);
  box-shadow: var(--shadow-sm);
}

.testimonial-meta {
  display: flex;
  flex-direction: column;
}

.testimonial-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
}

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

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 25px;
}

.indicator {
  width: 10px;
  height: 10px;
  background-color: var(--border-color);
  border-radius: var(--radius-round);
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 0;
}

.indicator.active {
  width: 24px;
  border-radius: 8px;
  background-color: var(--primary);
}

/* --- Footer & WhatsApp Widget --- */
.footer {
  background-color: var(--primary);
  color: var(--white);
  padding: 50px 0 30px 0;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 35px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-brand .logo-title {
  color: var(--white);
}

.footer-brand-desc {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.footer-section-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 18px;
  position: relative;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-link:hover, .footer-link:focus {
  color: var(--accent);
  transform: translateX(4px);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.75);
}

.footer-contact-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-contact-icon svg {
  width: 18px;
  height: 18px;
  fill: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 25px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* WhatsApp Floating Widget (Premium Touch-friendly) */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: var(--secondary);
  border-radius: var(--radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
  z-index: 99;
  transition: var(--transition-spring);
  border: 2px solid var(--white);
}

.whatsapp-float:hover, .whatsapp-float:focus {
  background-color: var(--secondary-hover);
  transform: scale(1.1) rotate(8deg);
  box-shadow: 0 6px 25px rgba(16, 185, 129, 0.5);
}

.whatsapp-float:active {
  transform: scale(0.95);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: var(--white);
}

/* Interactive Badge notification for floating widget */
.whatsapp-float::before {
  content: 'Matrículas';
  position: absolute;
  right: 68px;
  background-color: var(--primary);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(229, 169, 59, 0.3);
  animation: popIn 0.8s 2s ease forwards;
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
}

@keyframes popIn {
  to { opacity: 1; transform: translateX(0); }
}

/* --- Video Presentación --- */
.video-card-container {
  max-width: 900px;
  margin: 0 auto;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-color);
  box-shadow: var(--shadow-premium);
  overflow: hidden;
  padding: 12px;
  position: relative;
  transition: var(--transition-normal);
}

.video-card-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 45px -10px rgba(15, 34, 66, 0.16);
}

.video-responsive {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 8px);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
  background-color: #000;
}

.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  z-index: 1;
  transition: opacity var(--transition-normal);
}

/* Custom Cover Image & Overlay */
.video-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.video-cover-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1.16); /* Crops out 4:3 letterbox black bars automatically */
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.video-cover:hover .video-cover-img {
  transform: scale(1.22);
}

.video-play-trigger {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Gold Play Button */
.play-btn {
  width: 76px;
  height: 76px;
  background: linear-gradient(135deg, var(--accent) 0%, #D49D2F 100%);
  border-radius: var(--radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--white);
  box-shadow: 0 10px 25px rgba(229, 169, 59, 0.4);
  transition: var(--transition-spring);
  animation: pulsePlay 2s infinite;
}

.play-btn svg {
  width: 28px;
  height: 28px;
  fill: var(--primary);
  margin-left: 4px; /* visually centers the play arrow */
  transition: var(--transition-normal);
}

.video-cover:hover .play-btn {
  transform: scale(1.1);
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  box-shadow: 0 15px 30px rgba(229, 169, 59, 0.6);
}

.video-cover:hover .play-btn svg {
  transform: scale(1.15);
}

/* Glassmorphism Play Badge Text */
.play-btn-text {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  background-color: rgba(15, 34, 66, 0.75);
  padding: 8px 18px;
  border-radius: 30px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: var(--transition-normal);
}

.video-cover:hover .play-btn-text {
  background-color: var(--primary);
  border-color: var(--accent);
  color: var(--accent-light);
}

@keyframes pulsePlay {
  0% {
    box-shadow: 0 10px 25px rgba(229, 169, 59, 0.4), 0 0 0 0 rgba(229, 169, 59, 0.5);
  }
  70% {
    box-shadow: 0 10px 25px rgba(229, 169, 59, 0.4), 0 0 0 16px rgba(229, 169, 59, 0);
  }
  100% {
    box-shadow: 0 10px 25px rgba(229, 169, 59, 0.4), 0 0 0 0 rgba(229, 169, 59, 0);
  }
}

/* Play state triggers */
.video-responsive.is-playing .video-cover {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.video-responsive.is-playing iframe {
  opacity: 1;
}

.video-description-box {
  margin-top: 20px;
  padding: 10px 20px 20px 20px;
  text-align: center;
}

.video-description-box p {
  font-size: 1.05rem;
  color: var(--text-dark);
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
}

/* --- Mobile Bottom Navigation Bar (WhatsApp & App Style) --- */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 68px;
  background-color: rgba(15, 34, 66, 0.96); /* Dark Academic Blue with transparency */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1.5px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 999; /* Higher than floating buttons */
  box-shadow: 0 -8px 24px rgba(10, 22, 43, 0.2);
}

.bottom-bar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px 0;
  transition: var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.bottom-bar-item svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  transition: var(--transition-fast);
}

.bottom-bar-item:hover, .bottom-bar-item:focus, .bottom-bar-item.active {
  color: var(--accent);
}

/* Central Golden Action Button */
.bottom-bar-item.active-action {
  position: relative;
  top: -14px;
  color: var(--accent);
  flex-grow: 1.1;
  font-weight: 700;
}

.action-btn-circle {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--accent) 0%, #D49D2F 100%);
  border-radius: var(--radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(229, 169, 59, 0.4);
  border: 3px solid var(--primary);
  transition: var(--transition-spring);
}

.action-btn-circle svg {
  width: 24px;
  height: 24px;
  fill: var(--primary) !important;
}

.bottom-bar-item.active-action:hover .action-btn-circle,
.bottom-bar-item.active-action:focus .action-btn-circle {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 20px rgba(229, 169, 59, 0.6);
}

.bottom-bar-item.active-action span {
  margin-top: 2px;
}

/* --- Premium iOS/Android Native Bottom Sheets --- */
.bottom-sheet-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(10, 22, 43, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bottom-sheet-overlay.active {
  opacity: 1;
  visibility: visible;
}

.bottom-sheet {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  max-width: 100%;
  background-color: var(--white);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  z-index: 1001;
  box-shadow: 0 -10px 30px rgba(10, 22, 43, 0.15);
  padding: 16px 20px 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(0);
}

.bottom-sheet.active {
  transform: translateY(-100%);
  bottom: 0; /* Align perfectly */
}

/* Drag indicator bar in native sheets */
.bottom-sheet-drag-handle {
  width: 40px;
  height: 5px;
  background-color: var(--border-color);
  border-radius: 10px;
  align-self: center;
  margin-bottom: 4px;
}

.bottom-sheet-header {
  text-align: center;
}

.bottom-sheet-header h3 {
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 4px;
}

.bottom-sheet-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.bottom-sheet-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bottom-sheet-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background-color: var(--bg-light);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: var(--transition-fast);
  text-decoration: none;
}

.bottom-sheet-option:active, .bottom-sheet-option:hover {
  background-color: var(--bg-accent-light);
  border-color: rgba(229, 169, 59, 0.4);
}

.option-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.option-icon.call {
  background-color: rgba(15, 34, 66, 0.08);
  color: var(--primary);
}

.option-icon.call.orange {
  background-color: rgba(229, 169, 59, 0.1);
  color: var(--accent);
}

.option-icon.whatsapp {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--secondary);
}

.option-icon.whatsapp.orange {
  background-color: rgba(229, 169, 59, 0.1);
  color: var(--accent);
}

.option-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.option-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.option-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
}

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

.bottom-sheet-close-btn {
  background-color: rgba(15, 34, 66, 0.05);
  color: var(--text-dark);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 14px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-align: center;
  transition: var(--transition-fast);
}

.bottom-sheet-close-btn:active {
  background-color: rgba(15, 34, 66, 0.1);
}

/* --- Instagram Community Section (Feed Simulator) --- */
.instagram-profile-card {
  max-width: 900px;
  margin: 0 auto 35px auto;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-color);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
}

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

.insta-profile-info {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.insta-avatar {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-round);
  border: 2px solid var(--white);
  box-shadow: 0 4px 15px rgba(15, 34, 66, 0.15);
  object-fit: cover;
  flex-shrink: 0;
}

.insta-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.insta-username-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.insta-username {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
}

.insta-verified-badge {
  width: 18px;
  height: 18px;
  color: #3897f0; /* Instagram verified blue */
  display: flex;
  align-items: center;
  justify-content: center;
}

.insta-verified-badge svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.insta-fullname {
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 500;
}

.insta-stats {
  display: flex;
  gap: 15px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.insta-stats strong {
  color: var(--text-dark);
}

/* Beautiful custom follow button styled after instagram color palette */
.btn-insta-follow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(193, 53, 132, 0.3);
  transition: var(--transition-normal);
  width: 100%;
  max-width: 280px;
  text-align: center;
}

.btn-insta-follow svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn-insta-follow:hover, .btn-insta-follow:focus {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(193, 53, 132, 0.45);
}

/* Grid layout */
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile by default */
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.insta-post-card {
  position: relative;
  aspect-ratio: 1; /* exact square box */
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  background-color: var(--white);
  -webkit-tap-highlight-color: transparent;
}

.insta-post-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* For post displaying round logo containing transparent background */
.insta-post-img.logo-contain-post {
  object-fit: contain;
  padding: 15px;
  background-color: var(--bg-light);
}

.insta-post-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 34, 66, 0.85); /* Cohesive Navy translucent backdrop */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  z-index: 2;
  transition: opacity var(--transition-normal);
}

/* Las publicaciones destacadas enlazan al perfil real; no se publican métricas estáticas. */
.insta-post-overlay {
  display: none;
}

.insta-post-stats {
  display: flex;
  gap: 20px;
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
}

.insta-post-stats span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.insta-post-stats svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Hover effects */
.insta-post-card:hover .insta-post-overlay,
.insta-post-card:focus .insta-post-overlay {
  opacity: 1;
}

.insta-post-card:hover .insta-post-img,
.insta-post-card:focus .insta-post-img {
  transform: scale(1.06);
}

/* Responsive grid overrides */
@media (min-width: 480px) {
  .instagram-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 columns on tablet/landscape mobile */
    gap: 16px;
  }
}

@media (min-width: 768px) {
  .instagram-profile-card {
    flex-direction: row; /* Horizontal layout on desktop */
    padding: 24px 32px;
  }
  
  .insta-profile-info {
    width: auto;
  }
  
  .btn-insta-follow {
    width: auto;
    max-width: none;
  }
  
  .instagram-grid {
    gap: 20px;
  }
}

/* Hide floating WhatsApp widget on mobile since we have bottom bar navigation */
@media (max-width: 767px) {
  .whatsapp-float {
    display: none !important;
  }

  /* Mobile Premium Header Enhancements (Dark Blue Translucent Glass) */
  .header {
    background-color: rgba(15, 34, 66, 0.96) !important; /* Premium Deep Navy */
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 20px rgba(10, 22, 43, 0.15);
  }
  
  .logo-title {
    color: var(--white) !important; /* Crisp white for legibility */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  }
  
  .menu-toggle span {
    background-color: var(--white) !important; /* Crisp white hamburger lines */
  }
}

/* Hide bottom elements completely on desktop */
@media (min-width: 768px) {
  .mobile-bottom-bar,
  .bottom-sheet-overlay,
  .bottom-sheet {
    display: none !important;
  }
}

/* --- Media Queries (Responsividad y Escritorio) --- */
@media (min-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-actions {
    flex-direction: row;
    max-width: 450px;
  }
  .hero-actions .btn {
    flex: 1;
  }
  .convenios-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0; /* Remove bottom padding as header will handle layout desktop style */
  }

  .container {
    max-width: 720px;
  }

  .section {
    padding: 80px 0;
  }

  .hero {
    padding: 110px 0 130px 0;
    text-align: left;
  }

  .hero-container {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    align-items: center;
    gap: 45px;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-badge-container {
    justify-content: flex-start;
  }

  .hero-title {
    font-size: 2.85rem;
  }

  .hero-description {
    margin: 0 0 35px 0;
  }

  .hero-actions {
    margin: 0;
  }

  .hero-logo-frame {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
  }

  .floating-hero-logo {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4));
    animation: slowSpin 30s linear infinite;
  }

  @keyframes slowSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }

  /* SNED card split in wider devices */
  .sned-card-split {
    flex-direction: row;
    text-align: left;
    padding: 40px;
    gap: 30px;
  }

  .sned-text-container {
    text-align: left;
  }

  .sned-image-container {
    width: 110px;
    height: 110px;
  }

  /* Director Split */
  .director-split {
    flex-direction: row;
    gap: 50px;
    align-items: center;
  }

  .director-portrait-card {
    width: 35%;
    flex-shrink: 0;
    margin: 0;
  }

  .director-message-card {
    width: 65%;
  }

  /* Sede Card split layout on desktop */
  .sede-card {
    flex-direction: row;
    min-height: 380px;
  }

  .sede-visual-header {
    width: 40%;
    height: auto;
  }

  .sede-info-body {
    width: 60%;
    padding: 40px 35px;
    justify-content: center;
  }

  .sede-btn-group {
    flex-direction: row;
  }

  /* Benefits multi-columns */
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  /* News grid 2 columns */
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Form two-column grid */
  .form-group-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Carousel */
  .carousel-slide {
    padding: 20px;
  }

  .testimonial-card {
    padding: 45px;
  }

  /* Footer multiple columns */
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  /* Responsive Video container padding for tablets/laptops */
  .video-card-container {
    padding: 24px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 960px;
  }

  .header {
    height: 80px;
  }

  .header-container {
    gap: 40px;
  }

  .logo-title {
    font-size: 1.25rem;
  }

  /* Show navigation on desktop, hide menu toggles */
  .menu-toggle, .mobile-nav, .mobile-nav-overlay {
    display: none !important;
  }

  .nav-menu {
    display: block;
    margin-left: auto;
  }

  .nav-list {
    display: flex;
    gap: 30px;
    align-items: center;
  }

  .nav-link {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 0;
    position: relative;
  }

  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition-normal);
  }

  .nav-link:hover::after, .nav-link:focus::after {
    width: 100%;
  }

  .nav-link.btn-nav {
    background-color: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
  }

  .nav-link.btn-nav:hover, .nav-link.btn-nav:focus {
    background-color: var(--accent);
    color: var(--primary);
    transform: translateY(-2px);
  }

  .nav-link.btn-nav::after {
    display: none;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .floating-hero-logo {
    max-width: 250px;
  }

  .benefits-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* News Grid 3 columns */
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .matricula-card {
    display: flex;
    min-height: 550px;
  }

  .matricula-intro {
    width: 38%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px 40px;
    text-align: left;
  }

  .matricula-intro h3 {
    font-size: 1.9rem;
  }

  .matricula-form {
    width: 62%;
    padding: 50px;
    justify-content: center;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* --- Official Social Network Links --- */
.social-network-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 18px 0 26px;
}

.social-network-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

a.social-network-link:hover,
a.social-network-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.social-network-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--white);
  background: var(--primary);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
}

.instagram-link .social-network-icon {
  background: linear-gradient(135deg, #833AB4, #FD1D1D 55%, #FCAF45);
}

.tiktok-link .social-network-icon {
  background: #111827;
}

.social-network-link strong,
.social-network-link small {
  display: block;
}

.social-network-link strong {
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 1rem;
}

.social-network-link small {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.social-network-link.is-pending {
  opacity: 0.72;
}

@media (min-width: 640px) {
  .social-network-links {
    grid-template-columns: repeat(2, 1fr);
  }
}
