.container{
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

/* HERO */
.fc-hero{
  position: relative;
  padding: 120px 0 52px;
  overflow: hidden;
  border-bottom: 1px solid rgba(245,243,238,.14);
  background:#111;
}
.fc-hero-media{
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(15,15,15,.55), rgba(15,15,15,.18)),
    url("/static/core/img/otros/facturas.jpg") center/cover no-repeat;
  transform: scale(1.02);
  filter: saturate(1.02) contrast(1.02);
}
.fc-hero-inner{ position: relative; z-index: 1; }
.fc-hero-title{
  margin:0;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing:.16em;
  font-weight:950;
  text-transform:uppercase;
  color: rgba(245,243,238,.95);
}

/* PAGE */
.fc-page{
  background:#f5f3ee;
  padding: 64px 0 80px;
}

/* LAYOUT */
.fc-layout{
  display:grid;
  grid-template-columns: minmax(0,1fr) 360px;
  gap: 40px;
  align-items: start;
}
@media (max-width: 1100px){
  .fc-layout{
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
@media (max-width: 900px){
  .ct-form{
    grid-template-columns: 1fr;
  }
}


/* LEFT */
.fc-kicker{
  margin: 0 0 14px;
  font-weight: 950;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(230,32,38,.85);
  font-size: 16px;
}
.fc-text{
  margin: 0 0 14px;
  max-width: 520px;
  color: rgba(17,17,17,.78);
  line-height: 1.75;
  font-size: 14px;
}
.fc-text--space{ margin-top: 22px; }
.fc-link{
  color: rgba(230,32,38,.85);
  text-decoration: none;
}
.fc-link:hover{ text-decoration: underline; }

/* RIGHT */
.fc-side-title{
  margin: 0 0 12px;
  font-weight: 950;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(17,17,17,.92);
  font-size: 18px;
}

.fc-branches{
  display:flex;
  flex-direction:column;
  gap: 6px;
}
.fc-branches a{
  text-decoration:none;
  color: rgba(230,32,38,.85);
  font-size: 13px;
  line-height: 1.35;
}
.fc-branches a:hover{
  color: rgba(230,32,38,1);
  text-decoration: underline;
}
.ct-form{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px 18px;
}
.fc-messages{
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fc-modal-open{
  overflow: hidden;
}
.fc-modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.30);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2000;
  opacity: 0;
  transition: opacity .28s ease;
}
.fc-modal-backdrop.is-open{
  display: flex;
  opacity: 1;
}
.fc-modal-backdrop.is-closing{
  opacity: 0;
}
.fc-modal-card{
  width: min(540px, 100%);
  background: #0f0f0f;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,.26);
  border: 1px solid rgba(245,243,238,.14);
  border-top: 1px solid rgba(230,32,38,.55);
  transform: translateY(16px) scale(.97);
  transition: transform .28s ease;
}
.fc-modal-backdrop.is-open .fc-modal-card{
  transform: translateY(0) scale(1);
}
.fc-modal-backdrop.is-closing .fc-modal-card{
  transform: translateY(10px) scale(.98);
}
.fc-alert{
  border-radius: 10px;
  padding: 12px 14px;
  font-size: clamp(17px, 1.2vw, 22px);
  font-weight: 700;
  line-height: 1.35;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: none;
}
.fc-alert-icon{
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  font-size: 12px;
  font-weight: 900;
}
.fc-alert--success{
  background: rgba(245,243,238,.04);
  border-color: rgba(245,243,238,.20);
  color: #f5f3ee;
}
.fc-alert--success .fc-alert-icon{
  background: #e62026;
  color: #ffffff;
}
.fc-alert--error{
  background: rgba(245,243,238,.04);
  border-color: rgba(230, 32, 38, .55);
  color: #f5d6d8;
}
.fc-alert--error .fc-alert-icon{
  background: #e62026;
  color: #fff;
}
.fc-alert--warning{
  background: rgba(245,243,238,.04);
  border-color: rgba(245,243,238,.18);
  color: #f5f3ee;
}
.fc-alert--warning .fc-alert-icon{
  background: #e62026;
  color: #fff;
}
.fc-alert--info{
  background: rgba(245,243,238,.04);
  border-color: rgba(245,243,238,.18);
  color: #f5f3ee;
}
.fc-alert--info .fc-alert-icon{
  background: #e62026;
  color: #fff;
}
.ct-field{
  display:flex;
  flex-direction:column;
  gap: 6px;
  min-width: 0;
}

.ct-label{
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1.3;
  color: rgba(17,17,17,.75);
  text-transform: uppercase;
}

.ct-field input,
.ct-field select{
  width: 100%;
  padding: 12px 12px;
  font-size: 15px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.18);
  background: #fff;
  box-sizing: border-box;
}

.ct-field input[type="file"]{
  color: #111111;
}

.ct-field input[type="file"]::file-selector-button{
  color: #111111;
}
.ct-field:has(input[type="file"]),
.ct-field:has(input[name="domicilio_fiscal"]),
.ct-field:has(input[name="correos"]){
  grid-column: 1 / -1;
}

#aplicaciones_foto_wrap{
  grid-column: auto;
}

#comprobante_pago_wrap{
  grid-column: auto;
}
.ct-submit{
  grid-column: 1 / -1;
  margin-top: 12px;
  padding: 14px;
  border-radius: 14px;
  border: none;
  background: #E62026;
  color: #fff;
  font-weight: 800;
  letter-spacing: .05em;
  cursor: pointer;
}

.ct-submit:hover{
  filter: brightness(1.05);
}

.ct-label-row{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ct-info-dot{
  position: relative;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: #E62026;
  cursor: help;
}

.ct-info-dot::after{
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  min-width: 220px;
  max-width: 320px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
  white-space: normal;
  box-shadow: 0 10px 24px rgba(0,0,0,.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .15s ease, visibility .15s ease;
  z-index: 20;
}

.ct-info-dot:hover::after,
.ct-info-dot:focus::after{
  opacity: 1;
  visibility: visible;
}

.ct-field select{
  width: 100%;
  padding: 12px 12px;
  font-size: 15px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.18);
  background: #fff;
  box-sizing: border-box;
}
.fc-branches{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 16px; /* filas / columnas */
}

.fc-branches a{
  display: block;
}
@media (max-width: 768px){
  .fc-page{
    padding: 36px 0 52px;
  }

  .fc-side-title{
    margin-bottom: 10px;
    font-size: 16px;
  }

  .fc-branches{
    grid-template-columns: 1fr;
    max-height: 260px;
    overflow-y: auto;
    padding-right: 4px;
  }

  .ct-mobile-hide{
    display: none;
  }
}
