/* components.css - botones, navegación, tarjetas reutilizadas */
.button { --btn-bg:var(--secondary-color); --btn-color:#fff; background:var(--btn-bg); color:var(--btn-color); border:0; padding:.85rem 1.25rem; border-radius:.5rem; font-weight:600; line-height:1; cursor:pointer; display:inline-flex; gap:.5rem; align-items:center; box-shadow:0 2px 4px rgba(0,0,0,.15); transition:background .3s, transform .2s; }
.button:hover, .button:focus-visible { background:var(--accent-color); }
.button:active { transform:translateY(2px); }
.button--ghost { background:transparent; color:var(--secondary-color); border:2px solid var(--secondary-color); }
.badge { display:inline-block; background:var(--primary-color); color:#fff; padding:.25rem .65rem; font-size:.6875rem; border-radius:1rem; letter-spacing:.5px; }
.nav-focus-outline:focus-visible { outline:2px solid var(--accent-color); outline-offset:2px; }
.hero { position:relative; min-height:70vh; display:grid; place-items:center; text-align:center; color:#fff; }
.hero__overlay { position:absolute; inset:0; background:linear-gradient(180deg,rgba(0,0,0,.55),rgba(0,0,0,.35)); }
.hero__content { position:relative; z-index:2; max-width:55ch; }
.card { background:#fff; border-radius:.75rem; padding:1.25rem 1.25rem 1.5rem; box-shadow:0 2px 8px rgba(0,0,0,.07); display:flex; flex-direction:column; gap:.75rem; }
.card--interactive { transition:transform .35s cubic-bezier(.4,0,.2,1), box-shadow .35s; cursor:pointer; }
.card--interactive:hover, .card--interactive:focus-within { transform:translateY(-4px); box-shadow:0 10px 20px -5px rgba(0,0,0,.15); }
.visually-hidden { position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); border:0; padding:0; }
.breadcrumb { list-style:none; display:flex; flex-wrap:wrap; gap:.25rem; padding:0; margin:0 0 1rem; font-size:.8125rem; }
.breadcrumb li+li:before { content:'/'; padding:0 .25rem; color:var(--gray-400,#888); }
.site-logo { display:inline-flex; align-items:center; }
.focus-trap-active { overflow:hidden; }

/* Tarjetas del equipo */
.card--team { text-align:center; transition:transform .3s, box-shadow .3s; }
.card--team:hover, .card--team:focus-within { transform:translateY(-6px); box-shadow:0 12px 24px -6px rgba(0,0,0,.15); }
.card--team img { width:100%; height:200px; object-fit:cover; border-radius:.5rem; margin-bottom:1rem; }
.card--team h3 { margin:0 0 .25rem; font-size:1.125rem; }
.card--team .text-sm { margin:0; opacity:.8; }

/* Sección con fondo gris */
.section--gray { background:var(--gray-100); }
.section--accent { background:var(--primary-color); color:#fff; }
.section--accent h2, .section--accent p { color:#fff; }

/* Lista estilizada */
.list-styled { list-style:none; padding:0; }
.list-styled li { position:relative; padding-left:1.5rem; margin-bottom:.75rem; }
.list-styled li:before { content:'✓'; position:absolute; left:0; top:0; color:var(--secondary-color); font-weight:700; }

/* Imagen responsiva */
.img-responsive { width:100%; height:auto; border-radius:.5rem; }

/* ===== SERVICIOS LEGALES ===== */
.servicios-areas {
  margin: 3rem 0;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, 
    #1f7971 0%, 
    #2a9d8f 25%, 
    #264653 50%, 
    #1f7971 75%, 
    #155e63 100%);
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.servicios-areas::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(255,255,255,0.06) 0%, transparent 50%);
  pointer-events: none;
}

.servicios-grid-modern {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.servicios-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  justify-items: center;
}

.area-servicio {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  position: relative;
  min-height: 220px;
  width: 100%;
  max-width: 200px;
  overflow: hidden;
}

.area-servicio::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
}

.area-servicio:hover::before {
  left: 100%;
}

.area-servicio:hover,
.area-servicio:focus {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.2),
    0 0 0 3px rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.98);
  outline: none;
}

.area-icono {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #1f7971, #2a9d8f);
  border-radius: 50%;
  box-shadow: 
    0 8px 25px rgba(31, 121, 113, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.area-icono::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: rotate(45deg);
  transition: transform 0.6s ease;
}

.area-servicio:hover .area-icono {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 
    0 12px 35px rgba(31, 121, 113, 0.4),
    inset 0 2px 8px rgba(255, 255, 255, 0.3);
}

.area-servicio:hover .area-icono::before {
  transform: rotate(45deg) translate(50%, 50%);
}

.area-imagen {
  max-width: 60px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.area-servicio:hover .area-imagen {
  transform: scale(1.1);
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.area-titulo {
  color: #1f7971;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.area-servicio:hover .area-titulo {
  color: #155e63;
  transform: translateY(-2px);
  text-shadow: 0 2px 4px rgba(31, 121, 113, 0.2);
}

/* Responsivo para servicios */
@media (max-width: 1024px) {
  .servicios-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .servicios-grid-modern {
    gap: 2rem;
  }
  
  .area-servicio {
    max-width: 250px;
    min-height: 200px;
  }
}

@media (max-width: 768px) {
  .servicios-areas {
    padding: 3rem 1rem;
    margin: 2rem 0;
    border-radius: 15px;
  }
  
  .servicios-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .servicios-grid-modern {
    gap: 1.5rem;
  }
  
  .area-servicio {
    padding: 1.5rem 1rem;
    max-width: none;
    min-height: 180px;
  }
  
  .area-icono {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
  }
  
  .area-imagen {
    max-width: 50px;
    max-height: 50px;
  }
  
  .area-titulo {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .servicios-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .area-servicio {
    max-width: 280px;
    margin: 0 auto;
    min-height: 160px;
  }
  
  .area-icono {
    width: 70px;
    height: 70px;
  }
  
  .area-imagen {
    max-width: 45px;
    max-height: 45px;
  }
  
  .area-titulo {
    font-size: 0.9rem;
  }
}

/* ===== MODALES ACCESIBLES ===== */
.modal-a11y{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.65);z-index:1000;padding:1rem}
.modal-a11y[hidden]{display:none}
.modal-a11y__dialog{background:#fff;color:var(--text-color);max-width:560px;width:100%;border-radius:.75rem;box-shadow:0 10px 40px -10px rgba(0,0,0,.5);padding:1.25rem;display:flex;flex-direction:column;gap:1rem;outline:0}
.modal-a11y__header{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.modal-a11y__close{background:transparent;border:0;font-size:1.5rem;line-height:1;color:var(--text-color);cursor:pointer}
.modal-a11y__close:focus-visible{outline:2px solid var(--secondary-color)}
.modal-a11y__body{max-height:60vh;overflow:auto;line-height:1.5}

/* Botón flotante de WhatsApp */
.whatsapp-float { position:fixed; bottom:1rem; left:1rem; z-index:900; }
.whatsapp-float a { display:flex; align-items:center; justify-content:center; width:60px; height:60px; background:#25D366; border-radius:50%; box-shadow:0 4px 12px rgba(0,0,0,.15); transition:transform .3s, box-shadow .3s; }
.whatsapp-float a:hover { transform:scale(1.1); box-shadow:0 6px 16px rgba(0,0,0,.25); }
.whatsapp-float img { width:28px; height:28px; }
@media (max-width:600px) { .whatsapp-float { bottom:.75rem; left:.75rem; } .whatsapp-float a { width:54px; height:54px; } .whatsapp-float img { width:24px; height:24px; } }

/* Testimonios mejorados */
.testimonial-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(400px, 1fr)); gap:2rem; margin-top:2rem; }
.testimonial-card { background:#fff; border-radius:12px; padding:1.5rem; box-shadow:0 4px 20px rgba(0,0,0,.08); transition:transform .3s, box-shadow .3s; border-left:4px solid var(--primary-color); }
.testimonial-card:hover { transform:translateY(-4px); box-shadow:0 8px 30px rgba(0,0,0,.12); }
.testimonial-content { margin-bottom:1.5rem; }
.testimonial-content blockquote { margin:0; font-style:italic; color:var(--text-color); line-height:1.6; }
.testimonial-content blockquote::before { content:'"'; font-size:2rem; color:var(--primary-color); font-weight:bold; line-height:1; }
.testimonial-content blockquote::after { content:'"'; font-size:2rem; color:var(--primary-color); font-weight:bold; line-height:1; }
.testimonial-author { display:flex; align-items:center; gap:1rem; }
.testimonial-author img { width:60px; height:60px; border-radius:50%; object-fit:cover; border:3px solid var(--primary-color); }
.author-info { flex:1; }
.company-name { font-weight:700; color:var(--primary-color); font-size:1.1rem; margin-bottom:.25rem; }
.author-name { font-weight:600; color:var(--text-color); margin-bottom:.125rem; }
.author-position { font-size:.875rem; color:#666; line-height:1.3; }
@media (max-width:480px) { .testimonial-grid { grid-template-columns:1fr; } .testimonial-card { padding:1.25rem; } .testimonial-author { flex-direction:column; text-align:center; } .testimonial-author img { width:50px; height:50px; } }

/* Modal para galería */
.gallery-modal { position:fixed; inset:0; background:rgba(0,0,0,.9); display:flex; align-items:center; justify-content:center; z-index:1000; padding:2rem; opacity:0; visibility:hidden; transition:opacity .3s, visibility .3s; }
.gallery-modal.active { opacity:1; visibility:visible; }
.gallery-modal-content { position:relative; max-width:90vw; max-height:90vh; }
.gallery-modal img { max-width:100%; max-height:100%; object-fit:contain; border-radius:8px; box-shadow:0 8px 32px rgba(0,0,0,.5); }
.gallery-modal-close { position:absolute; top:-2rem; right:-2rem; background:#fff; border:0; width:40px; height:40px; border-radius:50%; font-size:1.5rem; font-weight:bold; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:background .3s; }
.gallery-modal-close:hover { background:#f0f0f0; }
@media (max-width:600px) { .gallery-modal-close { top:1rem; right:1rem; background:rgba(255,255,255,.9); } }

/* Galería mejorada */
.gallery-item { margin:0; position:relative; border-radius:8px; overflow:hidden; background:#fff; box-shadow:0 2px 8px rgba(0,0,0,.1); transition:transform .3s, box-shadow .3s; }
.gallery-item:hover { transform:translateY(-2px); box-shadow:0 4px 16px rgba(0,0,0,.15); }
.gallery-image-container { position:relative; overflow:hidden; aspect-ratio:4/3; }
.gallery-image-container img { width:100%; height:100%; object-fit:cover; transition:transform .3s; }
.gallery-item:hover .gallery-image-container img { transform:scale(1.05); }
.gallery-overlay { position:absolute; inset:0; background:rgba(0,0,0,.6); display:flex; align-items:center; justify-content:center; opacity:0; transition:opacity .3s; }
.gallery-item:hover .gallery-overlay { opacity:1; }
.gallery-btn { background:rgba(255,255,255,.9); border:0; width:50px; height:50px; border-radius:50%; display:flex; align-items:center; justify-content:center; cursor:pointer; transition:background .3s, transform .3s; color:var(--primary-color); }
.gallery-btn:hover { background:#fff; transform:scale(1.1); }
.gallery-btn svg { width:24px; height:24px; }

/* Gallery Components Modernizados */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 0.9rem;
  min-width: 100px;
}

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

.filter-btn.active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #000;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.gallery-item {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid var(--border-color);
}

.gallery-item:hover,
.gallery-item:focus {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  outline: none;
}

.gallery-item:focus {
  border-color: var(--accent-color);
}

.gallery-item__image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.gallery-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-item__image img {
  transform: scale(1.05);
}

.gallery-item__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 60, 114, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item__overlay,
.gallery-item:focus .gallery-item__overlay {
  opacity: 1;
}

.gallery-item__view,
.gallery-item__download {
  background: white;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-item__view:hover,
.gallery-item__download:hover {
  background: var(--accent-color);
  color: #000;
  transform: scale(1.1);
}

.gallery-item__content {
  padding: 1.5rem;
}

.gallery-item__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.gallery-item__description {
  color: var(--text-color);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 1rem 0;
  opacity: 0.8;
}

.gallery-item__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
}

.gallery-item__category {
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 500;
}

.gallery-item__date {
  color: var(--text-color);
  opacity: 0.6;
}

/* Search Box */
.search-box {
  max-width: 400px;
  margin: 0 auto;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 0.75rem 3rem 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

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

.search-box button {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.search-box button:hover {
  color: var(--primary-color);
}

.help-text {
  font-size: 0.8rem;
  color: var(--text-color);
  opacity: 0.6;
  margin-top: 0.5rem;
  text-align: center;
}

/* Modal */
.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.gallery-modal.visible {
  opacity: 1;
  visibility: visible;
}

.gallery-modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  cursor: pointer;
}

.gallery-modal__dialog {
  position: relative;
  background: white;
  border-radius: 12px;
  max-width: 90vw;
  max-height: 90vh;
  width: 800px;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.gallery-modal.visible .gallery-modal__dialog {
  transform: scale(1);
}

.gallery-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.gallery-modal__title {
  margin: 0;
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 600;
}

.gallery-modal__close {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.gallery-modal__close:hover {
  background: var(--border-color);
}

.gallery-modal__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-height: calc(90vh - 100px);
  overflow: hidden;
}

.gallery-modal__image {
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.gallery-modal__image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.gallery-modal__info {
  padding: 2rem;
  overflow-y: auto;
}

.gallery-modal__description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 0 2rem 0;
  color: var(--text-color);
}

.gallery-modal__meta {
  margin-bottom: 2rem;
}

.meta-item {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.meta-item strong {
  color: var(--primary-color);
  margin-right: 0.5rem;
}

.gallery-modal__actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
}

/* Loading, Error, and Empty States */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: var(--primary-color);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.error-state,
.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--text-color);
}

.error-state svg,
.empty-state svg {
  margin-bottom: 1rem;
  opacity: 0.5;
}

.error-state h3,
.empty-state h3 {
  color: var(--primary-color);
  margin: 0 0 1rem 0;
}

.error-state p,
.empty-state p {
  margin: 0 0 2rem 0;
  opacity: 0.7;
}

/* Responsive para galería modernizada */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .gallery-filters {
    gap: 0.5rem;
  }
  
  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    min-width: 80px;
  }
  
  .gallery-modal__content {
    grid-template-columns: 1fr;
    max-height: calc(90vh - 80px);
  }
  
  .gallery-modal__info {
    padding: 1rem;
  }
  
  .search-box {
    margin-left: 1rem;
    margin-right: 1rem;
  }
}

@media (max-width: 480px) {
  .gallery-item__content {
    padding: 1rem;
  }
  
  .gallery-item__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  margin: 0.5rem 0;
  opacity: 0.9;
  line-height: 1.6;
}

.footer-column h3 {
  color: #2a9d8f;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: #ecf0f1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: #2a9d8f;
}

.footer-social h3 {
  color: #2a9d8f;
  margin-bottom: 1rem;
}

.social-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.social-links li {
  margin-bottom: 0.75rem;
}

.social-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ecf0f1;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: #2a9d8f;
  transform: translateX(5px);
}

.social-icon {
  font-size: 1.2rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #34495e;
  opacity: 0.8;
}

@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-brand {
    order: 1;
  }
  
  .footer-links {
    order: 2;
    display: contents;
  }
  
  .footer-social {
    order: 5;
  }
}

/* ===== ESTILOS PARA SWITCHES/TOGGLES ===== */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
  cursor: pointer;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .3s;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  z-index: 2;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--primary-color);
}

.toggle-switch input:focus + .toggle-slider {
  box-shadow: 0 0 0 2px var(--accent-color);
  outline: none;
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

.toggle-icon {
  font-size: 10px;
  font-weight: bold;
  color: #666;
  z-index: 1;
  transition: opacity 0.3s;
}

.toggle-switch input:checked + .toggle-slider .toggle-icon.light,
.toggle-switch input:checked + .toggle-slider .toggle-icon.es {
  opacity: 0.3;
}

.toggle-switch input:not(:checked) + .toggle-slider .toggle-icon.dark,
.toggle-switch input:not(:checked) + .toggle-slider .toggle-icon.en {
  opacity: 0.3;
}

/* Estilos específicos para tema oscuro */
body.theme-dark .toggle-slider {
  background-color: #555;
}

body.theme-dark .toggle-icon {
  color: #fff;
}

/* Controles de tema e idioma en el header */
.theme-language-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.theme-controls,
.lang-controls {
  display: flex;
  align-items: center;
}
