
/* =========================================================
   SUPERVOLANTE.COM 2027
   Archivo: assets/css/componentes.css
   Componentes reutilizables para todo el sitio

   Dependencia:
   1. Bootstrap 5
   2. style.css
   3. componentes.css
   4. responsive.css

   Convención:
   Los componentes nuevos utilizan el prefijo "sv-"
   para evitar conflictos con Bootstrap.

   ========================================================= */


/* =========================================================
   01. VARIABLES COMPLEMENTARIAS
   ========================================================= */

:root {
  --sv-success: #168366;
  --sv-success-bg: #eaf8f2;

  --sv-warning: #a96c12;
  --sv-warning-bg: #fff6e6;

  --sv-danger: #ba3453;
  --sv-danger-bg: #fff0f3;

  --sv-info: #226ba6;
  --sv-info-bg: #edf6ff;

  --sv-muted: #79717c;

  --sv-component-border: #eee5ec;
  --sv-component-bg: #ffffff;

  --sv-control-radius: 12px;
  --sv-card-radius: 20px;
}


/* =========================================================
   02. CONTENEDORES Y ESPACIADO
   ========================================================= */

.sv-section {
  padding: 90px 0;
  position: relative;
}

.sv-section--soft {
  background: var(--sv-background);
}

.sv-section--pink {
  background: var(--sv-background-soft);
}

.sv-section--white {
  background: var(--sv-white);
}

.sv-section--dark {
  background: var(--sv-background-dark);
  color: var(--sv-white);
}

.sv-container-narrow {
  width: min(100% - 32px, 850px);
  margin-inline: auto;
}

.sv-container-medium {
  width: min(100% - 32px, 1050px);
  margin-inline: auto;
}

.sv-text-gradient {
  display: inline-block;
  background: var(--sv-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--sv-primary);
}

.sv-text-primary {
  color: var(--sv-primary) !important;
}

.sv-text-muted {
  color: var(--sv-text-secondary);
}


/* =========================================================
   03. ENCABEZADOS DE PÁGINAS INTERIORES
   ========================================================= */

.sv-page-header {
  position: relative;
  overflow: hidden;

  padding: 85px 0;

  background:
    radial-gradient(
      circle at 85% 15%,
      rgba(211, 41, 145, .13),
      transparent 38%
    ),
    linear-gradient(
      125deg,
      #ffffff 0%,
      #fff4fa 100%
    );

  border-bottom: 1px solid var(--sv-border);
}

.sv-page-header::after {
  content: "";
  position: absolute;
  right: -100px;
  bottom: -190px;

  width: 360px;
  height: 360px;

  border: 65px solid rgba(173,20,108,.045);
  border-radius: 50%;

  pointer-events: none;
}

.sv-page-header__content {
  position: relative;
  z-index: 1;

  max-width: 850px;
}

.sv-page-header__eyebrow {
  display: inline-block;

  margin-bottom: 15px;

  color: var(--sv-primary);
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.sv-page-header__title {
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 800;

  margin-bottom: 22px;
}

.sv-page-header__description {
  max-width: 720px;

  font-size: 1.1rem;
  line-height: 1.85;

  margin-bottom: 0;
}


/* =========================================================
   04. BREADCRUMBS
   ========================================================= */

.sv-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 9px;

  padding: 0;
  margin: 0 0 25px;

  list-style: none;
}

.sv-breadcrumb li {
  font-size: .84rem;
  color: var(--sv-text-secondary);
}

.sv-breadcrumb li + li::before {
  content: "/";
  display: inline-block;

  margin-right: 9px;
  color: #b7a7b1;
}

.sv-breadcrumb a {
  color: var(--sv-primary);
  font-weight: 600;
}

.sv-breadcrumb a:hover {
  text-decoration: underline;
}

.sv-breadcrumb [aria-current="page"] {
  color: var(--sv-text);
  font-weight: 700;
}


/* =========================================================
   05. BOTONES REUTILIZABLES
   ========================================================= */

.sv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 10px;

  padding: 13px 25px;

  border: 1px solid transparent;
  border-radius: 12px;

  font-size: .94rem;
  font-weight: 750;
  line-height: 1.5;

  text-align: center;
  text-decoration: none;

  cursor: pointer;

  transition:
    background .25s ease,
    color .25s ease,
    border-color .25s ease,
    transform .25s ease,
    box-shadow .25s ease;
}

.sv-btn:hover {
  transform: translateY(-2px);
}

.sv-btn--primary {
  color: #fff;
  background: var(--sv-gradient);

  box-shadow: 0 8px 22px rgba(173,20,108,.17);
}

.sv-btn--primary:hover {
  color: #fff;
  background: var(--sv-primary-dark);
}

.sv-btn--outline {
  color: var(--sv-primary);
  background: transparent;
  border-color: var(--sv-primary);
}

.sv-btn--outline:hover {
  color: #fff;
  background: var(--sv-primary);
}

.sv-btn--white {
  color: var(--sv-primary-dark);
  background: #fff;
}

.sv-btn--white:hover {
  color: var(--sv-primary-dark);
  background: #fff0f8;
}

.sv-btn--whatsapp {
  color: #fff;
  background: #168b58;
}

.sv-btn--whatsapp:hover {
  color: #fff;
  background: #107548;
}

.sv-btn--sm {
  padding: 9px 17px;
  font-size: .83rem;
}

.sv-btn--lg {
  padding: 17px 32px;
  font-size: 1rem;
}

.sv-btn--block {
  display: flex;
  width: 100%;
}

.sv-btn:disabled,
.sv-btn[aria-disabled="true"] {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}


/* =========================================================
   06. ETIQUETAS Y BADGES
   ========================================================= */

.sv-badge {
  display: inline-flex;
  align-items: center;

  gap: 6px;

  padding: 6px 13px;

  border-radius: 50px;

  font-size: .73rem;
  font-weight: 800;
  line-height: 1.4;
}

.sv-badge--primary {
  background: var(--sv-background-soft);
  color: var(--sv-primary);
}

.sv-badge--success {
  background: var(--sv-success-bg);
  color: var(--sv-success);
}

.sv-badge--warning {
  background: var(--sv-warning-bg);
  color: var(--sv-warning);
}

.sv-badge--info {
  background: var(--sv-info-bg);
  color: var(--sv-info);
}

.sv-badge--dark {
  background: var(--sv-secondary);
  color: #fff;
}


/* =========================================================
   07. TARJETA BASE
   ========================================================= */

.sv-card {
  position: relative;
  display: flex;
  flex-direction: column;

  height: 100%;

  padding: 30px;

  background: var(--sv-component-bg);

  border: 1px solid var(--sv-component-border);
  border-radius: var(--sv-card-radius);

  box-shadow: var(--sv-shadow-sm);

  transition:
    transform .3s ease,
    box-shadow .3s ease,
    border-color .3s ease;
}

.sv-card--hover:hover {
  transform: translateY(-6px);

  border-color: rgba(173,20,108,.2);
  box-shadow: var(--sv-shadow-md);
}

.sv-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 64px;
  height: 64px;

  margin-bottom: 23px;

  border-radius: 18px;

  background: var(--sv-background-soft);
  color: var(--sv-primary);

  font-size: 1.7rem;
}

.sv-card__title {
  margin-bottom: 14px;
  font-size: 1.2rem;
  font-weight: 800;
}

.sv-card__description {
  font-size: .94rem;
  line-height: 1.85;
}

.sv-card__footer {
  margin-top: auto;
  padding-top: 20px;
}


/* =========================================================
   08. TARJETAS DE PRECIOS Y PAQUETES
   ========================================================= */

.sv-pricing-card {
  position: relative;

  display: flex;
  flex-direction: column;

  height: 100%;
  padding: 35px 30px;

  background: #fff;

  border: 1px solid var(--sv-border);
  border-radius: 24px;

  box-shadow: var(--sv-shadow-sm);

  transition: transform .3s ease,
              box-shadow .3s ease;
}

.sv-pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sv-shadow-md);
}

.sv-pricing-card--featured {
  border: 2px solid var(--sv-primary);
  box-shadow: 0 15px 40px rgba(173,20,108,.13);
}

.sv-pricing-card__name {
  margin: 15px 0;

  font-size: 1.35rem;
  font-weight: 800;
}

.sv-pricing-card__description {
  min-height: 75px;

  font-size: .94rem;
  line-height: 1.75;
}

.sv-pricing-card__price {
  margin: 16px 0 4px;

  color: var(--sv-primary);

  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 850;
  line-height: 1.2;
}

.sv-pricing-card__period {
  display: block;

  margin-bottom: 26px;

  color: var(--sv-muted);
  font-size: .85rem;
}

.sv-pricing-card__features {
  list-style: none;

  margin: 0 0 30px;
  padding: 0;
}

.sv-pricing-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 11px;

  padding: 11px 0;

  border-bottom: 1px solid var(--sv-border);

  font-size: .91rem;
  line-height: 1.55;
}

.sv-pricing-card__features li i {
  flex-shrink: 0;
  margin-top: 2px;

  color: var(--sv-success);
  font-size: 1rem;
}

.sv-pricing-card__action {
  margin-top: auto;
}


/* =========================================================
   09. LISTAS CON ICONOS
   ========================================================= */

.sv-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sv-check-list li {
  display: flex;
  align-items: flex-start;

  gap: 12px;

  padding: 9px 0;

  color: var(--sv-text);
  line-height: 1.7;
}

.sv-check-list li::before {
  content: "\F26B";

  font-family: "bootstrap-icons";
  font-size: 1.1rem;

  color: var(--sv-success);
  flex-shrink: 0;
}


/* =========================================================
   10. FORMULARIOS
   ========================================================= */

.sv-form {
  width: 100%;
}

.sv-form__group {
  margin-bottom: 23px;
}

.sv-form label,
.sv-form__label {
  display: block;

  margin-bottom: 9px;

  color: var(--sv-text);

  font-size: .91rem;
  font-weight: 750;
}

.sv-form .form-control,
.sv-form .form-select,
.sv-form__control {
  display: block;

  width: 100%;

  min-height: 51px;
  padding: 13px 16px;

  border: 1px solid #ddd2dc;
  border-radius: var(--sv-control-radius);

  background: #fff;
  color: var(--sv-text);

  font-size: .94rem;

  transition: border-color .25s ease,
              box-shadow .25s ease;
}

.sv-form textarea.form-control,
.sv-form textarea.sv-form__control {
  min-height: 150px;
  resize: vertical;
}

.sv-form .form-control:focus,
.sv-form .form-select:focus,
.sv-form__control:focus {
  border-color: var(--sv-primary);

  outline: none;

  box-shadow: 0 0 0 4px rgba(173,20,108,.10);
}

.sv-form .form-control::placeholder,
.sv-form__control::placeholder {
  color: #9a929c;
}

.sv-form .form-check-input {
  border-color: #bfb3bd;
}

.sv-form .form-check-input:checked {
  background-color: var(--sv-primary);
  border-color: var(--sv-primary);
}

.sv-form .form-check-input:focus {
  box-shadow: 0 0 0 4px rgba(173,20,108,.12);
}

.sv-form__help {
  display: block;

  margin-top: 7px;

  color: var(--sv-muted);
  font-size: .79rem;
  line-height: 1.6;
}

.sv-form__required {
  color: var(--sv-danger);
}

.sv-form .is-invalid,
.sv-form__control.is-invalid {
  border-color: var(--sv-danger);
}

.sv-form .invalid-feedback {
  color: var(--sv-danger);
  font-size: .81rem;
}

.sv-form-card {
  padding: 35px;

  background: #fff;

  border: 1px solid var(--sv-border);
  border-radius: 24px;

  box-shadow: var(--sv-shadow-md);
}

.sv-form-card__title {
  margin-bottom: 12px;

  font-size: 1.45rem;
}

.sv-form-card__description {
  margin-bottom: 30px;
  font-size: .94rem;
}


/* =========================================================
   11. ALERTAS Y MENSAJES
   ========================================================= */

.sv-alert {
  display: flex;
  align-items: flex-start;

  gap: 13px;

  padding: 18px 20px;

  border: 1px solid transparent;
  border-radius: 14px;

  font-size: .91rem;
  line-height: 1.7;
}

.sv-alert i {
  flex-shrink: 0;

  font-size: 1.3rem;
  margin-top: 1px;
}

.sv-alert p {
  margin-bottom: 0;
  color: inherit;
}

.sv-alert--success {
  color: #11674e;
  background: var(--sv-success-bg);
  border-color: #bfe7d8;
}

.sv-alert--error {
  color: #983047;
  background: var(--sv-danger-bg);
  border-color: #f0c6d0;
}

.sv-alert--warning {
  color: #865a17;
  background: var(--sv-warning-bg);
  border-color: #f1dbaa;
}

.sv-alert--info {
  color: #205985;
  background: var(--sv-info-bg);
  border-color: #c5dff3;
}


/* =========================================================
   12. PORTAFOLIO / PROYECTOS
   ========================================================= */

.sv-project-card {
  display: block;

  overflow: hidden;
  height: 100%;

  border: 1px solid var(--sv-border);
  border-radius: 20px;

  background: #fff;

  box-shadow: var(--sv-shadow-sm);

  transition: transform .3s ease,
              box-shadow .3s ease;
}

.sv-project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sv-shadow-md);
}

.sv-project-card__image {
  position: relative;

  aspect-ratio: 16 / 10;
  overflow: hidden;

  background: var(--sv-background-soft);
}

.sv-project-card__image img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform .5s ease;
}

.sv-project-card:hover .sv-project-card__image img {
  transform: scale(1.06);
}

.sv-project-card__body {
  padding: 25px;
}

.sv-project-card__category {
  display: block;

  margin-bottom: 8px;

  color: var(--sv-primary);

  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.sv-project-card__title {
  margin-bottom: 10px;

  color: var(--sv-text);
  font-size: 1.16rem;
}

.sv-project-card__description {
  margin-bottom: 18px;

  font-size: .9rem;
  line-height: 1.75;
}

.sv-project-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  color: var(--sv-primary);
  font-size: .9rem;
  font-weight: 800;
}


/* =========================================================
   13. TESTIMONIOS
   ========================================================= */

.sv-testimonial {
  height: 100%;
  padding: 32px;

  border: 1px solid var(--sv-border);
  border-radius: 22px;

  background: #fff;
  box-shadow: var(--sv-shadow-sm);
}

.sv-testimonial__quote {
  color: var(--sv-primary);
  font-size: 2rem;

  margin-bottom: 15px;
}

.sv-testimonial__text {
  font-size: 1rem;
  line-height: 1.9;
  font-style: italic;
}

.sv-testimonial__author {
  display: flex;
  align-items: center;
  gap: 13px;

  margin-top: 25px;
  padding-top: 20px;

  border-top: 1px solid var(--sv-border);
}

.sv-testimonial__avatar {
  width: 50px;
  height: 50px;

  flex-shrink: 0;

  border-radius: 50%;
  object-fit: cover;

  background: var(--sv-background-soft);
}

.sv-testimonial__name {
  display: block;

  font-weight: 800;
  color: var(--sv-text);
}

.sv-testimonial__business {
  display: block;

  font-size: .82rem;
  color: var(--sv-muted);
}


/* =========================================================
   14. BUSCADOR DEL DIRECTORIO
   ========================================================= */

.sv-search {
  position: relative;
  width: 100%;
}

.sv-search__input {
  width: 100%;
  min-height: 58px;

  padding: 15px 56px 15px 20px;

  border: 1px solid #ddd2dc;
  border-radius: 14px;

  background: #fff;

  font-size: .95rem;

  transition: border-color .25s ease,
              box-shadow .25s ease;
}

.sv-search__input:focus {
  outline: none;

  border-color: var(--sv-primary);
  box-shadow: 0 0 0 4px rgba(173,20,108,.10);
}

.sv-search__button {
  position: absolute;
  right: 8px;
  top: 50%;

  transform: translateY(-50%);

  display: flex;
  align-items: center;
  justify-content: center;

  width: 43px;
  height: 43px;

  border: 0;
  border-radius: 10px;

  background: var(--sv-primary);
  color: #fff;

  cursor: pointer;
}

.sv-search__button:hover {
  background: var(--sv-primary-dark);
}


/* =========================================================
   15. FILTROS DE CATEGORÍAS
   ========================================================= */

.sv-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;

  margin: 25px 0 35px;
}

.sv-filter {
  display: inline-flex;
  align-items: center;

  padding: 10px 18px;

  border: 1px solid var(--sv-border);
  border-radius: 50px;

  background: #fff;

  color: var(--sv-text-secondary);
  font-size: .85rem;
  font-weight: 700;

  cursor: pointer;

  transition: var(--sv-transition);
}

.sv-filter:hover,
.sv-filter.is-active,
.sv-filter[aria-pressed="true"] {
  color: #fff;

  background: var(--sv-primary);
  border-color: var(--sv-primary);
}


/* =========================================================
   16. TARJETAS DEL DIRECTORIO
   ========================================================= */

.sv-business-card {
  display: flex;
  flex-direction: column;

  height: 100%;

  overflow: hidden;

  background: #fff;

  border: 1px solid var(--sv-border);
  border-radius: 20px;

  box-shadow: var(--sv-shadow-sm);

  transition: var(--sv-transition);
}

.sv-business-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sv-shadow-md);
}

.sv-business-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;

  object-fit: cover;

  background: var(--sv-background-soft);
}

.sv-business-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;

  padding: 24px;
}

.sv-business-card__category {
  color: var(--sv-primary);
  font-size: .75rem;
  font-weight: 800;

  margin-bottom: 8px;
}

.sv-business-card__title {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.sv-business-card__description {
  font-size: .9rem;
  line-height: 1.75;
}

.sv-business-card__action {
  margin-top: auto;
  padding-top: 15px;
}


/* =========================================================
   17. BLOQUES INFORMATIVOS
   ========================================================= */

.sv-info-box {
  display: flex;
  align-items: flex-start;
  gap: 18px;

  padding: 25px;

  border-radius: 18px;

  background: var(--sv-background-soft);
  border: 1px solid rgba(173,20,108,.1);
}

.sv-info-box__icon {
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 52px;
  height: 52px;

  border-radius: 14px;

  background: #fff;
  color: var(--sv-primary);

  font-size: 1.5rem;
}

.sv-info-box__title {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.sv-info-box__text {
  margin-bottom: 0;

  font-size: .91rem;
  line-height: 1.75;
}


/* =========================================================
   18. ESTADOS VACÍOS
   ========================================================= */

.sv-empty-state {
  padding: 55px 25px;

  text-align: center;

  background: #fff;
  border: 1px dashed #d8c8d3;
  border-radius: 20px;
}

.sv-empty-state__icon {
  display: block;

  margin-bottom: 20px;

  color: var(--sv-primary);
  font-size: 3.2rem;
}

.sv-empty-state__title {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.sv-empty-state__text {
  max-width: 500px;
  margin: 0 auto 20px;
}


/* =========================================================
   19. ESTILOS DE CARGA
   ========================================================= */

.sv-spinner {
  display: inline-block;

  width: 22px;
  height: 22px;

  border: 3px solid rgba(173,20,108,.16);
  border-top-color: var(--sv-primary);

  border-radius: 50%;

  animation: svSpin .8s linear infinite;
}

@keyframes svSpin {
  to {
    transform: rotate(360deg);
  }
}

.sv-skeleton {
  background:
    linear-gradient(
      90deg,
      #f1eaf0 25%,
      #faf6f9 50%,
      #f1eaf0 75%
    );

  background-size: 200% 100%;

  animation: svSkeleton 1.5s infinite linear;

  border-radius: 8px;
}

@keyframes svSkeleton {
  from {
    background-position: 200% 0;
  }

  to {
    background-position: -200% 0;
  }
}


/* =========================================================
   20. UTILIDADES
   ========================================================= */

.sv-rounded {
  border-radius: var(--sv-radius-lg);
}

.sv-shadow {
  box-shadow: var(--sv-shadow-md);
}

.sv-border {
  border: 1px solid var(--sv-border);
}

.sv-divider {
  height: 1px;
  width: 100%;

  background: var(--sv-border);
  border: 0;

  margin: 30px 0;
}

.sv-image-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sv-image-contain {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sv-overflow-hidden {
  overflow: hidden;
}

.sv-visually-hidden {
  position: absolute !important;

  width: 1px !important;
  height: 1px !important;

  padding: 0 !important;
  margin: -1px !important;

  overflow: hidden !important;

  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;

  border: 0 !important;
}


/* =========================================================
   21. ACCESIBILIDAD Y MOVIMIENTO REDUCIDO
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  .sv-spinner,
  .sv-skeleton {
    animation: none;
  }

  .sv-card,
  .sv-btn,
  .sv-project-card,
  .sv-business-card,
  .sv-pricing-card {
    transition: none;
  }

}


/* =========================================================
   FIN DE COMPONENTES.CSS
   SUPERVOLANTE.COM 2027
   ========================================================= */
