/* ==========================================================================
   Tarjeta de Peticiones - diseno home (index.html)
   Paleta y tipografias inspiradas en la campana Invasion del Amor 2026
   ========================================================================== */

.home {
  --primary:       #2600b0;
  --primary-deep:  #1d0092;
  --ink:           #160068;
  --muted-ink:     #636686;
  --bg:            #f8fafd;
  --surface:       #ffffff;
  --secondary:     #f0ecfa;
  --accent:        #fb83bf;
  --accent-soft:   #ffd8ed;
  --violet-soft:   #e0d4fb;
  --mixta-soft:    #efd6f4;
  --border:        #dcdceb;
  --danger:        #e11d48;
  --danger-soft:   #fff0f4;
  --radius:        .9rem;
  --shadow-soft:   0 20px 50px -24px rgba(38, 0, 176, .45);
  --gradient-hero: linear-gradient(150deg, #2600b0 0%, #230088 60%, #510093 100%);

  background-color: #f8fafd;
  color: #160068;
  font-family: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.home h1, .home h2, .home h3, .home h4, .home h5, .home h6 {
  font-family: "Nunito Sans", system-ui, sans-serif;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.01em;
}

.home .script {
  font-family: "Yellowtail", cursive;
  font-weight: 400;
  letter-spacing: 0;
}

/* ---------- Cabecera / Hero ---------------------------------------------- */

.home header {
  position: relative;
  background: var(--gradient-hero);
  color: #fff;
  text-align: center;
  margin: 0;
  padding: 0 0 3.5rem;
  border-radius: 0 0 2rem 2rem;
  overflow: hidden;
  font-family: inherit;
  height: auto;
}

.home header::after {          /* halo suave detras del contenido */
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  width: 140%;
  height: 120%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 35%, rgba(251, 131, 191, .28), transparent 55%);
  pointer-events: none;
}

.home header > * { position: relative; z-index: 1; }

.home .hHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem 0;
  position: relative;
  z-index: 20;                 /* por encima del hero y de los paneles */
}

.home header .hLogIn { float: none; padding: 0; }

.home .hLogIn > .dropdown > .btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  padding: .45rem 1.1rem;
  background: rgba(255, 255, 255, .12);
  font-weight: 700;
  font-size: .9rem;
  transition: background .2s ease;
}
.home .hLogIn > .dropdown > .btn:hover { background: rgba(255, 255, 255, .25); }
.home .hLogIn .btn i { font-style: normal; }

.home .hero-brand {
  display: block;
  width: auto;
  height: 84px;
  margin: 0;
}

.home .hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
}

.home .hero-eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
  margin-bottom: .9rem;
}

.home .hero h1 {
  color: #fff;
  font-weight: 400;
  font-size: 2.9rem;
  line-height: 1.25;
  margin-bottom: 1.25rem;
}
.home .hero h1 span { display: block; }
.home .hero h1 .accent { color: var(--accent); }

.home .hero p {
  color: rgba(255, 255, 255, .86);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 0;
}
.home .hero p + p { margin-top: .1rem; }

.home .hero-cta {
  display: inline-block;
  margin-top: 1.75rem;
  background: var(--accent);
  color: #3d0038;
  font-weight: 800;
  border: 0;
  border-radius: 999px;
  padding: .8rem 2.2rem;
  box-shadow: 0 12px 28px -12px rgba(251, 131, 191, .9);
  transition: transform .15s ease, box-shadow .2s ease;
}
.home .hero-cta:hover {
  color: #3d0038;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -12px rgba(251, 131, 191, 1);
}

/* ---------- Estructura de contenido -------------------------------------- */

.home main { display: block; max-width: 860px; margin: 0 auto; padding: 0 1rem 2rem; }

.home .card-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-soft);
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.75rem;
}

.home .card-panel.lift { position: relative; z-index: 2; margin-top: -2.5rem; }   /* monta sobre el hero */

.home .panel-verse {
  text-align: center;
  background: linear-gradient(160deg, #ffffff, var(--secondary));
}
.home .panel-verse p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  margin: 0;
}

.home .section-title { font-size: 1.6rem; margin-bottom: .35rem; }
.home .section-subtitle {
  color: var(--muted-ink);
  font-size: .98rem;
  margin-bottom: 1.5rem;
}

.home .group-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--secondary);
  border-radius: 999px;
  padding: .35rem .9rem;
  margin: 1.75rem 0 .85rem;
}
.home .group-label.first { margin-top: 0; }
.home .group-label::before {
  content: "";
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Peticiones (checkboxes como tarjetas) ------------------------- */

.home .pet { padding-left: 0; margin-bottom: .55rem; }

.home .pet .custom-control-label {
  display: block;
  width: 100%;
  padding: .85rem 1rem .85rem 3rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  line-height: 1.35;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.home .pet .custom-control-label:hover { border-color: var(--accent); }

.home .pet .custom-control-label::before,
.home .pet .custom-control-label::after {
  top: 50%;
  left: 1rem;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: -.625rem;
}
.home .pet .custom-control-label::before {
  border: 1.5px solid #b9b9d4;
  border-radius: .4rem;
  background-color: #fff;
}
.home .pet .custom-control-input:checked ~ .custom-control-label::before {
  background-color: var(--primary);
  border-color: var(--primary);
}
.home .pet .custom-control-input:checked ~ .custom-control-label {
  background-color: var(--accent-soft);
  border-color: var(--primary);
  font-weight: 700;
  box-shadow: 0 8px 20px -14px rgba(38, 0, 176, .8);
}
.home .pet .custom-control-input:focus ~ .custom-control-label::before {
  box-shadow: 0 0 0 .2rem rgba(251, 131, 191, .55);
}

.home #peticion19 {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  min-height: 90px;
  resize: vertical;
}

/* ---------- Formulario de datos ------------------------------------------ */

.home .field { margin-bottom: 1rem; }

.home .field > label {
  display: block;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted-ink);
  margin-bottom: .35rem;
}

.home .form-control,
.home .custom-select {
  height: auto;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  font-size: 1rem;
  color: var(--ink);
  background-color: #fff;
  box-shadow: none;
}
.home .custom-select { padding-right: 2rem; }
.home .form-control:focus,
.home .custom-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 .2rem rgba(38, 0, 176, .12);
}
.home .form-control::placeholder { color: #a3a3bd; }

/* botones de edad */
.home .age-group { display: flex; flex-wrap: wrap; gap: .5rem; }
.home .age-group .btn.btn-info {
  flex: 1 1 auto;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 700;
  padding: .6rem 1.1rem;
  box-shadow: none;
}
.home .age-group .btn.btn-info:hover { border-color: var(--accent); }
.home .age-group .btn.btn-info.active,
.home .age-group .btn.btn-info:not(:disabled):not(.disabled).active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 10px 22px -14px rgba(38, 0, 176, .9);
}

/* ---------- Botones principales ------------------------------------------ */

.home .btn-info.btn-lg,
.home #btnEnviarPeticion,
.home #btnIngresar,
.home #btnRegistrar {
  background: var(--primary);
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  padding: .85rem 2.6rem;
  box-shadow: 0 16px 32px -16px rgba(38, 0, 176, .95);
  transition: transform .15s ease, background-color .2s ease;
}
.home .btn-info.btn-lg:hover,
.home #btnEnviarPeticion:hover,
.home #btnIngresar:hover,
.home #btnRegistrar:hover {
  background: var(--primary-deep);
  transform: translateY(-2px);
}

.home .submit-row { text-align: center; padding: .5rem 0 1.5rem; }
.home .submit-note { color: var(--muted-ink); font-size: .9rem; margin-top: .9rem; }

.home .text-info { color: var(--primary) !important; }
.home .enlace { color: var(--primary) !important; }

/* ---------- Pie ----------------------------------------------------------- */

.home .site-footer {
  background: var(--gradient-hero);
  color: rgba(255, 255, 255, .85);
  text-align: center;
  padding: 2.5rem 1.25rem;
  border-radius: 2rem 2rem 0 0;
  margin-top: 2rem;
}
.home .site-footer .script { font-size: 1.8rem; color: var(--accent); display: block; margin-bottom: .5rem; }
.home .site-footer p { margin-bottom: .35rem; }
.home .site-footer a { color: #fff; font-weight: 700; }

/* ---------- Modales ------------------------------------------------------- */

.home .modal-content {
  border: 0;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.home .modal-header {
  background: var(--gradient-hero);
  color: #fff;
  border-bottom: 0;
  padding: 1.1rem 1.5rem;
}
.home .modal-header .modal-title { color: #fff; }
.home .modal-header .close { color: #fff; opacity: .85; text-shadow: none; }
.home .modal-body { padding: 1.5rem; }
.home .modal-body .form-section-title {
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-ink);
  margin-bottom: .9rem;
  font-weight: 800;
}

.home .dropdown-menu {
  z-index: 1050;
  padding: 1rem;
  border: 0;
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
  text-align: left;
  min-width: 230px;
}
.home .dropdown-menu .btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: .5rem .25rem;
  color: var(--ink) !important;
  font-weight: 600;
}
.home .dropdown-menu .btn:hover { color: var(--primary) !important; }
.home .dropdown-menu .modal-title {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-ink) !important;
}

/* ---------- Responsive ---------------------------------------------------- */

@media (min-width: 576px) {
  .home .hero h1 { font-size: 3.7rem; }
  .home .field-row { display: flex; gap: 1rem; }
  .home .field-row > .field { flex: 1 1 0; }
}

@media (max-width: 575.98px) {
  .home .card-panel { padding: 1.35rem 1.1rem; border-radius: 1rem; }
  .home .card-panel.lift { margin-top: -1.75rem; }
  .home .hero-brand { height: 64px; }
  .home .hero h1 { font-size: 2.3rem; }
  .home .hero { padding-top: 1rem; }
  .home .age-group .btn.btn-info { flex: 1 1 45%; }
}

.home .age-group > .btn.btn-info { margin-left: 0; }

/* ---------- Llamado al testimonio ---------------------------------------- */

.home .testimonio-cta {
  max-width: 860px;
  width: calc(100% - 2rem);
  margin: 0 auto 2rem;
  padding: 3.5rem 1.75rem;
  background: var(--gradient-hero);
  border-radius: 1.5rem;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.home .testimonio-cta h2 {
  color: #fff;
  font-size: 3rem;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.home .testimonio-cta p {
  max-width: 620px;
  margin: 0 auto 2.25rem;
  font-size: 1.15rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, .88);
}

.home .testimonio-btn {
  display: inline-block;
  background: var(--accent);
  color: #3d0038;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 1rem 2.6rem;
  box-shadow: 0 14px 30px -14px rgba(251, 131, 191, .9);
  transition: transform .15s ease, box-shadow .2s ease;
}
.home .testimonio-btn:hover {
  color: #3d0038;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -14px rgba(251, 131, 191, 1);
}

@media (max-width: 575.98px) {
  .home .testimonio-cta { padding: 2.5rem 1.25rem; border-radius: 1.25rem; margin-bottom: 1.5rem; }
  .home .testimonio-cta h2 { font-size: 2.1rem; }
  .home .testimonio-cta p { font-size: 1rem; margin-bottom: 1.75rem; }
  .home .testimonio-btn { padding: .9rem 1.9rem; font-size: .95rem; }
}

/* ---------- Alertas (SweetAlert2) ----------------------------------------
   El contenedor se inserta como hijo de <body class="home">, por eso alcanza
   con prefijar .home para no afectar otras paginas.
   ------------------------------------------------------------------------- */

.home .swal2-container {
  backdrop-filter: blur(2px);
}
.home .swal2-container.swal2-shown {
  background: rgba(22, 0, 104, .55);
}

.home .swal2-popup {
  width: 92%;
  max-width: 480px;
  padding: 2rem 1.75rem 1.5rem;
  border-radius: 1.25rem;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  font-family: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
}

.home .swal2-popup .swal2-title {
  font-family: inherit;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--ink);
  padding: 0 0 .25rem;
}

.home .swal2-popup .swal2-content,
.home .swal2-popup #swal2-content {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted-ink);
  font-weight: 400;
}
.home .swal2-popup .swal2-content p { margin-bottom: .6rem; }
.home .swal2-popup .swal2-content p:last-child { margin-bottom: 0; }
.home .swal2-popup .swal2-content a {
  color: var(--primary);
  font-weight: 700;
  word-break: break-all;
}

/* ---- Iconos ---- */
.home .swal2-popup .swal2-icon {
  width: 4.25rem;
  height: 4.25rem;
  margin: .25rem auto 1.1rem;
  border-width: .25rem;
}
.home .swal2-popup .swal2-icon .swal2-icon-text,
.home .swal2-popup .swal2-icon.swal2-warning { font-size: 2.75rem; }

.home .swal2-popup .swal2-icon.swal2-warning {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.home .swal2-popup .swal2-icon.swal2-success {
  border-color: var(--primary);
  background: var(--secondary);
}
.home .swal2-popup .swal2-icon.swal2-success [class^='swal2-success-line'] {
  background-color: var(--primary);
}
.home .swal2-popup .swal2-icon.swal2-success .swal2-success-ring {
  border-color: rgba(38, 0, 176, .3);
}
.home .swal2-popup .swal2-icon.swal2-success [class^='swal2-success-circular-line'],
.home .swal2-popup .swal2-icon.swal2-success .swal2-success-fix {
  background-color: var(--secondary);
}
.home .swal2-popup .swal2-icon.swal2-error {
  border-color: #e0457b;
  background: #ffe8f0;
}
.home .swal2-popup .swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
  background-color: #e0457b;
}
.home .swal2-popup .swal2-icon.swal2-info,
.home .swal2-popup .swal2-icon.swal2-question {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--secondary);
}

/* ---- Botones ---- */
.home .swal2-popup .swal2-actions {
  margin-top: 1.6rem;
  gap: .6rem;
  flex-wrap: wrap;
}
.home .swal2-popup .swal2-styled {
  margin: 0;
  border: 0;
  border-radius: 999px;
  padding: .7rem 1.9rem;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: none;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.home .swal2-popup .swal2-styled:focus {
  outline: 0;
  box-shadow: 0 0 0 .2rem rgba(38, 0, 176, .25);
}
.home .swal2-popup .swal2-styled.swal2-confirm {
  background: var(--gradient-hero);
  color: #fff;
  box-shadow: 0 14px 28px -14px rgba(38, 0, 176, .85);
}
.home .swal2-popup .swal2-styled.swal2-confirm:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px -14px rgba(38, 0, 176, 1);
}
.home .swal2-popup .swal2-styled.swal2-cancel {
  background: var(--secondary);
  color: var(--primary);
}
.home .swal2-popup .swal2-styled.swal2-cancel:hover {
  background: var(--accent-soft);
  color: var(--ink);
  transform: translateY(-1px);
}

@media (max-width: 575.98px) {
  .home .swal2-popup { padding: 1.6rem 1.25rem 1.25rem; border-radius: 1rem; }
  .home .swal2-popup .swal2-title { font-size: 1.2rem; }
  .home .swal2-popup .swal2-content { font-size: .95rem; }
  .home .swal2-popup .swal2-styled { width: 100%; padding: .75rem 1rem; }
}

/* ---------- Validacion de campos requeridos -------------------------------
   jquery.validate inyecta <label class="error"> dentro de .field, por eso hay
   que romper el estilo heredado de .home .field > label (mayusculas y gris).
   ------------------------------------------------------------------------- */

.home .field > label.error,
.home label.error,
.home span.error {
  display: flex;
  align-items: flex-start;
  gap: .4rem;
  width: 100%;
  margin: .4rem 0 0;
  padding: 0;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--danger);
  animation: field-error-in .2s ease-out;
}

.home .field > label.error::before,
.home label.error::before,
.home span.error::before {
  content: "\f06a";                       /* exclamation-circle (Font Awesome) */
  font-family: "Font Awesome 5 Free", "Font Awesome 5 Pro";
  font-weight: 900;
  font-size: .9rem;
  line-height: 1.4;
  flex: 0 0 auto;
}

@keyframes field-error-in {
  from { opacity: 0; transform: translateY(-3px); }
  to   { opacity: 1; transform: none; }
}

/* input / select / textarea invalidos */
.home .form-control.error,
.home .custom-select.error,
.home input.error,
.home textarea.error {
  border-color: var(--danger);
  background-color: var(--danger-soft);
}
.home .form-control.error:focus,
.home .custom-select.error:focus,
.home textarea.error:focus {
  border-color: var(--danger);
  box-shadow: 0 0 0 .2rem rgba(225, 29, 72, .15);
}

/* campo validado ok */
.home .form-control.valid:not(:placeholder-shown) {
  border-color: rgba(38, 0, 176, .35);
}

/* asterisco en los labels de campos obligatorios */
.home .field > label.required::after {
  content: " *";
  color: var(--danger);
  font-weight: 800;
}
