/* --- ESTILOS GENERALES --- */
.main-container {
  text-align: center;
  max-width: 800px;
  width: 100%;
  margin: 40px auto;
}
.main-container h3 {
  color: #1a202c; /* Se adapta al color de texto del tema */
  font-size: 1.75rem;
}
.main-container p {
  font-size: 1rem;
  color: #555; /* Se adapta al color de texto del tema */
}
/* --- ESTILOS DEL COMPARADOR --- */
.img-comp-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin-top: 20px;
  background-color: #2d3748;
  border: 1px solid #4a5568;
  transition: height 0.3s ease-in-out;
}
.img-comp-img {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  top: 0;
  left: 0;
}
.img-comp-img img {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: auto;
  max-width: none;
}
.img-comp-overlay {
  border-right: 3px solid #38b2ac;
  width: 50%;
  height: 100%;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}
.img-comp-slider {
  position: absolute;
  z-index: 9;
  cursor: ew-resize;
  width: 45px;
  height: 45px;
  background-color: white;
  border: 3px solid #38b2ac;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
}
.img-comp-slider:before, .img-comp-slider:after {
    content: '';
    position: absolute;
    border: solid #38b2ac;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
}
.img-comp-slider:before {
    transform: rotate(135deg);
    margin-left: -10px;
}
.img-comp-slider:after {
    transform: rotate(-45deg);
    margin-left: 10px;
}
.comp-controls {
  text-align: center;
  margin-bottom: 15px;
  margin-top: 10px;
}
.comp-button {
  padding: 10px 20px;
  cursor: pointer;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #f9f9f9;
  color: #333;
  margin: 0 5px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
}
.comp-button:hover {
    background-color: #f0f0f0;
}
.comp-button.active {
  background-color: #38b2ac;
  color: white;
  border-color: #38b2ac;
}

