/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal:       #32a8a0;
  --teal-dark:  #1d7570;
  --teal-light: #4ec2ba;
  --gold:       #e38029;
  --dark:       #212529;
  --gray:       #6c757d;
  --gray-light: #e9ecef;
  --light:      #f8f9fa;
  --white:      #ffffff;
  --radius:     12px;
  --shadow-sm:  0 4px 12px rgba(0,0,0,0.05);
  --shadow:     0 8px 32px rgba(0,0,0,0.08);
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--light);
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ===== HEADER ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(50, 168, 160, 0.15);
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--dark);
}
.logo-img { width: 44px; height: auto; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; }
.logo-main { font-size: 13px; font-weight: 700; line-height: 1.2; color: var(--dark); }
.logo-sub  { font-size: 11px; color: var(--teal); font-weight: 600; }

.nav-menu {
  display: flex; list-style: none; gap: 8px; align-items: center;
}
.nav-link {
  color: #555; text-decoration: none;
  font-size: 14px; font-weight: 600; padding: 8px 14px;
  border-radius: 8px; transition: var(--transition);
}
.nav-link:hover { background: rgba(50, 168, 160, 0.08); color: var(--teal); }
.nav-link.nav-cta {
  background: var(--teal); color: white; padding: 8px 18px;
}
.nav-link.nav-cta:hover { background: var(--teal-dark); color: white; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--dark); border-radius: 2px; transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding-top: 70px; background: var(--white);
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #ffffff 0%, #f0f8f8 100%);
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(50, 168, 160, 0.06) 0%, transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(227, 128, 41, 0.04) 0%, transparent 50%);
}
.hero-particles { position: absolute; inset: 0; pointer-events: none; }

.hero-content {
  position: relative; z-index: 2;
  text-align: center; color: var(--dark); padding: 40px 24px;
  max-width: 850px;
  animation: fadeInUp 1s ease;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(50, 168, 160, 0.08); border: 1px solid rgba(50, 168, 160, 0.2);
  border-radius: 50px; padding: 6px 16px;
  font-size: 13px; font-weight: 600; color: var(--teal-dark); margin-bottom: 24px;
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal); animation: pulse 2s infinite;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800; line-height: 1.1; margin-bottom: 20px;
  color: var(--dark);
}
.hero-highlight {
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 1.15rem; color: #555;
  max-width: 600px; margin: 0 auto 36px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }

.btn {
  padding: 14px 28px; border-radius: 10px; font-size: 15px;
  font-weight: 600; cursor: pointer; border: none; text-decoration: none;
  transition: var(--transition); display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: white; box-shadow: 0 4px 16px rgba(50, 168, 160, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(50, 168, 160, 0.4); color: white; }
.btn-outline {
  background: transparent; color: var(--teal);
  border: 2px solid var(--teal);
}
.btn-outline:hover { background: rgba(50, 168, 160, 0.05); }
.btn-full { width: 100%; justify-content: center; }

.hero-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 0; background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--gray-light); border-radius: var(--radius);
  padding: 24px 32px; backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}
.stat-item { text-align: center; padding: 0 32px; }
.stat-num { display: block; font-size: 2.2rem; font-weight: 800; color: var(--gold); line-height: 1.2; }
.stat-label { font-size: 13px; font-weight: 500; color: #666; }
.stat-divider { width: 1px; height: 50px; background: var(--gray-light); }

.hero-scroll-indicator {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 2;
}
.scroll-arrow {
  width: 24px; height: 24px;
  border-right: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(45deg); animation: bounce 2s infinite;
  margin: auto;
}

/* ===== SECTIONS ===== */
.section { padding: 96px 0; }
.section-nosotros { background: var(--light); }
.section-noticias { background: var(--white); }
.section-galeria  { background: var(--light); }
.section-denuncia { background: var(--white); }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-tag {
  display: inline-block; padding: 6px 16px;
  background: rgba(50, 168, 160, 0.1); color: var(--teal-dark);
  border-radius: 50px; font-size: 12px; font-weight: 700; 
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem); color: var(--dark);
  font-weight: 800; margin-bottom: 16px; line-height: 1.2;
}
.section-desc { color: #555; font-size: 1.1rem; }

/* ===== CARDS GRID ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--white); border-radius: var(--radius);
  padding: 36px 32px; border: 1px solid var(--gray-light);
  transition: var(--transition); cursor: default;
  box-shadow: var(--shadow-sm);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(50, 168, 160, 0.3);
}
.card-icon { font-size: 2.5rem; margin-bottom: 20px; }
.feature-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; color: var(--dark); }
.feature-card p  { color: #666; font-size: 0.95rem; line-height: 1.6; }

/* ===== NOTICIAS ===== */
.noticias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}
.noticia-card {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--gray-light); cursor: pointer;
  transition: var(--transition); background: var(--white);
  box-shadow: var(--shadow-sm);
}
.noticia-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.noticia-img { position: relative; height: 220px; overflow: hidden; background: #f0f0f0; }
.noticia-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.noticia-card:hover .noticia-img img { transform: scale(1.05); }
.noticia-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #e0f2f1, #b2dfdb);
  font-size: 3rem;
}
.noticia-fecha {
  position: absolute; bottom: 12px; left: 12px;
  background: var(--teal); color: white;
  font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.noticia-body { padding: 28px; }
.noticia-body h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; line-height: 1.3; color: var(--dark); }
.noticia-body p  { color: #666; font-size: 0.95rem; margin-bottom: 20px; }
.noticia-leer { color: var(--teal); font-size: 14px; font-weight: 700; }

/* ===== GALERÍA ===== */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.galeria-item {
  position: relative; aspect-ratio: 4/3; border-radius: var(--radius);
  overflow: hidden; cursor: pointer; box-shadow: var(--shadow-sm);
}
.galeria-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.galeria-item:hover img { transform: scale(1.08); }
.galeria-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(33,37,41,0.85), transparent);
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  padding: 20px; opacity: 0; transition: var(--transition);
  color: white; text-align: center;
}
.galeria-item:hover .galeria-overlay { opacity: 1; }
.galeria-zoom { font-size: 2rem; margin-bottom: 8px; }
.galeria-overlay p { font-size: 15px; font-weight: 600; }

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: var(--transition);
}
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox-inner {
  position: relative; max-width: 90vw; max-height: 90vh;
  text-align: center;
}
.lightbox-inner img {
  max-width: 100%; max-height: 80vh;
  border-radius: var(--radius); object-fit: contain;
  box-shadow: var(--shadow);
}
.lightbox-inner p { color: var(--dark); margin-top: 16px; font-size: 16px; font-weight: 600; }
.lightbox-close {
  position: absolute; top: -50px; right: 0;
  background: var(--light); border: 1px solid var(--gray-light); color: var(--dark); font-size: 24px;
  cursor: pointer; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.lightbox-close:hover { background: var(--gray-light); }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(33,37,41,0.6); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: var(--transition);
  padding: 24px;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-box {
  background: white; border-radius: 20px; padding: 48px;
  max-width: 760px; width: 100%; max-height: 85vh; overflow-y: auto;
  position: relative; box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.modal-close {
  position: absolute; top: 20px; right: 20px;
  background: var(--light); border: 1px solid var(--gray-light); border-radius: 50%;
  width: 40px; height: 40px; cursor: pointer; font-size: 16px; font-weight: 700; color: #555;
  transition: var(--transition);
}
.modal-close:hover { background: var(--gray-light); color: var(--dark); }
.modal-content h2 { font-family: 'Playfair Display', serif; margin-bottom: 16px; color: var(--dark); font-size: 2rem; }
.modal-content img { width: 100%; border-radius: var(--radius); margin: 24px 0; }
.modal-content p { color: #555; line-height: 1.8; font-size: 1.05rem; margin-bottom: 16px; }

/* ===== DENUNCIA ===== */
.denuncia-wrapper {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
}
.denuncia-info .section-title { color: var(--dark); text-align: left; }
.denuncia-info .section-tag { margin-bottom: 16px; }
.denuncia-info > p { color: #555; margin-bottom: 32px; font-size: 1.1rem; }
.denuncia-garantias { display: flex; flex-direction: column; gap: 24px; }
.garantia-item {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--light); padding: 20px; border-radius: var(--radius);
  border: 1px solid var(--gray-light);
}
.garantia-item > span { font-size: 2rem; flex-shrink: 0; }
.garantia-item strong { display: block; color: var(--dark); margin-bottom: 6px; font-size: 1.1rem; }
.garantia-item p { color: #666; font-size: 14px; margin: 0; }

.denuncia-form-wrapper {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 20px; padding: 40px;
  box-shadow: var(--shadow);
}
.denuncia-form { display: flex; flex-direction: column; gap: 24px; }
.form-group { display: flex; flex-direction: column; gap: 10px; }
.form-group label { color: var(--dark); font-size: 14px; font-weight: 600; }
.required { color: #e74c3c; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 16px; border-radius: 10px;
  border: 1px solid #ced4da;
  background: var(--white);
  color: #333; font-family: 'Inter', sans-serif; font-size: 15px;
  transition: var(--transition);
}
.form-group select option { background: var(--white); color: #333; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(50, 168, 160, 0.15);
}
.form-group textarea { resize: vertical; }
.char-counter { font-size: 12px; color: #888; text-align: right; font-weight: 500; }
.form-privacy {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--light); padding: 16px; border-radius: 10px; border: 1px solid var(--gray-light);
}
.form-privacy label { color: #555; font-size: 13px; cursor: pointer; line-height: 1.5; }
.form-privacy input { flex-shrink: 0; margin-top: 3px; accent-color: var(--teal); width: 16px; height: 16px; }

.form-success {
  text-align: center; padding: 48px 24px;
}
.success-icon { font-size: 4rem; margin-bottom: 20px; }
.form-success h3 { color: var(--dark); font-size: 1.6rem; margin-bottom: 12px; }
.form-success p  { color: #555; margin-bottom: 32px; font-size: 1.1rem; }
.form-success .btn-outline { color: var(--teal); border-color: var(--teal); }
.hidden { display: none !important; }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center; padding: 64px 24px;
  color: #888; background: var(--white); border: 1px dashed #ccc; border-radius: var(--radius);
}
.empty-icon { font-size: 3.5rem; display: block; margin-bottom: 16px; }

/* ===== FOOTER ===== */
.site-footer {
  background: #1a1e21; /* Dark aesthetic for footer */
  padding: 80px 0 0; color: rgba(255,255,255,0.7);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 64px;
  padding-bottom: 64px;
}
.footer-logo {
  display: flex; gap: 16px; align-items: center;
  margin-bottom: 20px; color: white;
}
.logo-img-footer { width: 50px; height: auto; object-fit: contain; margin-bottom: 0; filter: brightness(0) invert(1); }
.footer-brand p,
.footer-colegios { color: rgba(255,255,255,0.6); font-size: 14px; margin-top: 6px; }
.footer-links h4,
.footer-contacto h4 { color: white; font-size: 15px; font-weight: 700; margin-bottom: 20px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a,
.footer-email {
  color: rgba(255,255,255,0.6); text-decoration: none; font-size: 14px;
  transition: var(--transition);
}
.footer-links a:hover,
.footer-email:hover { color: var(--teal-light); padding-left: 4px; }
.footer-contacto p { color: rgba(255,255,255,0.6); font-size: 14px; margin-bottom: 16px; line-height: 1.6; }
.footer-email { display: inline-block; font-weight: 600; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding: 24px 0;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-bottom p { color: rgba(255,255,255,0.4); font-size: 13px; }
.footer-admin-link { color: rgba(255,255,255,0.3); font-size: 13px; text-decoration: none; transition: var(--transition); }
.footer-admin-link:hover { color: var(--teal-light); }
.footer-right { display: flex; align-items: center; gap: 24px; }
.footer-dev { color: rgba(255,255,255,0.4); font-size: 13px; }
.footer-dev-link {
  color: rgba(255,255,255,0.7); text-decoration: none;
  font-weight: 700; transition: var(--transition);
}
.footer-dev-link:hover { color: var(--gold); }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.8); }
}
@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%       { transform: rotate(45deg) translateY(6px); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: rgba(255,255,255,0.98); padding: 16px; gap: 4px; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero-stats { flex-direction: column; gap: 16px; padding: 24px; }
  .stat-divider { width: 80px; height: 1px; }
  .denuncia-wrapper { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 600px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .noticias-grid { grid-template-columns: 1fr; }
  .galeria-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: 1fr; }
  .modal-box { padding: 32px 24px; }
  .denuncia-form-wrapper { padding: 24px; }
}
