/* 
  RDenVitoria Consular Portal Stylesheet
  Author: Antigravity AI
  Version: 1.0.0
*/

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

:root {
  /* Real Website Colors & Design Tokens */
  --primary-blue: #0d4e83;                   /* Dominican flag blue (real site logo/nav) */
  --primary-blue-light: hsl(207, 82%, 35%);
  --primary-blue-dark: hsl(207, 82%, 18%);
  --primary-red: #cf2e2e;                    /* Dominican flag red (real site highlight) */
  --primary-red-hover: hsl(0, 64%, 42%);
  --accent-gold: hsl(43, 96%, 56%);
  
  --bg-primary: hsl(210, 20%, 98%);
  --bg-card: hsl(0, 0%, 100%);
  --bg-glass: hsla(0, 0%, 100%, 0.85);
  --bg-glass-dark: hsla(207, 82%, 18%, 0.95);
  
  --text-main: hsl(215, 20%, 15%);
  --text-muted: hsl(215, 12%, 45%);
  --text-light: hsl(0, 0%, 100%);
  
  --border-color: hsla(207, 40%, 88%, 0.6);
  --border-glass: hsla(0, 0%, 100%, 0.2);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px -2px hsla(207, 40%, 12%, 0.08);
  --shadow-md: 0 8px 24px -4px hsla(207, 40%, 12%, 0.12);
  --shadow-lg: 0 16px 48px -8px hsla(207, 40%, 12%, 0.16);
  --shadow-glow: 0 0 20px hsla(0, 64%, 50%, 0.4);

  /* Fonts (Bitter for body/serif, Open Runde for title/rounded) */
  --font-title: 'Open Runde', 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: 'Bitter', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
}

body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--primary-blue-dark);
  font-weight: 700;
  line-height: 1.25;
}

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

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Typography & Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

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

.section-title {
  font-size: 2.25rem;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary-red);
  border-radius: 2px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 50px auto;
  line-height: 1.6;
}

/* Sticky Glassmorphism Header with Official Blue Background */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: none;
  transition: var(--transition-normal);
}

header.scrolled {
  padding: 6px 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 96px;
  transition: var(--transition-normal);
}

header.scrolled .nav-container {
  height: 64px;
}

/* Consular Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 72px;
  width: auto;
  transition: var(--transition-normal);
}

header.scrolled .logo img {
  height: 48px;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 32px;
}

.nav-link {
  font-weight: 600;
  color: #0d4e83;
  padding: 8px 0;
  position: relative;
  opacity: 0.9;
  transition: var(--transition-fast);
}

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

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

.nav-link:hover {
  color: var(--primary-red);
  opacity: 1;
}

/* Header CTAs */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
}

.btn-primary {
  background: var(--primary-red);
  color: var(--text-light);
}

.btn-primary:hover {
  background: var(--primary-red-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: var(--primary-blue);
  color: var(--text-light);
}

.btn-secondary:hover {
  background: var(--primary-blue-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
  background: var(--primary-blue);
  color: var(--text-light);
}

.btn-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  padding: 0;
  color: var(--text-light);
  background: hsl(142, 70%, 45%); /* WhatsApp green */
}

.btn-icon:hover {
  background: hsl(142, 70%, 40%);
  transform: scale(1.08);
}

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--primary-blue-dark);
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(13, 78, 131, 0.9), rgba(0, 0, 0, 0.65)), 
              url('https://rdenvitoria.com/wp-content/uploads/2025/01/banner-dominican-flag.png') no-repeat center center/cover;
  padding-top: 120px;
  padding-bottom: 80px;
  color: var(--text-light);
  overflow: hidden;
}

/* Dominican Coat of Arms Watermark */
.hero::before {
  content: '';
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 600px;
  height: 600px;
  background: url('https://upload.wikimedia.org/wikipedia/commons/2/26/Coat_of_arms_of_the_Dominican_Republic.svg') no-repeat center center/contain;
  opacity: 0.05;
  pointer-events: none;
}

.hero-content {
  max-width: 650px;
  z-index: 10;
}

.hero-tag {
  display: inline-block;
  background: var(--primary-red);
  color: var(--text-light);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
  animation: pulse 2s infinite;
}

.hero h1 {
  font-size: 3.5rem;
  color: var(--text-light);
  margin-bottom: 20px;
  font-weight: 800;
  letter-spacing: -1px;
}

.hero-desc {
  font-size: 1.2rem;
  line-height: 1.7;
  color: hsla(0, 0%, 100%, 0.85);
  margin-bottom: 40px;
}

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

/* Pulsing Animation */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

/* E-Ticket Section */
.eticket-banner {
  background: #ffffff;
  color: var(--text-main);
  padding: 50px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 4px solid var(--primary-red);
  position: relative;
  overflow: hidden;
}

.eticket-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.eticket-info {
  flex: 1 1 500px;
}

.eticket-title {
  color: var(--primary-blue-dark);
  font-size: 1.75rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.eticket-title span {
  background: var(--primary-red);
  color: #ffffff;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 700;
}

.eticket-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.eticket-action {
  display: block;
}

.eticket-action .btn {
  padding: 14px 32px;
  font-size: 1.05rem;
  box-shadow: 0 4px 14px rgba(207, 46, 46, 0.25);
}

.eticket-image {
  flex: 1 1 350px;
  max-width: 480px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.eticket-img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal);
}

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


/* Servicios Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 20px;
}

.service-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 40px 32px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-normal);
}

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

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: hsla(215, 85%, 26%, 0.08);
  color: var(--primary-blue);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 24px;
  transition: var(--transition-normal);
}

.service-card:hover .service-icon {
  background: var(--primary-blue);
  color: var(--text-light);
}

.service-title {
  font-size: 1.35rem;
  margin-bottom: 14px;
  font-weight: 700;
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-link {
  font-weight: 600;
  color: var(--primary-blue);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.service-link i {
  transition: var(--transition-fast);
}

.service-card:hover .service-link i {
  transform: translateX(4px);
}

/* Noticias / Publicaciones Section */
.news-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.news-header-titles {
  max-width: 600px;
}

.news-header-titles .section-subtitle {
  margin-bottom: 0;
  text-align: left;
}

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

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

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

.news-img-container {
  height: 220px;
  overflow: hidden;
  position: relative;
  background: var(--primary-blue-dark);
}

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

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

.news-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--primary-red);
  color: var(--text-light);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
}

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

.news-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.news-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-card-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.4;
  font-weight: 700;
}

.news-card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.news-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  margin-top: auto;
}

.admin-actions {
  display: flex;
  gap: 8px;
}

.btn-small {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: 4px;
}

.btn-edit {
  background: hsla(215, 85%, 26%, 0.1);
  color: var(--primary-blue);
}

.btn-edit:hover {
  background: var(--primary-blue);
  color: var(--text-light);
}

.btn-delete {
  background: hsla(358, 80%, 50%, 0.1);
  color: var(--primary-red);
}

.btn-delete:hover {
  background: var(--primary-red);
  color: var(--text-light);
}

/* Contact & Info Section */
.contact-section {
  background: var(--bg-card);
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
}

.info-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-title {
  font-size: 2.25rem;
  margin-bottom: 20px;
}

.info-desc {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
}

.info-details {
  display: grid;
  gap: 24px;
}

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

.info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: hsla(215, 85%, 26%, 0.05);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.info-text h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.info-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Contact Form */
.contact-form-container {
  background: var(--bg-primary);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.form-title {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.form-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary-blue-dark);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  font-size: 0.95rem;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.form-input:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px hsla(215, 85%, 26%, 0.15);
}

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

/* Alert States */
.form-alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: none;
}

.form-alert-success {
  background: hsl(142, 70%, 95%);
  color: hsl(142, 70%, 25%);
  border: 1px solid hsl(142, 70%, 85%);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Footer Section */
footer {
  background: var(--primary-blue-dark);
  color: var(--text-light);
  padding: 60px 0 30px 0;
  position: relative;
}

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

.footer-brand h3 {
  color: var(--text-light);
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.footer-brand p {
  color: hsla(0, 0%, 100%, 0.7);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 380px;
}

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

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: hsla(0, 0%, 100%, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  color: var(--text-light);
  font-size: 1.1rem;
}

.social-btn:hover {
  background: var(--primary-red);
  transform: translateY(-3px);
}

.footer-links-col h4 {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
}

.footer-links-col h4::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary-red);
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 12px;
}

.footer-link a {
  color: hsla(0, 0%, 100%, 0.7);
  font-size: 0.9rem;
}

.footer-link a:hover {
  color: var(--text-light);
  padding-left: 4px;
}

.copyright {
  border-top: 1px solid hsla(0, 0%, 100%, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: hsla(0, 0%, 100%, 0.5);
}

/* Glassmorphism Centered Pop-up Modal - CMS Administration */
.custom-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 550px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 2000;
  background: var(--bg-glass-dark);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 36px;
  border-radius: 20px;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: transform var(--transition-normal), opacity var(--transition-normal), visibility var(--transition-normal);
}

.custom-modal.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
}

.cms-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 1px solid hsla(0, 0%, 100%, 0.1);
  padding-bottom: 20px;
}

.cms-title {
  color: var(--text-light);
  font-size: 1.5rem;
}

.cms-close {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: var(--transition-fast);
}

.cms-close:hover {
  opacity: 1;
  transform: rotate(90deg);
}

.cms-form {
  display: grid;
  gap: 20px;
  overflow-y: auto;
  padding-right: 8px;
  flex-grow: 1;
}

/* CMS Input Styling */
.cms-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: hsla(0, 0%, 100%, 0.8);
}

.cms-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid hsla(0, 0%, 100%, 0.2);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
  color: var(--text-light);
  transition: var(--transition-fast);
}

.cms-input:focus {
  border-color: var(--primary-red);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px hsla(358, 80%, 50%, 0.2);
}

.cms-input option {
  background: var(--primary-blue-dark);
  color: var(--text-light);
}

textarea.cms-input {
  min-height: 140px;
  resize: vertical;
}

.cms-footer-actions {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  border-top: 1px solid hsla(0, 0%, 100%, 0.1);
  padding-top: 20px;
}

.cms-footer-actions .btn {
  flex: 1;
}

/* CMS Preview Mode Box */
.preview-box {
  border: 1px dashed hsla(0, 0%, 100%, 0.3);
  border-radius: 8px;
  padding: 16px;
  margin-top: 12px;
  background: rgba(0, 0, 0, 0.2);
}

.preview-box h5 {
  color: var(--accent-gold);
  font-size: 0.85rem;
  margin-bottom: 8px;
  text-transform: uppercase;
}

/* Back-to-Top Button */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-blue);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  z-index: 999;
  transition: var(--transition-normal);
  opacity: 0;
  visibility: hidden;
  border: none;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-red);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

/* Drawer Overlay blur background */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal);
}

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

/* Responsive Styles */
@media (max-width: 992px) {
  .nav-menu {
    position: fixed;
    top: 96px;
    left: 0;
    width: 100%;
    height: calc(100vh - 96px);
    background: var(--bg-card);
    flex-direction: column;
    padding: 40px;
    gap: 24px;
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    transition: transform var(--transition-slow);
    z-index: 998;
  }
  
  header.scrolled .nav-menu {
    top: 64px;
    height: calc(100vh - 64px);
  }
  
  .nav-menu.active {
    transform: translateY(0);
  }
  
  .menu-toggle {
    display: block;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-desc {
    font-size: 1.05rem;
  }
  
  .section-padding {
    padding: 60px 0;
  }
  
  .custom-modal {
    padding: 24px;
  }
}

/* Scroll Entry Animations */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  visibility: hidden;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

/* Admin Mode Visibility Control */
.admin-only {
  display: none !important;
}
body.admin-mode-active .admin-only {
  display: inline-flex !important;
}
div.admin-only, div.admin-actions.admin-only {
  display: none !important;
}
body.admin-mode-active div.admin-only, 
body.admin-mode-active div.admin-actions.admin-only {
  display: flex !important;
}

/* Modal Overlay (Glassmorphism backdrop) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

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

/* Glassmorphism Card Modal Content */
.modal-content.glass-card {
  background: rgba(13, 78, 131, 0.45);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  width: 90%;
  max-width: 440px;
  padding: 32px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  color: #ffffff;
  transform: scale(0.9);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-content.glass-card {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.modal-header h3 {
  color: #ffffff;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-header h3 i {
  color: var(--accent-gold);
}

.modal-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.75rem;
  cursor: pointer;
  opacity: 0.6;
  transition: var(--transition-fast);
}

.modal-close:hover {
  opacity: 1;
  transform: scale(1.1);
}

.modal-hint {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  margin-bottom: 24px;
}

/* Password Input with eye toggle button */
.password-input-wrapper {
  position: relative;
  width: 100%;
}

.password-input-wrapper .cms-input {
  padding-right: 44px;
}

.btn-toggle-password {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.btn-toggle-password:hover {
  color: #ffffff;
}

/* Error message styling */
.login-error-msg {
  display: none;
  color: #ff4a5a;
  font-size: 0.85rem;
  margin-top: 10px;
  align-items: center;
  gap: 6px;
  background: rgba(255, 74, 90, 0.1);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 74, 90, 0.2);
}

.login-error-msg.active {
  display: flex;
}

/* Shake Animation for incorrect passwords */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}
.shake-anim {
  animation: shake 0.4s ease-in-out;
}

/* Service Card Footer actions */
.service-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

/* ====================================================
   DRAWER OVERLAY
   ==================================================== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.drawer-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ====================================================
   CUSTOM MODAL (CMS PUBLICATION + SERVICE MODALS)
   ==================================================== */
.custom-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: min(640px, 95vw);
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(145deg, rgba(13, 78, 131, 0.92), rgba(7, 30, 56, 0.97));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  z-index: 999;
  padding: 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}
.custom-modal.active {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}

/* ---- CMS Modal Header ---- */
.cms-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.cms-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cms-title i { color: var(--accent-gold); }
.cms-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.55);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s, transform 0.2s;
}
.cms-close:hover { color: #fff; transform: rotate(90deg); }

/* ---- CMS Form Fields ---- */
.cms-form { display: flex; flex-direction: column; gap: 18px; }
.cms-field-group { display: flex; flex-direction: column; gap: 6px; }
.cms-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cms-input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
  box-sizing: border-box;
}
.cms-input::placeholder { color: rgba(255,255,255,0.35); }
.cms-input:focus {
  outline: none;
  border-color: var(--accent-gold);
  background: rgba(255,255,255,0.1);
}
.cms-input option { background: #0d2a4f; color: #fff; }
textarea.cms-input {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

/* ---- CMS Footer Actions ---- */
.cms-footer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* ---- Live Preview Panel ---- */
.preview-panel {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 16px;
  font-size: 0.9rem;
}
.preview-panel h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
  margin-bottom: 10px;
}
#livePreview p { color: rgba(255,255,255,0.7); font-size: 0.88rem; }
#livePreview strong { color: #fff; }

/* ====================================================
   SERVICE CARDS (DYNAMIC)
   ==================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-red));
  opacity: 0;
  transition: opacity 0.3s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(13, 78, 131, 0.18);
  border-color: rgba(13, 78, 131, 0.35);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-blue), #1a6bb5);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(13, 78, 131, 0.3);
}

.service-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.service-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-blue);
  text-decoration: none;
  transition: gap 0.2s, color 0.2s;
}
.service-link:hover {
  color: var(--primary-red);
  gap: 10px;
}

/* Admin action buttons inside cards */
.admin-actions {
  display: flex;
  gap: 6px;
}
.btn-small {
  padding: 6px 10px;
  font-size: 0.78rem;
  border-radius: 7px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}
.btn-small:hover { background: var(--primary-blue); color: #fff; border-color: var(--primary-blue); }
.btn-delete:hover, .btn-delete-service:hover { background: var(--primary-red) !important; border-color: var(--primary-red) !important; }

/* ====================================================
   ROUTE MAP STYLING (NEW SEDE CALLE FRANCIA)
   ==================================================== */
.route-map-container {
  margin-top: 28px;
  padding: 24px;
  background: linear-gradient(145deg, #0d4e83, #07223d);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(13, 78, 131, 0.2);
}

.route-map-title {
  margin-bottom: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 10px;
}

.route-map-svg-wrapper {
  position: relative;
  width: 100%;
  height: 170px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
}

.route-map-list {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  padding-left: 18px;
  margin: 0;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style-type: decimal;
}

.route-map-list li strong {
  color: var(--accent-gold);
}

/* Walking route path stroke animation */
@keyframes dash {
  to {
    stroke-dashoffset: -40;
  }
}
.animated-route-path {
  animation: dash 2s linear infinite;
  stroke-dashoffset: 0;
}


/* ====================================================
   FAQ ACCORDION STYLING
   ==================================================== */
.faq-accordion-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.faq-item:hover {
  border-color: rgba(13, 78, 131, 0.3);
  box-shadow: 0 6px 20px rgba(13, 78, 131, 0.06);
}

.faq-header {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-family: 'Open Runde', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: color 0.2s;
}

.faq-header:hover {
  color: var(--primary-blue);
}

.faq-chevron {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active {
  border-color: rgba(13, 78, 131, 0.45);
  box-shadow: 0 8px 24px rgba(13, 78, 131, 0.08);
}

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

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary-blue);
}

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

.faq-content {
  padding: 0 24px 24px 24px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  border-top: 1px solid transparent;
}

.faq-item.active .faq-content {
  border-top-color: rgba(0, 0, 0, 0.04);
}

/* ====================================================
   INDEX SECTION STYLING (NEW)
   ==================================================== */
.index-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.index-programs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.index-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 28px 24px;
  border-radius: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.index-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(13, 78, 131, 0.12);
  border-color: rgba(13, 78, 131, 0.25);
}

.index-card-icon {
  font-size: 1.9rem;
  color: var(--primary-blue);
  margin-bottom: 4px;
  line-height: 1;
}

.index-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'Open Runde', sans-serif;
}

.index-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Responsive Media Queries for INDEX */
@media (max-width: 992px) {
  .index-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 576px) {
  .index-programs {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ====================================================
   FLOATING WHATSAPP BUTTON
   ==================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 54px;
  height: 54px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 996;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55);
  color: #fff;
}


