/* 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');

/* Color System & Custom Variables */
:root {
  --primary-green: #218c53;
  --primary-green-dark: #166138;
  --primary-green-light: #e8f5ee;
  --primary-green-rgb: 33, 140, 83;
  
  --secondary-orange: #e6630f;
  --secondary-orange-dark: #b54807;
  --secondary-orange-rgb: 230, 99, 15;
  
  --accent-yellow: #f2c72b;
  --accent-yellow-light: #fef9e7;
  
  --dark-slate: #1e2920;
  --light-gray: #f8faf9;
  --border-gray: #e3e8e5;
  --white: #ffffff;
  
  --font-title: 'Outfit', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  
  --card-shadow: 0 10px 30px rgba(33, 140, 83, 0.05);
  --card-shadow-hover: 0 20px 40px rgba(33, 140, 83, 0.12);
  --btn-shadow: 0 4px 15px rgba(230, 99, 15, 0.3);
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--light-gray);
  color: var(--dark-slate);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--light-gray);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-green);
  border-radius: 5px;
  border: 2px solid var(--light-gray);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-green-dark);
}

/* --- REUSABLE COMPONENTS --- */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--border-radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--secondary-orange);
  color: var(--white);
  box-shadow: var(--btn-shadow);
}
.btn-primary:hover {
  background-color: var(--secondary-orange-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(230, 99, 15, 0.4);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--primary-green);
  color: var(--primary-green);
}
.btn-secondary:hover {
  background-color: var(--primary-green-light);
  transform: translateY(-3px);
}

.btn-white {
  background-color: var(--white);
  color: var(--primary-green);
}
.btn-white:hover {
  background-color: var(--primary-green-light);
  transform: translateY(-3px);
}

.btn-danger {
  background-color: #e74c3c;
  color: var(--white);
}
.btn-danger:hover {
  background-color: #c0392b;
  transform: translateY(-2px);
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.875rem;
  border-radius: var(--border-radius-sm);
}

/* Sections */
.section {
  padding: 100px 20px;
  position: relative;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--primary-green-dark);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent-yellow);
  margin: 10px auto 0 auto;
  border-radius: 2px;
}

.section-header p {
  font-size: 1.1rem;
  color: #66786c;
}

/* Glassmorphism Cards */
.card {
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: var(--border-radius-md);
  padding: 30px;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(33, 140, 83, 0.2);
}

/* --- HEADER & NAVIGATION --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  padding: 20px 0;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  padding: 12px 0;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid var(--border-gray);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

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

.header.scrolled .logo-img {
  height: 50px;
}

.logo-text {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-green-dark);
  line-height: 1.1;
  display: flex;
  flex-direction: column;
}

.logo-text span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--secondary-orange);
  letter-spacing: 1px;
}

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

.nav-link {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark-slate);
  position: relative;
  padding: 5px 0;
}

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

.nav-link:hover, .nav-link.active {
  color: var(--primary-green);
}

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

.hamburger {
  display: none;
  cursor: pointer;
  border: none;
  background: none;
  padding: 5px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-green-dark);
  margin: 5px 0;
  transition: var(--transition);
}

/* --- HERO SECTION --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  background: linear-gradient(135deg, var(--primary-green-light) 0%, #fffbf0 50%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

/* Ambient decorations matching logo colors */
.hero::before, .hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 1;
  opacity: 0.4;
}

.hero::before {
  width: 400px;
  height: 400px;
  background: var(--accent-yellow);
  top: -100px;
  right: -100px;
}

.hero::after {
  width: 500px;
  height: 500px;
  background: rgba(33, 140, 83, 0.2);
  bottom: -200px;
  left: -200px;
}

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

.hero-content h1 {
  font-size: 3.5rem;
  color: var(--primary-green-dark);
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

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

.hero-content h1 span::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--accent-yellow);
  z-index: -1;
  opacity: 0.6;
}

.hero-content p {
  font-size: 1.2rem;
  color: #55665b;
  margin-bottom: 40px;
  max-width: 600px;
}

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

.hero-image-wrapper {
  position: relative;
}

.hero-blob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110%;
  height: 110%;
  background: radial-gradient(circle, var(--accent-yellow) 0%, rgba(230, 99, 15, 0.1) 60%, transparent 100%);
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  z-index: 1;
  animation: blob-bounce 12s infinite alternate ease-in-out;
}

.hero-img-container {
  position: relative;
  z-index: 2;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(33, 140, 83, 0.15);
  border: 8px solid var(--white);
  transform: rotate(-1deg);
  transition: var(--transition);
}

.hero-img-container:hover {
  transform: rotate(0) scale(1.02);
}

.hero-img-container img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

@keyframes blob-bounce {
  0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
  100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

/* --- STATS SECTION --- */
.stats {
  padding: 0;
  margin-top: -60px;
  position: relative;
  z-index: 10;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: 0 15px 50px rgba(33, 140, 83, 0.08);
  border-top: 5px solid var(--accent-yellow);
}

.stat-item {
  text-align: center;
  padding: 10px;
  border-right: 1px solid var(--border-gray);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-title);
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-green);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #66786c;
}

/* --- SERVICES & OFICIOS --- */
.services {
  background-color: var(--light-gray);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-green-light);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary-green);
  margin-bottom: 25px;
  transition: var(--transition);
}

.card:hover .service-icon {
  background: var(--secondary-orange);
  color: var(--white);
  transform: rotate(360deg);
}

.card h3 {
  font-size: 1.35rem;
  color: var(--primary-green-dark);
  margin-bottom: 15px;
}

.card p {
  color: #55665b;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.service-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent-yellow-light);
  color: #997400;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 20px;
  margin-bottom: 15px;
  border: 1px solid rgba(242, 199, 43, 0.3);
}

/* --- IMPACT SECTION --- */
.impact {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
  color: var(--white);
}

.impact .section-header h2 {
  color: var(--white);
}

.impact .section-header p {
  color: rgba(255, 255, 255, 0.85);
}

.impact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.impact-content h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.impact-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

.impact-list {
  list-style: none;
}

.impact-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.impact-check {
  width: 24px;
  height: 24px;
  background: var(--accent-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-slate);
  font-weight: bold;
  font-size: 0.8rem;
}

.impact-quote-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  position: relative;
}

.impact-quote-card::before {
  content: '“';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 8rem;
  font-family: serif;
  color: rgba(255, 255, 255, 0.15);
  line-height: 1;
}

.quote-text {
  font-size: 1.25rem;
  font-style: italic;
  margin-bottom: 25px;
  position: relative;
  z-index: 2;
}

.quote-author {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.1rem;
}

.quote-role {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* --- SEDES & MAP --- */
.sedes {
  background: var(--white);
}

.sedes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.sede-card {
  display: flex;
  flex-direction: column;
}

.sede-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.sede-icon {
  font-size: 1.5rem;
  color: var(--secondary-orange);
}

.sede-info {
  font-size: 0.95rem;
  color: #55665b;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* --- CONTACT SECTION --- */
.contacto {
  background: var(--light-gray);
}

.contacto-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}

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

.contacto-info-wrapper h3 {
  font-size: 2rem;
  color: var(--primary-green-dark);
  margin-bottom: 20px;
}

.contacto-info-wrapper p {
  color: #55665b;
  margin-bottom: 40px;
}

.contacto-methods {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.method-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.method-icon {
  width: 50px;
  height: 50px;
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary-green);
  box-shadow: var(--card-shadow);
}

.method-details h4 {
  font-size: 1rem;
  color: var(--primary-green-dark);
  margin-bottom: 4px;
}

.method-details p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Forms styling */
.form-group {
  margin-bottom: 20px;
}

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

.form-control {
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--border-radius-md);
  border: 2px solid var(--border-gray);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 4px rgba(33, 140, 83, 0.1);
}

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

.form-alert {
  padding: 12px 20px;
  border-radius: var(--border-radius-sm);
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  display: none;
}

.form-alert.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-alert.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* --- FOOTER --- */
.footer {
  background-color: var(--dark-slate);
  color: var(--white);
  padding: 60px 20px 30px 20px;
  border-top: 5px solid var(--secondary-orange);
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto 40px auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 60px;
}

.footer-col h3 {
  font-size: 1.25rem;
  margin-bottom: 20px;
  color: var(--accent-yellow);
}

.footer-logo-text {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

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

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

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

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

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

/* --- TRANSPARENCY PAGE SPECIFICS --- */
.transparency-banner {
  padding: 140px 20px 60px 20px;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
  color: var(--white);
  text-align: center;
}

.transparency-banner h1 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.transparency-banner p {
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.9);
}

.filter-bar {
  background: var(--white);
  padding: 25px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-gray);
  margin-top: -30px;
  margin-bottom: 50px;
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 20px;
}

.search-input-wrapper {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 12px 20px;
  border-radius: var(--border-radius-sm);
  border: 2px solid var(--border-gray);
  font-size: 0.95rem;
}

.search-input:focus {
  border-color: var(--primary-green);
  outline: none;
}

.filter-select {
  padding: 12px 20px;
  border-radius: var(--border-radius-sm);
  border: 2px solid var(--border-gray);
  background-color: var(--white);
  font-size: 0.95rem;
  cursor: pointer;
}

.filter-select:focus {
  border-color: var(--primary-green);
  outline: none;
}

.transparency-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.doc-card {
  display: flex;
  flex-direction: column;
}

.doc-tag {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.tag-convenios { background: #e8f8f5; color: #117864; }
.tag-balances { background: #ebf5fb; color: #1f618d; }
.tag-memorias { background: #fef9e7; color: #7d6608; }
.tag-directorio { background: #f5eef8; color: #6c3483; }
.tag-impuestos { background: #fdf2e9; color: #935116; }

.doc-title {
  font-size: 1.15rem;
  color: var(--primary-green-dark);
  margin-bottom: 15px;
  flex-grow: 1;
}

.doc-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #66786c;
  padding-top: 15px;
  border-top: 1px solid var(--border-gray);
  margin-bottom: 15px;
}

.doc-year {
  font-weight: 700;
  color: var(--secondary-orange);
}

.no-docs {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px;
  background: var(--white);
  border-radius: var(--border-radius-md);
  color: #66786c;
  font-size: 1.1rem;
  border: 2px dashed var(--border-gray);
}

/* --- ADMIN PANEL SPECIFICS --- */
.admin-section {
  padding-top: 140px;
  min-height: 80vh;
}

.login-card {
  max-width: 450px;
  margin: 0 auto;
}

.login-card h2 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary-green-dark);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  background: var(--white);
  padding: 20px 30px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-gray);
}

.admin-header h2 {
  color: var(--primary-green-dark);
}

.admin-userinfo {
  display: flex;
  align-items: center;
  gap: 20px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 40px;
}

.dropzone {
  border: 2px dashed var(--primary-green);
  border-radius: var(--border-radius-md);
  padding: 30px;
  text-align: center;
  background: var(--primary-green-light);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 20px;
  position: relative;
}

.dropzone:hover {
  background: rgba(33, 140, 83, 0.15);
  border-color: var(--secondary-orange);
}

.dropzone-text {
  font-size: 0.9rem;
  color: var(--primary-green-dark);
}

.dropzone-file-info {
  display: none;
  font-weight: 600;
  color: var(--secondary-orange);
  margin-top: 10px;
}

.dropzone input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.admin-list-card {
  background: var(--white);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-gray);
  box-shadow: var(--card-shadow);
}

.admin-list-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-gray);
  font-weight: 700;
  color: var(--primary-green-dark);
}

.admin-list-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-list-table th, .admin-list-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-gray);
  font-size: 0.9rem;
}

.admin-list-table th {
  font-family: var(--font-title);
  background: var(--light-gray);
  font-weight: 700;
  color: var(--primary-green-dark);
}

.admin-list-table tr:last-child td {
  border-bottom: none;
}

.admin-list-table tr:hover {
  background: var(--light-gray);
}

/* Loader animation */
.loader {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 1s ease-in-out infinite;
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 2.8rem;
  }
  .hero-img-container img {
    height: 400px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item:nth-child(2) {
    border-right: none;
  }
  .stat-item:nth-child(even) {
    border-right: none;
  }
  .services-grid, .sedes-grid, .transparency-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -8px);
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 100px 40px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    align-items: flex-start;
    z-index: 999;
  }

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

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-img-container img {
    height: 350px;
  }

  .impact-grid, .contacto-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 576px) {
  .section {
    padding: 60px 16px;
  }

  .hero {
    padding-top: 100px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-content h1 {
    font-size: 2rem;
    letter-spacing: -0.5px;
  }

  .hero-img-container img {
    height: 240px;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    padding: 25px 16px;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border-gray);
    padding-bottom: 20px;
  }

  .stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .services-grid, .sedes-grid, .transparency-grid {
    grid-template-columns: 1fr;
  }

  .transparency-banner {
    padding: 120px 16px 50px 16px;
  }

  .transparency-banner h1 {
    font-size: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .admin-section {
    padding-top: 100px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .admin-userinfo {
    flex-wrap: wrap;
    gap: 10px;
  }

  .impact-quote-card {
    padding: 25px 20px;
  }

  .quote-text {
    font-size: 1rem;
  }

  .card {
    padding: 20px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}
