/* ==================== RESET Y VARIABLES GLOBALES ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #4ca5c7;
  --color-secondary: #e8b62b;
  --color-accent: #c12c2e;
  --color-bg: #fef499;
  --color-dark: #282d54;
  --color-light: #fffde5;
  --color-text: #0b090c;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.2);
  --shadow-dark: rgba(0, 0, 0, 0.3);
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html, body {
  height: 100%;
  font-family: 'Josefin Sans', sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* ==================== ANIMACIONES PRINCIPALES ==================== */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-20px) rotate(2deg); }
  50% { transform: translateY(0px) rotate(0deg); }
  75% { transform: translateY(-20px) rotate(-2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

@keyframes pawPrint {
  0% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: scale(1); }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-10deg) scale(0.8);
  }
  to {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

/* ==================== SPLASHSCREEN ANIMADO ==================== */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.5s ease-in;
}

.splash-logo {
  width: 150px;
  height: 150px;
  margin-bottom: 40px;
  animation: slideInDown 0.8s ease-out;
}

.splash-text {
  font-size: 2.5rem;
  font-weight: bold;
  color: white;
  text-align: center;
  font-family: 'Truculenta', sans-serif;
  animation: slideInUp 1s ease-out 0.5s backwards;
  max-width: 500px;
}

.splash-text span {
  display: inline-block;
  animation: rotateIn 0.6s ease-out 1.2s backwards;
}

.splash-loading {
  margin-top: 40px;
  width: 50px;
  height: 50px;
  border: 4px solid white;
  border-top: 4px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==================== HEADER Y NAVEGACIÓN ==================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #3a8fa3 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  z-index: 1000;
  box-shadow: 0 4px 20px var(--shadow-dark);
  animation: slideInDown 0.6s ease-out;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: slideInLeft 0.6s ease-out 0.1s backwards;
}

.logo {
  height: 60px;
  width: auto;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.logo:hover {
  transform: scale(1.1) rotate(-5deg);
}

.site-title {
  font-family: 'Truculenta', sans-serif;
  font-size: 1.8rem;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 2rem;
  animation: slideInRight 0.6s ease-out 0.1s backwards;
}

.tagline-box {
  background: rgba(255, 255, 255, 0.15);
  padding: 0.5rem 1.5rem;
  border-radius: 30px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.tagline {
  font-family: 'Rock Salt', cursive;
  font-size: 1rem;
  color: white;
  animation: pulse 2s ease-in-out infinite;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 3px;
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(10px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-10px);
}

.cta-button {
  background: var(--color-accent);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-family: 'Truculenta', sans-serif;
  cursor: pointer;
  border: 2px solid var(--color-accent);
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(193, 44, 46, 0.3);
}

.cta-button:hover {
  background: transparent;
  color: var(--color-accent);
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(193, 44, 46, 0.4);
}

/* ==================== NAVEGACIÓN DESPLEGABLE ==================== */
nav {
  position: fixed;
  left: -300px;
  top: 80px;
  width: 280px;
  height: calc(100vh - 80px);
  background: linear-gradient(180deg, var(--color-dark) 0%, #1a1f3a 100%);
  padding: 2rem 0;
  transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 999;
  overflow-y: auto;
  box-shadow: 4px 0 20px var(--shadow-dark);
}

nav.active {
  left: 0;
}

nav a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  color: white;
  text-decoration: none;
  transition: var(--transition);
  border-left: 4px solid transparent;
  font-family: 'Truculenta', sans-serif;
  font-size: 1.1rem;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-left-color: var(--color-accent);
  padding-left: 2rem;
}

nav a.active {
  background: var(--color-accent);
  border-left-color: white;
}

/* ==================== PUBLICIDAD FLOTANTE ==================== */
.ad-banner {
  position: fixed;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 15px;
  font-weight: bold;
  cursor: pointer;
  z-index: 800;
  box-shadow: 0 6px 25px var(--shadow-dark);
  animation: slideInRight 0.5s ease-out;
  transition: var(--transition);
  border: 2px solid rgba(255, 255, 255, 0.3);
  max-width: 250px;
  text-align: center;
  font-family: 'Truculenta', sans-serif;
}

.ad-banner:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px var(--shadow-dark);
}

.ad-banner.top-right {
  top: 100px;
  right: 20px;
}

.ad-banner.bottom-left {
  bottom: 100px;
  left: 20px;
  animation: slideInLeft 0.5s ease-out;
}

.ad-banner.top-left {
  top: 200px;
  left: 20px;
  animation: slideInLeft 0.5s ease-out 0.2s backwards;
}

.ad-banner.bottom-right {
  bottom: 200px;
  right: 20px;
  animation: slideInRight 0.5s ease-out 0.2s backwards;
}

.ad-banner.center-top {
  top: 150px;
  left: 50%;
  transform: translateX(-50%);
  animation: slideInDown 0.5s ease-out 0.3s backwards;
}

.ad-close {
  position: absolute;
  top: 5px;
  right: 8px;
  background: rgba(0, 0, 0, 0.2);
  border: none;
  color: white;
  cursor: pointer;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.ad-close:hover {
  background: rgba(0, 0, 0, 0.4);
}

/* ==================== FONDO CON HUELLAS ==================== */
.paw-background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.paw {
  position: absolute;
  opacity: 0.03;
  font-size: 100px;
  animation: pawDrift 20s linear infinite;
}

.paw-cat {
  font-size: 80px;
  color: var(--color-dark);
}

.paw-dog {
  font-size: 120px;
  color: var(--color-accent);
}

@keyframes pawDrift {
  0% {
    transform: translateX(0) translateY(0) rotate(0deg);
    opacity: 0.03;
  }
  50% {
    opacity: 0.06;
  }
  100% {
    transform: translateX(100px) translateY(100px) rotate(360deg);
    opacity: 0.03;
  }
}

/* ==================== LAYOUT PRINCIPAL ==================== */
main {
  margin-top: 100px;
  padding: 2rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* ==================== SECCIÓN HERO MEJORADA ==================== */
.hero-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  padding: 4rem 2rem;
  border-radius: 20px;
  text-align: center;
  color: white;
  margin-bottom: 3rem;
  animation: slideInUp 0.8s ease-out;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,50 Q300,0 600,50 T1200,50 L1200,120 L0,120 Z" fill="rgba(255,255,255,0.1)"/></svg>') repeat-x;
  background-size: 600px 120px;
  animation: slideInRight 20s linear infinite;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-section h2 {
  font-family: 'Truculenta', sans-serif;
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: slideInDown 0.8s ease-out 0.2s backwards;
}

.hero-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  animation: slideInUp 0.8s ease-out 0.4s backwards;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: slideInUp 0.8s ease-out 0.6s backwards;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: 50px;
  font-weight: bold;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: 'Truculenta', sans-serif;
  box-shadow: 0 4px 15px var(--shadow-medium);
}

.btn-primary {
  background: white;
  color: var(--color-primary);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--shadow-medium);
}

.btn-secondary {
  background: var(--color-accent);
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: transparent;
  color: white;
  transform: scale(1.05);
}

/* ==================== GRID DE SECCIONES ==================== */
.priority-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.priority-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 4px 15px var(--shadow-light);
  transition: var(--transition);
  animation: slideInUp 0.6s ease-out;
  position: relative;
  overflow: hidden;
}

.priority-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 3s infinite;
}

.priority-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px var(--shadow-medium);
}

.priority-card h3 {
  font-family: 'Truculenta', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.priority-card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: bounce 2s ease-in-out infinite;
}

.priority-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}

/* ==================== SECCIÓN DE DENUNCIA ==================== */
.report-section {
  background: linear-gradient(135deg, #ff6b6b 0%, var(--color-accent) 100%);
  color: white;
  padding: 3rem 2rem;
  border-radius: 20px;
  text-align: center;
  margin: 3rem 0;
  animation: slideInUp 0.8s ease-out;
}

.report-section h2 {
  font-family: 'Truculenta', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  animation: slideInDown 0.8s ease-out 0.2s backwards;
}

.report-section p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  animation: slideInUp 0.8s ease-out 0.4s backwards;
}

.report-button {
  display: inline-block;
  background: white;
  color: var(--color-accent);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: bold;
  font-family: 'Truculenta', sans-serif;
  font-size: 1.2rem;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.report-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ==================== CARRUSEL DE COLEGAS ==================== */
.colleagues-section {
  margin: 3rem 0;
}

.colleagues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.colleague-card {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 15px var(--shadow-light);
  transition: var(--transition);
  animation: rotateIn 0.6s ease-out;
}

.colleague-card:hover {
  transform: scale(1.08) rotateZ(-2deg);
  box-shadow: 0 8px 25px var(--shadow-medium);
}

.colleague-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  object-fit: cover;
  border: 4px solid var(--color-primary);
  animation: float 3s ease-in-out infinite;
}

.colleague-card h4 {
  font-family: 'Truculenta', sans-serif;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.colleague-card p {
  font-size: 0.95rem;
  color: #666;
}

/* ==================== MODAL Y FORMULARIOS ==================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease-out;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--color-light);
  padding: 2.5rem;
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  animation: slideInUp 0.4s ease-out;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--color-accent);
  color: white;
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  transform: rotate(90deg);
}

.modal-title {
  font-family: 'Concierto One', sans-serif;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: var(--color-dark);
  font-family: 'Truculenta', sans-serif;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--color-secondary);
  border-radius: 8px;
  font-family: 'Josefin Sans', sans-serif;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(76, 165, 199, 0.3);
  transform: scale(1.02);
}

.form-button {
  width: 100%;
  padding: 1rem;
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-family: 'Truculenta', sans-serif;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 1rem;
}

.form-button:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 165, 199, 0.4);
}

/* ==================== FOOTER ==================== */
.footer {
  background: linear-gradient(135deg, var(--color-dark) 0%, #1a1f3a 100%);
  color: white;
  padding: 3rem 2rem;
  margin-top: 4rem;
  border-top: 4px solid var(--color-accent);
  animation: slideInUp 0.8s ease-out;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-family: 'Truculenta', sans-serif;
  margin-bottom: 1rem;
  color: var(--color-secondary);
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: white;
  text-decoration: none;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--color-secondary);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link {
  width: 50px;
  height: 50px;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: var(--transition);
  font-size: 1.5rem;
}

.social-link:hover {
  background: var(--color-secondary);
  transform: translateY(-5px) rotate(10deg);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .header {
    height: 70px;
    padding: 0 1rem;
  }

  .site-title {
    font-size: 1.3rem;
  }

  .menu-toggle {
    display: flex;
  }

  .header-right {
    gap: 1rem;
  }

  .tagline-box {
    display: none;
  }

  .cta-button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  main {
    margin-top: 80px;
    padding: 1rem;
  }

  .hero-section h2 {
    font-size: 2rem;
  }

  .hero-buttons {
    gap: 1rem;
  }

  .btn-large {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }

  .priority-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .ad-banner {
    max-width: 200px;
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .report-section h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .hero-section h2 {
    font-size: 1.5rem;
  }

  .hero-section p {
    font-size: 1rem;
  }

  .btn-large {
    width: 100%;
    padding: 0.75rem 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  nav {
    width: 250px;
  }

  .modal-content {
    padding: 1.5rem;
  }

  .priority-card {
    padding: 1.5rem;
  }

  .colleague-card {
    padding: 1rem;
  }
}

/* ==================== UTILIDADES ==================== */
.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.section-title {
  font-family: 'Concierto One', sans-serif;
  font-size: 2.5rem;
  margin: 2rem 0 1rem;
  text-align: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 900;
  display: none;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 4px 15px var(--shadow-medium);
}

.back-to-top.show {
  display: flex;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px var(--shadow-medium);
}

/* ==================== ESTILOS ADICIONALES PARA INDEX  ==================== */

/* PERSONALIZACIÓN DEL FONDO DINÁMICO */

/* Efecto de zoom lento en imágenes de fondo al cargar */
.bg-image {
  animation: zoomFade 2s ease-out forwards !important;
}

@keyframes zoomFade {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 0.08;
  }
}

/* Efecto de giro sutil en imágenes */
.bg-image-1, .bg-image-3, .bg-image-5, .bg-image-7 {
  animation-direction: normal;
}

.bg-image-2, .bg-image-4, .bg-image-6, .bg-image-8 {
  animation-direction: reverse;
}

/* Hover effect en imágenes de fondo (cuando sea posible) */
@media (hover: hover) {
  .bg-image:hover {
    opacity: 0.3 !important;
    filter: brightness(1.1);
  }
}

/* ==================== MEJORAS DEL BOTÓN EXPANDIBLE ==================== */

/* Efecto pulse al cargar página */
.expand-btn {
  animation: pulseButton 2s ease-in-out infinite;
}

@keyframes pulseButton {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(232, 182, 43, 0.3);
  }
  50% {
    box-shadow: 0 4px 30px rgba(232, 182, 43, 0.6);
  }
}

/* Efecto ripple al hacer click */
.expand-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.expand-btn:active::after {
  animation: ripple 0.6s ease-out;
}

@keyframes ripple {
  to {
    width: 300px;
    height: 300px;
    opacity: 0;
  }
}

/* Efecto de brillo al hover */
.expand-btn:hover {
  animation: shine 0.6s ease-in-out;
}

@keyframes shine {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.2);
  }
}

/* ==================== ANIMACIONES DEL MENÚ EXPANDIBLE ==================== */

/* Animación de entrada de items del menú */
.nav-menu-expandable a {
  opacity: 0;
  transform: translateX(-20px);
}

.nav-menu-expandable.active a {
  animation: slideInFromLeft 0.4s ease-out forwards;
}

.nav-menu-expandable.active a:nth-child(1) { animation-delay: 0.05s; }
.nav-menu-expandable.active a:nth-child(2) { animation-delay: 0.1s; }
.nav-menu-expandable.active a:nth-child(3) { animation-delay: 0.15s; }
.nav-menu-expandable.active a:nth-child(4) { animation-delay: 0.2s; }
.nav-menu-expandable.active a:nth-child(5) { animation-delay: 0.25s; }
.nav-menu-expandable.active a:nth-child(6) { animation-delay: 0.3s; }
.nav-menu-expandable.active a:nth-child(7) { animation-delay: 0.35s; }
.nav-menu-expandable.active a:nth-child(8) { animation-delay: 0.4s; }
.nav-menu-expandable.active a:nth-child(9) { animation-delay: 0.45s; }
.nav-menu-expandable.active a:nth-child(10) { animation-delay: 0.5s; }
.nav-menu-expandable.active a:nth-child(11) { animation-delay: 0.55s; }
.nav-menu-expandable.active a:nth-child(12) { animation-delay: 0.6s; }
.nav-menu-expandable.active a:nth-child(13) { animation-delay: 0.65s; }

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Efecto hover mejorado en links del menú */
.nav-menu-expandable a {
  position: relative;
  overflow: hidden;
}

.nav-menu-expandable a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.nav-menu-expandable a:hover::before {
  left: 100%;
}

/* ==================== MEJORAS DE TRANSICIONES ==================== */

/* Transición suave del contenido principal */
main {
  animation: fadeInContent 0.8s ease-out;
}

@keyframes fadeInContent {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ==================== EFECTOS ESPECIALES DEL FONDO ==================== */

/* Efecto de partículas flotantes adicionales */
.dynamic-background::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(100px at 20% 50%, rgba(76, 165, 199, 0.03) 0%, transparent 50%),
    radial-gradient(80px at 80% 80%, rgba(232, 182, 43, 0.03) 0%, transparent 50%),
    radial-gradient(120px at 40% 20%, rgba(193, 44, 46, 0.02) 0%, transparent 50%);
  animation: gradientShift 15s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes gradientShift {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* ==================== MEJORAS DE ACCESIBILIDAD ==================== */

/* Focus visible mejorado */
.expand-btn:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

.nav-menu-expandable a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}

/* Reducir motion para usuarios sensibles */
@media (prefers-reduced-motion: reduce) {
  .bg-image,
  .expand-btn,
  .nav-menu-expandable a,
  main {
    animation: none !important;
    transition: none !important;
  }
  
  .expand-btn:hover {
    transform: scale(1.05);
  }
}

/* ==================== MEJORAS PARA PANTALLAS GRANDES ==================== */

@media (min-width: 1400px) {
  .bg-image {
    width: 400px;
    height: 350px;
  }
  
  .bg-image-1 { width: 400px; height: 320px; }
  .bg-image-2 { width: 380px; height: 380px; }
  .bg-image-4 { width: 400px; height: 310px; }
}

/* ==================== MEJORAS PARA PANTALLAS PEQUEÑAS ==================== */

@media (max-width: 480px) {
  .bg-image {
    width: 200px;
    height: 200px;
    opacity: 0.05;
  }
  
  .dynamic-background {
    display: none;
  }
  
  .nav-expandable {
    bottom: 15px;
    left: 15px;
  }
  
  .expand-btn {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
  
  .nav-menu-expandable {
    min-width: 220px;
  }
}

/* ==================== EFECTOS DE CARGA ==================== */

/* Loading skeleton opcional */
.bg-image {
  background-color: rgba(232, 182, 43, 0.1);
  background-attachment: fixed;
  background-size: 1000% 1000%;
}

/* Animación de carga de imágenes */
.bg-image[style*="background-image"] {
  animation: imageLoad 0.5s ease-out !important;
}

@keyframes imageLoad {
  0% {
    filter: blur(10px);
  }
  100% {
    filter: blur(0px);
  }
}

/* ==================== SOMBRAS MEJORADAS ==================== */

.expand-btn {
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.2),
    0 0 20px rgba(232, 182, 43, 0.3);
}

.nav-menu-expandable {
  box-shadow:
    0 6px 30px rgba(0, 0, 0, 0.2),
    0 0 20px rgba(76, 165, 199, 0.1);
}

/* ==================== TRANSFORMACIONES 3D SUTILES ==================== */

.expand-btn {
  perspective: 1000px;
  transform-style: preserve-3d;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.expand-btn:hover {
  transform: translateY(-3px) rotateX(5deg);
}

.expand-btn:active {
  transform: translateY(-1px) rotateX(0deg);
}

/* ==================== GRADIENTES ANIMADOS ==================== */

.expand-btn {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  background-size: 200% 200%;
  animation: gradientShiftBtn 3s ease infinite;
}

@keyframes gradientShiftBtn {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* ==================== TEXTO MEJORADO ==================== */

.nav-title {
  animation: fadeInDown 0.6s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== EFECTOS ESPECIALES DE INTERACCIÓN ==================== */

/* Efecto de presión al click */
.nav-menu-expandable a:active {
  transform: scale(0.98);
}

/* Efecto de brillo en el menú */
.nav-menu-expandable.active {
  animation: menuGlow 0.5s ease-out;
}

@keyframes menuGlow {
  0% {
    box-shadow: 0 0 0 rgba(76, 165, 199, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(76, 165, 199, 0.3);
  }
  100% {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
  }
}

/* ==================== OPTIMIZACIONES DE RENDIMIENTO ==================== */

/* GPU acceleration */
.bg-image,
.expand-btn,
.nav-menu-expandable {
  will-change: transform, opacity;
  transform: translateZ(0);
}

/* Contenido renderizado eficientemente */
main {
  contain: layout style paint;
}
