/* ════════════════════════════════════════════════
   CODELTY — Estilos específicos para general.blade.php
   Complementa public/css/styles.css
   ════════════════════════════════════════════════ */

/* ── Sección "Para quién es" ── */
.section-authority .who__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.who__card {
  background: #fff;
  border: 1px solid #E2D9C8;
  border-radius: 14px;
  padding: 2rem 1.75rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.who__card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-muted));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.who__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.10);
  border-color: rgba(198,167,94,0.3);
}

.who__card:hover::before {
  transform: scaleX(1);
}

.who__card--highlight {
  border-color: rgba(198,167,94,0.4);
  background: linear-gradient(135deg, #fdf9f3 0%, #fff 100%);
}

.who__icon {
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(198,167,94,0.10);
  margin-bottom: 1.2rem;
}

.who__card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.65rem;
  line-height: 1.4;
}

.who__card-text {
  font-size: 0.87rem;
  color: #4A5568;
  line-height: 1.7;
  margin: 0;
}

/* ── Ajustes de pain__copy sobre fondo claro ── */
.section-pain .pain__copy .section-subtitle--dark {
  color: #4A5568;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .section-authority .who__grid {
    grid-template-columns: 1fr;
  }
}

/* ── Carousel Testimonios ── */
.carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.carousel__inner {
  overflow: hidden;
  position: relative;
}

.carousel__slide {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.carousel__slide.active {
  display: block;
  opacity: 1;
}

.testimonial {
  text-align: center;
  padding: 2rem;
}

.testimonial__photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  object-fit: cover;
}

.testimonial__text {
  font-style: italic;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.testimonial__cite {
  font-weight: bold;
  color: var(--accent-color);
}

.carousel__dots {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.carousel__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  margin: 0 5px;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.carousel__dot.active {
  background: var(--accent-color);
}

/* ── Footer ── */
.footer {
  background: var(--primary-light);
  border-top: 1px solid var(--border-subtle);
  padding: 2rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer__content {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.footer__copy {
  margin: 0;
}

.footer__contact a {
  color: var(--accent-color);
  margin-left: 1rem;
}

.footer__contact a:hover {
  text-decoration: underline;
}

.footer__logo img {
  height: 40px;
}
